/* ==========================================================================
   IB Schools in Delhi — front-end theme
   Navy + gold on warm cream, serif headings, soft cards.
   ========================================================================== */
:root {
    /* Navy scale (used wherever the old "brand" colour was referenced) */
    --sig-brand-900: #10293b;
    --sig-brand-800: #17384f;
    --sig-brand-700: #1d4663;
    --sig-brand-600: #1b3f58;
    --sig-brand-500: #3d6f90;
    --sig-brand-400: #5f8fb0;
    --sig-brand-200: #c9dbe8;
    --sig-brand-100: #e3edf4;
    --sig-brand-50:  #eef4f8;

    /* Gold accent */
    --sig-accent-700: #8f6526;
    --sig-accent-600: #a9792f;
    --sig-accent-500: #b98a3e;
    --sig-accent-400: #c9a057;
    --sig-accent-100: #f3e8d2;
    --sig-accent-50:  #faf4e8;

    --sig-ink:     #14293a;
    --sig-body:    #4a5865;
    --sig-muted:   #7c8793;
    --sig-border:  #e9e4d8;
    --sig-white:   #ffffff;
    --sig-bg:      #f8f6f1;
    --sig-bg-soft: #f2eee5;

    --sig-success: #2f7d4f;
    --sig-danger:  #b4382f;

    --sig-radius-xl: 1.1rem;
    --sig-radius-lg: .9rem;
    --sig-radius:    .65rem;
    --sig-radius-sm: .45rem;

    --sig-shadow-xs: 0 1px 2px rgba(20, 41, 58, .05);
    --sig-shadow-sm: 0 2px 8px rgba(20, 41, 58, .06);
    --sig-shadow:    0 14px 32px -16px rgba(20, 41, 58, .25);

    --sig-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --sig-serif: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
    --sig-script: 'Caveat', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--sig-bg);
    font-family: var(--sig-sans);
    color: var(--sig-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sig-serif);
    font-weight: 700;
    color: var(--sig-ink);
    letter-spacing: -.01em;
    line-height: 1.2;
}

a { color: var(--sig-brand-600); }
a:hover { color: var(--sig-accent-600); }

.text-muted { color: var(--sig-muted) !important; }

/* Eyebrow labels ----------------------------------------------------- */
.sig-eyebrow {
    display: inline-block;
    font-family: var(--sig-sans); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .16em; color: var(--sig-accent-500);
}

/* ==========================================================================
   Buttons & form controls
   ========================================================================== */
.btn { border-radius: 999px; font-weight: 600; padding: .62rem 1.4rem; font-size: .875rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-bg: var(--sig-accent-500);
    --bs-btn-border-color: var(--sig-accent-500);
    --bs-btn-hover-bg: var(--sig-accent-600);
    --bs-btn-hover-border-color: var(--sig-accent-600);
    --bs-btn-active-bg: var(--sig-accent-700);
    --bs-btn-active-border-color: var(--sig-accent-700);
    --bs-btn-focus-shadow-rgb: 185, 138, 62;
    box-shadow: 0 6px 14px -8px rgba(143, 101, 38, .8);
}
.btn-outline-primary {
    --bs-btn-color: var(--sig-brand-600);
    --bs-btn-border-color: var(--sig-brand-200);
    --bs-btn-hover-bg: var(--sig-brand-600);
    --bs-btn-hover-border-color: var(--sig-brand-600);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--sig-brand-700);
    --bs-btn-active-border-color: var(--sig-brand-700);
}
.btn-light { background: #fff; border: 1px solid var(--sig-border); font-weight: 600; color: var(--sig-ink); }
.btn-light:hover { background: var(--sig-bg-soft); }
.btn-sm { padding: .4rem 1rem; }

.form-control, .form-select {
    border-radius: var(--sig-radius-sm); border-color: #ded8c9; padding-block: .6rem;
    font-size: .9rem; background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--sig-accent-400); box-shadow: 0 0 0 .2rem rgba(185, 138, 62, .16); }
.form-check-input:checked { background-color: var(--sig-brand-600); border-color: var(--sig-brand-600); }
.form-label { font-weight: 600; font-size: .82rem; color: var(--sig-ink); }

