/*!
 * Al-Badr Schools - public website design system
 * Brand palette taken from the school crest: deep navy, crest sky blue and
 * the crest red used sparingly for urgency and calls to action.
 */

:root {
    --ab-navy: #131c74;
    --ab-navy-dark: #0b1050;
    --ab-navy-soft: #2f3aa6;
    --ab-sky: #a8dcf7;
    --ab-sky-mid: #d3ecfb;
    --ab-sky-soft: #eef7fd;
    --ab-red: #e03127;
    --ab-red-dark: #b4241c;
    --ab-gold: #c08a1e;
    --ab-green: #1c7a54;

    --ab-ink: #16192b;
    --ab-body: #4a5068;
    --ab-muted: #767d94;
    --ab-line: #e2e7f0;
    --ab-surface: #ffffff;
    --ab-canvas: #f6f8fc;

    --ab-radius: 14px;
    --ab-radius-sm: 9px;
    --ab-radius-lg: 22px;
    --ab-shadow-sm: 0 1px 2px rgba(17, 24, 61, .06), 0 2px 8px rgba(17, 24, 61, .05);
    --ab-shadow: 0 2px 6px rgba(17, 24, 61, .06), 0 12px 28px rgba(17, 24, 61, .08);
    --ab-shadow-lg: 0 20px 60px rgba(11, 16, 80, .18);

    --ab-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --ab-font-head: 'Poppins', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --bs-primary: #131c74;
    --bs-primary-rgb: 19, 28, 116;
}

/* ---------------------------------------------------------------- base --- */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--ab-font);
    color: var(--ab-body);
    background: var(--ab-surface);
    font-size: 1rem;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .ab-display {
    font-family: var(--ab-font-head);
    color: var(--ab-ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.08rem + .7vw, 1.6rem); }
h4 { font-size: 1.18rem; }
h5 { font-size: 1.04rem; }

a {
    color: var(--ab-navy);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--ab-red);
}

p:last-child {
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.text-navy { color: var(--ab-navy) !important; }
.text-red { color: var(--ab-red) !important; }
.text-muted-2 { color: var(--ab-muted) !important; }
.bg-navy { background-color: var(--ab-navy) !important; }
.bg-sky-soft { background-color: var(--ab-sky-soft) !important; }
.bg-canvas { background-color: var(--ab-canvas) !important; }

/* Bootstrap's .container pads by half its own 1.5rem gutter (12px), but a
   `row g-5` inside pulls out by 24px each side, which overflowed the viewport
   and left a white strip beside full-width bands on phones. Pad by the largest
   gutter we use so any row is absorbed. */
.ab-container {
    max-width: 1320px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


.ab-section {
    padding: clamp(3rem, 2rem + 3.5vw, 5.5rem) 0;
}

.ab-section-tight {
    padding: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem) 0;
}

/* Subtle geometric motif used behind dark bands. */
.ab-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M30 0 60 30 30 60 0 30Z'/%3E%3Cpath d='M30 12 48 30 30 48 12 30Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ headings --- */

.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ab-font-head);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ab-red);
    margin-bottom: .75rem;
}

.ab-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--ab-red);
    display: inline-block;
}

.ab-eyebrow-light { color: var(--ab-sky); }
.ab-eyebrow-light::before { background: var(--ab-sky); }

