/* ===================================================
   BILINGO GLOBAL ACADEMY — MOBILE STYLES
   Elegant, polished mobile-first responsive design
   =================================================== */

/* ── Mobile Hamburger Menu ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 35, 91, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 32px 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-overlay a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a:active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

/* ── Sticky Mobile Navbar ── */
.navbar.scrolled {
    background: rgba(28, 35, 91, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: fixed;
}

/* ── Floating CTA Bar (mobile only) ── */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: linear-gradient(135deg, #1C235B 0%, #0F172A 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
}

.mobile-cta-bar a {
    display: block;
    background: var(--gradient-pink);
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(255, 51, 133, 0.45);
    transition: all 0.3s ease;
}

.mobile-cta-bar a:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════
   MAX-WIDTH 768px — Core Mobile Overrides
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Global ── */
    body {
        padding-bottom: 80px; /* room for floating CTA */
    }

    .container {
        padding: 0 18px;
    }

    /* ── Navbar ── */
    .navbar {
        position: fixed;
        top: 0;
        padding: 14px 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: all 0.4s ease;
    }

    .nav-container {
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        transform: translateX(0);
    }

    .logo-main {
        font-size: 24px;
    }

    .logo-sub {
        font-size: 7px;
        letter-spacing: 0.6px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* ── Hero Slide 1 ── */
    .hero {
        height: auto;
        min-height: auto;
    }

    .hero-slider,
    .hero-slides-container {
        min-height: auto;
        height: auto;
    }

    .hero-slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-top: 80px;
        padding-bottom: 50px;
        padding-left: 0;
        padding-right: 0;
        align-items: flex-start;
    }

    .hero-slide.active {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        padding-top: 20px;
        align-items: center;
    }

    .hero-content {
        transform: translateX(0);
        min-width: unset;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tech-text {
        font-size: 20px;
        margin-bottom: 16px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 30px;
        margin-bottom: 28px;
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

    .hero-title-underline {
        border-bottom-width: 4px;
    }

    .btn {
        font-size: 14px;
        padding: 13px 32px;
        margin-bottom: 0;
    }

    .hero-image-wrapper {
        transform: translateX(0);
        justify-content: center;
        min-width: unset;
        width: 100%;
        flex: none;
    }

    .hero-image-container {
        max-width: 300px;
        animation: float 6s ease-in-out infinite;
    }

    .laptop-glow {
        width: 500px;
        height: 500px;
    }

    .slider-dots {
        bottom: 18px;
    }

    .slider-dots .dot {
        width: 9px;
        height: 9px;
    }

    /* ── Hero Slide 2 – TOEFL ── */
    .toefl-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        text-align: center;
    }

    .toefl-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(0) !important;
    }

    .toefl-hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .toefl-hero-subtitle {
        font-size: 17px;
    }

    .toefl-hero-tagline {
        font-size: 13.5px;
        max-width: 100%;
    }

    .toefl-hero-outcomes {
        text-align: left;
        padding: 14px 18px;
    }

    .toefl-hero-outcomes .outcomes-list li {
        font-size: 12px;
    }

    .toefl-hero-ticket {
        justify-content: center;
        gap: 8px;
    }

    .toefl-hero-ticket .ticket-item {
        font-size: 11px;
        padding: 5px 10px;
    }

    .speaker-hero-wrapper {
        max-width: 260px;
    }

    .speaker-hero-img-container {
        width: 150px;
        height: 150px;
    }

    .speaker-hero-ring-1,
    .speaker-hero-ring-2,
    .speaker-hero-dots {
        display: none;
    }

    .toefl-hero-btn {
        padding: 13px 32px;
        font-size: 14px;
    }

    /* ── Mobile CTA Bar ── */
    .mobile-cta-bar {
        display: block;
    }

    /* ── About Section ── */
    .about {
        padding: 60px 0;
    }

    .about-title {
        font-size: 22px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .about-title br {
        display: none;
    }

    .about-mission {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-mission br {
        display: none;
    }

    /* ── Why Bilingo ── */
    .why-bilingo {
        padding: 50px 0;
    }

    .why-box {
        border-width: 3px;
        border-radius: 16px;
    }

    .why-inner-box {
        border-radius: 20px 48px 20px 48px;
        padding: 32px 24px;
    }

    .why-inner-box .section-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .why-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .why-list li {
        font-size: 14.5px;
        margin-bottom: 14px;
        padding-left: 16px;
        line-height: 1.55;
    }

    /* ── Programs ── */
    .programs {
        padding: 60px 0;
    }

    .programs-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .program-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .card-features li {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    /* ── Series Section ── */
    .series {
        padding: 60px 0;
    }

    .series-header {
        margin-bottom: 40px;
    }

    .series-header h2 {
        font-size: 26px;
    }

    .series-cards {
        gap: 20px;
    }

    .series-card {
        border-radius: 20px 48px 20px 48px;
        padding: 28px 24px;
    }

    .series-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .series-card-desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .series-list li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 16px;
    }

    /* ── National Webinar ── */
    .national-webinar {
        padding: 60px 0;
    }

    .webinar-container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .webinar-title {
        font-size: 32px;
        margin-bottom: 24px;
        letter-spacing: -0.3px;
    }

    .webinar-features {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

    .webinar-features li {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .webinar-image {
        border-radius: 24px;
        max-width: 100%;
    }

    /* ── Upcoming Sessions ── */
    .upcoming-sessions {
        padding: 60px 0;
    }

    .sessions-container {
        flex-direction: column;
        gap: 36px;
    }

    .sessions-title {
        font-size: 30px;
        margin-bottom: 28px;
        text-align: center;
    }

    .sessions-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }

    .card-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .session-card {
        border-radius: 10px;
        padding: 14px;
        border-width: 2px;
        box-shadow: 3px 3px 0px #000;
    }

    .session-date {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .session-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .session-desc {
        font-size: 11px;
    }

    .sessions-price {
        text-align: center;
        margin-top: 24px;
    }

    .sessions-price h3 {
        font-size: 28px;
    }

    .sessions-price span {
        font-size: 20px;
    }

    /* ── Phone Mockup / Form ── */
    .sessions-right {
        width: 100%;
    }

    .phone-mockup {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        border-radius: 30px;
        padding: 14px;
    }

    .phone-screen {
        border-radius: 22px;
        padding: 24px 20px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 22px;
    }

    .webinar-form label {
        font-size: 12px;
    }

    .webinar-form .form-control {
        padding: 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .webinar-form .form-group {
        margin-bottom: 13px;
    }

    /* ── TOEFL Mastery Feature Section ── */
    .toefl-mastery-feature {
        padding: 60px 0 90px 0;
    }

    .toefl-container {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        text-align: center;
    }

    .toefl-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .toefl-section-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .toefl-section-subtitle {
        font-size: 19px;
    }

    .toefl-section-tagline {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .toefl-outcomes {
        text-align: left;
        padding: 20px 18px;
        border-radius: 16px;
        max-width: 100%;
    }

    .outcomes-title {
        font-size: 14px;
    }

    .outcomes-list li {
        font-size: 13.5px;
        margin-bottom: 12px;
    }

    .speaker-wrapper {
        max-width: 260px;
    }

    .speaker-img-container {
        width: 190px;
        height: 190px;
    }

    .speaker-ring-1,
    .speaker-ring-2,
    .speaker-decor-dots {
        display: none;
    }

    .speaker-name {
        font-size: 18px;
    }

    .speaker-credentials {
        font-size: 13px;
    }

    /* Promo Ticket */
    .toefl-bottom {
        margin-top: 50px;
    }

    .promo-card-wrapper {
        padding: 0 0;
    }

    .toefl-promo-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .promo-card-tag {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .promo-card-details {
        flex-direction: column;
        gap: 18px;
    }

    .promo-date-col,
    .promo-price-col,
    .promo-bonus-col {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 0 0 18px 0;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .promo-bonus-col {
        border-bottom: none;
        padding-bottom: 0;
    }

    .promo-price-col {
        align-items: center;
    }

    .promo-big-num {
        font-size: 48px;
    }

    .promo-old-price {
        font-size: 20px;
    }

    .promo-new-price {
        font-size: 14px;
        text-align: center;
    }

    .toefl-cta-btn {
        padding: 15px 44px;
        font-size: 16px;
        margin-top: -20px;
    }

    .skyline-container {
        height: 100px;
        bottom: -30px;
    }

    /* ── Decorative circles/dots hidden on mobile for perf ── */
    .toefl-decor-circle-1,
    .toefl-decor-circle-2,
    .toefl-decor-circle-3,
    .toefl-decor-dots {
        display: none;
    }

    /* ── Footer ── */
    .footer {
        padding: 50px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        align-items: center;
    }

    .footer-left .logo-main {
        font-size: 38px;
    }

    .footer-left .logo-sub {
        font-size: 11px;
    }

    .footer-right {
        text-align: center;
    }

    .footer-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .footer-contact,
    .footer-address,
    .footer-email {
        font-size: 14px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }

    .social-icons a {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 17px;
    }
}

/* ═══════════════════════════════════════════════
   MAX-WIDTH 480px — Extra Small Phones
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-main {
        font-size: 22px;
    }

    .hero-title {
        font-size: 26px;
    }

    .tech-text {
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .about-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .why-inner-box .section-title {
        font-size: 24px;
    }

    .sessions-grid {
        grid-template-columns: 1fr;
    }

    .webinar-title {
        font-size: 28px;
    }

    .series-header h2 {
        font-size: 23px;
    }

    .toefl-hero-title {
        font-size: 28px;
    }

    .toefl-section-title {
        font-size: 30px;
    }

    .phone-mockup {
        max-width: 100%;
        border-radius: 24px;
    }

    .footer-left .logo-main {
        font-size: 32px;
    }

    .speaker-hero-img-container {
        width: 130px;
        height: 130px;
    }

    .speaker-img-container {
        width: 160px;
        height: 160px;
    }

    .sessions-title {
        font-size: 26px;
    }
}

/* ═══════════════════════════════════════════════
   TABLET 769px–992px — Clean Tablet Layout
   ═══════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 0 28px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-title {
        font-size: 38px;
    }

    .tech-text {
        font-size: 26px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sessions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-container {
        gap: 40px;
        flex-direction: row;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════
   TOUCH DEVICE ENHANCEMENTS
   ═══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets */
    .btn,
    .toefl-cta-btn,
    .mobile-cta-bar a {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-icons a {
        width: 48px;
        height: 48px;
    }

    /* Remove hover transforms on touch */
    .program-card:hover {
        transform: none;
    }

    .session-card:hover {
        transform: none;
        box-shadow: 4px 4px 0px #000;
    }

    .social-icons a:hover {
        transform: none;
    }
}
