/* ============================================================
   Responsive fixes — Agent 2 scope
   Pages: Academics, Admissions, BeyondAcademics, Career, Curriculum,
          ExamSchedule, AnnualCalendar, HodsCorner, CoordinatorsPulse,
          CampusLife
   Sections: AcademicExcellenceCTA, GalleryAchievements, GalleryCTA,
             AdmissionFAQ
   Only real breakages are fixed here — everything else in this scope
   was checked against responsive.css and already behaves correctly.
   ============================================================ */

/* ── HodsCorner.jsx — .hc-hero .hero-body carries a desktop-only
   fixed padding (300px 102px 180px) that is MORE specific than the
   generic `.hero-body` rules in responsive.css, so it never shrinks
   on mobile and pushes the hero text far down / off-balance. ── */
@media (max-width: 991px) {
    .hc-hero .hero-body {
        padding: 120px 40px 60px;
    }
}
@media (max-width: 767px) {
    .hc-hero .hero-body {
        padding: 100px 24px 48px;
    }
}
@media (max-width: 575px) {
    .hc-hero .hero-body {
        padding: 90px 20px 40px;
    }
}

/* ── CoordinatorsPulse.jsx — same issue: `.cp-hero .hero-content`
   has a fixed 200px top padding that outranks the generic mobile
   `.hero-content { padding-top: 0; }` rule in responsive.css. ── */
@media (max-width: 991px) {
    .cp-hero .hero-content {
        padding-top: 100px;
    }
}
@media (max-width: 767px) {
    .cp-hero .hero-content {
        padding-top: 80px;
    }
}
@media (max-width: 575px) {
    .cp-hero .hero-content {
        padding-top: 64px;
    }
}

/* ── HodsCorner / CoordinatorsPulse / ArchitectsOfExcellence — on mobile
   the hero photo (.hero-bg-img) collapses to its natural aspect-ratio
   height (see responsive.css `.hero-bg-img { height: auto }` at 460px)
   while `.hero-gradient-overlay` still stretches the full section height
   via `inset: 0`. Since these three pages use a diagonal navy
   linear-gradient (not a flat color), the part of the overlay below the
   now-short photo renders as a distinct gradient-banded panel behind the
   text — the "gradient on the hero content" the design flagged. Swap it
   for a flat panel so the text sits on a plain dark card instead. ── */
@media (max-width: 991px) {
    .hc-hero .hero-gradient-overlay,
    .cp-hero .hero-gradient-overlay,
    .aoe-hero .hero-gradient-overlay {
        background: #0F1E2E;
    }
}

/* ── AdmissionFAQ.jsx (used on Admissions.jsx) — .faq-body is a
   fixed 43fr/57fr two-column grid with no mobile override anywhere.
   Below ~768px this squeezes the tall photo card and the FAQ
   accordion (icon + question + chevron) into unreadably narrow
   columns. Stack them and trim the card/answer paddings that were
   tuned for the wide column. ── */
@media (max-width: 768px) {
    .faq-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .faq-left-card {
        min-height: 340px;
    }
}
@media (max-width: 480px) {
    .faq-left-card {
        min-height: 300px;
    }
    .faq-left-title,
    .faq-left-desc {
        max-width: none;
    }
    .faq-answer {
        padding: 0 18px 16px 18px;
    }
}

/* ── Admissions.jsx — .adm-checklist-bar is `flex-wrap: nowrap`
   with a long description string next to a `white-space: nowrap`
   button; on narrow screens this overflows the card horizontally
   instead of wrapping like the sibling `.adm-fee-bottom-strip` /
   `.adm-age-note-strip` bars already do. ── */
@media (max-width: 576px) {
    .adm-checklist-bar {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .adm-checklist-btn {
        justify-content: center;
        white-space: normal;
    }
}

/* ── Academics.jsx — .ac-stream-subjects is a fixed 3-column grid
   holding long subject names ("Financial Markets Management",
   "Food Nutrition and Dietetics" etc). At mobile card widths
   (cards go full-width below the sm/lg breakpoints) 3 columns leave
   ~100px per chip, forcing awkward multi-line wraps. Drop to 2
   columns on narrow screens for legibility. ── */
@media (max-width: 480px) {
    .ac-stream-subjects {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Home.jsx — home hero on mobile. The slide image must always
   cover the whole section (generic `.hero-section img { height:auto }`
   shrinks it between 769–992px), the text block needs room above the
   bottom slider arrows, and the CTA buttons should stack full-width. ── */
@media (max-width: 992px) {
    .home-hero .hero-slides .hero-slide-img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 768px) {
    section.hero-section.home-hero {
        min-height: 85vh;
    }
    .home-hero .hero-body {
        padding: 56px 20px 80px;
    }
    .home-hero .hero-heading {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.25;
    }
    .home-hero .hero-description {
        font-size: 15px;
        line-height: 1.65;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    .home-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    .home-hero .btn-discover,
    .home-hero .btn-brochure {
        justify-content: center;
        width: 100%;
        padding-block: 13px;
    }
}
