/* =====================================================================
   Cantonment Website — Army Theme
   Olive #4B5320 · Gold #C8A951 · Dark #1C1F14 · Light #F5F6F2
   Class names & --bsd-* tokens are kept so the admin Appearance
   controls (primary/accent/header/footer colours) keep working.
   ===================================================================== */

:root {
    --bsd-green:        #6B7A3A;   /* olive (light) */
    --bsd-green-dark:   #4B5320;   /* army olive */
    --bsd-amber:        #C8A951;   /* gold accent */
    --bsd-amber-dark:   #9E7F2B;
    --bsd-dark:         #1C1F14;
    --bsd-light:        #F5F6F2;
    --bsd-text:         #1e2117;
    --bsd-muted:        #5f665a;
    --bsd-border:       rgba(75, 83, 32, 0.18);

    --bsd-green-soft:   rgba(75, 83, 32, 0.10);
    --bsd-amber-soft:   rgba(200, 169, 81, 0.16);

    --bsd-radius:       14px;
    --bsd-radius-sm:    10px;
    --bsd-shadow:       0 6px 22px rgba(11, 20, 8, 0.08);
    --bsd-shadow-lg:    0 16px 40px rgba(11, 20, 8, 0.16);
    --bsd-transition:   .28s cubic-bezier(.4, 0, .2, 1);

    --bs-primary:       var(--bsd-green-dark);
}

/* ---- Base + typography ---------------------------------------------- */
html { scroll-behavior: smooth; }
html[lang="bn"] body, .bn-text {
    font-family: "Noto Sans Bengali", "SolaimanLipi", "Hind Siliguri", system-ui, sans-serif;
    line-height: 1.9;
}
html[lang="en"] body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    letter-spacing: -0.01em;
}
body { background: var(--bsd-light); color: var(--bsd-text); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
a { color: var(--bsd-green-dark); text-decoration: none; transition: color var(--bsd-transition); }
a:hover { color: var(--bsd-amber-dark); }
img { max-width: 100%; }
::selection { background: var(--bsd-green); color: #fff; }

/* Decorative brand progress bar pinned to the very top */
body::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 2000;
    background: linear-gradient(90deg, var(--bsd-green), var(--bsd-amber));
}

/* ---- Top bar -------------------------------------------------------- */
.bsd-topbar { background: var(--bsd-dark); color: #e9efe6; font-size: .85rem; }
.bsd-topbar a { color: var(--bsd-green); text-decoration: none; }
.bsd-topbar i { color: var(--bsd-amber); }
.lang-switch a { font-weight: 700; opacity: .85; }
.lang-switch a.active, .lang-switch a:hover { color: var(--bsd-green); opacity: 1; }

/* ---- Navbar --------------------------------------------------------- */
.bsd-navbar {
    background: var(--bsd-dark);
    border-bottom: 3px solid var(--bsd-amber);
    transition: padding var(--bsd-transition), box-shadow var(--bsd-transition);
    padding-top: .6rem; padding-bottom: .6rem;
}
.bsd-navbar.scrolled { padding-top: .25rem; padding-bottom: .25rem; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.bsd-navbar .navbar-brand { color: #fff; font-weight: 800; }
.bsd-navbar .nav-link {
    color: #e9efe6 !important; font-weight: 600; position: relative; margin: 0 .1rem;
    padding-left: .85rem !important; padding-right: .85rem !important;
}
.bsd-navbar .nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
    background: var(--bsd-green); transform: scaleX(0); transform-origin: left; transition: transform var(--bsd-transition);
}
.bsd-navbar .nav-link:hover::after, .bsd-navbar .nav-link.active::after { transform: scaleX(1); }
.bsd-navbar .nav-link:hover, .bsd-navbar .nav-link.active { color: var(--bsd-green) !important; }
.bsd-navbar .dropdown-menu {
    border: 0; border-top: 3px solid var(--bsd-green); border-radius: 0 0 var(--bsd-radius-sm) var(--bsd-radius-sm);
    box-shadow: var(--bsd-shadow-lg); padding: .4rem; margin-top: .4rem; animation: ddIn .22s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bsd-navbar .dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .8rem; transition: background var(--bsd-transition); }
.bsd-navbar .dropdown-item:hover { background: var(--bsd-green-soft); color: var(--bsd-green-dark); }
.navbar-brand-text { font-size: 1.4rem; font-weight: 800; line-height: 1.3; }

/* ---- Buttons -------------------------------------------------------- */
.btn { border-radius: var(--bsd-radius-sm); font-weight: 700; transition: all var(--bsd-transition); }
.btn-bsd {
    background: linear-gradient(135deg, var(--bsd-green), var(--bsd-green-dark));
    border: 0; color: #fff; box-shadow: 0 4px 14px rgba(75, 83, 32, .35);
}
.btn-bsd:hover { color: #1C1F14; background: linear-gradient(135deg, var(--bsd-amber), var(--bsd-amber-dark)); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75, 83, 32, .5); }
.btn-bsd-amber {
    background: linear-gradient(135deg, var(--bsd-amber), var(--bsd-amber-dark));
    border: 0; color: #fff; box-shadow: 0 4px 14px rgba(200, 169, 81, .35);
}
.btn-bsd-amber:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200, 169, 81, .5); }
.btn-outline-bsd { border: 2px solid var(--bsd-green-dark); color: var(--bsd-green-dark); background: transparent; }
.btn-outline-bsd:hover { background: var(--bsd-green-dark); color: #fff; }

/* ---- Section + titles ---------------------------------------------- */
.section { padding: 4rem 0; }
.section-light { background: #fff; }
.section-title { position: relative; font-weight: 800; padding-bottom: .65rem; margin-bottom: 1.75rem; display: inline-block; }
.section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px;
    background: linear-gradient(90deg, var(--bsd-green), var(--bsd-amber)); border-radius: 3px;
}
.section-title.text-center { display: block; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---- Hero slider (professional) ------------------------------------ */
.hero-slider .carousel-item { height: 600px; overflow: hidden; }
.hero-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-slider .hero-overlay {
    position: absolute; inset: 0; display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(9,20,8,.90) 0%, rgba(9,20,8,.55) 45%, rgba(9,20,8,.15) 100%);
}
/* bottom scrim keeps indicators/controls legible over bright photos */
.hero-slider .hero-overlay::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(9,20,8,.55) 100%);
}
/* faint dotted texture for depth (matches the redesigned cards) */
.hero-slider .hero-overlay::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .10;
    background-image: radial-gradient(circle at 15% 30%, #fff 1px, transparent 1.5px); background-size: 22px 22px;
}
.hero-slider .hero-caption {
    position: relative; z-index: 2; max-width: 680px; color: #fff;
    padding-left: 1.25rem; border-left: 4px solid var(--bsd-green);
}
.hero-slider .hero-kicker {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    padding: .4rem .95rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #eafff0;
    background: rgba(107,122,58,.16); border: 1px solid rgba(107,122,58,.45); backdrop-filter: blur(4px);
}
.hero-slider .hero-kicker i { color: var(--bsd-green); }
.hero-slider .hero-caption h2 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 0 0 .8rem; text-shadow: 0 3px 20px rgba(0,0,0,.4); }
.hero-slider .hero-caption .lead { font-size: clamp(1.02rem, 2vw, 1.3rem); opacity: .94; margin: 0 0 1.6rem; max-width: 40ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-slider .hero-caption .accent { color: var(--bsd-green); }
.hero-slider .hero-caption .btn-bsd { box-shadow: 0 10px 26px rgba(75,83,32,.35); }
.hero-slider .hero-caption .btn-bsd i { transition: transform var(--bsd-transition); }
.hero-slider .hero-caption .btn-bsd:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(75,83,32,.45); }
.hero-slider .hero-caption .btn-bsd:hover i { transform: translateX(4px); }
.carousel-item.active .hero-caption > * { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.carousel-item.active .hero-caption > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-caption > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-caption > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* pill indicators */
.hero-slider .carousel-indicators { margin-bottom: 1.4rem; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 11px; height: 11px; border-radius: 999px; border: 0; opacity: 1;
    background: rgba(255,255,255,.5); transition: all var(--bsd-transition);
}
.hero-slider .carousel-indicators .active { width: 30px; background: var(--bsd-green); }

/* circular nav controls */
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; opacity: 1; }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon {
    width: 46px; height: 46px; border-radius: 50%; background-color: rgba(255,255,255,.14);
    background-size: 42% 42%; backdrop-filter: blur(4px); transition: all var(--bsd-transition);
}
.hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider .carousel-control-next:hover .carousel-control-next-icon { background-color: var(--bsd-green); }

