/* Responsive Stylesheets for The Virtue Hero Section */

/* ==========================================================================
   1. Laptop / Small Desktops (max-width: 1400px)
   ========================================================================== */

   
@media screen and (max-width: 1400px) {
    .hero-title {
        font-size: 50px;
    }

    .abt-light-pendulum {
        top: -120px;
    }

    .why-arabic {
        width: min(88vw, 600px);
    }
}


/* ==========================================================================
   1. Laptop / Small Desktops (max-width: 1200px)
   ========================================================================== */



@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 45px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .nav-links {
        gap: 2.5rem;
    }

    /* About Section */
    .section-head {
        font-size: 34px;
    }
    .abt-card {
        min-height: 135px;
    }
    .abt-card-slide {
        flex: 0 0 180px;
        width: 180px;
    }
    .abt-slider-wrapper {
        max-width: 480px;
    }
    .abt-arch-img {
        max-width: 500px;
    }
    .abt-light-pendulum {
        top: -150px;
        right: 7%;
    }
    .abt-hanging-light {
        width: 36px;
    }

    /* Curriculum Section */
    .cur-head {
        font-size: 34px;
    }
    .cur-desc {
        font-size: 13.5px;
    }
    .cur-panel-name {
        font-size: 21px;
    }
    .cur-panel-desc {
        font-size: 14px;
    }
    .cur-panel-footer {
        margin-top: 32px;
    }


    .prog-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prog-tab {
        font-size: 14px;
    }
}

/* ==========================================================================
   2. Tablets (max-width: 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .header-nav {
        padding-top: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mnav-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.85rem;
    }
    
    .hero-content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About Section */
    .about-section {
        padding: 70px 0 65px 0;
    }
    .abt-row {
        gap: 2.5rem;
        flex-direction: column-reverse;
    }
    .abt-text-wrap {
        max-width: 100%;
    }
    .section-head {
        font-size: 30px;
    }
    .para {
        max-width: 100%;
    }
    .abt-slider-wrapper {
        max-width: 100%;
    }
    .abt-card-slide {
        flex: 0 0 175px;
        width: 150px;
    }
    .abt-img-col {
        justify-content: center;
    }
    .abt-img-wrapper {
        max-width: 500px;
        justify-content: center;
        margin: 0 auto;
    }
    .abt-arch-img {
        max-width: 100%;
    }
    .abt-light-pendulum {
        top: -122%;
        right: -30%;
    }
    .abt-hanging-light {
        width: 36px;
    }

    .cur-panel-text {
        padding: 0 0px;
    }

    /* Curriculum Section */
    .curriculum-section {
        padding: 60px 0 65px 0;
    }
    .cur-header-row {
        margin-bottom: 32px;
    }
    .cur-head {
        font-size: 30px;
    }
    .cur-desc {
        margin-left: 0;
        max-width: 100%;
        padding-top: 0;
    }
    .cur-thumb-card {
        min-height: 300px;
    }
    .cur-tab-head {
        padding: 16px 0;
    }
    .cur-tab-head-title {
        font-size: 16px;
    }
    .cur-accordion {
        padding: 10px 14px 4px 18px;
    }
    .cur-panel-name {
        font-size: 20px;
    }
    .cur-panel-footer {
        margin-top: 28px;
    }

    .prog-card-heads {
        gap: 15px;
    }


    .cta-card {
        padding: 10px 10px 60px 10px;
        flex-direction: column-reverse;
    }

    .cta-text {
        padding: 0 30px;
    }

    .cta-pattern {
        left: 70%;
        bottom: -15%;
        max-width: 50%;
    }

    .footer-socials {
        margin-top: 50px;
    }
}

