/* ============================================
   BETA THEME - PRODUCTION GRADE CSS
   Clean, Organized, Professional
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary-color: #22577a;
    --primary-dark: #143449;
    --primary-light: #38a3a5;
    --secondary-color: #57cc99;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #22577a 0%, #38a3a5 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing - Standardized */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    
    /* Section Spacing - Standard */
    --section-spacing: 5rem;
    --section-spacing-mobile: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVBAR - PRODUCTION GRADE
   ============================================ */
.navbar-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    transition: background-color var(--transition-base), padding var(--transition-base), position var(--transition-base);
    padding: var(--spacing-sm) var(--spacing-lg);
    width: 100%;
}

.navbar-modern.fixed.scrolled {
    padding: 0;
}

.navbar-modern.fixed {
    position: fixed;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0;
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    gap: var(--spacing-md);
}

.navbar-modern.scrolled .navbar-wrapper {
    box-shadow: none;
    background: transparent;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 0;
}

.nav-logo img {
    height: 55px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

/* Navigation Menu - Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li > a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    display: inline-block;
}

/* Underline effect - ONLY for non-dropdown links */
.nav-menu li:not(.dropdown) > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base), transform var(--transition-base);
    border-radius: 2px;
}

.nav-menu li:not(.dropdown) > a:hover::before,
.nav-menu li:not(.dropdown).active > a::before {
    width: 80%;
    transform: translateX(-50%) scaleX(1);
}

.nav-menu li > a:hover {
    color: var(--primary-color);
    background: rgba(34, 87, 122, 0.08);
}

/* Dropdown Menu - Desktop */
.nav-menu .dropdown {
    position: relative;
}

/* Remove Bootstrap's default dropdown arrow - we use FontAwesome icon instead */
.nav-menu .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-xs);
    margin-top: var(--spacing-xs);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown underline - ONLY when hovered/active */
.nav-menu .dropdown > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base), transform var(--transition-base);
    border-radius: 2px;
}

.nav-menu .dropdown:hover > a::before,
.nav-menu .dropdown.active > a::before {
    width: 80%;
    transform: translateX(-50%) scaleX(1);
}

.nav-menu .dropdown-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    display: block;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-menu .dropdown-item:hover {
    background: rgba(34, 87, 122, 0.08);
    color: var(--primary-color);
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    opacity: 0.95;
}

.btn-modern-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2.5px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(34, 87, 122, 0.15);
    font-weight: 700;
    opacity: 1;
}

.btn-modern-secondary:not(:hover) {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

.btn-modern-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    opacity: 1;
}

.btn-modern:focus,
.btn-modern-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 87, 122, 0.2);
}

.btn-modern:active,
.btn-modern-secondary:active {
    transform: translateY(0);
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.btn-modern-secondary.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

/* Mobile Menu Close Button - Hidden on desktop */
.mobile-menu-close {
    display: none;
}

/* Mobile Sidebar Footer - Hidden on desktop */
.mobile-sidebar-footer {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    position: relative;
    z-index: 1003;
}

/* Mobile Menu Overlay - Behind Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* ============================================
   HERO SECTION - SLIDER
   ============================================ */
.heroSection-modern {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background-color: #1a202c;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.heroSection-modern .owl-carousel,
.heroSection-modern .owl-stage-outer,
.heroSection-modern .owl-stage {
    height: 100%;
    width: 100%;
}

.heroSection-modern .owl-item {
    height: 100%;
}

.heroSection-modern .owl-item .item {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.heroSection-modern .hero-slide img,
.heroSection-modern .swiperImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #1a202c;
}

.hero-slide-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    max-width: 800px;
    width: calc(100% - 2rem);
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.2;
    color: white;
}

.hero-slide-description {
    font-size: clamp(0.9375rem, 1.8vw, 1.25rem);
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   SECTIONS - STANDARD BOOTSTRAP GRID
   ============================================ */
.section-modern {
    padding: var(--section-spacing) 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* About & Mission Sections - Side by Side on Desktop */
.about-section .row,
.mission-section .row {
    align-items: center;
}

.about-section .col-lg-6,
.mission-section .col-lg-6 {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.section-content {
    padding: var(--spacing-md) 0;
}

.section-tag {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
    word-wrap: break-word;
}

/* Counter Section */
.counter-section {
    background: var(--primary-gradient);
    color: white;
    position: relative;
}

.counter-section .row {
    display: flex;
    flex-wrap: wrap;
}

.counter-section .col-lg-3 {
    margin-bottom: var(--spacing-lg);
}

.counter-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.counter-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    font-weight: 600;
}

/* ============================================
   BREADCRUMB SECTION - MODERN
   ============================================ */
.breadcrumb-section-modern {
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.breadcrumb-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumb-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: white;
}

.breadcrumb-section-modern .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-section-modern .breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.breadcrumb-section-modern .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-section-modern .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-section-modern .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

/* Remove Bootstrap's default separator */
.breadcrumb-section-modern .breadcrumb-item::before {
    display: none !important;
}

/* Add our custom separator */
.breadcrumb-section-modern .breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-xs);
    color: rgba(255, 255, 255, 0.6);
    display: inline-block;
}

@media (min-width: 769px) {
    .breadcrumb-section-modern {
        padding-top: calc(100px + var(--spacing-3xl));
    }
}

@media (max-width: 768px) {
    .breadcrumb-section-modern {
        margin-top: 0;
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        padding-top: calc(70px + var(--spacing-md));
    }
}

/* ============================================
   FOOTER - 4 EQUAL COLUMNS
   ============================================ */
.footer-modern {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

/* Footer Info Section - Contact Info */
.footer-info-section {
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-xl);
}

.footer-info-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.footer-info-section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: var(--spacing-md);
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.footer-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: white;
}

