/* ============================================================
   IBS ROHTAK — GLOBAL THEME
   Matches the new homepage design:
   - Headings : Freight Big Light
   - Body     : Lato
   - Buttons  : Roboto
   - Colours  : deep navy (#0a2540) + gold (#c5a55a) + white
   - Rhythm   : white / navy alternating sections
   ============================================================ */

/* ===== 1. INNER PAGE BACKGROUND SEQUENCE (white / navy, same as homepage) ===== */
.about-page {
    background: var(--white);
}

/* every section starts white, every second one becomes the deep navy band */
.about-page > section {
    background-color: var(--white);
}

.about-page > section:nth-of-type(even) {
    background-color: var(--blue-primary);
    color: var(--white);
}

/* The accreditation / membership strip always stays light so the navy CTA below stays distinct */
.about-page > section.about-memberships {
    background-color: var(--white);
    color: var(--dark);
}

/* Sections that contain tables (disclosure) always stay white so the table reads cleanly */
.about-page > section.disclosure-section {
    background-color: var(--white);
    color: var(--dark);
}

/* subtle divider between two consecutive white table sections */
.about-page > section.disclosure-section + section.disclosure-section {
    border-top: 1px solid #e6eaef;
}

/* The visit / CTA band is always navy */
.about-page > section.about-journey-cta {
    background-color: var(--blue-primary);
    color: var(--white);
}

/* Hero banner fallback (image sits on top) */
.about-page > section.about-hero {
    background-color: var(--blue-primary);
    color: var(--white);
}

/* ===== 2. TEXT COLOURS ON THE NAVY BANDS ===== */
.about-page > section:nth-of-type(even) .tag-highlight {
    color: var(--yellow);
}

.about-page > section:nth-of-type(even) .tag-text {
    color: var(--white);
}

.about-page > section:nth-of-type(even) .breadcrumb-menu ul li a {
    color: var(--white);
}

.about-page > section:nth-of-type(even) .breadcrumb-menu ul li a:hover {
    color: var(--yellow);
}

.about-page > section:nth-of-type(even) .breadcrumb-menu ul li span {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even) .about-intro-copy p {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even) .about-intro-title {
    color: var(--white);
}

/* --- Section headings (edge / academics / locations / memberships) --- */
.about-page > section:nth-of-type(even) .about-edge-content h2,
.about-page > section:nth-of-type(even) .about-edge-content h4,
.about-page > section:nth-of-type(even) .about-section-heading h2 {
    color: var(--white);
}

/* Table sections stay white, so their headings stay navy */
.about-page > section.disclosure-section h2 {
    color: var(--blue-primary);
}

/* Table header tint in the brand gold instead of the old bluish grey */
.about-page .disclosure-section .table thead th {
    background: #faf7f0;
    color: var(--dark);
    font-family: var(--font-button);
    font-weight: 700;
}

