/* ==========================================================================
   sample2 — public website theme
   Built on Bootstrap 4.5.3 (public/packages) so every module page written for
   the themes keeps working. Colours come from sample1 (government blue, Nepal
   red, navy footer), adjusted so text meets WCAG 2.1 AA contrast.

   1. Tokens (light + dark)       6. Home page widgets
   2. Base & accessibility        7. Lists, tables, forms (module pages)
   3. Utility bar                 8. Footer
   4. Header                      9. Low bandwidth / reduced motion / print
   5. Navigation
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
    --s2-primary: #1f56ad;        /* sample1 #245ebb, darkened: 6.6:1 with white */
    --s2-primary-dark: #163f82;
    --s2-primary-soft: #eaf1fb;
    --s2-navy: #0b3550;           /* sample1 footer #003f5f */
    --s2-accent: #c8101a;         /* sample1 red #ee1d25, darkened: 6.1:1 with white */
    --s2-accent-bright: #ee1d25;  /* decoration only */
    --s2-bg: #f3f5f9;
    --s2-surface: #ffffff;
    --s2-surface-2: #f7f9fc;
    --s2-border: #dde3ec;
    --s2-text: #1b2533;
    --s2-muted: #566175;          /* 6.1:1 on white */
    --s2-link: #1f56ad;
    --s2-focus: #ffbf47;          /* GOV-style yellow focus ring */
    --s2-radius: .5rem;
    --s2-shadow: 0 1px 2px rgba(16, 33, 60, .06), 0 4px 14px rgba(16, 33, 60, .06);
    --s2-font: system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", "Noto Sans", "Mangal", "Kalimati", Roboto, Arial, sans-serif;
}
.dark-theme {
    --s2-primary: #3d7ae0;
    --s2-primary-dark: #2a5fb8;
    --s2-primary-soft: #1a2a40;
    --s2-navy: #08121c;
    --s2-accent: #d4232c;
    --s2-bg: #0f1620;
    --s2-surface: #17212d;
    --s2-surface-2: #1c2837;
    --s2-border: #2c3a4b;
    --s2-text: #e7ecf3;
    --s2-muted: #aab5c4;
    --s2-link: #8fb8ff;
    --s2-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
}