.ab-section-head {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.ab-section-head p {
    color: var(--ab-body);
    font-size: 1.05rem;
}

.ab-lead {
    font-size: 1.1rem;
    color: var(--ab-body);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
    font-family: var(--ab-font-head);
    font-weight: 600;
    border-radius: 999px;
    padding: .72rem 1.6rem;
    letter-spacing: .01em;
    transition: all .2s ease;
}

.btn-lg { padding: .9rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1.05rem; font-size: .86rem; }

.btn-navy {
    background: var(--ab-navy);
    color: #fff;
    border: 1px solid var(--ab-navy);
}

.btn-navy:hover, .btn-navy:focus {
    background: var(--ab-navy-dark);
    border-color: var(--ab-navy-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(19, 28, 116, .28);
}

.btn-red {
    background: var(--ab-red);
    color: #fff;
    border: 1px solid var(--ab-red);
}

.btn-red:hover, .btn-red:focus {
    background: var(--ab-red-dark);
    border-color: var(--ab-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(224, 49, 39, .3);
}

.btn-outline-navy {
    border: 1px solid var(--ab-navy);
    color: var(--ab-navy);
    background: transparent;
}

.btn-outline-navy:hover {
    background: var(--ab-navy);
    color: #fff;
}

.btn-outline-light-navy {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.btn-outline-light-navy:hover {
    background: #fff;
    color: var(--ab-navy);
    border-color: #fff;
}

.btn-ghost {
    padding-left: 0;
    padding-right: 0;
    color: var(--ab-navy);
    font-weight: 600;
}

.btn-ghost .bi {
    transition: transform .2s ease;
}

.btn-ghost:hover .bi {
    transform: translateX(4px);
}

/* ----------------------------------------------------- announcement popup - */

.ab-notice-modal .modal-content {
    border: 0;
    border-radius: var(--ab-radius-lg);
    overflow: hidden;
    box-shadow: var(--ab-shadow-lg);
}

.ab-notice-modal-head {
    background: var(--ab-navy);
    color: #fff;
    padding: .9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ab-notice-modal-head.is-urgent { background: var(--ab-red); }

.ab-notice-modal-badge {
    font-family: var(--ab-font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ab-notice-modal .modal-body { padding: 1.4rem 1.25rem 1rem; }
.ab-notice-modal .modal-footer { padding: .5rem 1.25rem 1.25rem; gap: .5rem; }

.ab-topbar {
    background: var(--ab-navy-dark);
    color: rgba(255, 255, 255, .82);
    font-size: .84rem;
}

.ab-topbar a {
    color: rgba(255, 255, 255, .82);
}

.ab-topbar a:hover { color: #fff; }

/* ------------------------------------------------------------- navbar ---- */

.ab-navbar {
    background: #fff;
    box-shadow: 0 1px 0 var(--ab-line);
    padding: .7rem 0;
    transition: box-shadow .2s ease;
}

.ab-navbar.is-stuck {
    box-shadow: var(--ab-shadow-sm);
}

.ab-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ab-brand img {
    height: 56px;
    width: auto;
    flex: 0 0 auto;
    display: block;
}

.ab-topbar-slogan {
    font-weight: 500;
    color: #fff;
    letter-spacing: .02em;
}

.ab-topbar-social a {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: .95rem;
    transition: background .18s ease, color .18s ease;
}

.ab-topbar-social a:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ab-nav-actions { flex: 0 0 auto; }

.ab-searchbar {
    background: var(--ab-sky-soft);
    border-bottom: 1px solid var(--ab-line);
}

.ab-search-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

@media (max-width: 1399.98px) {
    .ab-search-toggle { width: auto; height: auto; padding: .45rem 1.05rem; display: inline-flex; }
}

.ab-navbar .navbar-nav {
    flex-wrap: nowrap;
}

.ab-navbar .navbar-nav .nav-link {
    font-family: var(--ab-font-head);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ab-ink);
    padding: .5rem .55rem;
    border-radius: 8px;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .ab-navbar .navbar-nav { margin-left: auto; margin-right: auto; }
    .ab-navbar .navbar-collapse { gap: .5rem; }
}

@media (max-width: 1399.98px) {
    .ab-navbar .navbar-nav { flex-wrap: wrap; }
    .ab-navbar .navbar-collapse { padding-top: .5rem; }
}

.ab-navbar .navbar-nav .nav-link:hover,
.ab-navbar .navbar-nav .nav-link.active {
    color: var(--ab-navy);
    background: var(--ab-sky-soft);
}

.ab-navbar .dropdown-menu {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    padding: .5rem;
    min-width: 260px;
}

.ab-navbar .dropdown-item {
    border-radius: 8px;
    padding: .55rem .8rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ab-ink);
    white-space: normal;
}

.ab-navbar .dropdown-item:hover,
.ab-navbar .dropdown-item:focus {
    background: var(--ab-sky-soft);
    color: var(--ab-navy);
}

.ab-navbar .dropdown-item small {
    display: block;
    font-weight: 400;
    color: var(--ab-muted);
    font-size: .78rem;
}

.navbar-toggler {
    border: 1px solid var(--ab-line);
    padding: .4rem .6rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* -------------------------------------------------------- campus subnav -- */

.ab-subnav {
    background: #fff;
    border-bottom: 1px solid var(--ab-line);
    top: 76px;
    z-index: 1010;
}

.ab-subnav-scroll {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.ab-subnav-link {
    flex: 0 0 auto;
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-family: var(--ab-font-head);
    font-weight: 500;
    font-size: .89rem;
    line-height: 1.3;
    color: var(--ab-body);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ab-subnav-link:hover {
    background: var(--ab-sky-soft);
    color: var(--ab-navy);
    border-color: var(--ab-line);
}

.ab-subnav-link.is-active {
    background: var(--ab-navy);
    border-color: var(--ab-navy);
    color: #fff;
    font-weight: 600;
}

.ab-subnav-link.is-active:hover { color: #fff; }

@media (max-width: 575.98px) {
    .ab-subnav { top: 68px; }
    .ab-subnav-link { padding: .45rem .85rem; font-size: .85rem; }
}

/* ---------------------------------------------------------------- hero --- */

.ab-hero {
    position: relative;
    background: var(--ab-navy-dark);
    color: #fff;
    overflow: hidden;
}

/* Fixed height rather than a minimum, so a two-line and a three-line heading
   produce identically sized slides and the band never jumps. */
.ab-hero .carousel-item {
    min-height: 560px;
}

@media (min-width: 768px) {
    .ab-hero .carousel-item {
        height: clamp(560px, 64vh, 660px);
        min-height: 0;
    }
}

.ab-hero .carousel-item.active,
.ab-hero .carousel-item-next,
.ab-hero .carousel-item-prev {
    display: flex;
    align-items: center;
}

.ab-hero .carousel-item > .container { width: 100%; }

.ab-hero-media {
    position: absolute;
    inset: 0;
}

.ab-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 16, 80, .93) 0%, rgba(11, 16, 80, .82) 42%, rgba(19, 28, 116, .55) 100%);
}

.ab-hero-body {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    max-width: 760px;
}

.ab-hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.ab-hero p {
    color: rgba(255, 255, 255, .85);
    font-size: 1.1rem;
    max-width: 620px;
}

.ab-hero .carousel-indicators {
    margin-bottom: 1.6rem;
}

.ab-hero .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    border: 0;
    background: rgba(255, 255, 255, .4);
    opacity: 1;
}

.ab-hero .carousel-indicators .active {
    background: var(--ab-sky);
    width: 46px;
}

/* The attribution pill and the slide eyebrow share one row and are centred
   against each other. */
.ab-hero-intro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem 1.15rem;
    margin-bottom: 1.2rem;
}

.ab-hero-intro .ab-hero-trust,
.ab-hero-intro .ab-eyebrow {
    margin-bottom: 0;
}

.ab-hero-trust {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .95rem .4rem .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .9);
}

.ab-hero-trust img { height: 30px; }

/* -------------------------------------------------------- quick actions -- */

.ab-quickbar {
    margin-top: -2.5rem;
    position: relative;
    z-index: 4;
}

.ab-quickbar-inner {
    background: #fff;
    border-radius: var(--ab-radius-lg);
    box-shadow: var(--ab-shadow);
    padding: .6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
}

.ab-quick {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .95rem 1rem;
    border-radius: var(--ab-radius);
    transition: background .18s ease, transform .18s ease;
}

.ab-quick:hover {
    background: var(--ab-sky-soft);
    transform: translateY(-2px);
}

.ab-quick-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ab-sky-soft);
    color: var(--ab-navy);
    font-size: 1.25rem;
}

.ab-quick:hover .ab-quick-icon {
    background: var(--ab-navy);
    color: #fff;
}

.ab-quick strong {
    display: block;
    font-family: var(--ab-font-head);
    font-size: .95rem;
    color: var(--ab-ink);
    line-height: 1.3;
}

.ab-quick span {
    font-size: .8rem;
    color: var(--ab-muted);
}

@media (max-width: 991.98px) {
    /* Below the lg breakpoint the bar no longer overlaps the hero, so it needs
       real breathing room above it instead of a negative offset. */
    .ab-quickbar { margin-top: 2.5rem; }
    .ab-quickbar-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .ab-quickbar-inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- cards --- */

.ab-card {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ab-shadow);
    border-color: transparent;
}

.ab-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ab-sky-soft);
}