.footer-info-content h6 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-info-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9375rem;
}

.footer-info-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-info-content a:hover {
    color: white;
}

/* Footer Content - Main Sections */
.footer-content {
    margin-bottom: var(--spacing-xl);
}

.footer-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.footer-content .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: var(--spacing-lg);
}

.footer-section {
    margin-bottom: var(--spacing-lg);
}

.footer-logo-wrapper {
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-section h5 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* App Downloads */
.app-downloads {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.app-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.app-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.app-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.app-platform {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* Override Bootstrap link color in footer - prevents blue from --bs-link-color */
.footer-modern {
    --bs-link-color: var(--primary-background-color);
    --bs-link-hover-color: #fff;
}

/* Footer company name / copyright links - match parent text, not blue */
.footer-modern .copyright-text a,
.footer-modern .footer-bottom a,
.footer-modern p.copyright-text a {
    color: var(--primary-background-color) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.footer-modern .copyright-text a:hover,
.footer-modern .footer-bottom a:hover,
.footer-modern p.copyright-text a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Desktop Footer - 4 Equal Columns */
@media (min-width: 992px) {
    .footer-content .row {
        flex-wrap: nowrap;
    }
    
    .footer-content .row > .col-lg-3 {
        width: 25%;
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: 0;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    /* Prevent horizontal overflow */
    .main-content {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Navbar Mobile */
    .navbar-modern {
        padding: var(--spacing-xs) var(--spacing-md);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: var(--shadow-md);
    }
    
    .navbar-wrapper {
        margin-top: 0;
        padding: 0.5rem 0.75rem;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 0.5rem;
    }
    
    .nav-logo img {
        max-width: 100px;
        max-height: 45px;
    }
    
    .nav-actions {
        display: flex;
        align-items: stretch;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-actions .btn-modern,
    .nav-actions .btn-modern-secondary {
        min-height: 40px;
        height: 40px;
        padding: 0 0.875rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
        opacity: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-modern-secondary {
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-color);
        border: 2.5px solid var(--primary-color);
        box-shadow: 0 2px 6px rgba(34, 87, 122, 0.15);
        font-weight: 700;
        opacity: 1;
    }
    
    .btn-modern-secondary:not(:hover) {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .btn-modern span {
        display: none;
    }
    
    .btn-modern i {
        font-size: 1rem;
    }
    
    /* Z-Index Hierarchy on Mobile:
     * Overlay: 1000 (behind)
     * Navbar: 1001 (above overlay)
     * Menu: 1002 (above navbar)
     * Toggle: 1003 (above menu - must be clickable)
     */
    
    /* Ensure navbar is above overlay */
    .navbar-modern {
        z-index: 1001;
        position: relative;
    }
    
    .nav-actions {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        margin-left: 0.25rem;
        position: relative;
        z-index: 1003;
    }
    
    /* Mobile Menu Close Button - Top right of sidebar */
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        background: rgba(34, 87, 122, 0.08);
        border: none;
        border-radius: var(--radius-md);
        color: var(--primary-color);
        font-size: 1.25rem;
        cursor: pointer;
        z-index: 1004;
        transition: background var(--transition-fast), color var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-close:hover,
    .mobile-menu-close:active {
        background: rgba(34, 87, 122, 0.15);
        color: var(--primary-dark);
    }
    
    /* Mobile Menu - Slide-in Drawer - Hidden when closed, no layout/scroll impact */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 4.5rem 0 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1), visibility var(--transition-base), box-shadow var(--transition-base);
        z-index: 1002;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: hidden;
        pointer-events: none;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    /* When menu is active - visible and interactive */
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: -12px 0 50px rgba(0, 0, 0, 0.15);
    }
    
    /* When menu is active, ensure toggle stays on top */
    .nav-menu.active ~ .navbar-wrapper .mobile-menu-toggle,
    .navbar-modern:has(.nav-menu.active) .mobile-menu-toggle {
        z-index: 1003;
    }
    
    .nav-menu .nav-menu-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
        padding: 0 1.5rem;
        list-style: none;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li > a {
        width: 100%;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast), color var(--transition-fast);
        -webkit-tap-highlight-color: rgba(34, 87, 122, 0.1);
    }
    
    .nav-menu li > a:hover,
    .nav-menu li > a:active,
    .nav-menu li > a:focus-visible {
        background: rgba(34, 87, 122, 0.08);
        color: var(--primary-color);
    }
    
    .nav-menu li > a::before {
        display: none;
    }
    
    /* Dropdown toggle - active state when submenu open */
    .nav-menu .dropdown.active > a {
        background: rgba(34, 87, 122, 0.1);
        color: var(--primary-color);
    }
    
    .nav-menu .dropdown > a .fa-chevron-down {
        transition: transform var(--transition-base);
        margin-left: 0.35rem;
    }
    
    .nav-menu .dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.5rem 0 0.5rem 0.5rem;
        background: rgba(34, 87, 122, 0.05);
        border-radius: var(--radius-md);
        border-left: 3px solid var(--primary-color);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
        margin-bottom: 0.25rem;
    }
    
    .nav-menu .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    .nav-menu .dropdown-item:hover,
    .nav-menu .dropdown-item:active {
        background: rgba(34, 87, 122, 0.1);
        color: var(--primary-color);
    }
    
    .nav-menu .dropdown-menu .dropdown-divider {
        margin: 0.5rem 0;
        border-color: rgba(34, 87, 122, 0.15);
    }
    
    .nav-menu .dropdown-menu li {
        list-style: none;
        border-bottom: none;
    }
    
    .nav-menu .dropdown > a::before {
        display: none;
    }
    
    /* Mobile Sidebar - Clean structure: Menu → App → Address → Social */
    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .nav-menu .nav-menu-list {
        flex: 0 0 auto;
        padding-bottom: 0;
    }
    
    .mobile-sidebar-footer {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
        margin-top: auto;
        padding: 1rem 1.5rem 1.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        background: rgba(248, 250, 252, 0.9);
    }
    
    .mobile-sidebar-label {
        display: block;
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 0.5rem;
    }
    
    /* App - Student & Parent only, compact icons side by side */
    .mobile-sidebar-apps {
        padding-bottom: 0.875rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .mobile-sidebar-app-icons {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }
    
    .mobile-app-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 6px;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }
    
    .mobile-app-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(34, 87, 122, 0.2);
    }
    
    .mobile-app-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Address - compact */
    .mobile-sidebar-address {
        padding-bottom: 0.875rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .mobile-sidebar-address p {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        margin: 0 0 0.5rem;
        line-height: 1.5;
    }
    
    .mobile-sidebar-contact-link {
        display: block;
        font-size: 0.75rem;
        color: var(--primary-color);
        text-decoration: none;
        margin-bottom: 0.25rem;
        transition: color var(--transition-fast);
    }
    
    .mobile-sidebar-contact-link:last-child {
        margin-bottom: 0;
    }
    
    .mobile-sidebar-contact-link:hover {
        color: var(--primary-dark);
    }
    
    /* Social - bottom, compact */
    .mobile-sidebar-social {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        padding-top: 0.25rem;
    }
    
    .mobile-sidebar-social a {
        width: 32px;
        height: 32px;
        background: rgba(34, 87, 122, 0.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.875rem;
        transition: all var(--transition-fast);
    }
    
    .mobile-sidebar-social a:hover {
        background: var(--primary-color);
        color: white;
    }
    
    /* Hero Mobile */
    .heroSection-modern {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }
    
    .hero-slide-content {
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 1.5rem);
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .hero-slide-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-slide-description {
        font-size: clamp(0.875rem, 3vw, 1.125rem);
        line-height: 1.5;
    }
    
    /* Sections Mobile */
    .section-modern {
        padding: var(--section-spacing-mobile) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .about-section .col-lg-6,
    .mission-section .col-lg-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Counter Mobile */
    .counter-number {
        font-size: 2.5rem;
    }
    
    /* Footer Info Section Mobile */
    .footer-info-section {
        padding-bottom: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-info-section .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-info-icon {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* Footer Content Mobile */
    .footer-content {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-content .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .app-row {
        gap: var(--spacing-xs);
    }
    
    .app-link {
        padding: var(--spacing-xs);
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .navbar-wrapper {
        padding: 0.5rem 0.5rem;
        gap: 0.375rem;
    }
    
    .nav-logo img {
        max-width: 90px;
        max-height: 40px;
    }
    
    .nav-actions {
        gap: 0.375rem;
    }
    
    .nav-actions .btn-modern,
    .nav-actions .btn-modern-secondary {
        padding: 0 0.75rem;
        font-size: 0.75rem;
        min-height: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        z-index: 1003;
        position: relative;
    }
    
    .nav-menu {
        width: 280px;
        
    }
}