/* 2. Base & accessibility ------------------------------------------------- */
html { font-size: 100%; scroll-padding-top: 4.5rem; }
body.s2 {
    font-family: var(--s2-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--s2-text);
    background: var(--s2-bg);
    -webkit-font-smoothing: antialiased;
}
.s2 a:not(.btn) { color: var(--s2-link); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.s2 a:not(.btn):hover { color: var(--s2-primary-dark); }
.dark-theme.s2 a:not(.btn):hover { color: #b8d1ff; }
.s2 code { color: #a3154f; }
.dark-theme.s2 code { color: #ff8fc0; }
.s2 .bg-success { background-color: #1e7b3c !important; }   /* Bootstrap green fails AA with white text */
.dark-theme.s2 .album-img p { color: var(--s2-text) !important; } /* module markup sets color:black inline */
/* Roster form styles give legends a white background; keep them on the theme surface. */
.s2 .report-form fieldset legend { background: var(--s2-surface); }
/* The roster form's own styles paint white/near-white panels; follow the theme surface instead. */
.s2 .report-form, .s2 .report-form .form-content { background: var(--s2-surface); color: var(--s2-text); }
.s2 .report-form .form-title, .s2 .report-form .form-title * { color: var(--s2-text); }
.dark-theme.s2 .report-form label, .dark-theme.s2 .report-form legend, .dark-theme.s2 .report-form p,
.dark-theme.s2 .report-form h4, .dark-theme.s2 .report-form small, .dark-theme.s2 .report-form td, .dark-theme.s2 .report-form th { color: var(--s2-text); }
.s2 h1, .s2 h2, .s2 h3, .s2 h4, .s2 h5, .s2 h6 { color: var(--s2-text); font-weight: 700; line-height: 1.3; }
.s2 img { max-width: 100%; height: auto; }
.s2 hr { border-top-color: var(--s2-border); }
.s2 .text-muted { color: var(--s2-muted) !important; }
.hidden { display: none !important; }

/* Visible keyboard focus everywhere (WCAG 2.4.7). */
.s2 a:focus-visible, .s2 button:focus-visible, .s2 [tabindex]:focus-visible,
.s2 input:focus-visible, .s2 select:focus-visible, .s2 textarea:focus-visible, .s2 summary:focus-visible {
    outline: 3px solid var(--s2-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(11, 53, 80, .85);
}
.s2 .form-control:focus { border-color: var(--s2-primary); box-shadow: 0 0 0 .2rem rgba(31, 86, 173, .25); }

.s2-skip {
    position: absolute; left: .75rem; top: -4rem; z-index: 2000;
    background: var(--s2-focus); color: #111 !important; font-weight: 700;
    padding: .6rem 1rem; border-radius: 0 0 var(--s2-radius) var(--s2-radius); text-decoration: none;
}
.s2-skip:focus { top: 0; }
#main-content:focus { outline: none; }

.s2-container { max-width: 1240px; }

/* Buttons keep brand colours with AA contrast. */
.s2 .btn { border-radius: .375rem; font-weight: 600; }
.s2 .btn-primary { background: var(--s2-primary); border-color: var(--s2-primary); }
.s2 .btn-primary:hover { background: var(--s2-primary-dark); border-color: var(--s2-primary-dark); }
.dark-theme.s2 .btn-primary { background: var(--s2-primary-dark); border-color: var(--s2-primary-dark); }
.dark-theme.s2 .btn-primary:hover { background: #224e98; border-color: #224e98; }
.s2 .btn-success { background: #1e7b3c; border-color: #1e7b3c; }
.s2 .btn-danger { background: var(--s2-accent); border-color: var(--s2-accent); }
.s2 .btn-info { background: #0b6f86; border-color: #0b6f86; color: #fff; }
.s2 .btn-warning { color: #1b2533; }
.s2-btn-accent { background: var(--s2-accent); border-color: var(--s2-accent); color: #fff !important; }
.s2-btn-accent:hover { background: #a50d15; color: #fff !important; }
.s2-btn-outline { border: 1px solid var(--s2-primary); color: var(--s2-primary) !important; background: transparent; }
.s2-btn-outline:hover { background: var(--s2-primary); color: #fff !important; }
.dark-theme .s2-btn-outline { border-color: var(--s2-link); color: var(--s2-link) !important; }
.dark-theme .s2-btn-outline:hover { background: var(--s2-link); color: #0f1620 !important; }

/* 3. Utility bar ---------------------------------------------------------- */
.s2-utility { background: var(--s2-navy); color: #e8eef5; font-size: .8125rem; }
.s2-utility .s2-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 2.5rem; }
.s2-utility a, .s2-utility button { color: #fff !important; text-decoration: none; }
.s2-utility a:hover { text-decoration: underline; }
.s2-utility__date { display: flex; align-items: center; gap: .5rem; }
.s2-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.s2-tools > li { display: flex; align-items: center; }
.s2-tools > li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.s2-tools a, .s2-tools button {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 2.25rem; padding: .25rem .6rem;
    background: none; border: 0; font: inherit; line-height: 1.2; cursor: pointer; border-radius: .25rem;
}
.s2-tools a:hover, .s2-tools button:hover { background: rgba(255, 255, 255, .12); }
.s2-fontsize { display: inline-flex; }
.s2-fontsize button { min-width: 2.25rem; justify-content: center; font-weight: 700; }
.s2-fontsize button[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }

/* 4. Header --------------------------------------------------------------- */
.s2-header { background: var(--s2-surface); border-bottom: 1px solid var(--s2-border); }
.s2-header .s2-container { display: flex; align-items: center; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.s2-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none !important; color: inherit !important; min-width: 0; flex: 1 1 auto; }
.s2-brand__logo { width: 84px; height: auto; flex-shrink: 0; }
.s2-brand__text { min-width: 0; }
.s2-brand__gov { display: block; font-size: .875rem; color: var(--s2-muted); font-weight: 600; }
.s2-brand__name { display: block; margin: 0; font-size: 1.75rem; font-weight: 800; color: var(--s2-accent); line-height: 1.2; }
.dark-theme .s2-brand__name { color: #ff6b72; }
.s2-brand__address { display: block; font-size: .95rem; color: var(--s2-text); }
.s2-header__aside { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.s2-header__cta { display: flex; flex-direction: column; gap: .4rem; }
.s2-header__cta .btn { white-space: nowrap; }
.s2-flag { width: 64px; height: auto; }

@media (max-width: 991.98px) {
    .s2-brand__logo { width: 64px; }
    .s2-brand__name { font-size: 1.35rem; }
    .s2-header__cta { display: none; }
}
@media (max-width: 575.98px) {
    .s2-header .s2-container { padding-top: .5rem; padding-bottom: .5rem; }
    .s2-brand { gap: .6rem; }
    .s2-brand__logo { width: 52px; }
    .s2-brand__name { font-size: 1.1rem; }
    .s2-brand__gov, .s2-brand__address { font-size: .8125rem; }
    .s2-flag { width: 40px; }
}

/* 5. Navigation ----------------------------------------------------------- */
.s2-nav { background: var(--s2-primary); position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.dark-theme .s2-nav { background: #12305e; }
.s2-nav .navbar { padding: 0; }
.s2-nav .navbar-nav > .nav-item > .nav-link {
    color: #fff; font-weight: 600; font-size: .95rem;
    padding: .8rem .85rem; display: flex; align-items: center; gap: .35rem; min-height: 3rem;
}
.s2-nav .navbar-nav > .nav-item > .nav-link:hover,
.s2-nav .navbar-nav > .nav-item.show > .nav-link { background: rgba(0, 0, 0, .18); color: #fff; }
.s2-nav .navbar-nav > .nav-item.active > .nav-link { background: var(--s2-accent); color: #fff; }
.s2-nav .dropdown-menu {
    margin: 0; padding: .35rem 0; min-width: 14rem; max-width: 22rem;
    border: 1px solid var(--s2-border); border-top: 3px solid var(--s2-accent);
    border-radius: 0 0 var(--s2-radius) var(--s2-radius);
    background: var(--s2-surface); box-shadow: 0 .75rem 1.5rem rgba(16, 33, 60, .18);
}
.s2-nav .dropdown-menu > li { position: relative; }
.s2-nav .dropdown-item {
    color: var(--s2-text); white-space: normal; padding: .55rem 1rem; font-size: .9375rem; line-height: 1.4;
}
.s2-nav .dropdown-item:hover, .s2-nav .dropdown-item:focus,
.s2-nav .dropdown-submenu.show > .dropdown-item, .s2-nav .dropdown-submenu:hover > .dropdown-item {
    background: var(--s2-primary-soft); color: var(--s2-primary);
}
.dark-theme .s2-nav .dropdown-item:hover, .dark-theme .s2-nav .dropdown-item:focus,
.dark-theme .s2-nav .dropdown-submenu.show > .dropdown-item, .dark-theme .s2-nav .dropdown-submenu:hover > .dropdown-item { color: #fff; }
.s2-nav .dropdown-item.active, .s2-nav .dropdown-submenu.active > .dropdown-item {
    background: var(--s2-primary); color: #fff; font-weight: 600;
}
.s2-nav .dropdown-submenu > .dropdown-toggle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.s2-nav .dropdown-submenu > .submenu { display: none; }
.s2-nav .dropdown-submenu.show > .submenu { display: block; }

.s2-nav .navbar-dark .s2-nav-toggler {
    display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0;
    color: #fff; font-weight: 700; border: 1px solid rgba(255, 255, 255, .7); border-radius: .375rem; padding: .4rem .8rem; background: transparent;
}
@media (min-width: 992px) { .s2-nav .navbar-dark .s2-nav-toggler { display: none; } }
.s2-nav-toggler__bars { width: 1.15rem; height: 2px; background: #fff; position: relative; display: inline-block; }
.s2-nav-toggler__bars::before, .s2-nav-toggler__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: #fff; }
.s2-nav-toggler__bars::before { top: -6px; }
.s2-nav-toggler__bars::after { top: 6px; }

@media (min-width: 992px) {
    .s2-nav .navbar-nav { flex-wrap: wrap; }
    .s2-nav .nav-item.dropdown:hover > .dropdown-menu,
    .s2-nav .nav-item.dropdown:focus-within > .dropdown-menu { display: block; }
    .s2-nav .dropdown-menu.dropdown-menu-right { left: auto; right: 0; }
    .s2-nav .dropdown-submenu > .submenu { position: absolute; top: -.4rem; left: 100%; border-top-width: 1px; border-radius: var(--s2-radius); }
    .s2-nav .dropdown-submenu > .submenu.submenu-left { left: auto; right: 100%; }
    .s2-nav .dropdown-submenu:hover > .submenu, .s2-nav .dropdown-submenu:focus-within > .submenu { display: block; }
    .s2-nav .dropdown-submenu > .dropdown-toggle::after { border-top: .3em solid transparent; border-bottom: .3em solid transparent; border-left: .3em solid; border-right: 0; }
    .s2-nav .dropdown-submenu.opens-left > .dropdown-toggle::after { border-left: 0; border-right: .3em solid; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .s2-nav .navbar-nav > .nav-item > .nav-link { padding: .8rem .5rem; font-size: .875rem; }
}
@media (max-width: 991.98px) {
    .s2-nav { position: static; }
    .s2-nav .navbar-collapse { margin: 0 -15px; background: var(--s2-primary-dark); }
    .dark-theme .s2-nav .navbar-collapse { background: #0e2446; }
    .s2-nav .navbar-nav > .nav-item { border-top: 1px solid rgba(255, 255, 255, .14); }
    .s2-nav .navbar-nav > .nav-item > .nav-link { justify-content: space-between; padding: .7rem 1rem; font-size: 1rem; }
    .s2-nav .dropdown-toggle::after { transition: transform .15s; }
    .s2-nav .dropdown.show > .dropdown-toggle::after, .s2-nav .dropdown-submenu.show > .dropdown-toggle::after { transform: rotate(180deg); }
    .s2-nav .dropdown-menu {
        position: static; float: none; max-width: none; border: 0; border-radius: 0; box-shadow: none;
        padding: 0; background: rgba(0, 0, 0, .16);
    }
    .s2-nav .dropdown-item { color: #fff; padding: .65rem 1rem .65rem 2rem; min-height: 2.75rem; }
    .s2-nav .submenu .dropdown-item { padding-left: 3rem; }
    .s2-nav .submenu .submenu .dropdown-item { padding-left: 4rem; }
    .s2-nav .submenu .submenu .submenu .dropdown-item { padding-left: 5rem; }
    .s2-nav .dropdown-item:hover, .s2-nav .dropdown-item:focus,
    .s2-nav .dropdown-submenu.show > .dropdown-item { background: rgba(255, 255, 255, .1); color: #fff; }
    .s2-nav .dropdown-item.active, .s2-nav .dropdown-submenu.active > .dropdown-item { background: var(--s2-accent); }
}

/* Highlights ticker: pausable, and a plain list for reduced motion. */
.s2-ticker { display: flex; align-items: stretch; background: var(--s2-surface); border: 1px solid var(--s2-border); border-radius: var(--s2-radius); overflow: hidden; margin-top: 1rem; box-shadow: var(--s2-shadow); }
.s2-ticker__label { background: var(--s2-accent); color: #fff; font-weight: 700; padding: .55rem .9rem; display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.s2-ticker__viewport { flex: 1 1 auto; overflow: hidden; position: relative; display: flex; align-items: center; }
.s2-ticker__track { display: inline-flex; gap: 2.5rem; padding-left: 100%; white-space: nowrap; animation: s2-ticker 40s linear infinite; margin: 0; list-style: none; }
.s2-ticker__track li::before { content: "•"; color: var(--s2-accent); margin-right: .6rem; }
.s2-ticker.is-paused .s2-ticker__track, .s2-ticker:hover .s2-ticker__track, .s2-ticker:focus-within .s2-ticker__track { animation-play-state: paused; }
.s2-ticker__toggle { flex-shrink: 0; border: 0; border-left: 1px solid var(--s2-border); background: var(--s2-surface-2); color: var(--s2-text); padding: 0 .9rem; font-weight: 600; font-size: .875rem; }
@keyframes s2-ticker { to { transform: translateX(-100%); } }

/* Page body */
.s2-main { min-height: 50vh; padding-bottom: 2.5rem; }
.s2-main > .container, .s2-main .container { max-width: 1240px; }

/* Breadcrumb + article (all module pages use these) */
.s2 .breadcrumb {
    background: var(--s2-surface); border: 1px solid var(--s2-border); border-radius: var(--s2-radius);
    margin: 1.25rem 0 1rem; padding: .6rem 1rem; font-size: .9rem;
}
.s2 .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--s2-muted); }
.s2 .breadcrumb-item.active { color: var(--s2-muted); }
.s2 article {
    background: var(--s2-surface); border: 1px solid var(--s2-border); border-radius: var(--s2-radius);
    padding: 1.5rem; box-shadow: var(--s2-shadow); margin-bottom: 1.5rem; overflow-wrap: anywhere;
}
.s2 article > h4:first-child, .s2 article > h1:first-child { margin-bottom: .25rem; }
.s2 hr.underlined { width: 4rem; border: 0; border-top: 4px solid var(--s2-accent-bright); border-radius: 2px; margin: .5rem auto 1.25rem; opacity: 1; }
.s2 article table { max-width: 100%; }
.s2 fieldset { border: 1px solid var(--s2-border); border-radius: var(--s2-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.s2 legend { width: auto; padding: 0 .5rem; font-size: 1.1rem; font-weight: 700; color: var(--s2-primary); }
.dark-theme.s2 legend { color: var(--s2-link); }

/* Section heading used across widgets */
.s2-section { padding: 1.5rem 0 .5rem; }
.s2-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.s2-heading h2 { font-size: 1.3rem; margin: 0; padding-left: .75rem; border-left: 4px solid var(--s2-accent-bright); }
.s2-heading a { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.s2-card { background: var(--s2-surface); border: 1px solid var(--s2-border); border-radius: var(--s2-radius); box-shadow: var(--s2-shadow); }
.s2-card__head { padding: .85rem 1.1rem; border-bottom: 1px solid var(--s2-border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.s2-card__head h2, .s2-card__head h3 { font-size: 1.1rem; margin: 0; }
.s2-card__body { padding: 1rem 1.1rem; }

/* 6. Home page widgets ---------------------------------------------------- */
.s2-hero { padding-top: 1rem; }
.s2-slider { border-radius: var(--s2-radius); overflow: hidden; box-shadow: var(--s2-shadow); background: #0b1d33; position: relative; }
.s2-slider .carousel-item img { width: 100%; height: clamp(220px, 38vw, 460px); object-fit: cover; display: block; }
.s2-slider .carousel-caption {
    left: 0; right: 0; bottom: 0; text-align: left; padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.s2-slider .carousel-caption p { margin: 0; color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.s2-slider .carousel-indicators { justify-content: flex-end; margin-right: 1rem; bottom: .25rem; }
.s2-slider .carousel-indicators li { width: 10px; height: 10px; border-radius: 50%; border: 0; }
.s2-slider .carousel-control-prev, .s2-slider .carousel-control-next { width: 3rem; opacity: .9; }
@media (max-width: 575.98px) {
    .s2-slider .carousel-indicators { display: none; }
    .s2-slider .carousel-caption { padding: 2rem .9rem .75rem; }
    .s2-slider .carousel-caption p { font-size: 1rem; }
}
.s2-slider__pause {
    position: absolute; top: .75rem; right: .75rem; z-index: 5;
    background: rgba(0, 0, 0, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 2rem;
    padding: .25rem .75rem; font-size: .8125rem; font-weight: 600;
}

.s2-people { display: grid; gap: .75rem; }
.s2-person { display: flex; align-items: center; gap: .85rem; }
.s2-person__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--s2-primary-soft); flex-shrink: 0; background: var(--s2-surface-2); }
.s2-person--lead .s2-person__img { width: 88px; height: 88px; border-color: var(--s2-accent-bright); }
.s2-person__name { font-weight: 700; line-height: 1.3; margin: 0; font-size: 1rem; }
.s2-person__role { color: var(--s2-muted); font-size: .875rem; margin: 0; }
.s2-person__phone { font-size: .875rem; margin: 0; }
.s2-person + .s2-person { padding-top: .75rem; border-top: 1px dashed var(--s2-border); }
.s2-people__group + .s2-people__group { margin-top: 1rem; }
.s2-people__group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s2-muted); margin-bottom: .6rem; }

/* Office bearers / contacts widget: lead person on a full row, two per row below. */
.s2-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
.s2-pgrid__full { grid-column: 1 / -1; }
.s2-pgrid__title {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s2-muted);
    text-align: center; margin: 1.25rem 0 .9rem; padding-top: 1rem; border-top: 1px dashed var(--s2-border);
}
.s2-pcard { text-align: center; min-width: 0; }
.s2-pcard__img {
    display: block; margin: 0 auto .5rem; width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--s2-primary-soft); background: var(--s2-surface-2);
}
.s2-pcard--lead .s2-pcard__img { width: 104px; height: 104px; border-color: var(--s2-accent-bright); }
.s2-pcard__name { margin: 0; font-weight: 700; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.s2-pcard--lead .s2-pcard__name { font-size: 1.05rem; }
.s2-pcard__role { margin: .1rem 0 0; font-size: .8125rem; color: var(--s2-muted); }
.s2-pcard__phone { margin: .1rem 0 0; font-size: .8125rem; }

.s2-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.s2-service {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
    min-height: 7.25rem; padding: 1rem .75rem; height: 100%;
    background: var(--s2-surface); border: 1px solid var(--s2-border); border-radius: var(--s2-radius);
    color: var(--s2-text) !important; text-decoration: none !important; font-weight: 600; line-height: 1.35; box-shadow: var(--s2-shadow);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.s2-service:hover { transform: translateY(-2px); border-color: var(--s2-primary); box-shadow: 0 6px 18px rgba(31, 86, 173, .16); }
.s2-service__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--s2-primary-soft); color: var(--s2-primary); font-size: 1.25rem; }
.s2-service__icon i, .s2-service__icon svg { line-height: 1; }
.s2-service--accent .s2-service__icon { background: #fde8e9; color: var(--s2-accent); }
.dark-theme .s2-service--accent .s2-service__icon { background: #3a1a1d; color: #ff8a90; }

/* Tabs (notice board, news, important links) */
.s2-tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--s2-border); padding: .5rem .5rem 0; margin: 0; list-style: none; background: var(--s2-surface-2); border-radius: var(--s2-radius) var(--s2-radius) 0 0; }
.s2-tabs .nav-link {
    border: 1px solid transparent; border-bottom: 0; border-radius: .375rem .375rem 0 0;
    color: var(--s2-muted); font-weight: 600; padding: .55rem .9rem; font-size: .9375rem; display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: -1px;
}
.s2-tabs .nav-link:hover { color: var(--s2-primary); background: var(--s2-surface); }
.s2-tabs .nav-link.active { color: var(--s2-primary); background: var(--s2-surface); border-color: var(--s2-border); box-shadow: inset 0 3px 0 var(--s2-accent-bright); }
.dark-theme .s2-tabs .nav-link.active, .dark-theme .s2-tabs .nav-link:hover { color: #fff; }
.s2-tabpanel { padding: .75rem 1rem 1rem; }
@media (max-width: 575.98px) {
    .s2-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .s2-tabs .nav-link { white-space: nowrap; }
}

/* Document / news list */
.s2-doclist { list-style: none; margin: 0; padding: 0; }
.s2-doclist li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--s2-border); }
.s2-doclist li:last-child { border-bottom: 0; }
.s2-doclist__icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .375rem; display: grid; place-items: center; background: var(--s2-primary-soft); color: var(--s2-primary); }
.s2-doclist__title { display: block; font-weight: 600; color: var(--s2-text) !important; text-decoration: none; line-height: 1.45; }
.s2-doclist__title:hover { color: var(--s2-primary) !important; text-decoration: underline; }
.s2-doclist__meta { display: block; font-size: .8125rem; color: var(--s2-muted); margin-top: .15rem; }
.s2-doclist__meta .s2-tag { display: inline-block; background: var(--s2-surface-2); border: 1px solid var(--s2-border); border-radius: 1rem; padding: 0 .5rem; margin-left: .25rem; }
.s2-empty { text-align: center; color: var(--s2-muted); padding: 1.25rem 0; margin: 0; }
.s2-more { text-align: right; padding-top: .5rem; }
.s2-more a { font-weight: 600; }

.s2-about__text { max-height: 9.5rem; overflow: hidden; position: relative; }
.s2-about__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5rem; background: linear-gradient(transparent, var(--s2-surface)); }

.s2-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.s2-gallery button { padding: 0; border: 0; background: none; display: block; width: 100%; border-radius: .375rem; overflow: hidden; }
.s2-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s ease; }
.s2-gallery button:hover img { transform: scale(1.04); }

.s2-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.s2-video { margin: 0; }
.s2-video__frame { position: relative; padding-top: 56.25%; border-radius: var(--s2-radius); overflow: hidden; background: #000; }
.s2-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s2-video figcaption { font-weight: 600; margin-top: .4rem; font-size: .9375rem; }

/* 7. Lists, tables, forms on module pages ---------------------------------- */
.s2 .card { background: var(--s2-surface); border-color: var(--s2-border); border-radius: var(--s2-radius); }
.s2 .card-header, .s2 .card-footer { background: var(--s2-surface-2); border-color: var(--s2-border); }
.s2 .bg-light { background: var(--s2-surface-2) !important; }
.s2 .form-row.bg-light { padding: .75rem .5rem .25rem; border-radius: var(--s2-radius); border: 1px solid var(--s2-border); margin: 0 0 1rem; }

/* The shared "tap-box" document list from sample1 markup */
.s2 .tap-box ul { list-style: none; margin: 0; padding: 0; }
.s2 .tap-box-list { display: flex; gap: .75rem; padding: .7rem .25rem; border-bottom: 1px solid var(--s2-border); }
.s2 .tap-box-list:last-child { border-bottom: 0; }
.s2 .tap-box-list .list-icon-download a { width: 2.25rem; height: 2.25rem; border-radius: .375rem; display: grid; place-items: center; background: var(--s2-primary-soft); color: var(--s2-primary); text-decoration: none; }
.s2 .tap-box-list > a { flex: 1 1 auto; text-decoration: none; color: var(--s2-text); }
.s2 .tap-box-list > a p { margin: 0; }
.s2 .tap-box-list > a p:first-child { font-weight: 600; }
.s2 .tap-box-list > a:hover p:first-child { color: var(--s2-primary); text-decoration: underline; }
.s2 .tap-box-list small { color: var(--s2-muted); }

.s2 .table { color: var(--s2-text); background: var(--s2-surface); font-size: .9375rem; }
.s2 .table th { background: var(--s2-primary-soft); color: var(--s2-text); font-weight: 700; border-color: var(--s2-border); white-space: nowrap; }
.s2 .table td, .s2 .table th { border-color: var(--s2-border); vertical-align: middle; }
.s2 .table-striped tbody tr:nth-of-type(odd) { background: var(--s2-surface-2); }
.s2 .table-responsive { border-radius: var(--s2-radius); }
.dark-theme.s2 .table { color: var(--s2-text); }
.s2-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--s2-border); border-radius: var(--s2-radius); }
.s2-table-wrap .table { margin: 0; min-width: 640px; }
.s2-table-wrap .table td:nth-child(2) { min-width: 14rem; }
.s2-table-wrap .table td, .s2-table-wrap .table th { border-left: 0; border-right: 0; }
.s2-file { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; white-space: nowrap; }

.s2 .form-control, .s2 .custom-select { background-color: var(--s2-surface); color: var(--s2-text); border-color: #b9c3d1; }
.dark-theme.s2 .form-control { border-color: var(--s2-border); }
.s2 label { font-weight: 600; }
.s2 .text-danger { color: var(--s2-accent) !important; }
.dark-theme.s2 .text-danger { color: #ff8a90 !important; }

.s2 .pagination { flex-wrap: wrap; gap: .25rem; margin: 0; }
.s2 .page-link { border-radius: .375rem !important; color: var(--s2-primary); background: var(--s2-surface); border-color: var(--s2-border); min-width: 2.5rem; text-align: center; }
.s2 .page-item.active .page-link { background: var(--s2-primary); border-color: var(--s2-primary); color: #fff; }
.dark-theme.s2 .page-link { color: var(--s2-link); }
.s2 .page-item.disabled .page-link { background: var(--s2-surface-2); color: var(--s2-muted); }

.s2 .social-media { display: flex; flex-wrap: wrap; gap: .5rem; }
.s2 .social-media a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 2rem; border: 1px solid var(--s2-border); text-decoration: none; font-weight: 600; font-size: .875rem; }
.s2 .nav-tabs { border-bottom-color: var(--s2-border); }
.s2 .nav-tabs .nav-link { color: var(--s2-muted); font-weight: 600; }
.s2 .nav-tabs .nav-link.active { color: var(--s2-primary); background: var(--s2-surface); border-color: var(--s2-border) var(--s2-border) var(--s2-surface); }
.s2 .alert { border-radius: var(--s2-radius); }
.s2 .modal-content { background: var(--s2-surface); color: var(--s2-text); border-radius: var(--s2-radius); }
.s2 .modal-header { border-bottom-color: var(--s2-border); }
.s2 .close { color: var(--s2-text); opacity: .8; text-shadow: none; font-size: 1.75rem; }

/* Sitemap page */
.s2-sitemap, .s2-sitemap ol { list-style: none; margin: 0; padding: 0; }
.s2-sitemap ol { padding-left: 1.5rem; border-left: 2px solid var(--s2-border); margin: .35rem 0 .35rem .9rem; }
.s2-sitemap li { padding: .3rem 0; }
.s2-sitemap .num { display: inline-block; min-width: 2.25rem; font-weight: 700; color: var(--s2-muted); font-variant-numeric: tabular-nums; }
.s2-sitemap > li > a { font-weight: 700; }
.s2-sitemap__remarks { color: var(--s2-muted); font-size: .875rem; }

/* Contact page */
.s2-contact-list { list-style: none; padding: 0; margin: 0; }
.s2-contact-list li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--s2-border); }
.s2-contact-list li:last-child { border-bottom: 0; }
.s2-contact-list .s2-ico { width: 1.5rem; color: var(--s2-primary); flex-shrink: 0; text-align: center; padding-top: .15rem; }
.s2-map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--s2-radius); display: block; }

/* Audio list */
.s2-audio { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--s2-border); }
.s2-audio:last-child { border-bottom: 0; }
.s2-audio h2 { font-size: 1rem; margin: 0; flex: 1 1 14rem; }
.s2-audio audio { width: 100%; max-width: 22rem; }

/* 8. Footer --------------------------------------------------------------- */
.s2-footer { background: var(--s2-navy); color: #d9e3ee; margin-top: 2rem; font-size: .9375rem; }
.s2-footer a { color: #fff !important; }
.s2-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 2px solid rgba(255, 255, 255, .15); position: relative; }
.s2-footer h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 2px; background: var(--s2-accent-bright); }
.s2-footer__top { padding: 2.25rem 0 1.25rem; }
.s2-footer__list { list-style: none; padding: 0; margin: 0; }
.s2-footer__list li { padding: .25rem 0; display: flex; gap: .6rem; }
.s2-footer__list .s2-ico { width: 1.2rem; text-align: center; flex-shrink: 0; opacity: .85; padding-top: .1rem; }
.s2-footer__officer { padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.s2-footer__officer:last-child { border-bottom: 0; }
.s2-footer__officer strong { color: #fff; display: block; }
.s2-footer__links { max-height: 15rem; overflow-y: auto; padding-right: .25rem; }
.s2-footer .s2-tabs { background: transparent; border-bottom-color: rgba(255, 255, 255, .15); padding: 0; }
.s2-footer .s2-tabs .nav-link { color: #c7d3e0; padding: .4rem .7rem; font-size: .875rem; }
.s2-footer .s2-tabs .nav-link.active, .s2-footer .s2-tabs .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }
.s2-footer .s2-map iframe { height: 220px; }
.s2-footer__bottom { background: rgba(0, 0, 0, .25); font-size: .8125rem; padding: .85rem 0; }
.s2-footer__bottom .s2-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }

.s2-totop {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1030; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: var(--s2-primary); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    display: none; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1;
}
.s2-totop.is-visible { display: flex; }

/* Online services (standalone) page */
.s2-app { min-height: 100vh; display: flex; flex-direction: column; }
.s2-app__main { flex: 1 0 auto; padding: 2.5rem 0; }
.s2-option { display: flex; flex-direction: column; gap: .75rem; height: 100%; padding: 1.5rem; text-align: center; align-items: center; }
.s2-option .s2-service__icon { width: 4rem; height: 4rem; font-size: 1.6rem; }
.s2-option h2 { font-size: 1.15rem; margin: 0; }

/* 9. Low bandwidth / reduced motion / print ---------------------------------- */
.band-low .s2-ico:empty, .band-low .s2-service__icon:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .s2-ticker__track { animation: none; padding-left: 0; white-space: normal; flex-wrap: wrap; gap: .25rem 1.5rem; }
    .s2-ticker__toggle { display: none; }
    .s2-flag[src$=".gif"] { display: none; }
}
.s2-ticker.is-static .s2-ticker__track { animation: none; padding-left: 0; white-space: normal; flex-wrap: wrap; gap: .25rem 1.5rem; padding-top: .4rem; padding-bottom: .4rem; }

@media print {
    .no_print, .s2-utility, .s2-nav, .s2-ticker, .s2-footer, .s2-totop, .s2-skip, .s2-header__aside { display: none !important; }
    body.s2 { background: #fff; color: #000; }
    .s2 article { border: 0; box-shadow: none; padding: 0; }
    .s2 a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