/* ==========================================================================
   3. Small Tablets & Landscape Mobiles (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header-nav {
        padding-top: 1.25rem;
    }

    .logo {
        height: 65px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-content-container {
        padding-bottom: 3rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cta-btn {
        font-size: 0.9rem;
    }

    .cta-icon {
        width: 24px;
        height: 24px;
    }

    .audio-control {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    /* About Section */
    .about-section {
        padding: 55px 0 50px 0;
    }
    .section-head {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .para {
        font-size: 15px;
        margin-bottom: 16px;
    }
    .abt-text-wrap .para:last-of-type {
        margin-bottom: 24px;
    }
    .abt-card-slide {
        flex: 0 0 142px;
        width: 142px;
    }
    .abt-card {
        padding: 16px 14px;
        min-height: 145px;
    }
    .abt-card-icon-wrap {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }
    .abt-card-title {
        font-size: 15px;
    }
    .abt-img-wrapper {
        max-width: 420px;
    }
    .abt-light-pendulum {
        top: -55px;
        right: 9%;
    }
    .abt-hanging-light {
        width: 32px;
    }

    /* Curriculum Section */
    .curriculum-section {
        padding: 50px 0 55px 0;
    }
    .cur-header-row {
        margin-bottom: 26px;
        gap: 12px;
    }
    .cur-head {
        font-size: 26px;
        margin-bottom: 12px;
    }
    .cur-desc {
        font-size: 13px;
    }
    .cur-card {
        border-radius: 14px;
        padding: 12px;
    }
    .cur-tab-head {
        padding: 14px 0;
    }
    .cur-tab-head-title {
        font-size: 16px;
    }
    .cur-thumb-card {
        min-height: 250px;
        padding: 14px;
    }
    .cur-thumb-img {
        max-height: 220px;
    }
    .cur-accordion {
        padding: 4px 4px 0 4px;
    }
    .cur-panel-name {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .cur-panel-desc {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .cur-panel-eligibility {
        font-size: 13px;
        margin-bottom: 0;
    }
    .cur-panel-footer {
        gap: 18px;
        margin-top: 24px;
    }
    .cur-contact-icon {
        width: 28px;
        height: 28px;
    }
    .cur-contact-name {
        font-size: 13px;
    }

    .prog-track {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .cta-desc {
        margin-bottom: 60px;
    }

    .cta-card {
        padding: 10px 10px 40px 10px;
        flex-direction: column-reverse;
    }

    .footer-tagline {
        margin: 10px 0 20px;
    }
}

/* ==========================================================================
   4. Portrait Mobiles (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .header-nav {
        padding-top: 1rem;
    }

    .logo {
        height: 55px;
    }

    .nav-links {
        gap: 0.9rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-content-container {
        padding-bottom: 2.5rem;
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }

    /* .hero-desc {
        font-size: 0.825rem;
        line-height: 1.5;
    } */

    .since-badge {
        height: 28px;
        padding: 0 0px;
        min-width: 120px;
    }
    
    .since-badge-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    /* .cta-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        justify-content: space-between;
    } */

    .audio-control {
        display: none; /* Hide sound icon on very small devices to avoid overlapping */
    }

    /* About Section */
    .about-section {
        padding: 45px 0 40px 0;
    }
    .section-head {
        font-size: 25px;
        margin-bottom: 16px;
    }
    /* .para {
        font-size: 13.5px;
        line-height: 1.55;
    } */
    .abt-card-slide {
        flex: 0 0 160px;
        width: 140px;
    }
    .abt-card {
        padding: 14px 12px;
        min-height: 115px;
    }
    .abt-card-icon-wrap {
        width: 34px;
        height: 34px;
        margin-bottom: 10px;
    }
    .abt-img-wrapper {
        max-width: 100%;
    }
    .abt-light-pendulum {
        top: -45px;
        right: 7%;
    }
    .abt-hanging-light {
        width: 28px;
    }

    /* Curriculum Section */
    .curriculum-section {
        padding: 40px 0 45px 0;
    }
    .cur-header-row {
        margin-bottom: 22px;
    }
    .cur-head {
        margin-bottom: 0px;
    }
    .cur-desc {
        font-size: 12.5px;
    }
    .cur-card {
        border-radius: 12px;
        padding: 10px;
    }
    .cur-tab-head {
        padding: 12px 0;
    }
    .cur-tab-head-title {
        font-size: 15px;
    }
    .cur-thumb-card {
        min-height: 200px;
        padding: 12px;
        border-radius: 10px;
    }
    .cur-thumb-img {
        max-height: 180px;
    }
    .cur-accordion {
        padding: 4px 2px 0 2px;
    }
    .cur-panel-name {
        font-size: 19px;
        margin-bottom: 10px;
    }
    .cur-panel-desc {
        font-size: 13.5px;
        margin-bottom: 12px;
    }
    .cur-panel-eligibility {
        font-size: 12.5px;
        margin-bottom: 0;
    }
    .cur-panel-footer {
        margin-top: 20px;
    }
    .cur-badge {
        font-size: 10px;
        padding: 4px 10px 4px 8px;
    }
    .cur-contact-icon {
        width: 26px;
        height: 26px;
    }
    .cur-contact-name {
        font-size: 12.5px;
    }

    .cta-text {
        padding: 0 10px;
    }
}

/* ==========================================================================
   5. Height-restricted screens (e.g. landscape phones, small height viewport)
   ========================================================================== */
@media screen and (max-height: 550px) and (orientation: landscape) {
    .header-nav {
        padding-top: 1rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .hero-content-container {
        padding-bottom: 2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-desc {
        display: none; /* Hide description on very short landscape viewports to fit layout */
    }
    
    .since-badge {
        height: 24px;
        margin-bottom: 0.5rem;
        padding: 0 12px;
        min-width: 110px;
    }
    
    .since-badge-text {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   6. Programs Section adjustments
   ========================================================================== */
@media screen and (max-width: 992px) {
    .prog-tabs {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .prog-tabs::-webkit-scrollbar {
        display: none;
    }
    .prog-head {
        font-size: 26px;
        margin: 0;
    }
    .prog-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prog-card {
        min-height: 270px;
    }
}
@media screen and (max-width: 768px) {
    .prog-track {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .prog-head-row {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .prog-track {
        grid-template-columns: minmax(0, 1fr);
    }
    .prog-card {
        min-height: 250px;
    }
    .prog-card-heads {
        gap: 18px;
        flex-wrap: wrap;
    }
    .prog-more-wrap {
        margin-top: 20px;
    }
}

/* ==========================================================================
   7. Footer adjustments
   ========================================================================== */
@media screen and (max-width: 768px) {
    .footer-lantern {
        width: 90px;
        right: 4%;
    }
    .footer-mid-row {
        flex-direction: column;
        gap: 22px;
    }
    .footer-nav {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 22px;
    }
    .footer-socials {
        order: 2;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
