/* ============================================
   RESPONSIVE MOBILE-FIRST — JCI Danang Junior
   ============================================ */

/* --- Mobile Menu Hamburger Button --- */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-menu-btn:hover {
    background: #f5f5f5;
}

/* --- Mobile Drawer Overlay --- */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
}
.mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer.is-open .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.mobile-drawer.is-open .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    border-bottom: 1px solid #f1f5f9;
}
.drawer-header span {
    font-family: 'Epilogue', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
}
.drawer-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}
.drawer-close-btn:hover {
    background: #f1f5f9;
}

.drawer-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}
.drawer-nav a:hover {
    background: #f8fafc;
}
.drawer-nav a.active {
    background: #fef2f2;
    color: #1B4E9B;
}

.drawer-cta {
    padding: 16px;
}
.drawer-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #1B4E9B;
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
}
.drawer-cta a:hover {
    background: #0F153F;
}

/* --- Show hamburger on mobile, hide CTA on very small screens --- */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-cta-desktop {
        display: none;
    }
}

/* --- Navbar: compact on mobile --- */
/* (Removed forced height on mobile as it breaks the logo) */

/* --- Hero home: hide avatar block on mobile --- */
@media (max-width: 1023px) {
    .hero-avatar-container {
        display: none !important;
    }
}

/* --- Hero text size on small screens --- */
@media (max-width: 639px) {
    .hero-headline {
        font-size: 2rem !important;
    }
    .hero-section {
        min-height: 420px;
    }
    .hero-section .hero-inner {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* --- Testimonial carousel: full-width cards on mobile --- */
/* (Removed 85vw width as it breaks JS translation logic, using w-full from HTML) */

/* --- Footer: 2-col on tablet, 1-col on mobile --- */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- Why-Us cards: 2-col on tablet, 1-col on mobile --- */
@media (max-width: 767px) {
    .why-cards-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .why-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- Stats section: stack on mobile --- */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .stats-grid .stat-number {
        font-size: 3rem !important;
    }
}

/* --- Apply form: single-column on mobile --- */
@media (max-width: 767px) {
    .apply-layout {
        grid-template-columns: 1fr !important;
    }
}

/* --- Career path: stack vertically on mobile --- */
@media (max-width: 767px) {
    .career-path-row {
        flex-direction: column !important;
        gap: 1.5rem;
    }
}

/* --- General mobile padding --- */
@media (max-width: 639px) {
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* --- CTA section image: reduce min-height on mobile --- */
@media (max-width: 639px) {
    .cta-image-section {
        min-height: 300px !important;
    }
    .cta-image-section h2 {
        font-size: 1.5rem !important;
    }
}