/* Direct child only: the branded placeholder nests its crest inside a span
   and must keep its own intrinsic size. */
.ab-card-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ab-card:hover .ab-card-media > img {
    transform: scale(1.05);
}

.ab-card-body {
    padding: 1.4rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ab-card-title {
    font-family: var(--ab-font-head);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--ab-ink);
    margin: 0;
}

.ab-card-title a { color: inherit; }
.ab-card-title a:hover { color: var(--ab-navy); }

.ab-card-text {
    font-size: .93rem;
    color: var(--ab-body);
    margin: 0;
}

.ab-card-foot {
    margin-top: auto;
    padding-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .84rem;
    color: var(--ab-muted);
    border-top: 1px solid var(--ab-line);
}

.ab-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .9rem;
    font-size: .82rem;
    color: var(--ab-muted);
}

.ab-meta .bi { color: var(--ab-navy-soft); }

/* --------------------------------------------------------------- chips --- */

.ab-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    font-family: var(--ab-font-head);
    letter-spacing: .02em;
    background: var(--ab-sky-soft);
    color: var(--ab-navy);
    text-transform: uppercase;
}

.ab-chip-red { background: #fdeceb; color: var(--ab-red-dark); }
.ab-chip-gold { background: #fbf2dd; color: #8b6410; }
.ab-chip-green { background: #e6f4ee; color: var(--ab-green); }
.ab-chip-solid { background: var(--ab-navy); color: #fff; }

.ab-card-media .ab-chip {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(4px);
}

/* -------------------------------------------------------- campus cards --- */

.ab-campus-card .ab-card-media { aspect-ratio: 16 / 11; }

.ab-campus-contact {
    display: grid;
    gap: .4rem;
    font-size: .88rem;
    color: var(--ab-body);
}

.ab-campus-contact span {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
}

.ab-campus-contact .bi {
    color: var(--ab-navy-soft);
    margin-top: .18rem;
}

/* ---------------------------------------------------------------- stats -- */

.ab-stats {
    background: var(--ab-navy);
    color: #fff;
}

.ab-stat {
    text-align: center;
    padding: 1rem .5rem;
}

.ab-stat-value {
    font-family: var(--ab-font-head);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
}

.ab-stat-value small {
    font-size: .5em;
    color: var(--ab-sky);
    margin-left: .1em;
}

.ab-stat-label {
    margin-top: .5rem;
    font-size: .88rem;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .02em;
}

/* -------------------------------------------------------------- values --- */

.ab-value {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--ab-radius);
    background: #fff;
    border: 1px solid var(--ab-line);
    height: 100%;
    transition: box-shadow .22s ease, transform .22s ease;
}

.ab-value:hover {
    transform: translateY(-3px);
    box-shadow: var(--ab-shadow);
}

.ab-value-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: var(--ab-sky-soft);
    color: var(--ab-navy);
}

.ab-value h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.ab-value p {
    font-size: .92rem;
    margin: 0;
}

/* ------------------------------------------------------------- notices --- */

.ab-notice {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--ab-radius);
    background: #fff;
    border: 1px solid var(--ab-line);
    border-left: 4px solid var(--ab-navy);
    transition: box-shadow .2s ease;
}

.ab-notice:hover { box-shadow: var(--ab-shadow-sm); }
.ab-notice-danger { border-left-color: var(--ab-red); }
.ab-notice-warning { border-left-color: var(--ab-gold); }

.ab-notice-date {
    flex: 0 0 auto;
    width: 58px;
    text-align: center;
    border-radius: 10px;
    background: var(--ab-sky-soft);
    padding: .5rem .2rem;
    line-height: 1.1;
}

.ab-notice-date strong {
    display: block;
    font-family: var(--ab-font-head);
    font-size: 1.25rem;
    color: var(--ab-navy);
}

.ab-notice-date span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ab-muted);
}

