/* Comprehensive Responsive CSS for All Devices */
/* This file ensures full responsiveness across all device sizes */

/* ===== VIEWPORT META TAG ENHANCEMENT ===== */
/* Ensure proper viewport settings in HTML head */

/* ===== GLOBAL RESPONSIVE SETTINGS ===== */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== EXTRA LARGE DESKTOP (1600px and up) ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .wm-main-header {
        padding: 25px 0;
    }
    
    .wm-topstrip {
        padding: 20px 0;
    }
    
    .wm-banner-one-nav-layer {
        padding: 80px 100px;
    }
}

/* ===== LARGE DESKTOP (1400px to 1599px) ===== */
@media (min-width: 1400px) and (max-width: 1599px) {
    .container {
        max-width: 1320px;
    }
    
    .wm-main-header {
        padding: 20px 0;
    }
    
    .wm-topstrip {
        padding: 15px 0;
    }
    
    .wm-banner-one-nav-layer {
        padding: 60px 80px;
    }
}

/* ===== DESKTOP (1200px to 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .wm-main-header .navbar-nav > li > a {
        padding: 15px 12px;
        font-size: 14px;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 13px;
        margin-right: 20px;
    }
    
    .wm-banner-one-nav-layer {
        padding: 50px 60px;
    }
}

/* ===== LAPTOP (992px to 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .wm-main-header .navbar-nav > li > a {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 12px;
        margin-right: 15px;
    }
    
    .wm-logo img {
        max-width: 180px;
    }
    
    .wm-banner-one-nav-layer {
        padding: 40px 50px;
    }
}

/* ===== TABLET LANDSCAPE (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header Responsive */
    .wm-topstrip {
        text-align: center;
        padding: 10px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        display: inline-block;
        float: none;
        margin: 0 10px 5px 0;
        font-size: 12px;
    }
    
    .wm-right-section {
        display: inline-block;
        float: none;
        margin-top: 10px;
    }
    
    .wm-main-header {
        text-align: center;
        padding: 15px 0;
    }
    
    .wm-main-header .col-md-3,
    .wm-main-header .col-md-9 {
        float: left;
        width: 100%;
    }
    
    .wm-logo {
        float: none;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .wm-logo img {
        max-width: 160px;
        height: auto;
    }
    
    /* Navigation Responsive */
    .navbar {
        position: relative;
    }
    
    .navbar-toggle {
        display: block;
        background-color: #eee;
        margin: 15px 0 20px 0;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px 12px;
    }
    
    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #333;
        margin: 4px 0;
        border-radius: 1px;
    }
    
    .navbar-collapse {
        padding: 0;
        width: 280px;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: none;
        position: absolute;
        left: -100%;
        top: 100%;
        z-index: 9999;
        margin: 10px 0 0 -60px;
        border-radius: 4px;
    }
    
    .navbar-collapse.in {
        left: 0;
    }
    
    .navbar-nav {
        margin: 0;
        width: 100%;
    }
    
    .navbar-nav > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav > li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav > li > a {
        float: left;
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
        color: #333;
    }
    
    .navbar-nav > li > a:hover {
        background-color: #f5f5f5;
        color: #b99663;
    }
    
    .wm-dropdown-menu {
        float: left;
        width: 100%;
        position: relative;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        transform: none;
    }
    
    .wm-dropdown-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .wm-dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .wm-dropdown-menu li a {
        padding: 10px 30px;
        color: #666;
    }
    
    /* Content Responsive */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3 {
        float: none;
        display: inline-block;
        vertical-align: top;
        margin-right: -4px;
        width: 50%;
    }
    
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        float: left;
        margin-bottom: 30px;
    }
    
    .col-md-12 {
        float: left;
        width: 100%;
    }
    
    /* Footer Responsive */
    .wm-footer-widget .widget {
        float: none;
        display: inline-block;
        margin-right: -4px;
        width: 50%;
        vertical-align: top;
    }
    
    .wm-copyright,
    .wm-copyright-two {
        text-align: center;
    }
    
    .wm-copyright span,
    .wm-copyright p,
    .wm-copyright-two span,
    .wm-copyright-two p {
        display: inline-block;
        float: none;
    }
    
    .wm-copyright span,
    .wm-copyright-two span {
        margin-bottom: 5px;
    }
    
    /* Banner Responsive */
    .wm-banner-one-for,
    .wm-banner-one-nav {
        width: 100%;
    }
    
    .wm-caption-two,
    .wm-banner-adds,
    .wm-caption-three,
    .wm-caption-four {
        display: none;
    }
    
    /* Service Boxes */
    .wm-box-service ul li {
        width: 50%;
    }
    
    /* Course Cards */
    .wm-courses-popular-wrap {
        margin-bottom: 20px;
    }
    
    /* Event Slider */
    .wm-upcoming-event-slider {
        padding: 0 20px;
    }
}