.alert { border-radius: var(--sig-radius); border: none; }
.alert-success { background: #e8f4ec; color: #25673f; }
.alert-danger { background: #fbeceb; color: #9c2f27; }

.pagination .page-link { border: none; color: var(--sig-body); font-weight: 600; font-size: .85rem; margin: 0 2px; border-radius: 999px; min-width: 2.2rem; text-align: center; background: transparent; }
.pagination .page-item.active .page-link { background: var(--sig-brand-600); color: #fff; }
.pagination .page-link:hover { background: var(--sig-brand-50); color: var(--sig-brand-700); }

/* Pills / tags --------------------------------------------------------- */
.sig-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    border: 1px solid var(--sig-border); background: #fff; color: var(--sig-body);
    border-radius: 999px; padding: .42rem .95rem; font-size: .8rem; font-weight: 600;
    text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sig-pill:hover { border-color: var(--sig-accent-400); color: var(--sig-accent-700); }
.sig-pill.active { background: var(--sig-brand-600); border-color: var(--sig-brand-600); color: #fff; }

.sig-chip {
    display: inline-block; border: 1px solid var(--sig-accent-100); border-radius: var(--sig-radius-sm);
    padding: .18rem .55rem; font-size: .72rem; font-weight: 700; color: var(--sig-accent-700);
    background: var(--sig-accent-50);
}

/* ==========================================================================
   Header
   ========================================================================== */
.navbar {
    background: rgba(250, 248, 243, .96) !important;
    backdrop-filter: blur(8px);
    padding-block: .7rem;
    border-bottom: 1px solid rgba(233, 228, 216, .8);
}
.navbar-brand { display: flex; flex-direction: column; line-height: 1.1; padding: 0; margin-right: 1rem; }
.navbar-brand .brand-name { font-family: var(--sig-serif); font-weight: 700; font-size: 1.55rem; color: var(--sig-brand-800); letter-spacing: -.01em; }
.navbar-brand .brand-tag { font-size: .54rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--sig-brand-700); margin-top: .3rem; }
.navbar .nav-link { font-weight: 500; color: var(--sig-brand-800) !important; padding: .5rem .85rem !important; font-size: .86rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--sig-accent-600) !important; }
.navbar-toggler { border: 1px solid var(--sig-border); border-radius: var(--sig-radius-sm); padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(185, 138, 62, .2); }

/* ==========================================================================
   Hero (India Gate)
   ========================================================================== */
.ib-hero {
    position: relative; overflow: hidden;
    background: #f8f4ec url('../img/hero_banner.webp') right center / cover no-repeat;
}
.ib-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, #f8f4ec 0%, rgba(248, 244, 236, .96) 30%, rgba(248, 244, 236, .55) 50%, rgba(248, 244, 236, 0) 68%);
}
.ib-hero .container { position: relative; z-index: 1; }
.ib-hero-inner { padding: 3.2rem 0 3.4rem; max-width: 520px; }
.ib-hero .sig-eyebrow { font-size: .7rem; letter-spacing: .2em; margin-bottom: 1rem; }
.ib-hero h1 { font-size: clamp(2.6rem, 6vw, 3.9rem); font-weight: 700; line-height: 1.02; color: var(--sig-brand-800); margin-bottom: 1.1rem; }
.ib-hero p { font-size: 1.02rem; max-width: 40ch; color: #3f4d59; margin-bottom: 1.6rem; }
.ib-hero .btn-explore {
    display: inline-flex; align-items: center; gap: .55rem; border: none; color: #fff;
    background: linear-gradient(180deg, #c9a057, #a9792f);
    padding: .8rem 1.6rem; border-radius: .7rem; font-weight: 600; font-size: .92rem; text-decoration: none;
    box-shadow: 0 10px 20px -10px rgba(143, 101, 38, .9);
}
.ib-hero .btn-explore:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }


/* ==========================================================================
   Think-beyond banner + notice
   ========================================================================== */
.ib-page { padding: 1.5rem 0 4rem; }
.ib-beyond {
    display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #1b4059, #17384f);
    color: #d6e2eb; border-radius: 1rem; padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 36px -22px rgba(16, 41, 59, .9);
}
.ib-beyond .icon {
    flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem;
}
.ib-beyond .text { flex: 1 1 300px; min-width: 0; }
.ib-beyond h2 { color: #fff; font-size: 1.55rem; margin-bottom: .3rem; }
.ib-beyond p { margin: 0; font-size: .88rem; line-height: 1.55; max-width: 62ch; }
.ib-beyond .pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.ib-beyond .pills a {
    display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--sig-brand-800);
    border-radius: 999px; padding: .55rem 1.15rem; font-size: .78rem; font-weight: 600; text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
}
.ib-beyond .pills a:hover { background: var(--sig-accent-100); transform: translateY(-1px); color: var(--sig-brand-800); }

.ib-notice {
    display: flex; align-items: center; gap: 1rem; margin-top: 1rem;
    background: #f1ebde; border: 1px solid #e4dccb; border-radius: .8rem; padding: .95rem 1.25rem;
    font-size: .82rem; color: #51493a;
}
.ib-notice i { font-size: 1.7rem; color: var(--sig-accent-500); flex: none; }
.ib-notice p { margin: 0; max-width: 90ch; }

/* ==========================================================================
   Accordion sections (home)
   ========================================================================== */
.ib-accordion { margin-top: 1rem; display: flex; flex-direction: column; gap: .55rem; scroll-margin-top: 90px; }
.ib-acc-item {
    background: #fff; border: 1px solid var(--sig-border); border-radius: .85rem;
    box-shadow: var(--sig-shadow-xs); scroll-margin-top: 90px; overflow: hidden;
    transition: box-shadow .2s ease;
}
.ib-acc-item:has(.ib-acc-btn:not(.collapsed)) { box-shadow: var(--sig-shadow-sm); }
.ib-acc-head { margin: 0; font-size: inherit; }
.ib-acc-btn {
    width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
    background: transparent; border: 0; padding: .95rem 1.2rem; cursor: pointer;
    font-family: var(--sig-serif); font-weight: 600; font-size: 1.28rem; color: var(--sig-ink);
}
.ib-acc-btn:focus-visible { outline: 2px solid var(--sig-accent-400); outline-offset: -3px; }
.ib-acc-icon {
    flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%;
    background: var(--sig-brand-400); transition: background-color .15s ease;
}
.ib-acc-icon::before, .ib-acc-icon::after {
    content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px;
    transform: translate(-50%, -50%); transition: transform .2s ease, opacity .2s ease;
}
.ib-acc-icon::before { width: 12px; height: 2px; }
.ib-acc-icon::after { width: 2px; height: 12px; }
.ib-acc-btn:not(.collapsed) .ib-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.ib-acc-btn:hover .ib-acc-icon { background: var(--sig-brand-500); }
.ib-acc-body { padding: 0 1.2rem 1.4rem 4.2rem; font-size: .9rem; }
.ib-acc-body > p { max-width: 80ch; }
.ib-acc-body .lede { color: var(--sig-body); margin-bottom: 1.1rem; font-size: .88rem; }
.ib-acc-body .lede + .lede { margin-top: -.6rem; }

/* School card grid inside accordion */
.ib-school-grid {
    display: grid; gap: .9rem; margin-bottom: 1.1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ib-callout {
    display: flex; align-items: flex-start; gap: 1rem; background: #e9f0f6; border-radius: .75rem; padding: 1rem 1.25rem;
}
.ib-callout i { font-size: 1.9rem; color: var(--sig-accent-500); flex: none; line-height: 1; }
.ib-callout h3 { font-size: 1rem; margin-bottom: .15rem; font-weight: 700; }
.ib-callout p { margin: 0; font-size: .82rem; color: #44525f; }
.ib-more-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--sig-brand-600); }
.ib-more-link:hover { color: var(--sig-accent-600); }
.ib-empty { background: var(--sig-bg); border: 1px dashed #d8d1bf; border-radius: .75rem; padding: 1.6rem 1.25rem; text-align: center; font-size: .88rem; color: var(--sig-muted); margin-bottom: 1.1rem; }

/* Content blocks inside accordion */
.ib-feature-grid { display: grid; gap: .85rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .4rem 0 1rem; }
.ib-feature {
    background: var(--sig-bg); border: 1px solid var(--sig-border); border-radius: .75rem; padding: 1.05rem;
}
.ib-feature .tag { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sig-accent-500); }
.ib-feature h3 { font-size: 1.02rem; margin: .25rem 0 .35rem; }
.ib-feature p { font-size: .8rem; margin: 0; }

.ib-checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ib-checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; }
.ib-checklist li i { color: var(--sig-accent-500); font-size: 1.05rem; line-height: 1.5; flex: none; }
.ib-checklist li b { color: var(--sig-ink); }

.ib-steps { list-style: none; padding: 0; counter-reset: step; margin: 0 0 1rem; display: grid; gap: .75rem; }
.ib-steps li { counter-increment: step; display: flex; gap: .85rem; align-items: flex-start; font-size: .88rem; }
.ib-steps li::before {
    content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sig-accent-100); color: var(--sig-accent-700); font-weight: 700; font-size: .78rem; font-family: var(--sig-sans);
}
.ib-steps li b { color: var(--sig-ink); }