/* --------------------------------------------------------------- event --- */

.ab-event {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.2rem;
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-line);
    background: #fff;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}

.ab-event:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow); }

.ab-event-date {
    flex: 0 0 auto;
    width: 72px;
    border-radius: 12px;
    background: var(--ab-navy);
    color: #fff;
    text-align: center;
    padding: .7rem .3rem;
}

.ab-event-date .d {
    font-family: var(--ab-font-head);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.ab-event-date .m {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ab-sky);
}

.ab-event-date .y {
    font-size: .68rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------- leadership --- */

.ab-person {
    text-align: center;
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    padding: 1.6rem 1.1rem;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}

.ab-person:hover { transform: translateY(-4px); box-shadow: var(--ab-shadow); }

.ab-person-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto .95rem;
    display: block;
    border: 3px solid var(--ab-sky-soft);
    background: var(--ab-sky-soft);
}

.ab-person-photo-placeholder {
    display: grid;
    place-items: center;
    font-family: var(--ab-font-head);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ab-navy);
}

.ab-person h3 {
    font-size: 1rem;
    margin-bottom: .2rem;
}

.ab-person .role {
    font-size: .84rem;
    color: var(--ab-red);
    font-weight: 600;
    font-family: var(--ab-font-head);
}

.ab-person p {
    font-size: .87rem;
    margin-top: .6rem;
    color: var(--ab-body);
}