/* animated scroll cue */
.hero-slider .hero-scroll {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 3;
    color: #fff; opacity: .85; font-size: 1.4rem; text-decoration: none; animation: heroBob 1.8s ease-in-out infinite;
}
.hero-slider .hero-scroll:hover { color: var(--bsd-green); opacity: 1; }
@keyframes heroBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

@media (max-width: 991px){ .hero-slider .carousel-item { height: 460px; } .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; } }
@media (max-width: 575px){ .hero-slider .carousel-item { height: 390px; } .hero-slider .hero-caption { border-left-width: 3px; padding-left: .9rem; } .hero-slider .hero-scroll { display: none; } }
@media (prefers-reduced-motion: reduce){ .hero-slider .carousel-item img { animation: none; } .hero-slider .hero-scroll { animation: none; } .carousel-item.active .hero-caption > * { animation: none; } }

/* ---- Page banner --------------------------------------------------- */
/* A branded gradient (green → deep forest → dark) so the banner never blends
   into the solid-black navbar above it. A thin light hairline at the very top
   guarantees visual separation even when the header background is pure black. */
.page-banner {
    background:
        radial-gradient(1200px 380px at 12% -40%, rgba(107,122,58,.20), transparent 60%),
        linear-gradient(115deg, var(--bsd-green-dark) 0%, #2f3516 42%, var(--bsd-dark) 100%);
    background-size: cover; background-position: center; color: #fff;
    padding: 3.25rem 0; border-top: 1px solid rgba(255,255,255,.14);
    border-bottom: 3px solid var(--bsd-amber); position: relative; overflow: hidden;
}
/* Subtle diagonal texture for depth */
.page-banner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
    font-weight: 800; margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
/* When a page sets its own banner image, dim it but keep the brand tint. */
.page-banner.has-image {
    background-position: center;
}
.page-banner.has-image::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(47,53,22,.84), rgba(11,11,11,.78));
}
.page-banner h1 { position: relative; z-index: 2; }