.ib-table-wrap { overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--sig-border); border-radius: .75rem; }
.ib-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.ib-table th, .ib-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--sig-border); vertical-align: top; }
.ib-table thead th { background: var(--sig-brand-800); color: #fff; font-family: var(--sig-serif); font-weight: 600; font-size: .95rem; border-bottom: 0; }
.ib-table tbody th { background: var(--sig-bg); color: var(--sig-ink); font-weight: 600; width: 22%; }
.ib-table tbody tr:last-child th, .ib-table tbody tr:last-child td { border-bottom: 0; }

.ib-note {
    background: var(--sig-accent-50); border-left: 3px solid var(--sig-accent-400); border-radius: 0 .5rem .5rem 0;
    padding: .75rem 1rem; font-size: .82rem; color: #5b4a2c; margin: 0;
}

/* Nested FAQ */
.ib-faq-item { border-bottom: 1px solid var(--sig-border); }
.ib-faq-item:last-child { border-bottom: 0; }
.ib-faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
    background: transparent; border: 0; padding: .85rem 0; font-weight: 600; font-size: .92rem; color: var(--sig-ink); cursor: pointer;
}
.ib-faq-q i { color: var(--sig-accent-500); transition: transform .2s ease; flex: none; }
.ib-faq-q:not(.collapsed) i { transform: rotate(45deg); }
.ib-faq-a { padding: 0 0 .95rem; font-size: .86rem; max-width: 74ch; }