/* ------------------------------------------------------------- message --- */

.ab-message {
    background: linear-gradient(135deg, var(--ab-navy-dark), var(--ab-navy));
    color: #fff;
    border-radius: var(--ab-radius-lg);
    overflow: hidden;
}

.ab-message blockquote {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
    position: relative;
    padding-left: 2.4rem;
    margin: 0;
}

.ab-message blockquote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -1.1rem;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    color: var(--ab-sky);
    opacity: .45;
    line-height: 1;
}

.ab-message-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ab-radius);
}

/* --------------------------------------------------------- testimonial --- */

.ab-quote {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    padding: 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ab-quote .bi-quote {
    font-size: 1.8rem;
    color: var(--ab-sky);
    line-height: 1;
}

.ab-quote p {
    font-size: .95rem;
    color: var(--ab-body);
    flex: 1 1 auto;
}

.ab-quote-author {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-top: .9rem;
    border-top: 1px solid var(--ab-line);
}

.ab-quote-author img,
.ab-quote-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ab-sky-soft);
    display: grid;
    place-items: center;
    font-family: var(--ab-font-head);
    font-weight: 600;
    color: var(--ab-navy);
    flex: 0 0 auto;
}

.ab-quote-author strong {
    display: block;
    font-size: .92rem;
    color: var(--ab-ink);
    font-family: var(--ab-font-head);
}

.ab-quote-author span {
    font-size: .8rem;
    color: var(--ab-muted);
}

/* -------------------------------------------------------------- banner --- */

.ab-cta {
    background: linear-gradient(120deg, var(--ab-navy-dark) 0%, var(--ab-navy) 55%, var(--ab-navy-soft) 100%);
    color: #fff;
    border-radius: var(--ab-radius-lg);
    padding: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
    position: relative;
    overflow: hidden;
}

.ab-cta h2 { color: #fff; }
.ab-cta p { color: rgba(255, 255, 255, .82); }

/* -------------------------------------------------------------- gallery -- */

.ab-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .9rem;
}

.ab-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    background: var(--ab-sky-soft);
    display: block;
}

.ab-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.ab-gallery-item:hover img { transform: scale(1.07); }

.ab-gallery-item::after {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(11, 16, 80, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.ab-gallery-item:hover::after { opacity: 1; }

.ab-album-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.2rem .9rem .8rem;
    background: linear-gradient(to top, rgba(11, 16, 80, .88), transparent);
    color: #fff;
    font-size: .86rem;
}

/* --------------------------------------------------------------- pages --- */

.ab-pagehead {
    background: var(--ab-navy-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(2.6rem, 2rem + 3vw, 4.5rem) 0 clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem);
}

.ab-pagehead::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 220, 247, .22), transparent 68%);
}