.breadcrumb-bar { background: #eeefe8; border-bottom: 1px solid var(--bsd-border); }
.breadcrumb-bar .breadcrumb { margin: 0; padding: .65rem 0; }
.breadcrumb-bar a { color: var(--bsd-green-dark); }

/* ---- Cards --------------------------------------------------------- */
.content-card {
    position: relative;
    border: 1px solid var(--bsd-border); border-radius: 18px; overflow: hidden;
    background: #fff; height: 100%; display: flex; flex-direction: column;
    transition: transform var(--bsd-transition), box-shadow var(--bsd-transition), border-color var(--bsd-transition);
    box-shadow: var(--bsd-shadow);
}
.content-card:hover { transform: translateY(-6px); box-shadow: var(--bsd-shadow-lg); border-color: transparent; }
.content-card .thumb { height: 200px; object-fit: cover; width: 100%; background: #e9efe6; display: block; transition: transform .55s ease; }
.content-card:hover .thumb { transform: scale(1.07); }
/* soft bottom gradient over the image for depth + chip legibility */
.content-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 200px; z-index: 1; pointer-events: none;
    background: linear-gradient(transparent 62%, rgba(9,20,8,.34));
}
.content-card .card-body { padding: 1.05rem 1.1rem 1.2rem; position: relative; z-index: 2; display: flex; flex-direction: column; gap: .35rem; flex: 1 1 auto; }
.content-card .meta { font-size: .8rem; color: var(--bsd-muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.content-card .meta i { color: var(--bsd-amber-dark); }
/* even, two-line titles that highlight on hover */
.content-card .card-body .fw-semibold {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.32; min-height: 2.64em; font-weight: 700; margin: 0; transition: color var(--bsd-transition);
}
.content-card:hover .card-body .fw-semibold { color: var(--bsd-green-dark); }
.content-card .card-body p.small { margin: 0; }
/* read-more affordance */
.content-card .read-more {
    margin-top: auto; padding-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--bsd-green-dark);
    display: inline-flex; align-items: center; gap: .35rem; opacity: .85;
    transition: gap var(--bsd-transition), opacity var(--bsd-transition);
}
.content-card .read-more i { transition: transform var(--bsd-transition); }
.content-card:hover .read-more { gap: .55rem; opacity: 1; }
.card-bsd { border: 1px solid var(--bsd-border); border-radius: var(--bsd-radius); box-shadow: var(--bsd-shadow); }
.badge-bsd { background: var(--bsd-amber); color: #fff; }

/* ---- Forms (brand focus) + search bar ------------------------------ */
.form-control, .form-select { border-radius: var(--bsd-radius-sm); border-color: var(--bsd-border); }
.form-control:focus, .form-select:focus {
    border-color: var(--bsd-green-dark); box-shadow: 0 0 0 .2rem var(--bsd-green-soft);
}
.input-group .form-control { border-right: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---- Friendly empty state ------------------------------------------ */
.empty-state {
    text-align: center; padding: 3rem 1rem; color: var(--bsd-muted);
    border: 1px dashed var(--bsd-border); border-radius: 16px; background: #fff;
}
.empty-state i { font-size: 2.4rem; color: var(--bsd-amber); display: block; margin-bottom: .6rem; opacity: .85; }
.empty-state p { margin: 0; font-weight: 600; }

/* ---- Leadership / member cards ------------------------------------- */
.leader-card { text-align: center; background: #fff; }
.leader-card .photo, .member-card img, .member-card .ph {
    width: 110px; height: 110px; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--bsd-amber); margin: 0 auto .75rem;
    display: flex; align-items: center; justify-content: center; background: #eef2ec; color: #9bb18f;
    transition: transform var(--bsd-transition), border-color var(--bsd-transition);
}
/* Anchor portrait crops to the top so heads are not cut off by circular frames. */
.leader-card .photo, .member-card img { object-position: top center; }
/* Reserve two lines for every leader name so all card content stays aligned. */
.leader-card h6.leader-name {
    width: 100% !important;
    height: 1.6rem !important;
    min-height: 1.6rem !important;
    margin: 0 !important;
    padding: 0 .15rem !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
    line-height: 1.6rem !important;
    font-size: 1rem;
    font-weight: 700;
}
.leader-card:hover .photo, .member-card:hover img { transform: scale(1.05); border-color: var(--bsd-green); }
.member-card { text-align: center; border: 1px solid var(--bsd-border); border-radius: var(--bsd-radius); padding: 1.4rem .8rem; height: 100%; transition: transform var(--bsd-transition), box-shadow var(--bsd-transition); }
.member-card:hover { transform: translateY(-5px); box-shadow: var(--bsd-shadow-lg); }

/* ---- Notice board -------------------------------------------------- */
.notice-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed var(--bsd-border); transition: background var(--bsd-transition); }
.notice-item:hover { background: var(--bsd-green-soft); }
.notice-item .date-chip {
    flex: 0 0 auto; background: linear-gradient(135deg, var(--bsd-green-dark), var(--bsd-amber-dark));
    color: #fff; border-radius: 10px; padding: .4rem .65rem; text-align: center; min-width: 60px;
}
.notice-item .date-chip .d { font-weight: 800; font-size: 1.15rem; display: block; line-height: 1; }
.notice-item .date-chip .m { font-size: .7rem; text-transform: uppercase; }

/* ---- Quick links --------------------------------------------------- */
.quick-link {
    display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem; background: #fff;
    border: 1px solid var(--bsd-border); border-radius: 10px; color: var(--bsd-text); font-weight: 600;
    transition: all var(--bsd-transition);
}
.quick-link:hover { background: var(--bsd-green); color: #fff; transform: translateY(-2px); }

/* ---- Gallery ------------------------------------------------------- */
.gallery-grid a { display: block; overflow: hidden; border-radius: 10px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; transition: transform var(--bsd-transition), filter var(--bsd-transition); }
.gallery-grid a:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* ---- Downloads list ------------------------------------------------ */
.list-group-item-action:hover { background: var(--bsd-green-soft); }

/* ---- Article body -------------------------------------------------- */
.article-body { line-height: 1.95; font-size: 1.05rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--bsd-radius-sm); }
.article-body h2, .article-body h3 { margin-top: 1.5rem; }

/* ---- Contact ------------------------------------------------------- */
.contact-info i { color: var(--bsd-green-dark); width: 22px; }

/* ---- Footer -------------------------------------------------------- */
.bsd-footer { background: var(--bsd-dark); color: #cdd6c8; }
.bsd-footer h5, .bsd-footer h6 { color: #fff; }
.bsd-footer a { color: #cdd6c8; }
.bsd-footer a:hover { color: var(--bsd-green); padding-left: 3px; }
.bsd-footer .footer-bottom { background: #000; border-top: 1px solid var(--bsd-amber); }
.bsd-footer i { color: var(--bsd-amber); }
.bsd-footer .btn-outline-light:hover { background: var(--bsd-green); border-color: var(--bsd-green); color: #fff; }

/* ---- Scroll reveal (driven by main.js) ----------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero-slider .carousel-item img { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---- Back-to-top (injected by main.js) ----------------------------- */
#backToTop {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 46px; height: 46px;
    border: 0; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer;
    background: linear-gradient(135deg, var(--bsd-green), var(--bsd-green-dark));
    box-shadow: var(--bsd-shadow-lg); opacity: 0; pointer-events: none;
    transform: translateY(12px); transition: all var(--bsd-transition);
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: none; }
#backToTop:hover { transform: translateY(-3px); }

/* ---- Utility ------------------------------------------------------- */
.text-bsd { color: var(--bsd-green-dark) !important; }
.bg-bsd-soft { background: var(--bsd-green-soft) !important; }
.shadow-bsd { box-shadow: var(--bsd-shadow) !important; }

/* =====================================================================
   MOBILE REFINEMENTS  (header, navbar, footer, banners)
   ===================================================================== */
@media (max-width: 991.98px) {
    /* Top bar: stack neatly and stay centered on small screens */
    .bsd-topbar { font-size: .78rem; }
    .bsd-topbar .container { gap: .15rem .75rem; justify-content: center; text-align: center; }
    .bsd-topbar .container > div { width: 100%; }
    .bsd-topbar .lang-switch { width: auto; }

    /* Navbar: give the collapsed menu its own panel so links are easy to tap */
    .bsd-navbar .navbar-collapse {
        margin-top: .6rem; padding: .5rem .25rem;
        border-top: 1px solid rgba(255,255,255,.10);
        max-height: 78vh; overflow-y: auto;
    }
    .bsd-navbar .navbar-nav { gap: .1rem; }
    .bsd-navbar .nav-link { padding: .6rem .25rem !important; }
    .bsd-navbar .nav-link::after { display: none; }   /* underline animation off on mobile */
    .bsd-navbar .dropdown-menu {
        background: rgba(255,255,255,.04); border-top: 0; border-radius: 10px;
        margin: .15rem 0 .35rem .5rem; padding: .25rem;
    }
    .bsd-navbar .dropdown-item { color: #e9efe6; }
    .bsd-navbar .dropdown-item:hover, .bsd-navbar .dropdown-item:focus { color: var(--bsd-green-dark); }
    .navbar-toggler { padding: .3rem .55rem; border-color: rgba(255,255,255,.4); }
    .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bsd-green-soft); }

    /* Show the brand text on phones too (was hidden), but compact */
    .navbar-brand-text { font-size: .95rem !important; line-height: 1.15 !important; white-space: normal !important; }

    /* Banner + sections: tighter vertical rhythm on phones */
    .page-banner { padding: 2.1rem 0; }
    .section { padding: 2.4rem 0; }
}

@media (max-width: 767.98px) {
    /* Footer: center everything and add breathing room between blocks */
    .bsd-footer { text-align: center; }
    .bsd-footer .row > [class*="col-"] { margin-bottom: 1.25rem; }
    .bsd-footer .d-flex.align-items-center { justify-content: center; }
    .bsd-footer .row .col-6 { text-align: left; }
    .bsd-footer .d-flex.gap-2 { justify-content: center; }
    .bsd-footer a:hover { padding-left: 0; }   /* avoid layout shift on centered links */

    .bsd-topbar i { font-size: .8rem; }
    .navbar-brand img { height: 42px !important; }
}

@media (max-width: 575.98px) {
    .navbar-brand-text { font-size: .82rem !important; }
    .page-banner h1 { font-size: 1.45rem; }
}

/* ---- Rich-editor output on the public site ------------------------- */
/* Quill stores alignment as ql-align-* classes; map them so images and
   text align correctly on pages that don't load the Quill stylesheet. */
.ql-align-center { text-align: center; }
.ql-align-right  { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-align-center img, .ql-align-right img { display: inline-block; }

/* ---- DRC three-line cards ------------------------------------------ */
.drc-leader-grid { grid-template-columns: repeat(3, 1fr) !important; }
.drc-leader-grid .leader-card { display: flex; flex-direction: column; align-items: center; }
.drc-leader-grid .leader-card .drc-fixed-role {
    display: block; width: 100%; min-height: 0;
    margin: .25rem 0 0; color: var(--bsd-muted);
}
.drc-leader-grid .leader-card .drc-department {
    display: block; width: 100%; min-height: 2.2em;
    margin: .2rem 0 .5rem;
    color: var(--bsd-muted); font-size: .85rem; line-height: 1.35;
}
.drc-leader-grid .leader-card .mob { margin-top: auto; }
@media (max-width: 991.98px) { .drc-leader-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 575.98px)  { .drc-leader-grid { grid-template-columns: 1fr !important; } }

/* =====================================================================
   ARMY THEME ADDITIONS (Phase 1+2)
   ===================================================================== */

/* ---- Topbar tagline ------------------------------------------------ */
.topbar-tag { color: var(--bsd-amber); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.topbar-tag i { font-size: .7rem; }

/* ---- Gold rule under the navbar ------------------------------------- */
.bsd-navbar { border-bottom: 3px solid var(--bsd-amber); }

/* ---- Static hero (no slider) --------------------------------------- */
.hero-static {
    position: relative; color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0;
    background:
        radial-gradient(900px 420px at 85% 20%, rgba(200,169,81,.22), transparent 60%),
        linear-gradient(115deg, var(--bsd-green-dark) 0%, #2f3516 55%, var(--bsd-dark) 100%);
    overflow: hidden;
}
.hero-static::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
}
.hero-static .container { position: relative; z-index: 1; }
.hero-static .hero-caption { max-width: 720px; }
.hero-static h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-static .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; letter-spacing: .06em; }
.hero-static .hero-kicker {
    display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
    padding: .35rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(200,169,81,.18); color: var(--bsd-amber); border: 1px solid rgba(200,169,81,.45);
}

/* ---- Page banner subtitle ------------------------------------------ */
.page-banner .banner-sub { position: relative; z-index: 2; margin: .5rem 0 0; color: rgba(255,255,255,.82); max-width: 720px; }

/* ---- Eyebrow label -------------------------------------------------- */
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bsd-amber-dark); margin-bottom: .35rem; }

/* ---- Services tiles ------------------------------------------------- */
.svc-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.svc-home-head .section-title { margin-bottom: .35rem; }
.svc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.svc-grid-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .svc-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .svc-grid-home, .svc-grid { grid-template-columns: 1fr; } }

.svc-tile {
    position: relative; display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--bsd-border); border-radius: var(--bsd-radius);
    padding: 1.25rem 1.2rem 1.1rem; color: var(--bsd-text); box-shadow: var(--bsd-shadow);
    transition: transform var(--bsd-transition), box-shadow var(--bsd-transition), border-color var(--bsd-transition);
    overflow: hidden;
}
.svc-tile::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--bsd-green-dark), var(--bsd-amber));
    transform: scaleY(0); transform-origin: top; transition: transform var(--bsd-transition);
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--bsd-shadow-lg); border-color: rgba(200,169,81,.55); color: var(--bsd-text); }
.svc-tile:hover::before { transform: scaleY(1); }
.svc-ico {
    flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--bsd-green-soft), var(--bsd-amber-soft));
    color: var(--bsd-green-dark); font-size: 1.6rem; transition: all var(--bsd-transition);
}
.svc-ico img { width: 38px; height: 38px; object-fit: contain; }
.svc-tile:hover .svc-ico { background: var(--bsd-green-dark); color: #fff; transform: rotate(-4deg) scale(1.05); }
.svc-body { display: flex; flex-direction: column; min-width: 0; }
.svc-title { font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.svc-desc { font-size: .86rem; color: var(--bsd-muted); margin-top: .3rem; line-height: 1.55; }
.svc-cta { margin-top: .75rem; font-size: .82rem; font-weight: 800; color: var(--bsd-green-dark); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.svc-cta i { transition: transform var(--bsd-transition); }
.svc-tile:hover .svc-cta i:first-of-type { transform: translateX(4px); }
.svc-cta small { font-weight: 500; color: var(--bsd-muted); margin-left: .35rem; }

/* services page */
.svc-group { margin-bottom: 2.75rem; }
.svc-group:last-child { margin-bottom: 0; }
.svc-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-jump a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--bsd-border); background: #fff; font-size: .85rem; font-weight: 700; color: var(--bsd-green-dark); }
.svc-jump a:hover { background: var(--bsd-green-dark); color: #fff; border-color: var(--bsd-green-dark); }

/* staggered reveal for homepage tiles */
.svc-grid-home .svc-tile.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---- Footer heading gold accent ------------------------------------ */
.bsd-footer h6 { position: relative; padding-bottom: .45rem; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.bsd-footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--bsd-amber); }
.bsd-footer a { color: #cdd6c8; }
.bsd-footer a:hover { color: var(--bsd-amber); }

/* =====================================================================
   PHASE 3 — Notices, emergency bar, important contacts
   ===================================================================== */
/* Emergency notice bar under the navbar */
.emg-bar { background: #a8231d; color: #fff; font-size: .9rem; padding: .5rem 0; border-bottom: 3px solid #7d1712; }
.emg-bar-label { flex: 0 0 auto; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.emg-bar-label i { animation: emgBlink 1.4s ease-in-out infinite; }
@keyframes emgBlink { 50% { opacity: .35; } }
.emg-bar-items { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; min-width: 0; }
.emg-bar-items a { color: #fff; font-weight: 600; }
.emg-bar-items a:hover { text-decoration: underline; color: #fff; }

/* Notice category chips */
.ntc-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ntc-chip { padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--bsd-border); background: #fff; font-size: .85rem; font-weight: 700; color: var(--bsd-green-dark); }
.ntc-chip span { margin-left: .3rem; font-size: .74rem; opacity: .7; }
.ntc-chip:hover, .ntc-chip.active { background: var(--bsd-green-dark); color: #fff; border-color: var(--bsd-green-dark); }
.notice-item.is-pinned { background: rgba(200,169,81,.07); border-left: 3px solid var(--bsd-amber); padding-left: .6rem; }
.notice-item.is-emergency .date-chip { background: #a8231d; }
.ntc-body-emergency { border-left: 4px solid #a8231d; padding-left: 1rem; }
@media print { .bsd-topbar, .bsd-navbar, .emg-bar, .breadcrumb-bar, .bsd-footer, .ntc-actions, .back-to-top, .page-banner::after { display: none !important; } .page-banner { background: none !important; color: #000 !important; padding: 0 !important; } body::before { display: none; } }

/* Emergency panel (contacts page) */
.emg-panel { border: 2px solid #a8231d; border-radius: var(--bsd-radius); background: #fff; overflow: hidden; }
.emg-head { background: #a8231d; color: #fff; font-weight: 800; padding: .6rem 1rem; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.emg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; }
.emg-item { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-right: 1px solid #f1d5d3; border-bottom: 1px solid #f1d5d3; color: var(--bsd-text); }
.emg-item:hover { background: #fff5f4; color: var(--bsd-text); }
.emg-dept { font-size: .82rem; color: var(--bsd-muted); font-weight: 600; }
.emg-phone { font-size: 1.1rem; font-weight: 800; color: #a8231d; }
/* mini version on the contact page */
.emg-mini { border: 1px solid #f1d5d3; border-radius: 10px; overflow: hidden; }
.emg-mini-head { background: #a8231d; color: #fff; font-weight: 800; font-size: .78rem; padding: .4rem .8rem; text-transform: uppercase; letter-spacing: .04em; }
.emg-mini-item { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .8rem; border-bottom: 1px solid #f7e4e2; color: var(--bsd-text); font-size: .9rem; }
.emg-mini-item strong { color: #a8231d; }
.emg-mini-item:hover { background: #fff5f4; }

/* Contacts table */
.ct-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bsd-muted); background: #f3f4ee; border-bottom: 2px solid var(--bsd-border); }
.ct-table td { vertical-align: middle; }
.ct-row.is-emergency td:first-child { border-left: 3px solid #a8231d; }
.ct-phone { font-weight: 700; color: var(--bsd-green-dark); }



/* =====================================================================
   POLISH — navbar density, services head, leadership messages
   ===================================================================== */
/* Navbar: keep every item on one line; tighten on medium desktops */
.bsd-navbar .navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
    .bsd-navbar .navbar-nav .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .9rem; }
    .bsd-navbar .nav-caret { width: 18px; padding: 0; }
    .navbar-brand-text { font-size: 1.05rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bsd-navbar .navbar-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .88rem; }
    .bsd-navbar .navbar-brand img { height: 42px; }
    .navbar-brand-text { font-size: .95rem; }
}
/* Mega menu: show only on hover/open, start hidden even before JS */
.bsd-navbar .nav-item.mega > .dropdown-menu { display: none; }
@media (min-width: 992px) {
    .bsd-navbar .nav-item.mega > .dropdown-menu { display: block; }
}
.bsd-navbar .nav-item.mega.open > .dropdown-menu { display: block; }

/* Services section header: eyebrow above title */
.svc-home-head .eyebrow { display: block; }
.svc-home-head .section-title { display: inline-block; }
.svc-grid-home .svc-tile.reveal { transition: opacity .6s ease, transform .6s ease, box-shadow var(--bsd-transition), border-color var(--bsd-transition); }
.svc-grid-home .svc-tile.reveal.in-view:hover { transform: translateY(-6px); }

/* ---- Leadership messages (redesign) -------------------------------- */
.msg-section { position: relative; overflow: hidden; }
.msg-section::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 300px at 8% 0%, var(--bsd-amber-soft), transparent 60%), radial-gradient(600px 300px at 95% 100%, var(--bsd-green-soft), transparent 60%);
}
.msg-section .container { position: relative; }
.msg-list { display: grid; gap: 1.5rem; }
.msg-feature .msg-list { grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }
.msg-grid .msg-list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199.98px) { .msg-grid .msg-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px)  { .msg-grid .msg-list { grid-template-columns: 1fr; } }

.msg-card {
    display: grid; gap: 1.75rem; background: #fff; border: 1px solid var(--bsd-border); border-radius: 22px;
    padding: 2rem; box-shadow: var(--bsd-shadow); position: relative; overflow: hidden;
    transition: transform var(--bsd-transition), box-shadow var(--bsd-transition), opacity .7s ease;
}
.msg-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--bsd-green-dark), var(--bsd-amber)); }
.msg-card:hover { box-shadow: var(--bsd-shadow-lg); }
/* feature layout: portrait left, text right; alternate sides for the 2nd card */
.msg-feature .msg-card { grid-template-columns: 260px 1fr; align-items: center; }
.msg-feature .msg-card:nth-child(2n+2) { grid-template-columns: 1fr 260px; }
.msg-feature .msg-card:nth-child(2n+2) .msg-portrait { order: 2; }
@media (max-width: 767.98px) {
    .msg-feature .msg-card, .msg-feature .msg-card:nth-child(2n+2) { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
    .msg-feature .msg-card:nth-child(2n+2) .msg-portrait { order: 0; }
    .msg-feature .msg-portrait { margin: 0 auto; }
}
/* grid layout: vertical card */
.msg-grid .msg-card { grid-template-columns: 1fr; text-align: center; padding: 1.75rem 1.5rem; }
.msg-grid .msg-portrait { margin: 0 auto; }

.msg-portrait { position: relative; width: 240px; max-width: 100%; }
.msg-grid .msg-portrait { width: 180px; }
.msg-frame {
    position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #eef0e6, #dfe4d3);
    box-shadow: 0 14px 34px rgba(28,31,20,.18);
}
.msg-frame::before { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 3px solid var(--bsd-amber); z-index: 2; pointer-events: none; }
.msg-frame::after  { content: ""; position: absolute; inset: 10px; border-radius: 12px; border: 1px solid rgba(200,169,81,.55); z-index: 2; pointer-events: none; }
.msg-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s ease; }
.msg-card:hover .msg-frame img { transform: scale(1.04); }
.msg-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: #a9b493; }
.msg-role {
    position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; z-index: 3;
    padding: .38rem 1rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: var(--bsd-green-dark); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(75,83,32,.3);
}
.msg-content { position: relative; min-width: 0; }
.msg-quote { display: block; font-size: 2.6rem; line-height: 1; color: var(--bsd-amber); opacity: .8; margin-bottom: .2rem; }
.msg-grid .msg-quote { font-size: 2rem; margin-top: 1.2rem; }
.msg-text { font-size: 1.06rem; line-height: 1.85; color: #2a2e24; margin: 0 0 1.25rem; }
.msg-grid .msg-text { font-size: .95rem; }
.msg-rule { width: 48px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--bsd-green-dark), var(--bsd-amber)); margin-bottom: .7rem; }
.msg-grid .msg-rule, .msg-feature .msg-card:nth-child(2n+2) .msg-rule { margin-left: auto; margin-right: auto; }
.msg-feature .msg-card:nth-child(2n+2) .msg-content { text-align: right; }
@media (max-width: 767.98px) { .msg-feature .msg-card:nth-child(2n+2) .msg-content { text-align: center; } .msg-feature .msg-rule { margin-left: auto; margin-right: auto; } }
.msg-name { font-size: 1.25rem; font-weight: 800; margin: 0 0 .15rem; }
.msg-desig { font-size: .9rem; color: var(--bsd-muted); font-weight: 600; margin: 0 0 1rem; }
.msg-desig .msg-sep { margin: 0 .45rem; color: var(--bsd-amber-dark); }
.msg-desig .msg-org { color: var(--bsd-amber-dark); }
.msg-more { border-radius: 999px; padding: .4rem 1.1rem; font-size: .84rem; }
.msg-card.reveal { transition-delay: calc(var(--i, 0) * 120ms); }
.msg-modal .modal-content { border-radius: 18px; border: 0; }
.msg-modal .modal-header { gap: 1rem; border-bottom: 3px solid var(--bsd-amber); }
.msg-modal-photo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; object-position: top; border: 2px solid var(--bsd-amber); }
.msg-modal .modal-body { line-height: 1.9; }


/* =====================================================================
   POLISH 2 — nav hover contrast · rich service tiles
   ===================================================================== */
/* Nav hover/active: gold on the dark header (olive was invisible) */
.bsd-navbar .nav-link:hover, .bsd-navbar .nav-link.active,
.bsd-navbar .nav-item.dropdown.open > .nav-link, .bsd-navbar .nav-item.dropdown:hover > .nav-link { color: var(--bsd-amber) !important; }
.bsd-navbar .nav-link::after { background: var(--bsd-amber) !important; }
.bsd-navbar .nav-caret:hover, .bsd-navbar .nav-item.dropdown.open > .nav-caret { color: var(--bsd-amber); opacity: 1; }
.bsd-topbar a:hover, .lang-switch a.active, .lang-switch a:hover { color: var(--bsd-amber) !important; }
.bsd-navbar .dropdown-menu { border-top-color: var(--bsd-amber); }

/* Rich services section */
.svc-home-rich {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 400px at 100% 0%, rgba(200,169,81,.16), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(75,83,32,.10), transparent 60%),
        var(--bsd-light);
}
.svc-home-rich::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: repeating-linear-gradient(135deg, rgba(75,83,32,.06) 0 1px, transparent 1px 28px);
}
.svc-home-rich .container { position: relative; }
.svc-grid-home { gap: 1.35rem; }
.svc-tile-rich {
    flex-direction: column; gap: .55rem; padding: 1.35rem 1.35rem 1.25rem; min-height: 250px;
    border: 1px solid rgba(75,83,32,.14); border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfbf7 100%);
}
.svc-tile-rich::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 5px; transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg, var(--bsd-green-dark), var(--bsd-amber)); }
.svc-tile-rich:hover::before { transform: scaleX(1); }
.svc-tile-rich:hover { border-color: rgba(200,169,81,.7); box-shadow: 0 22px 44px rgba(28,31,20,.16); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; margin-bottom: .35rem; }
.svc-tile-rich .svc-ico {
    flex: 0 0 62px; width: 62px; height: 62px; border-radius: 16px; font-size: 1.75rem;
    background: linear-gradient(135deg, var(--bsd-green-dark), #6B7A3A); color: #fff;
    box-shadow: 0 10px 22px rgba(75,83,32,.28), inset 0 0 0 2px rgba(200,169,81,.55);
}
.svc-tile-rich:hover .svc-ico { background: linear-gradient(135deg, var(--bsd-amber-dark), var(--bsd-amber)); color: #1C1F14; transform: rotate(-4deg) scale(1.06); }
.svc-num { font-weight: 800; font-size: 1.9rem; line-height: 1; color: rgba(75,83,32,.10); letter-spacing: -.03em; transition: color var(--bsd-transition); }
.svc-tile-rich:hover .svc-num { color: rgba(200,169,81,.55); }
.svc-cat { display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bsd-amber-dark);
    background: var(--bsd-amber-soft); padding: .22rem .6rem; border-radius: 999px; }
.svc-tile-rich .svc-title { font-size: 1.12rem; line-height: 1.3; }
.svc-tile-rich .svc-desc { margin-top: .1rem; flex: 1 1 auto; }
.svc-tile-rich .svc-cta { margin-top: .9rem; }
.svc-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 800;
    color: var(--bsd-green-dark); background: var(--bsd-green-soft); transition: all var(--bsd-transition); }
.svc-tile-rich:hover .svc-btn { background: var(--bsd-green-dark); color: #fff; }
.svc-tile-rich:hover .svc-btn i { transform: translate(2px, -2px); }
.svc-foot { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.5rem; font-size: .84rem; color: var(--bsd-muted); }
.svc-foot i { color: var(--bsd-green-dark); }
@media (max-width: 575.98px) { .svc-tile-rich { min-height: 0; } }
/* Services page tiles get the same look */
.svc-page .svc-tile { border-radius: 18px; }
.svc-page .svc-ico { background: linear-gradient(135deg, var(--bsd-green-dark), #6B7A3A); color: #fff; box-shadow: inset 0 0 0 2px rgba(200,169,81,.55); }

/* =====================================================================
   PHASE 6 — search, ticker, stats, calendar, share, a11y
   ===================================================================== */
/* Navbar search button */
.nav-search-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(200,169,81,.45); background: transparent; color: #fff; display: inline-grid; place-items: center; margin-left: .4rem; transition: all var(--bsd-transition); }
.nav-search-btn:hover, .nav-search-btn:focus-visible { background: var(--bsd-amber); color: var(--bsd-dark); border-color: var(--bsd-amber); }
/* Overlay */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(20,22,14,.92); backdrop-filter: blur(6px); display: flex; align-items: flex-start; padding-top: 14vh; opacity: 0; transition: opacity .2s ease; }
.search-overlay.show { opacity: 1; }
.search-overlay .container { position: relative; max-width: 820px; }
.search-overlay-label { color: var(--bsd-amber); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; display: block; }
.search-overlay .form-control { border-radius: 14px; border: 2px solid var(--bsd-amber); font-size: 1.15rem; padding: .9rem 1.1rem; }
.search-overlay .btn { border-radius: 14px; padding-left: 1.4rem; padding-right: 1.4rem; }
.search-close { position: absolute; right: 12px; top: -64px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.1rem; }
.search-close:hover { background: #fff; color: var(--bsd-dark); }
.search-hints { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.search-hints a { color: #e6eadc; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.search-hints a:hover { background: var(--bsd-amber); color: var(--bsd-dark); border-color: var(--bsd-amber); }
/* Search page */
.search-hero { display: flex; gap: .5rem; max-width: 720px; position: relative; z-index: 2; }
.search-hero .form-control { border-radius: 12px; }
.search-side { display: flex; flex-direction: column; gap: .3rem; }
.search-side a { display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: 10px; color: var(--bsd-text); font-weight: 600; background: #fff; border: 1px solid var(--bsd-border); }
.search-side a span { margin-left: auto; font-size: .78rem; background: var(--bsd-green-soft); color: var(--bsd-green-dark); padding: .05rem .5rem; border-radius: 999px; }
.search-side a:hover { border-color: var(--bsd-amber); }
.search-item { display: block; padding: 1rem 1.2rem; border-bottom: 1px solid var(--bsd-border); color: var(--bsd-text); }
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: var(--bsd-green-soft); color: var(--bsd-text); }
.search-title { font-weight: 700; color: var(--bsd-green-dark); }
.search-snippet { font-size: .9rem; color: var(--bsd-muted); margin-top: .2rem; }
.search-meta { font-size: .78rem; color: var(--bsd-muted); margin-top: .3rem; }
mark { background: rgba(200,169,81,.35); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* Notice ticker */
.ntc-ticker { background: #f3f1e6; border-bottom: 1px solid rgba(200,169,81,.35); font-size: .9rem; overflow: hidden; }
.ntc-ticker .container { gap: 0; }
.ntc-ticker-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; background: var(--bsd-green-dark); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem .9rem; position: relative; z-index: 1; }
.ntc-ticker-label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px; background: var(--bsd-green-dark); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ntc-ticker-label:hover { color: var(--bsd-amber); }
.ntc-ticker-track { flex: 1 1 auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); padding-left: 18px; }
.ntc-ticker-move { display: inline-flex; white-space: nowrap; animation: ntcScroll 45s linear infinite; }
.ntc-ticker-track:hover .ntc-ticker-move, .ntc-ticker-track:focus-within .ntc-ticker-move { animation-play-state: paused; }
.ntc-ticker-move a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.4rem; color: var(--bsd-text); font-weight: 600; }
.ntc-ticker-move a:hover { color: var(--bsd-green-dark); text-decoration: underline; }
.ntc-ticker-move small { color: var(--bsd-muted); font-weight: 500; }
.ntc-ticker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bsd-amber); flex: 0 0 auto; }
.ntc-ticker .dot-danger { background: #a8231d; } .ntc-ticker .dot-primary { background: #2a5bd7; } .ntc-ticker .dot-dark { background: #333; } .ntc-ticker .dot-info { background: #1f8aa8; } .ntc-ticker .dot-success { background: #3d8a3a; }
@keyframes ntcScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ntc-ticker-move { animation: none; } .ntc-ticker-track { overflow-x: auto; } }
@media (max-width: 575.98px) { .ntc-ticker-label span { display: none; } }

/* At a glance stats */
.home-stats { position: relative; z-index: 3; padding: 2rem 0 .5rem; }
.home-stats.after-hero { margin-top: -48px; padding-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(28,31,20,.16); border: 1px solid rgba(200,169,81,.35); overflow: hidden; }
.stats-grid.stats-3 { grid-template-columns: repeat(3, 1fr); } .stats-grid.stats-2 { grid-template-columns: repeat(2, 1fr); } .stats-grid.stats-5 { grid-template-columns: repeat(5, 1fr); } .stats-grid.stats-6 { grid-template-columns: repeat(6, 1fr); }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.4rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--bsd-border); }
.stat-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--bsd-amber); background: linear-gradient(135deg, var(--bsd-green-dark), #6B7A3A); box-shadow: inset 0 0 0 2px rgba(200,169,81,.45); }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-val { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--bsd-dark); letter-spacing: -.01em; }
.stat-lbl { font-size: .82rem; color: var(--bsd-muted); font-weight: 600; }
@media (max-width: 991.98px) { .stats-grid, .stats-grid.stats-5, .stats-grid.stats-6 { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(odd)::before { display: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--bsd-border); } }
@media (max-width: 575.98px) { .home-stats.after-hero { margin-top: -28px; } .stat { padding: 1rem; gap: .7rem; } .stat-ico { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.1rem; } .stat-val { font-size: 1.3rem; } }

/* Events calendar */
.view-tabs .btn { border-radius: 999px !important; margin-left: .25rem; }
.cal-nav { display: flex; align-items: center; gap: .4rem; }
.cal-title { min-width: 150px; text-align: center; font-size: 1.1rem; }
.cal { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head div { padding: .6rem; text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--bsd-green-dark); }
.cal-head div.is-fri { background: #3a4119; color: var(--bsd-amber); }
.cal-cell { min-height: 108px; padding: .45rem; border-right: 1px solid var(--bsd-border); border-bottom: 1px solid var(--bsd-border); display: flex; flex-direction: column; gap: .25rem; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-empty { background: #fafaf6; }
.cal-cell.is-fri { background: #fbf8ee; }
.cal-day { font-size: .85rem; font-weight: 700; color: var(--bsd-muted); }
.cal-cell.is-today .cal-day { background: var(--bsd-amber); color: var(--bsd-dark); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; }
.cal-ev { display: block; font-size: .74rem; font-weight: 600; line-height: 1.25; padding: .2rem .4rem; border-radius: 6px; background: var(--bsd-green-soft); color: var(--bsd-green-dark); border-left: 3px solid var(--bsd-green-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: var(--bsd-green-dark); color: #fff; }
.cal-more { font-size: .72rem; color: var(--bsd-muted); }
.cal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.cal-list-item { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; background: #fff; border: 1px solid var(--bsd-border); border-radius: 12px; color: var(--bsd-text); }
.cal-list-item:hover { border-color: var(--bsd-amber); color: var(--bsd-text); }
@media (max-width: 767.98px) {
    .cal-cell { min-height: 64px; padding: .3rem; }
    .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--bsd-green-dark); }
    .cal-head div { font-size: .62rem; padding: .45rem .1rem; }
}

/* Share bar */
.share-bar { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.share-bar .btn { border-radius: 999px; border: 1px solid var(--bsd-border); }
.share-bar .btn:hover { background: var(--bsd-green-dark); color: #fff; }

/* Accessibility widget */
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 1050; }
.a11y-toggle { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bsd-amber); background: var(--bsd-green-dark); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); display: grid; place-items: center; }
.a11y-toggle:hover { background: var(--bsd-amber); color: var(--bsd-dark); }
.a11y-panel { position: absolute; left: 0; bottom: 56px; width: 250px; background: #fff; border-radius: 14px; padding: .9rem; box-shadow: 0 18px 44px rgba(0,0,0,.22); border: 1px solid var(--bsd-border); }
.a11y-title { font-weight: 800; margin-bottom: .6rem; color: var(--bsd-green-dark); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem 0; font-size: .88rem; }
html[data-fs="-1"] { font-size: 93.75%; }
html[data-fs="1"]  { font-size: 112.5%; }
html[data-fs="2"]  { font-size: 125%; }
html.a11y-contrast body { background: #fff !important; color: #000 !important; }
html.a11y-contrast .section-light, html.a11y-contrast .svc-home-rich, html.a11y-contrast .msg-section { background: #fff !important; }
html.a11y-contrast .text-muted, html.a11y-contrast .svc-desc, html.a11y-contrast .stat-lbl, html.a11y-contrast .msg-desig, html.a11y-contrast .search-snippet { color: #1a1a1a !important; }
html.a11y-contrast a:not(.btn):not(.nav-link):not(.svc-tile) { text-decoration: underline; }
html.a11y-contrast .bsd-navbar, html.a11y-contrast .bsd-topbar, html.a11y-contrast .bsd-footer { background: #000 !important; }
html.a11y-contrast .bsd-navbar .nav-link { color: #fff !important; }
html.a11y-contrast *:focus-visible { outline: 3px solid #ffbf00 !important; outline-offset: 2px; }
.back-to-top { right: 16px; }

/* =====================================================================
   Homepage contacts strip (chips, responsive) · message carousel · More menu
   ===================================================================== */
.home-emg { background: var(--bsd-dark); color: #fff; border-bottom: 1px solid rgba(200,169,81,.25); }
.home-emg-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.home-emg-title { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bsd-amber); }
.home-emg-list { flex: 1 1 auto; display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: .15rem 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.home-emg-list::-webkit-scrollbar { display: none; }
.home-emg-item { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #e9efe6; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.home-emg-item:hover { background: rgba(200,169,81,.18); border-color: rgba(200,169,81,.55); color: #fff; transform: translateY(-1px); }
.home-emg-item > i { font-size: .95rem; color: var(--bsd-amber); }
.home-emg-item.is-emergency > i { color: #ff9c94; }
.home-emg-txt { display: flex; flex-direction: column; line-height: 1.15; }
.home-emg-txt small { font-size: .68rem; color: #b8c0ad; white-space: nowrap; }
.home-emg-txt strong { font-size: .9rem; letter-spacing: .02em; white-space: nowrap; }
.home-emg-item.is-emergency .home-emg-txt strong { color: #ffb4ae; }
.home-emg-more { flex: 0 0 auto; color: var(--bsd-amber); font-weight: 700; font-size: .85rem; white-space: nowrap; }
@media (max-width: 767.98px) {
    .home-emg-inner { flex-wrap: wrap; gap: .5rem .75rem; }
    .home-emg-title span { display: inline; }
    .home-emg-more { margin-left: auto; }
    .home-emg-list { flex-basis: 100%; order: 3; }
}
@media (max-width: 575.98px) { .home-emg-item { padding: .3rem .7rem .3rem .55rem; } .home-emg-txt small { font-size: .64rem; } .home-emg-txt strong { font-size: .84rem; } }

/* Message carousel */
.msg-carousel { position: relative; max-width: 1040px; margin: 0 auto; }
.msg-carousel .carousel-inner { padding: 4px 4px 3.2rem; overflow: visible; }
.msg-carousel .carousel-item { transition: opacity .6s ease; }
.msg-carousel .carousel-item .msg-card { margin: 0; }
.msg-dots { position: absolute; bottom: .5rem; margin: 0; z-index: 3; }
.msg-dots [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(75,83,32,.3); opacity: 1; margin: 0 5px; transition: width .25s, background .25s; }
.msg-dots .active { width: 28px; border-radius: 6px; background: var(--bsd-green-dark); }
.msg-arrow { width: 46px; height: 46px; top: 50%; transform: translateY(-60%); border-radius: 50%; background: #fff; color: var(--bsd-green-dark); opacity: 1; border: 1px solid var(--bsd-border); box-shadow: 0 8px 22px rgba(28,31,20,.18); font-size: 1.1rem; transition: background .2s, color .2s; }
.msg-arrow:hover { background: var(--bsd-green-dark); color: #fff; opacity: 1; }
.carousel-control-prev.msg-arrow { left: -23px; } .carousel-control-next.msg-arrow { right: -23px; }
.msg-carousel:hover .msg-arrow { opacity: 1; }
@media (max-width: 1199.98px) { .carousel-control-prev.msg-arrow { left: 6px; } .carousel-control-next.msg-arrow { right: 6px; } }
@media (max-width: 767.98px) { .msg-arrow { display: none; } .msg-carousel .carousel-inner { padding-bottom: 2.6rem; } }
@media (prefers-reduced-motion: reduce) { .msg-carousel .carousel-item { transition: none; } }

/* "More" overflow menu */
.bsd-navbar .nav-more > .nav-link::after { content: none; }
.bsd-navbar .nav-item.dropdown.nav-more > .dropdown-menu { left: auto !important; right: 0; }
.bsd-navbar .nav-more .dropdown-item.active { background: var(--bsd-green-soft); color: var(--bsd-green-dark); font-weight: 700; }