.ib-cta {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--sig-bg); border: 1px solid var(--sig-border); border-radius: .75rem; padding: 1.1rem 1.25rem; margin-top: 1rem;
}
.ib-cta h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.ib-cta p { margin: 0; font-size: .82rem; }

/* ==========================================================================
   Page header strip (inner pages)
   ========================================================================== */
.sig-section { padding: 5rem 0; }
.sig-section.bg-white { background: var(--sig-white); }
.sig-section.bg-cream { background: var(--sig-bg); }

/* ==========================================================================
   Cards
   ========================================================================== */
.sig-card, .sig-filter-card {
    background: #fff; border: 1px solid var(--sig-border); border-radius: var(--sig-radius-lg);
    box-shadow: var(--sig-shadow-xs);
}

/* School card (image on top) */
.school-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--sig-border); border-radius: .8rem;
    padding: .75rem; height: 100%; position: relative;
    box-shadow: var(--sig-shadow-xs);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.school-card:hover { box-shadow: var(--sig-shadow); border-color: #ddd2b9; transform: translateY(-2px); }

.school-thumb {
    position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
    border-radius: .45rem; margin-bottom: .8rem; background: var(--sig-brand-100);
}
.school-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.school-card:hover .school-thumb img { transform: scale(1.04); }
.school-thumb.is-placeholder {
    display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-size: 2.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .0) 55%, rgba(63, 74, 39, .55) 55%),
        linear-gradient(160deg, #7fa6c1 0%, #a9c6d6 45%, #e8d5ae 100%);
}
.school-thumb.is-placeholder.tone-1 { background: linear-gradient(180deg, transparent 58%, rgba(70, 82, 45, .6) 58%), linear-gradient(160deg, #8ab0c7, #c4d8e2 50%, #efd9ae); }
.school-thumb.is-placeholder.tone-2 { background: linear-gradient(180deg, transparent 58%, rgba(66, 76, 42, .6) 58%), linear-gradient(160deg, #b7917a, #dcc0a4 55%, #f0dfbb); }
.school-thumb.is-placeholder.tone-3 { background: linear-gradient(180deg, transparent 58%, rgba(60, 78, 52, .6) 58%), linear-gradient(160deg, #6f93ae, #9fbfcf 50%, #dfd0a8); }

.school-card h3 { font-family: var(--sig-serif); font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--sig-ink); margin-bottom: .2rem; }
.school-card .area { font-size: .8rem; font-weight: 500; color: var(--sig-accent-500); margin-bottom: .1rem; }
.school-card .prog { font-size: .78rem; font-weight: 500; color: var(--sig-accent-600); margin-bottom: .5rem; }
.school-card .desc { font-size: .8rem; color: var(--sig-body); line-height: 1.55; margin: 0; }
.school-card .foot { border-top: 1px solid var(--sig-border); padding-top: .7rem; margin-top: auto; font-size: .76rem; }
.school-card .body { flex: 1 1 auto; display: flex; flex-direction: column; }
.school-card .foot-wrap { margin-top: .85rem; }

.badge-facility { display: inline-block; background: var(--sig-accent-50); color: var(--sig-accent-700); font-weight: 600; border: 1px solid var(--sig-accent-100); border-radius: 999px; padding: .28em .75em; font-size: .72rem; }

.rating-pill { display: inline-flex; align-items: center; gap: .3rem; background: var(--sig-accent-100); color: var(--sig-accent-700); font-weight: 700; font-size: .8rem; border-radius: 999px; padding: .2rem .6rem; }
.rating-pill i { color: var(--sig-accent-500); }
.rating-stars { color: var(--sig-accent-500); letter-spacing: 1px; }

.mono {
    width: 40px; height: 40px; border-radius: 50%; background: var(--sig-brand-800); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; letter-spacing: .01em;
    flex: none; font-family: var(--sig-sans);
}

/* Blog */
.blog-card { padding: 0; overflow: hidden; }
.blog-card img { height: 175px; object-fit: cover; width: 100%; display: block; }
.sig-blog-placeholder {
    height: 175px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--sig-brand-100), var(--sig-accent-100));
    color: var(--sig-brand-400); font-size: 1.75rem;
}
.post-content { color: var(--sig-body); line-height: 1.75; }
.post-content h2, .post-content h3 { margin-top: 1.6rem; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--sig-radius); }

/* Listing / detail pages */
.school-cover-hero { height: 260px; object-fit: cover; background: var(--sig-bg-soft); }
.school-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--sig-radius-sm); transition: opacity .15s ease; }
.school-gallery a:hover img { opacity: .85; }

