/* ============================================================
   RESPONSIVE CSS – Aryabhata Podar Learn School
   ============================================================ */

/* ---- Highlights Swiper equal-height slides ---- */
.highlights-swiper {
    padding-bottom: 50px !important;
}

.highlights-swiper .swiper-wrapper {
    align-items: stretch;
}

.highlights-swiper .swiper-slide {
    height: auto;
}

.highlights-swiper .swiper-button-next,
.highlights-swiper .swiper-button-prev {
    top: 45%;
    background: rgba(123, 45, 139, 0.12);
    border: 2px solid rgba(123, 45, 139, 0.2);
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.highlights-swiper .swiper-button-next::after,
.highlights-swiper .swiper-button-prev::after {
    font-size: 0.9rem;
    color: var(--primary);
}

.highlights-swiper .swiper-button-next:hover,
.highlights-swiper .swiper-button-prev:hover {
    background: var(--primary);
}

.highlights-swiper .swiper-button-next:hover::after,
.highlights-swiper .swiper-button-prev:hover::after {
    color: var(--white);
}

/* ============================================================
   LARGE DESKTOP (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {

    .hero-slider,
    .hero-slide {
        height: 680px;
    }

    .hero-caption h1 {
        font-size: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ============================================================
   TABLET (991px and below)
   ============================================================ */
@media (max-width: 991.98px) {

    /* Navbar wrapper on tablet */
    .navbar-wrapper {
        padding: 6px 0;
    }

    /* Collapsed nav panel */
    #mainNav {
        background: linear-gradient(160deg, #4a1a6b 0%, #7b3f9e 100%);
        border-radius: 10px;
        padding: 10px 14px;
        margin-top: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
    }

    /* Top-level nav links */
    .navbar-nav .nav-link {
        padding: 9px 14px !important;
        border-radius: 7px !important;
        color: rgba(255, 255, 255, 0.93) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: transparent !important;
        font-size: 0.875rem;
        margin-bottom: 2px;
    }

    /* Active state on mobile — orange pill */
    .navbar-nav .nav-link.active {
        background: var(--secondary) !important;
        color: #fff !important;
        border-bottom-color: transparent !important;
        font-weight: 700;
        box-shadow: 0 2px 10px rgba(242, 140, 0, 0.4);
    }

    .navbar-nav .nav-link:hover:not(.active) {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* Standard dropdown panel on mobile */
    .navbar .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        padding: 4px 0 4px 10px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border-top: none !important;
        border-left: 3px solid var(--secondary) !important;
        border-radius: 0 0 8px 8px !important;
    }

    /* Dropdown items */
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.90) !important;
        font-size: 0.84rem !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        background: transparent !important;
    }

    .navbar .dropdown-item::before {
        color: var(--secondary) !important;
    }

    .navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
        padding-left: 16px !important;
    }

    /* Mega-menu panel on mobile */
    .mega-menu {
        background: rgba(255, 255, 255, 0.07) !important;
        border: none !important;
        border-left: 3px solid var(--secondary) !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: none !important;
        margin-left: 10px;
        animation: none !important;
    }

    .mega-menu-inner {
        background: transparent !important;
        padding: 10px 12px !important;
        border-radius: 0 !important;
        border: none !important;
    }

    /* Remove column dividers on mobile */
    .mega-menu-inner .row>[class*="col-"]+[class*="col-"] {
        border-left: none !important;
    }

    /* Mega heading — orange, bold */
    .mega-heading {
        color: var(--secondary) !important;
        border-bottom-color: rgba(242, 140, 0, 0.35) !important;
        font-size: 0.63rem !important;
        margin-bottom: 8px !important;
        padding-bottom: 5px !important;
    }

    /* Mega links — white, always readable */
    .mega-link {
        color: rgba(255, 255, 255, 0.90) !important;
        padding: 7px 8px !important;
        font-size: 0.82rem !important;
        background: transparent !important;
        border-radius: 6px !important;
        margin-bottom: 1px;
    }

    .mega-link i {
        color: var(--secondary) !important;
    }

    .mega-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        padding-left: 14px !important;
    }

    .mega-link:hover i {
        color: var(--secondary) !important;
    }

    /* Column spacing in mega-menu on mobile */
    .mega-menu-inner .col-md-4,
    .mega-menu-inner .col-md-3,
    .mega-menu-inner .col-md-6 {
        margin-bottom: 12px;
    }

    /* Hero */
    .hero-slider,
    .hero-slide {
        height: 460px;
    }

    .hero-caption h1 {
        font-size: 1.6rem;
    }

    /* Stats */
    .stats-section .row {
        flex-wrap: wrap;
    }

    .stats-section .col {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }

    .stat-item::after {
        display: none;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .commitment-item {
        margin-bottom: 16px;
    }

    .welcome-content {
        padding: 0;
    }
}

/* ============================================================
   MOBILE (767px and below)
   ============================================================ */
@media (max-width: 767.98px) {

    /* Top Bar */
    .top-bar {
        display: none;
    }

    /* Hero */
    .hero-slider,
    .hero-slide {
        height: 340px;
    }

    .hero-caption h1 {
        font-size: 1.25rem;
    }

    .hero-overlay {
        padding: 0 16px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 34px;
        height: 34px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0.7rem;
    }

    /* Stats */
    .stats-section .col {
        flex: 0 0 50%;
        min-width: 50%;
        margin-bottom: 20px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 22px 16px;
    }

    .commitment-tagline {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0 24px;
    }

    .footer-logo {
        margin-bottom: 12px;
    }

    .footer-bottom .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    /* Back-to-top & WhatsApp */
    .back-to-top {
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-fab {
        bottom: 18px;
        right: 65px;
    }

    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    /* Highlight cards — tablet */
    .highlight-img {
        height: 260px;
    }

    .highlight-card {
        min-height: 440px;
    }

    .highlight-body h5 {
        font-size: 1.15rem;
    }

    .welcome-image-wrap img {
        height: 280px;
    }

    .welcome-badge {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .welcome-badge strong {
        font-size: 1.1rem;
    }
}

/* ============================================================
   SMALL MOBILE (575px and below)
   ============================================================ */
@media (max-width: 575.98px) {

    .hero-slider,
    .hero-slide {
        height: 280px;
    }

    .hero-caption h1 {
        font-size: 1.1rem;
    }

    .stats-section .col {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .why-card {
        padding: 22px 16px;
    }

    .commitment-item {
        padding: 22px 18px;
    }

    .commitment-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

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

    .highlights-swiper .swiper-button-next,
    .highlights-swiper .swiper-button-prev {
        display: none;
    }

    /* Highlight cards — small mobile */
    .highlight-img {
        height: 230px;
    }

    .highlight-card {
        min-height: 400px;
    }

    .highlight-body h5 {
        font-size: 1.08rem;
    }

    /* Section title in highlights */
    .highlights-section .section-title {
        font-size: 1.4rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

    .top-bar,
    .navbar-wrapper,
    .whatsapp-fab,
    .back-to-top,
    .hero-slider,
    .commitments-section,
    .admission-cta-section {
        display: none !important;
    }

    body {
        color: #000;
        font-size: 12pt;
    }
}