.ab-pagehead h1 { color: #fff; margin-bottom: .6rem; position: relative; z-index: 2; }
.ab-pagehead p { color: rgba(255, 255, 255, .8); max-width: 700px; position: relative; z-index: 2; }

.ab-breadcrumb {
    position: relative;
    z-index: 2;
    font-size: .84rem;
    margin-bottom: 1rem;
}

.ab-breadcrumb .breadcrumb {
    margin: 0;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
}

.ab-breadcrumb a { color: var(--ab-sky); }
.ab-breadcrumb a:hover { color: #fff; }
.ab-breadcrumb .breadcrumb-item.active { color: rgba(255, 255, 255, .7); }
.ab-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* --------------------------------------------------------------- prose --- */

.ab-prose {
    font-size: 1.02rem;
    color: var(--ab-body);
}

.ab-prose h2 {
    font-size: 1.55rem;
    margin: 2.2rem 0 .9rem;
}

.ab-prose h3 {
    font-size: 1.22rem;
    margin: 1.8rem 0 .7rem;
}

.ab-prose h2:first-child,
.ab-prose h3:first-child { margin-top: 0; }

.ab-prose p { margin-bottom: 1.1rem; }

.ab-prose ul, .ab-prose ol {
    margin-bottom: 1.2rem;
    padding-left: 1.15rem;
}

.ab-prose li { margin-bottom: .5rem; }

.ab-prose blockquote {
    border-left: 3px solid var(--ab-sky);
    background: var(--ab-sky-soft);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--ab-radius-sm) var(--ab-radius-sm) 0;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.ab-prose img {
    border-radius: var(--ab-radius);
    margin: 1.4rem 0;
}

/* ------------------------------------------------------------- sidebar --- */

.ab-side {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    padding: 1.4rem;
}

.ab-side + .ab-side { margin-top: 1.25rem; }

.ab-side h3 {
    font-size: 1.02rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--ab-line);
}

.ab-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-side-list li + li {
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px dashed var(--ab-line);
}

.ab-side-list a {
    font-weight: 500;
    font-size: .93rem;
    color: var(--ab-ink);
    display: block;
}

.ab-side-list a:hover { color: var(--ab-navy); }

.ab-side-list small {
    display: block;
    color: var(--ab-muted);
    font-size: .78rem;
    margin-top: .1rem;
}

.ab-side-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .8rem;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ab-ink);
}

.ab-side-nav a:hover { background: var(--ab-sky-soft); color: var(--ab-navy); }
.ab-side-nav a.active { background: var(--ab-navy); color: #fff; }

/* --------------------------------------------------------------- forms --- */

.ab-form-card {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-lg);
    padding: clamp(1.4rem, 1rem + 1.5vw, 2.4rem);
    box-shadow: var(--ab-shadow-sm);
}

.form-label {
    font-family: var(--ab-font-head);
    font-weight: 500;
    font-size: .88rem;
    color: var(--ab-ink);
    margin-bottom: .35rem;
}

.form-label .req { color: var(--ab-red); }

.form-control, .form-select {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-sm);
    padding: .68rem .9rem;
    font-size: .95rem;
    color: var(--ab-ink);
    background-color: #fdfdff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ab-navy-soft);
    box-shadow: 0 0 0 3px rgba(19, 28, 116, .1);
    background-color: #fff;
}

.form-text { font-size: .8rem; color: var(--ab-muted); }

.form-check-input:checked {
    background-color: var(--ab-navy);
    border-color: var(--ab-navy);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(19, 28, 116, .12);
}

.ab-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.ab-fieldset-title {
    font-family: var(--ab-font-head);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ab-navy);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ab-line);
    margin-bottom: 1.2rem;
}

/* -------------------------------------------------------------- filters -- */

.ab-filters {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    padding: 1.1rem;
    margin-bottom: 2rem;
}

.ab-filters .form-select,
.ab-filters .form-control { font-size: .9rem; padding: .55rem .8rem; }

/* ------------------------------------------------------------ timeline --- */

.ab-timeline {
    position: relative;
    padding-left: 2.2rem;
}

.ab-timeline::before {
    content: '';
    position: absolute;
    left: .52rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--ab-line);
}