/* ===== TABLET PORTRAIT (481px to 767px) ===== */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Header */
    .wm-topstrip {
        text-align: center;
        padding: 8px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        display: block;
        margin: 2px 0;
        font-size: 11px;
    }
    
    .wm-right-section {
        display: block;
        margin-top: 8px;
    }
    
    .wm-search-section {
        margin: 10px 0;
    }
    
    .wm-main-header {
        text-align: center;
        padding: 10px 0;
    }
    
    .wm-main-header .col-md-3,
    .wm-main-header .col-md-9 {
        float: left;
        width: 100%;
    }
    
    .wm-logo {
        float: none;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .wm-logo img {
        max-width: 140px;
        height: auto;
    }
    
    /* Navigation */
    .navbar-toggle {
        margin: 10px 0 15px 0;
        padding: 6px 10px;
    }
    
    .navbar-collapse {
        width: 100%;
        left: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .navbar-nav > li > a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Content */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Service Boxes */
    .wm-box-service ul li {
        width: 100%;
    }
    
    /* Course Cards */
    .wm-courses-popular-wrap {
        margin-bottom: 15px;
    }
    
    /* Footer */
    .wm-footer-widget .widget {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wm-copyright,
    .wm-copyright-two,
    .wm-copyright-three {
        text-align: center;
    }
    
    .wm-copyright span,
    .wm-copyright p,
    .wm-copyright-two span,
    .wm-copyright-two p,
    .wm-copyright-three span,
    .wm-copyright-three p {
        display: block;
        margin-bottom: 5px;
    }
    
    /* Banner */
    .wm-banner-one-for,
    .wm-banner-one-nav {
        width: 100%;
    }
    
    .wm-caption-two,
    .wm-banner-adds,
    .wm-caption-three,
    .wm-caption-four {
        display: none;
    }
    
    /* Event Slider */
    .wm-upcoming-event-slider {
        padding: 0 10px;
    }
    
    /* Forms */
    .wm-search-course ul li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== MOBILE LARGE (320px to 480px) ===== */
@media (min-width: 320px) and (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Header */
    .wm-topstrip {
        text-align: center;
        padding: 5px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        display: block;
        margin: 1px 0;
        font-size: 10px;
    }
    
    .wm-main-header {
        text-align: center;
        padding: 8px 0;
    }
    
    .wm-logo img {
        max-width: 120px;
        height: auto;
    }
    
    /* Navigation */
    .navbar-toggle {
        margin: 8px 0 12px 0;
        padding: 5px 8px;
    }
    
    .navbar-toggle .icon-bar {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }
    
    .navbar-nav > li > a {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Content */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3,
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Service Boxes */
    .wm-box-service ul li {
        width: 100%;
    }
    
    /* Footer */
    .wm-footer-widget .widget {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .wm-copyright,
    .wm-copyright-two,
    .wm-copyright-three {
        text-align: center;
        padding: 10px 0;
    }
    
    .wm-copyright span,
    .wm-copyright p,
    .wm-copyright-two span,
    .wm-copyright-two p,
    .wm-copyright-three span,
    .wm-copyright-three p {
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
    }
    
    /* Banner */
    .wm-banner-one-for,
    .wm-banner-one-nav {
        width: 100%;
    }
    
    .wm-caption-two,
    .wm-banner-adds,
    .wm-caption-three,
    .wm-caption-four {
        display: none;
    }
    
    /* Event Slider */
    .wm-upcoming-event-slider {
        padding: 0 5px;
    }
    
    /* Forms */
    .wm-search-course ul li {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Buttons */
    .wm-classic-button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    /* Modal */
    .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
}

/* ===== MOBILE SMALL (up to 319px) ===== */
@media (max-width: 319px) {
    .container {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 9px;
    }
    
    .wm-logo img {
        max-width: 100px;
    }
    
    .navbar-nav > li > a {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .wm-copyright span,
    .wm-copyright p,
    .wm-copyright-two span,
    .wm-copyright-two p,
    .wm-copyright-three span,
    .wm-copyright-three p {
        font-size: 10px;
    }
    
    .wm-classic-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav > li > a {
        min-height: 44px;
        line-height: 44px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .btn {
        min-height: 44px;
        line-height: 44px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .wm-topstrip,
    .wm-footer-widget,
    .wm-copyright {
        display: none !important;
    }
    
    .wm-main-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        float: none;
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .navbar-default {
        border-color: #000;
    }
    
    .navbar-default .navbar-nav > li > a {
        color: #000;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        color: #000;
        background-color: #fff;
    }
}

@media (prefers-color-scheme: dark) {
    .navbar-default {
        background-color: #333;
        border-color: #555;
    }
    
    .navbar-default .navbar-nav > li > a {
        color: #fff;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        color: #fff;
        background-color: #555;
    }
    
    .navbar-toggle {
        background-color: #555;
        border-color: #777;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #fff;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Hide unnecessary elements on mobile */
    .slick-slider .slick-arrow {
        display: none !important;
    }
    
    /* Reduce font sizes for better readability */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    h5 { font-size: 14px; }
    h6 { font-size: 12px; }
    
    /* Optimize wrapper */
    .wm-main-wrapper {
        overflow-x: hidden;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media screen and (max-width: 767px) {
    .wm-main-wrapper {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wm-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== FLEXIBLE GRID SYSTEM ===== */
@media (min-width: 768px) {
    .wm-responsive-grid {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }
    
    .wm-responsive-grid > * {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 15px;
    }
}

@media (min-width: 992px) {
    .wm-responsive-grid > * {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .wm-responsive-grid > * {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ===== UTILITY CLASSES ===== */
.wm-hidden-xs { display: block !important; }
.wm-hidden-sm { display: block !important; }
.wm-hidden-md { display: block !important; }
.wm-hidden-lg { display: block !important; }

@media (max-width: 767px) {
    .wm-hidden-xs { display: none !important; }
    .wm-visible-xs { display: block !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .wm-hidden-sm { display: none !important; }
    .wm-visible-sm { display: block !important; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .wm-hidden-md { display: none !important; }
    .wm-visible-md { display: block !important; }
}

@media (min-width: 1200px) {
    .wm-hidden-lg { display: none !important; }
    .wm-visible-lg { display: block !important; }
}

/* ===== TEXT RESPONSIVE ===== */
.wm-text-responsive {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.4;
}

.wm-heading-responsive {
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.2;
}

/* ===== SPACING RESPONSIVE ===== */
.wm-spacing-responsive {
    padding: clamp(20px, 4vw, 40px);
    margin: clamp(10px, 2vw, 20px);
}

/* ===== FIXED ISSUES ===== */
/* Fix for modal dialog width */
@media (max-width: 767px) {
    .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
}

/* ===== CUSTOM TABLE RESPONSIVE FIXES ===== */
/* Fix for wm-event-register-list custom table structure */
@media (max-width: 767px) {
    .wm-event-register-list {
        display: block !important; /* Override the display: none from responsive.css */
        margin-bottom: 30px;
    }
    
    .wm-register-title {
        padding: 10px 15px;
        text-align: center;
    }
    
    .wm-register-title h6 {
        float: none;
        margin-bottom: 0;
        font-size: 16px;
    }
    
    .event-register-wrap {
        padding: 15px;
        overflow-x: auto;
    }
    
    .event-register-inner {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #f7f7f7;
    }
    
    .wm-title-list {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 10px;
        border-bottom: 2px solid #f2f2f2;
        padding-bottom: 10px;
    }
    
    .wm-title-list li {
        float: none;
        width: 25% !important;
        font-size: 12px;
        text-align: center;
        padding: 5px 2px;
        margin-bottom: 0;
    }
    
    .wm-simple-list {
        display: flex;
        flex-wrap: wrap;
    }
    
    .wm-simple-list li {
        float: none;
        width: 25% !important;
        font-size: 14px;
        text-align: center;
        padding: 8px 2px;
    }
}

@media (max-width: 480px) {
    .wm-title-list li {
        width: 50% !important;
        font-size: 11px;
        padding: 3px 1px;
    }
    
    .wm-simple-list li {
        width: 50% !important;
        font-size: 13px;
        padding: 6px 1px;
    }
    
    .wm-register-title h6 {
        font-size: 14px;
    }
    
    .event-register-wrap {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .wm-title-list li,
    .wm-simple-list li {
        width: 100% !important;
        text-align: left;
        padding: 5px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .wm-title-list li {
        font-weight: bold;
        background-color: #f8f8f8;
    }
}

/* ===== RESPONSIVE CELL UTILITIES ===== */
.wm-responsive-cell {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .wm-responsive-cell {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Fix for navigation collapse */
@media (max-width: 991px) {
    .navbar-collapse.collapse {
        display: none !important;
    }
    
    .navbar-collapse.collapse.in {
        display: block !important;
    }
}

/* Fix for dropdown menus */
@media (max-width: 991px) {
    .wm-dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Fix for mega menu */
@media (max-width: 991px) {
    .wm-megamenu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .wm-megamenu [class*="col-md-"] {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
    }
} 