.shadow-soft { box-shadow: var(--sig-shadow-xs); }
.rounded-xl { border-radius: var(--sig-radius-lg) !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.ib-footer { background: #1d3a50; color: #cfdbe5; padding: 1.7rem 0; }
footer.ib-footer .brand { font-family: var(--sig-serif); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: .2rem; }
footer.ib-footer .tag { font-size: .8rem; color: #c7d4de; margin: 0; }
footer.ib-footer .links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
footer.ib-footer .links a { color: #e4ecf2; text-decoration: none; font-size: .82rem; }
footer.ib-footer .links a:hover { color: var(--sig-accent-400); }
footer.ib-footer .copy { font-size: .78rem; color: #c7d4de; line-height: 1.5; }
footer.ib-footer .divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .3); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .ib-school-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ib-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .navbar-collapse { padding: .75rem 0 .4rem; }
    .ib-hero::before { background: linear-gradient(90deg, #f8f4ec 0%, rgba(248, 244, 236, .94) 38%, rgba(248, 244, 236, .4) 65%, rgba(248, 244, 236, 0) 85%); }
    .ib-beyond .pills { width: 100%; }
}

@media (max-width: 767.98px) {
    .navbar-brand .brand-name { font-size: 1.3rem; }
    .navbar-brand .brand-tag { font-size: .48rem; }

    .ib-hero { background: #f8f4ec url('../img/hero_banner.webp') 78% 100% / auto 240px no-repeat; }
    .ib-hero::before {
        background: linear-gradient(180deg, #f8f4ec 0%, #f8f4ec 52%, rgba(248, 244, 236, 0) 76%);
    }
    .ib-hero-inner { padding: 2rem 0 15.5rem; max-width: none; }
    .ib-hero p { max-width: none; }

    .ib-page { padding: 1.1rem 0 3rem; }
    .ib-beyond { padding: 1.25rem; gap: 1rem; }
    .ib-beyond .icon { width: 48px; height: 48px; font-size: 1.35rem; }
    .ib-beyond h2 { font-size: 1.35rem; }
    .ib-notice { align-items: flex-start; padding: .9rem 1rem; }

    .ib-acc-btn { font-size: 1.08rem; padding: .85rem .95rem; gap: .8rem; }
    .ib-acc-icon { width: 28px; height: 28px; }
    .ib-acc-body { padding: 0 .95rem 1.2rem; }
    .ib-school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .ib-checklist { grid-template-columns: 1fr; }
    .ib-feature-grid { grid-template-columns: 1fr; }
    .ib-callout { padding: .9rem 1rem; }

    .sig-section { padding: 3.25rem 0; }

    footer.ib-footer .divider { display: none; }
    footer.ib-footer .foot-row { flex-direction: column; align-items: flex-start !important; }
}

@media (max-width: 479.98px) {
    .ib-school-grid { grid-template-columns: 1fr; }
    .ib-beyond .pills a { flex: 1 1 auto; justify-content: center; }

    .ib-hero-inner { padding-bottom: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