.ab-timeline-item { position: relative; padding-bottom: 1.8rem; }
.ab-timeline-item:last-child { padding-bottom: 0; }

.ab-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: .4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--ab-navy);
}

.ab-timeline-year {
    font-family: var(--ab-font-head);
    font-weight: 700;
    color: var(--ab-red);
    font-size: .88rem;
    letter-spacing: .04em;
}

.ab-timeline-item h3 { font-size: 1.05rem; margin: .2rem 0 .35rem; }
.ab-timeline-item p { font-size: .93rem; margin: 0; }

/* ---------------------------------------------------------------- table -- */

.ab-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .93rem;
}

.ab-table th {
    background: var(--ab-sky-soft);
    font-family: var(--ab-font-head);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ab-navy);
    padding: .8rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.ab-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--ab-line);
    color: var(--ab-body);
    vertical-align: middle;
}

.ab-table tr:last-child td { border-bottom: 0; }
.ab-table tbody tr:hover td { background: #fafbfe; }

.ab-table-wrap {
    background: #fff;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    overflow-x: auto;
}

/* ------------------------------------------------------------ timings ---- */

.ab-timings {
    display: grid;
    gap: .1rem;
}

.ab-timings div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--ab-line);
    font-size: .92rem;
}

.ab-timings div:last-child { border-bottom: 0; }

.ab-timings dt {
    color: var(--ab-muted);
    font-weight: 500;
    flex: 0 0 auto;
    max-width: 42%;
}

.ab-timings dd {
    margin: 0;
    font-weight: 600;
    color: var(--ab-ink);
    text-align: right;
    flex: 1 1 auto;
}

/* --------------------------------------------------------------- empty --- */

.ab-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--ab-canvas);
    border: 1px dashed var(--ab-line);
    border-radius: var(--ab-radius);
}

.ab-empty .bi {
    font-size: 2.4rem;
    color: var(--ab-sky);
    display: block;
    margin-bottom: .8rem;
}

.ab-empty h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.ab-empty p { font-size: .93rem; margin: 0; color: var(--ab-muted); }

/* ---------------------------------------------------------- pagination --- */

.pagination { --bs-pagination-color: var(--ab-navy); gap: .3rem; }

.page-link {
    border-radius: 9px !important;
    border: 1px solid var(--ab-line);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem .85rem;
}

.page-item.active .page-link {
    background: var(--ab-navy);
    border-color: var(--ab-navy);
}

.page-link:focus { box-shadow: 0 0 0 3px rgba(19, 28, 116, .12); }

/* -------------------------------------------------------------- footer --- */

.ab-footer {
    background: var(--ab-navy-dark);
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.ab-footer h4 {
    color: #fff;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: 1.15rem;
    font-weight: 600;
}

.ab-footer a { color: rgba(255, 255, 255, .72); }
.ab-footer a:hover { color: var(--ab-sky); }

.ab-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
}

.ab-footer-brand img {
    height: 58px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.ab-footer-contact {
    display: grid;
    gap: .7rem;
}

.ab-footer-contact span {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.ab-footer-contact .bi { color: var(--ab-sky); margin-top: .2rem; }

.ab-social {
    display: flex;
    gap: .55rem;
    margin-top: 1.2rem;
}

.ab-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1rem;
    transition: background .2s ease, transform .2s ease;
}

.ab-social a:hover {
    background: var(--ab-red);
    color: #fff;
    transform: translateY(-2px);
}

.ab-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.ab-footer-bottom a { color: rgba(255, 255, 255, .68); }

/* ------------------------------------------------------- floating help --- */

.ab-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ab-floating a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: var(--ab-shadow);
    transition: transform .2s ease;
}

.ab-floating a:hover { transform: scale(1.07); color: #fff; }
.ab-floating .wa { background: #25d366; }
.ab-floating .call { background: var(--ab-navy); }

/* ---------------------------------------------------------- utilities ---- */

.ab-ratio-square { aspect-ratio: 1; object-fit: cover; }

.ab-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ab-navy);
    color: #fff;
    padding: .8rem 1.4rem;
    z-index: 2000;
    border-radius: 0 0 var(--ab-radius-sm) 0;
}