.about-page > section:nth-of-type(even) .about-edge-lead,
.about-page > section:nth-of-type(even) .about-section-heading p {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even) .about-feature-item {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.about-page > section:nth-of-type(even) .about-feature-item h3 {
    color: var(--white);
}

.about-page > section:nth-of-type(even) .about-feature-item p {
    color: var(--white-80);
}

/* Keep white cards / image frames readable on the navy bands */
.about-page > section:nth-of-type(even) .about-academic-card,
.about-page > section:nth-of-type(even) .about-edge-image,
.about-page > section:nth-of-type(even) .about-pill-nav,
.about-page > section:nth-of-type(even) .card,
.about-page > section:nth-of-type(even) .form-box,
.about-page > section:nth-of-type(even) .contact-box,
.about-page > section:nth-of-type(even) .right {
    color: var(--dark);
}

.about-page > section:nth-of-type(even) .about-academic-card .about-academic-body h3 {
    color: #141414;
}

.about-page > section:nth-of-type(even) .about-academic-card .about-academic-body p {
    color: #454545;
}

/* --- Downloads / disclosure tables (kept on a white sheet so they stay readable) --- */
.about-page > section:nth-of-type(even) .table {
    --bs-table-bg: #ffffff;
    --bs-table-color: #141414;
    background-color: var(--white);
}

.about-page > section:nth-of-type(even) .table thead th {
    background: #f4f6fb;
    color: var(--dark);
}

.about-page > section:nth-of-type(even) .dl-btn {
    background: var(--yellow);
    color: var(--dark);
}

.about-page > section:nth-of-type(even) .dl-btn:hover {
    background: var(--white);
    color: var(--blue-primary);
}

/* --- Admission process timeline --- */
.about-page > section:nth-of-type(even).admission-process .title {
    color: var(--white);
}

.about-page > section:nth-of-type(even).admission-process .timeline::before {
    background: rgba(255, 255, 255, 0.35);
}

.about-page > section:nth-of-type(even).admission-process .circle {
    background: var(--yellow);
    color: var(--blue-primary);
}

.about-page > section:nth-of-type(even).admission-process .card h3 {
    color: #141414;
}

.about-page > section:nth-of-type(even).admission-process .card p {
    color: #454545;
}

/* --- Enquiry section --- */
.about-page > section:nth-of-type(even).ib-enquiry .left,
.about-page > section:nth-of-type(even).ib-enquiry .left h2 {
    color: var(--white);
}

.about-page > section:nth-of-type(even).ib-enquiry .sub,
.about-page > section:nth-of-type(even).ib-enquiry .features li {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even).ib-enquiry .right h3,
.about-page > section:nth-of-type(even).ib-enquiry .right label {
    color: var(--dark);
}

.about-page > section:nth-of-type(even).ib-enquiry .right .form-sub {
    color: #666;
}

/* --- Contact form --- */
.about-page > section:nth-of-type(even).message-us h2 {
    color: var(--white);
}

.about-page > section:nth-of-type(even).message-us .sub {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even).message-us .form-box {
    color: var(--dark);
}

.about-page > section:nth-of-type(even).message-us label {
    color: #333;
}

.about-page > section:nth-of-type(even).message-us input,
.about-page > section:nth-of-type(even).message-us textarea {
    color: var(--dark);
}

/* --- Map section --- */
.about-page > section:nth-of-type(even).map-section h2 {
    color: var(--white);
}

.about-page > section:nth-of-type(even).map-section .sub {
    color: var(--white-80);
}

/* --- Advisors (leadership page) --- */
.about-page > section:nth-of-type(even) .advisors-title {
    color: var(--white);
}

.about-page > section:nth-of-type(even) .advisor-name {
    color: var(--white);
}

.about-page > section:nth-of-type(even) .advisor-role {
    color: var(--yellow);
}

.about-page > section:nth-of-type(even) .advisor-desc {
    color: var(--white-80);
}

.about-page > section:nth-of-type(even) .name-advisor {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.about-page .about-membership-strip {
    align-items: center;
}

/* the old tile grid is hidden, but its display:grid would override [hidden] */
.about-membership-strip[hidden] {
    display: none !important;
}

.about-page > section:nth-of-type(even).about-memberships .about-section-heading h2 {
    color: var(--blue-primary);
}

.about-page > section:nth-of-type(even).about-memberships .about-section-heading p {
    color: #454545;
}

.about-page > section:nth-of-type(even).about-memberships .about-membership-strip {
    background: transparent;
}

.about-page > section:nth-of-type(even).about-memberships .about-membership-logo {
    background: var(--white);
    color: #5f7387;
}

.about-page > section:nth-of-type(even).about-memberships .about-membership-logo h4 {
    color: #141414;
}

/* The white pill navigation sits on top of both light and dark bands */
.about-page > section.about-introduction .about-pill-nav a {
    font-family: var(--font-button);
}

/* ===== 3. BANNER (HERO) OVERLAY — same strong scrim on every page ===== */
.about-page .about-hero-overlay {
    background:
        linear-gradient(180deg, rgba(10, 37, 64, 0.35) 0%, rgba(10, 37, 64, 0.45) 50%, rgba(10, 37, 64, 0.70) 100%),
        linear-gradient(90deg, rgba(10, 37, 64, 0.35) 0%, rgba(10, 37, 64, 0.10) 50%, rgba(10, 37, 64, 0.35) 100%);
}

.about-page .about-hero-inner h1,
.about-page .about-hero-inner p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ===== 4. BUTTON TYPOGRAPHY CONSISTENCY ===== */
.dl-btn,
.blue-btn,
.yellow-btn,
.btn-blue,
.about-journey-btn,
.ib-enquiry button,
.message-us button {
    font-family: var(--font-button);
    letter-spacing: 0.02em;
}

/* ===== 4. INNER PAGE SPACING RHYTHM (same feel as the homepage) ===== */
.about-page .about-section-heading h2,
.about-page .about-edge-content h2 {
    line-height: 1.05;
}

.about-page .about-section-heading {
    margin-bottom: 30px;
}

/* ===== 5. LINK / FOCUS POLISH ===== */
.about-page a:focus-visible,
.about-page button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

/* ===== 6. OLD BLUE / YELLOW -> NEW PALETTE (navy #0a2540 + gold #c5a55a) ===== */
/* "Join the IBS Journey" CTA band (was a bright blue gradient) */
.about-page > section.about-journey-cta,
.about-journey-cta {
    background: var(--blue-primary);
}

/* Leadership page chairman card */
.chairman-information {
    background: var(--blue-primary);
}

/* Admission process timeline */
.admission-process .title {
    color: var(--blue-primary);
}

.admission-process .timeline::before,
.admission-process .circle {
    background: var(--blue-primary);
}

/* Enquiry section */
.ib-enquiry .left,
.ib-enquiry .contact-box p {
    color: var(--blue-primary);
}

.ib-enquiry .icon-circle,
.ib-enquiry button {
    background: var(--blue-primary);
}

/* Contact / locations / map */
.message-us h2,
.map-section h2,
.our-locations .note {
    color: var(--blue-primary);
}

.message-us input:focus,
.message-us textarea:focus {
    border-color: var(--blue-primary);
}

.message-us button,
.about-page .blue-btn {
    background: var(--blue-primary);
}

.about-page .yellow-btn {
    background: var(--yellow);
    color: var(--dark);
}

.our-locations .content small,
.our-locations .content ul li i,
.advisors-title {
    color: var(--blue-primary);
}

/* Gallery slider arrows */
.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
    color: var(--blue-primary);
}

/* ===== 7. OLD ACCENTS (old yellow / old blues) -> NEW GOLD + NAVY ===== */
.btn-cta-yellow:hover,
.hero-banner-btn:hover,
.tour-btn-gold:hover {
    background: #b08f44;
    color: var(--dark);
}

.hero-banner-btn {
    box-shadow: 0 4px 15px rgba(197, 165, 90, 0.3);
}

.custom-arrow {
    background: var(--yellow);
}

.our-locations .badge {
    background: var(--yellow);
    color: var(--dark);
}

.message-us button:hover {
    background: #123a5e;
}

.program-card-cta-golden {
    background: linear-gradient(135deg, #f0e6cf 0%, #e0d0a8 40%, #c5a55a 100%);
}

.about-intro-title span,
.advisor-role {
    color: var(--blue-primary);
}

/* Old light-blue surfaces -> new palette */
body,
body.inner-page,
body.index2-page {
    background: var(--white);
}

.about-content-section,
.edge-section > .container-fluid {
    background: var(--white);
}

.wing-age {
    background: rgba(197, 165, 90, 0.18);
    color: var(--blue-primary);
}

.testimonial-avatar {
    background: var(--yellow);
    color: var(--blue-primary);
}

/* ===== 8. MOBILE TWEAKS ===== */
@media (max-width: 768px) {
    .about-page > section.about-introduction,
    .about-page > section.about-edge,
    .about-page > section.about-academics {
        padding-left: 0;
        padding-right: 0;
    }

    .about-page > section:is(.about-introduction, .about-edge, .about-academics):nth-of-type(even) .about-feature-item p {
        text-align: left;
    }
}

/* ===== 9. MOBILE HEADER: call / WhatsApp quick actions ===== */
.mobile-actions {
    display: none;
}

@media (max-width: 1199.98px) {
    .main-nav .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .mobile-action {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--blue-primary);
        color: var(--white);
        font-size: 15px;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(10, 37, 64, 0.18);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .mobile-action i {
        line-height: 1;
    }

    .mobile-action:active {
        transform: scale(0.94);
    }

    .mobile-action-wa {
        background: #25d366;
        color: var(--white);
    }

    .main-nav .mobile-toggle {
        margin-left: 2px;
    }

    .main-nav.scrolled .mobile-action {
        background: var(--yellow);
        color: var(--blue-primary);
    }

    .main-nav.scrolled .mobile-action-wa {
        background: #25d366;
        color: var(--white);
    }
}

@media (max-width: 400px) {
    .mobile-action {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .nav-logo {
        width: 52px;
        height: 52px;
    }
}

/* ===== 10. HOMEPAGE MOBILE POLISH ===== */
@media (max-width: 768px) {
    /* tables: scroll horizontally instead of squeezing 7-8 columns */
    .table-responsive > .table {
        min-width: 600px;
    }

    .disclosure-section .table {
        font-size: 13px;
    }

    /* program cards: title left, round arrow right on the same row */
    .program-card-content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 14px;
        padding: 20px 18px;
    }

    .program-card-content .program-card-text {
        align-items: flex-start;
    }

    .program-card-content h4 {
        font-size: 17px;
        line-height: 1.25;
    }

    .program-card-large .program-card-content h4 {
        font-size: 19px;
    }

    .program-cta {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }

    .program-card-third {
        min-height: 240px;
    }

    .program-card-large,
    .program-card-half {
        min-height: 260px;
    }

    /* section tag headings a bit tighter */
    .section-tag .tag-highlight,
    .section-tag .tag-text {
        font-size: 32px;
        line-height: 1.15em;
    }

    /* announcement strip breathing room */
    .announcement-inner {
        gap: 14px;
        text-align: center;
    }

    .announcement-text {
        align-items: flex-start;
        line-height: 1.45;
    }

    /* campus / experience cards */
    .experience-cards {
        gap: 18px;
        padding: 40px 18px;

    }

    .experience-card {
        border-radius: 8px;
        overflow: hidden;
    }

    .card-body-custom {
        padding: 18px;
    }

    /* "27+ years" badge on the about block */
    .about-section-hero .badge {
        padding: 14px 20px;
        left: 16px;
        bottom: -14px;
    }

    .about-section-hero .badge h3 {
        font-size: 22px;
    }

    .about-section-hero .badge span {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* discover more cards */
    .spotlight-grid {
        gap: 14px;
    }

    .spotlight-card {
        min-height: 240px;
        border-radius: 6px;
    }

    /* at a glance stats */
    .glance-section {
        overflow: visible;
    }

    .glance-stats-area {
        overflow: visible;
        background: var(--blue-primary);
    }

    .glance-stats-bg {
        display: none;
    }

    .glance-stats-content {
        padding: 36px 18px 40px;
    }

    .glance-title {
        font-size: 28px;
        margin-bottom: 26px;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .stats-row .stat-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 16px 10px;
    }

    .stat-divider-v {
        display: none;
    }

    .stat-divider-h {
        margin: 4px 0;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 13px;
        line-height: 1.35;
    }

    /* opportunities */
    .opportunity-section {
        padding: 44px 18px;
    }

    .op-card {
        border-radius: 8px;
    }

    /* visit / contact band */
    .tour-inner {
        padding: 0 18px;
    }

    .tour-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .tour-btn {
        width: 100%;
        display: flex;
    justify-content: center;
    }

    /* alumni */
    .testimonials-section {
        padding: 44px 18px;
    }

    .testimonial-card {
        border-radius: 8px;
    }

    /* stories */
    .stories-grid {
        padding-left: 18px;
        padding-right: 18px;
        gap: 12px;
    }

    .story-card {
        border-radius: 6px;
        display: flex;
        align-items: flex-end;
    }

    .story-card-content {
        padding: 18px;
        width: 100%;
        height: auto;
        min-height: 0;
        justify-content: flex-end;
    }

    .story-card-content p,
    .story-card-large .story-card-content p,
    .story-card-blue .story-card-content p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .story-card-large,
    .story-card-medium {
        min-height: 280px;
    }

    .story-card-small,
    .story-card-blue {
        min-height: 200px;
    }

    .story-chip span {
        font-size: 11px;
        padding: 5px 8px;
    }

    /* footer banner image */
    .footer-banner-image img {
        border-radius: 0;
    }
}

@media (max-width: 400px) {
    .section-tag .tag-highlight,
    .section-tag .tag-text {
        font-size: 27px;
    }

    .program-card-content h4 {
        font-size: 16px;
    }

    .stat-number {
        font-size: 26px;
    }
}

/* very small phones: keep logo + WhatsApp + menu on one row */
@media (max-width: 360px) {
    .main-nav,
    .main-nav.scrolled {
        padding-left: 14px;
        padding-right: 14px;
    }

    .nav-logo,
    .main-nav.scrolled .nav-logo {
        width: 46px;
        height: 46px;
        margin: 0;
    }

    .mobile-actions {
        gap: 6px;
    }

    .mobile-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .mobile-action .fas.fa-phone-alt{
        rotate: 90deg;
    }
    .main-nav .mobile-toggle {
        font-size: 20px;
    }
}

/* ===== 11. PHOTO CROPPING: keep heads, trim from the bottom ===== */
.about-hero-media img,
.about-edge-image img,
.about-academic-image img,
.gallerySwiper .swiper-slide img,
.card-image img,
.wing-card-image img,
.op-card img,
.our-locations .img-box img,
.carousel-item img {
    object-position: center top;
}
.spotlight-card,
.program-card {
    background-position: center top !important;
}

/* ===== 12. HOMEPAGE ALUMNI SLIDER ===== */
.alumni-slider {
    display: flex;
    align-items: center;
    gap: 16px;
}
.alumniSwiper {
    flex: 1;
    min-width: 0;
}
.alumniSwiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}
.alumniSwiper .testimonial-card:hover {
    transform: none;
}
.alumniSwiper .alumni-photo {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 18px;
}
.alumni-arrow {
    flex: 0 0 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue-primary);
    cursor: pointer;
}
.alumni-arrow:hover {
    background: var(--white);
}
/* phones: one card at a time, arrows underneath */
@media (max-width: 767.98px) {
    .alumni-slider {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
    .alumniSwiper {
        order: -1;
        flex: 0 0 100%;
    }
    .alumniSwiper .testimonial-card {
        padding: 22px;
    }
}

/* ===== 10. UI POLISH: readability, tap targets, link colour ===== */
/* footer: legible small print */
.footer-legal-links a,
.footer-copyright p {
    font-size: 13px;
    font-weight: 400;
}

/* footer link lists: full-height tap targets, wrapped labels stay visually grouped */
.footer-col ul li a {
    display: block;
    padding: 6px 0;
    line-height: 1.4;
}

/* breadcrumbs: larger hit area without moving the layout */
.breadcrumb-menu ul li a {
    display: inline-block;
    padding: 8px 4px;
    margin: -8px -4px;
}

/* in-content links use the brand navy + gold underline instead of default blue */
.about-page .disclosure-section p a:not([class]),
.about-page .disclosure-section li a:not([class]) {
    color: var(--blue-primary);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.about-page .disclosure-section p a:not([class]):hover,
.about-page .disclosure-section li a:not([class]):hover {
    color: #17406a;
}

/* disclosure tables: easier to tap document links */
.about-page .disclosure-section .table a {
    display: inline-block;
    padding: 6px 0;
}

/* intro copy always sits on the navy band: readable gold links instead of default blue */
.about-page .about-intro-copy a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-page .about-intro-copy a:hover {
    color: var(--white);
}

/* ===== 11. LOGOS: partners strip and house logos ===== */
.home-partners-section .about-membership-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.home-partners-section .about-membership-logo {
    flex: 0 0 calc(14% - 12px);
    min-height: 150px;
    padding: 20px;
}

.home-partners-section .about-membership-logo img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 90px;
}

.home-houses-section {
    padding: 56px 0;
    background: var(--white);
}

.home-houses-box {
    padding: 36px 24px 32px;
    border-radius: 14px;
    background: var(--white);
    text-align: center;
}

.home-houses-box h2 {
    max-width: none;
    margin: 0 auto 28px;
    color: var(--blue-primary);
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

@media (min-width: 992px) {
    .home-houses-box h2 { white-space: nowrap; }
}

.home-houses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
}

.home-houses-grid img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
}

.home-houses-link {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 26px;
    border-radius: 6px;
    background: var(--blue-primary);
    color: var(--white);
    font-family: var(--font-button);
    font-weight: 700;
    text-decoration: none;
}

.home-houses-link:hover {
    background: #17406a;
    color: var(--white);
}

.house-logo-lg {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .home-partners-section .about-membership-logo {
        flex-basis: calc(33.333% - 11px);
    }
}

@media (max-width: 575.98px) {
    .home-partners-section .about-membership-logo {
        flex-basis: calc(50% - 8px);
        min-height: 110px;
        padding: 14px;
    }

    .home-partners-section .about-membership-logo img {
        max-height: 70px;
    }

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

    .home-houses-box {
        padding: 28px 14px;
    }
}

/* ===== 12. ABOUT PAGE: full-width left/right split sections ===== */
main.about-page > section.about-split { padding: 0; }
main.about-page > section.about-split--light { background-color: var(--white); color: var(--dark); }
main.about-page > section.about-split--dark { background-color: var(--blue-primary); color: var(--white); }
.about-split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.about-split__media { position: relative; min-height: 360px; overflow: hidden; }
.about-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-split__grid--reverse .about-split__media { order: 0; }
.about-split__text { display: flex; align-items: center; padding: 64px 0; }
.about-split__inner { width: 100%; max-width: 560px; padding: 0 48px; }
.about-split__grid:not(.about-split__grid--reverse) .about-split__inner { margin-left: auto; }
.about-split__inner h2 { margin: 0 0 20px; font-family: var(--font-heading); font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.about-split--light .about-split__inner h2 { color: var(--blue-primary); }
.about-split--dark .about-split__inner h2 { color: var(--white); }
.about-split__inner p { font-size: 16px; line-height: 1.75; }
.about-split--dark .about-split__inner p { color: var(--white-80); }
.about-split__inner .about-feature-list { margin-top: 24px; }
.about-split__cards { padding-top: 64px; padding-bottom: 72px; }
@media (max-width: 991.98px) {
    .about-split__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .about-split__media { min-height: 0; height: 260px; }
    .about-split__grid:not(.about-split__grid--reverse) .about-split__media { order: -1; }
    .about-split__text { padding: 40px 0; }
    .about-split__inner { max-width: none; padding: 0 24px; margin: 0 !important; }
    .about-split__cards { padding-top: 40px; padding-bottom: 48px; }
}

/* academic points as flush left/right rows (no card frame) */
.about-split__row--light { background: var(--white); color: var(--dark); }
.about-split__row--dark { background: var(--blue-primary); color: var(--white); }
.about-split__row { min-height: 440px; }
.about-split__inner h3 { margin: 0 0 16px; font-family: var(--font-heading); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.about-split__row--light .about-split__inner h3 { color: var(--blue-primary); }
.about-split__row--light .about-split__inner p { color: #454545; }
.about-split__row--dark .about-split__inner h3 { color: var(--white); }
.about-split__row--dark .about-split__inner p { color: var(--white-80); }
@media (min-width: 992px) { .about-split__row:not(.about-split__grid--reverse) .about-split__media { order: 2; } }
@media (max-width: 991.98px) { .about-split__row { min-height: 0; } .about-split__row .about-split__media { order: -1; } }
main.about-page > section.about-academics.about-split--dark { padding: 0 0 72px; }
.about-split__cards { padding-top: 64px; }

/* Three Campuses cards: let the three cards shrink evenly instead of overflowing the
   screen between ~1000px and ~1300px (images were holding them at their natural width). */
.experience-cards { box-sizing: border-box; max-width: 100%; }
@media (min-width: 1200px) {
    .experience-card { flex: 1 1 0; min-width: 0; box-sizing: border-box; }
    /* the photo frame was a fixed 376x433px; scale it with the card, same proportions */
    .experience-card .card-image { width: 100%; max-width: 376px; height: auto; aspect-ratio: 376 / 433; margin: 0 auto; }
    .experience-card .card-image img { height: 100%; }
}

/* Sticky header: once scrolled past the top (main.js adds .scrolled), the bar pins to the
   top of the screen in prod2's compact navy style and slides down into view. */
.main-nav.scrolled { position: fixed; top: 0; left: 0; right: 0; width: auto; transform: none; box-sizing: border-box; animation: ibs-nav-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ibs-nav-in { from { translate: 0 -100%; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .main-nav.scrolled { animation: none; } }

/* Opportunity cards are links now: keep the card look, show focus */
a.op-card { display: block; color: inherit; text-decoration: none; }
a.op-card:hover, a.op-card:focus { color: inherit; }
a.op-card:focus-visible { outline: 3px solid #c5a55a; outline-offset: 3px; }

/* Tablet (700–1199px): use the width instead of stacking everything in one tall column */
@media (min-width: 700px) and (max-width: 1199.98px) {
    .experience-cards { flex-direction: row; align-items: stretch; gap: 16px; padding: 40px 24px; }
    .experience-card { flex: 1 1 0; min-width: 0; width: auto; max-width: none; padding: 14px; gap: 14px; }
    .experience-card .card-image { width: 100%; height: auto; aspect-ratio: 4 / 5; }
    .experience-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
    .experience-card h3 { font-size: 1.15rem; }
    .experience-card .find-out-more { padding-top: 8px; padding-bottom: 8px; }

    .programs-row-1 { flex-direction: column; }
    .program-col-double { flex-direction: row; }
    .program-card-large { min-height: 340px; }
    .program-card-half { min-height: 240px; flex: 1 1 0; }
    .programs-row-2 { flex-direction: row; flex-wrap: nowrap; }
    .program-card-third { flex: 1 1 0; min-height: 260px; }
}

/* Phones: comfortable tap height for the campus card links */
@media (max-width: 699.98px) {
    .experience-card .find-out-more { display: inline-block; padding-top: 10px; padding-bottom: 10px; }
}

/* Tablet: "Discover More" in two columns, and let campus names wrap instead of being cut off */
@media (min-width: 700px) and (max-width: 992px) {
    .spotlight-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .spotlight-card { min-height: 260px; }
}
.experience-card h3, .card-body-custom h3 { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* Phones: the three campus cards as equal, compact rows (photo left, name and place right) */
@media (max-width: 699.98px) {
    .schools-section .experience-cards { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 14px; padding: 24px 16px 44px; }
    .schools-section .experience-card { display: grid; grid-template-columns: 124px 1fr; align-items: stretch; gap: 0; width: 100%; max-width: none; min-height: 136px; padding: 0; border-radius: 14px; overflow: hidden; box-sizing: border-box; }
    .schools-section .experience-card .card-image { width: 100%; height: 100%; min-height: 136px; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; }
    .schools-section .experience-card .card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
    .schools-section .card-body-custom { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 14px 16px; text-align: left; }
    .schools-section .card-body-custom h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
    .schools-section .experience-cards .wing-age { font-size: 11px; letter-spacing: .5px; line-height: 1.4; padding: 0; margin: 0; text-align: left; }
    .schools-section .experience-card .find-out-more { align-self: flex-start; margin: 6px 0 0; padding: 8px 0 6px; font-size: 13px; letter-spacing: 2px; }
}

/* Campus cards: school name largest, then the place, then "Find out more" smallest (all screen sizes) */
.schools-section .card-body-custom h3 { font-size: 28px; }
.schools-section .experience-cards .wing-age { font-size: 15px; letter-spacing: .5px; }
.schools-section .experience-card .find-out-more { font-size: 12px; letter-spacing: 2px; padding-bottom: 6px; }
@media (min-width: 700px) and (max-width: 1199.98px) {
    .schools-section .card-body-custom h3 { font-size: 22px; }
    .schools-section .experience-cards .wing-age { font-size: 13px; }
    .schools-section .experience-card .find-out-more { font-size: 11px; }
}
@media (max-width: 699.98px) {
    .schools-section .card-body-custom h3 { font-size: 22px; }
    .schools-section .experience-cards .wing-age { font-size: 13px; letter-spacing: .3px; }
    .schools-section .experience-card .find-out-more { font-size: 11px; letter-spacing: 1.5px; }
}