.ab-skip:focus {
    left: 0;
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(19, 28, 116, .45);
    outline-offset: 2px;
}

@media print {
    .ab-navbar, .ab-footer, .ab-floating, .ab-notice-modal, .ab-topbar, .ab-quickbar { display: none !important; }
}

/* ----------------------------------------------------------- mobile ------ */

@media (max-width: 575.98px) {
    .ab-brand img { height: 46px; }

    /* Indicators are enough on a touch screen, and the arrows sit on top of
       the heading at this width. */
    .ab-hero .carousel-control-prev,
    .ab-hero .carousel-control-next { display: none; }

    .ab-hero .carousel-item { min-height: 520px; }
    .ab-hero-trust { font-size: .72rem; padding: .3rem .75rem .3rem .35rem; gap: .45rem; }
    .ab-hero-trust img { height: 22px; }
    .ab-hero-intro { gap: .5rem .75rem; margin-bottom: .9rem; }
    .ab-hero .ab-eyebrow { font-size: .7rem; letter-spacing: .1em; }
    .ab-hero .ab-eyebrow::before { width: 18px; }
    .ab-hero h1 { font-size: 1.85rem; }
    .ab-hero p { font-size: .97rem; }
    .ab-hero .btn-lg { padding: .75rem 1.5rem; font-size: .95rem; }

    .ab-section-head { margin-bottom: 1.75rem; }
    .ab-form-card { padding: 1.25rem; }
    .ab-side { padding: 1.15rem; }

    .ab-event { flex-direction: column; gap: .8rem; }
    .ab-event-date { width: 100%; display: flex; align-items: baseline; gap: .5rem; justify-content: center; }
    .ab-event-date .d { font-size: 1.25rem; }

    .ab-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }

    .ab-floating a { width: 46px; height: 46px; font-size: 1.15rem; }
}

@media (max-width: 767.98px) {
    /* Long tables scroll inside their own container rather than pushing the
       page sideways. */
    .ab-table-wrap { -webkit-overflow-scrolling: touch; }
    .ab-table th, .ab-table td { white-space: nowrap; }
    .ab-table td:first-child { white-space: normal; min-width: 220px; }
}

/* --------------------------------------------------------------- credit -- */

/* Sits with the copyright line, and drops to its own line on a phone so the
   two never collide. */
.ab-built-by {
    display: inline-block;
    margin-left: .5rem;
    padding-left: .6rem;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.ab-built-by a { font-weight: 600; }

@media (max-width: 575.98px) {
    .ab-built-by {
        display: block;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        margin-top: .3rem;
    }
}

/* ------------------------------------------------------- back to top ----- */

.ab-floating .top {
    background: var(--ab-navy-dark);
    border: 0;
    color: #fff;
    cursor: pointer;
}

.ab-floating .top[hidden] { display: none; }

.ab-floating .top:hover { background: var(--ab-navy); color: #fff; }

/* --------------------------------------------------- attached files --- */
/* Documents hanging off a news post, an event or a notice. A circular is
   usually the reason a parent opened the page at all, so the list is given the
   weight of a proper block rather than a link in the running text. */
.ab-files {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-sky-soft);
}

.ab-files-title {
    font-family: var(--ab-font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ab-navy);
    margin: 0 0 .85rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ab-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.ab-file {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem .9rem;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-sm);
    color: var(--ab-ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ab-file:hover,
.ab-file:focus-visible {
    border-color: var(--ab-navy-soft);
    box-shadow: var(--ab-shadow-sm);
    transform: translateY(-1px);
    color: var(--ab-navy);
}

.ab-file > .bi:first-child { font-size: 1.5rem; color: var(--ab-navy); flex: 0 0 auto; }

.ab-file-name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .94rem; }

.ab-file-meta {
    display: block;
    font-weight: 400;
    font-size: .78rem;
    color: var(--ab-muted);
    margin-top: .1rem;
}

.ab-file-go { flex: 0 0 auto; color: var(--ab-muted); font-size: 1.05rem; }
.ab-file:hover .ab-file-go { color: var(--ab-red); }

@media (prefers-reduced-motion: reduce) {
    .ab-file { transition: none; }
    .ab-file:hover { transform: none; }
}
