/* ==========================================================================
   Shri Sant Gadgebaba Mahavidyalaya, Kapashi
   Global stylesheet — design system, layout, components, responsive rules
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    --primary: #123b63;
    --primary-700: #0d2c4a;
    --secondary: #009;
    --accent: #d6a84f;
    --accent-soft: #f4e6c6;
    --background: #f6f8fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #5a6880;
    --line: #e2e8f2;
    --white: #ffffff;
    --font-sans: "Inter", "DM Sans", "Noto Sans", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow-xs: 0 1px 2px rgba(18, 59, 99, 0.06);
    --shadow-sm: 0 2px 10px rgba(18, 59, 99, 0.07);
    --shadow-md: 0 10px 30px rgba(18, 59, 99, 0.1);
    --shadow-lg: 0 24px 60px rgba(18, 59, 99, 0.16);
    --container: 1200px;
    --header-h: 84px;
    --fs-scale: 1;
    . --bg-page: #f1f5f9;
    --box-bg: #ffffff;
    --box-border: #e2e8f0;
    --link-bg: #ffffff;
    --link-hover-bg: #f8fafc;
    --link-border: #e2e8f0;
    --link-hover-border: #3b82f6;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --icon-bg: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: calc(1rem * var(--fs-scale));
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

img { max-width: 100%;  }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.22;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-family: var(--font-serif); font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.link-list {
    color: #002147;
    width: 320px;
    margin: 0 auto;
    padding: 6px;
    list-style: none;
}

/* Individual Link Card Item */
.link-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

    /* Subtle Left Highlight Indicator */
    .link-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--accent);
        transition: width 0.25s ease;
        border-radius: 12px 0 0 12px;
    }

    /* Hover States & Attractive Micro-Effects */
    .link-item:hover {
        background: var(--link-hover-bg);
        border-color: var(--link-hover-border);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    }

        .link-item:hover::before {
            width: 4px;
        }

.link-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.p-10{
    padding-top:40px;
}
/* ---------- 3. Layout helpers ---------- */
.content {
    margin:5%;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 42px; height: 3px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 3px;
}
.eyebrows {
    display: inline-block;
    font-size: 1.78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

    .eyebrows::after {
      
        display: block;
        width: 42px;
        height: 3px;
        margin-top: 8px;
        background: var(--accent);
       
    }
.footerbrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}

    .footerbrow::after {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin-top: 8px;
        background: var(--accent);
        border-radius: 3px;
    }
.section-head.center .eyebrow::after { margin-inline: auto; }
.lead { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 999;
  background: var(--primary); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.placeholder-note {
  display: inline-block;
  font-size: .8rem;
  color: #8a6d20;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
}
/* ==========================
   RESET
========================== */
.bg-white{
    background-color:#fff;
}
.content-inner{
    padding:100px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.nav-container {
    background-color: #1f2937;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 6px;
    z-index: 1000;
}



.stable {
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0
}

    .stable table {
        border-collapse: collapse;
        border-spacing: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0
    }

    .stable tr:last-child td:last-child {
        border-bottom-right-radius: 0
    }

    .stable table tr:first-child td:first-child {
        border-top-left-radius: 0
    }

    .stable table tr:first-child td:last-child {
        border-top-right-radius: 0
    }

    .stable tr:last-child td:first-child {
        border-bottom-left-radius: 0
    }

    .stable tr:hover td {
        background-color: #fff
    }

    .stable td {
        text-align: left;
        padding: 7px;
        font-weight: 400;
        color: #333;
        border: 1px solid #333;
    }



@media screen and (max-width:600px) {
    .stable caption {
        font-size: 1.3em
    }

    .stable thead {
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px
    }

    .stable tr {
        display: block;
        margin-bottom: .125em
    }

    .stable td {
        text-align: left;
        display: block;
        font-size: 1em;
        width: 100%
    }

        .stable td:before {
            content: attr(data-label);
            float: left;
            font-weight: 700;
            text-transform: uppercase
        }

        .stable td:last-child {
            border-bottom: 0
        }
}

.rtable {
    margin: 0;
    padding: 0;
    width: 100%;
    box-shadow: 3px 3px 3px #888;
    border: 1px solid #000;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    overflow-x: scroll
}

    .rtable table {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        text-align: left
    }

    .rtable tr:last-child td:last-child {
        border-bottom-right-radius: 0
    }

    .rtable table tr:first-child td:first-child {
        border-top-left-radius: 0
    }

    .rtable table tr:first-child td:last-child {
        border-top-right-radius: 0
    }

    .rtable tr:last-child td:first-child {
        border-bottom-left-radius: 0
    }

    .rtable tr:hover td {
        background-color: #fff
    }

    .rtable td {
        background-color: #f2f2f2;
        border: 1px solid #000;
        border-width: 1px 1px 1px 1px;
        text-align: left;
        padding: 7px;
        font-weight: 400;
        color: #333
    }

    .rtable tr:last-child td {
        border-width: 1px 1px 1px 1px;
    }

    .rtable tr td:last-child {
        border-width: 1px 1px 1px 1px;
    }

    .rtable tr:last-child td:last-child {
        border-width: 1px 1px 1px 1px;
    }

    .rtable tr:first-child td {
        background-color: #1ccdca;
        border: 0 solid #000;
        border-width: 0 0 1px 1px;
        font-weight: 700;
        color: #fff
    }

    .rtable tr:first-child:hover td {
        background-color: #e5e5e5
    }

    .rtable tr:first-child td:first-child {
        border-width: 0 0 1px
    }

    .rtable tr:first-child td:last-child {
        border-width: 0 0 1px 1px
    }

@media (max-width:600px) {
    rtable {
        display: block;
        margin: 0 auto;
        overflow-x: auto
    }
}

/* ==========================================
   Desktop Navigation (> 768px)
   ========================================== */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide toggle on desktop */
    }

    .custom-menu > ul {
        display: flex;
        flex-wrap: wrap;
    }

    .custom-menu li {
        position: relative;
    }

    .custom-menu a {
        display: block;
        padding: 14px 20px;
        color: #f3f4f6;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: background-color 0.2s ease, color 0.2s ease;
        white-space: nowrap;
    }

        .custom-menu a:hover {
            background-color: #374151;
            color: #ffffff;
        }

    /* Level 2 Submenu */
    .custom-menu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        display: none;
    }

        .custom-menu ul ul a {
            color: #374151;
            padding: 10px 18px;
            font-size: 14px;
            border-bottom: 1px solid #f3f4f6;
        }

            .custom-menu ul ul a:hover {
                background-color: #f9fafb;
                color: #2563eb;
            }

        /* Level 3 & Level 4 Flyouts */
        .custom-menu ul ul ul {
            top: 0;
            left: 100%;
            margin-left: 1px;
        }

    /* Hover Triggers */
    .custom-menu li:hover > ul {
        display: block;
    }

    .custom-menu li:has(> ul) > a::after {
        content: ' ▾';
        font-size: 11px;
        margin-left: 6px;
        opacity: 0.7;
    }

    .custom-menu ul ul li:has(> ul) > a::after {
        content: ' ▸';
        float: right;
    }
}

/* ==========================================
   Mobile Navigation (<= 768px)
   ========================================== */
/* ==========================================================================
   Mobile-Only Vertical Accordion Styles (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 14px 16px;
    }

        .menu-toggle .bar {
            width: 100%;
            height: 3px;
            background-color: #ffffff;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

    /* Main Menu Container: Fully Vertical & Collapsed Initially */
    .custom-menu {
        display: none;
        width: 100%;
        background-color: #1f2937;
        border-top: 1px solid #374151;
    }

        .custom-menu.is-active {
            display: block; /* Expands vertically down the page */
        }

        /* Force all lists and list-items to vertical column flow */
        .custom-menu ul,
        .custom-menu > ul {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .custom-menu li {
            display: block !important;
            width: 100% !important;
            position: relative !important;
        }

        /* Menu Link Row */
        .custom-menu a {
            display: flex !important;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            box-sizing: border-box;
            padding: 14px 18px;
            color: #f3f4f6;
            text-decoration: none;
            font-size: 15px;
            border-bottom: 1px solid #374151;
        }

            .custom-menu a:hover,
            .custom-menu a:active {
                background-color: #374151;
            }

        /* Reset all desktop popout positions for Submenus */
        .custom-menu ul ul,
        .custom-menu ul ul ul,
        .custom-menu ul ul ul ul {
            position: static !important; /* Forces vertical flow in document order */
            display: none; /* Collapsed by default */
            min-width: 100% !important;
            box-shadow: none !important;
            border: none !important;
            border-radius: 0 !important;
        }

        /* Open state: Expands vertically inside the parent */
        .custom-menu li.open > ul {
            display: flex !important;
            flex-direction: column !important;
        }

        /* Distinct background colors & left-indent per depth level */
        .custom-menu ul ul {
            background-color: #111827; /* Level 2 background */
        }

            .custom-menu ul ul a {
                padding-left: 36px !important;
                font-size: 14px;
                color: #d1d5db;
            }

            .custom-menu ul ul ul {
                background-color: #0b0f17; /* Level 3 background */
            }

                .custom-menu ul ul ul a {
                    padding-left: 54px !important;
                    font-size: 13px;
                    color: #9ca3af;
                }

                .custom-menu ul ul ul ul {
                    background-color: #030712; /* Level 4 background */
                }

                    .custom-menu ul ul ul ul a {
                        padding-left: 72px !important;
                        font-size: 13px;
                        color: #6b7280;
                    }

        /* Accordion indicators */
        .custom-menu li:has(> ul) > a::after {
            content: '+';
            font-size: 16px;
            font-weight: 600;
            margin-left: auto;
        }

        .custom-menu li.open:has(> ul) > a::after {
            content: '−';
        }
}


.text-center{
    text-align:center;

}
/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--white); color: var(--primary); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--secondary); color: var(--secondary); }
.btn--accent { background: var(--accent); color: #3a2a05; }
.btn--accent:hover { background: #c79a41; color: #3a2a05; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: var(--white); color: var(--primary); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .85rem; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--secondary);
}
.link-more:hover { gap: 12px; }
.link-more { transition: gap .2s ease; }

/* ---------- 5. Header ---------- */
.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 5px;
}
.topbar__org { font-weight: 500; }
.topbar__links { display: flex; text-align:right; gap: 16px; flex-wrap: wrap; }
.topbar__links a {
  color: rgba(255, 255, 255, .85);
  padding: 6px 10px; border-radius: 6px;
}
.topbar__links a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }

.site-header {
  top: 0; z-index: 100;


  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.brand__logo {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--primary), var(--secondary));
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  border: 2px solid var(--accent);
}
.brand__text { min-width: 0; }
.brand__name {
  display: block; font-weight: 700; color: var(--primary);
  font-size: clamp(.95rem, 1.5vw, 4.12rem); line-height: 2.25;
}
.brand__sub { display: block; font-size: 1.2rem; color: var(--muted); }
.brand__subs {
    display: block;
    text-align:right;
    font-size: 0.96rem;
    color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav a {
  display: block; padding: 10px 11px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--secondary); background: #eef4fb; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 35px;
    height: 35px;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--secondary);
 
    border: 1px solid var(--line);
    border-radius: 10px;
  
}
.icon-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.nav-toggle { display: none; }

/* Mobile navigation panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-nav.is-open { max-height: 80vh; overflow-y: auto; }
.mobile-nav ul { padding: 10px 20px 22px; }
.mobile-nav a {
  display: block; padding: 14px 6px;
  font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { width: 100%; margin-top: 16px; }

/* Search overlay */
.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 18px 0 22px;
}
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; background: var(--background); color: var(--text);
}
.search-form input:focus { border-color: var(--secondary); outline: none; }
.search-results { margin-top: 14px; display: grid; gap: 6px; }
.search-results a { padding: 10px 12px; border-radius: 8px; background: var(--background); }
.search-results .empty { color: var(--muted); font-size: .9rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: grid; align-items: center;
  color: var(--white);
  background: var(--primary);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 30, 51, .92) 0%, rgba(13, 44, 74, .82) 45%, rgba(18, 59, 99, .55) 100%);
}
.hero__inner { position: relative; padding: 84px 0; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(214, 168, 79, .18);
  border: 1px solid rgba(214, 168, 79, .6);
  color: var(--accent);
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { color: var(--white); margin: 20px 0 14px; font-family: var(--font-serif); }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; text-align: center;
}
.scroll-cue span {
  display: block; width: 1px; height: 26px; margin: 8px auto 0;
  background: rgba(255, 255, 255, .6);
  animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .3; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* Inner page banner */
.page-hero {
  background: linear-gradient(120deg, var(--primary) 0%, #17497a 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.page-hero h1 { color: var(--white); font-family: var(--font-serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .9); }

/* ---------- 7. Cards & common blocks ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f2; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: #eaf2fb; color: var(--secondary);
}
.card__icon svg { width: 22px; height: 22px; }

.quickstrip { margin-top: -58px; position: relative; z-index: 5; }
.quickstrip .card { display: block; }
.quickstrip .card span { display: block; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats { background: var(--primary); color: var(--white); }
.stats .grid { gap: 20px; }
.stat { text-align: center; padding: 12px; }
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--accent); line-height: 1.2;
}
.stat__label { color: rgba(255, 255, 255, .82); font-size: .9rem; }

.vm-card { border-top: 4px solid var(--accent); }
.vm-card.vm-card--alt { border-top-color: var(--secondary); }

.dept-card { overflow: hidden; padding: 0; }
.dept-card__body { padding: 22px; }
.dept-card__tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--secondary); background: #eaf2fb;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.dept-card ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.dept-card li {
  font-size: .82rem; color: var(--muted);
  background: var(--background); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}

.cta-band {
  background: linear-gradient(115deg, var(--primary) 0%, #1a5590 60%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 640px; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

.service-grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: .92rem;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.service-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--secondary); }
.service-grid svg { width: 20px; height: 20px; color: var(--secondary); flex: none; }

.notice-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-date {
  flex: none; width: 60px; text-align: center;
  background: var(--primary); color: var(--white);
  border-radius: 10px; padding: 6px 4px; line-height: 1.2;
}
.notice-date strong { display: block; font-size: 1.05rem; }
.notice-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.notice-list h3 { font-size: 1rem; margin-bottom: 4px; }
.notice-list p { font-size: .85rem; color: var(--muted); margin: 0; }

.event-card { padding: 0; overflow: hidden; }
.event-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.event-card__body { padding: 20px; }
.event-card__date {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 8px;
}

.tile { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; width: 100%; }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 18px 16px;
  background: linear-gradient(transparent, rgba(9, 30, 51, .88));
  color: var(--white); font-weight: 600;
}
.tile--placeholder {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 20px;
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e6ecf5 12px, #e6ecf5 24px);
  color: var(--muted); font-size: .85rem; border: 1px dashed #c9d6e6;
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--muted); font-weight: 600; font-size: .88rem;
}
.filter-btn:hover { color: var(--secondary); border-color: var(--secondary); }
.filter-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.gallery { columns: 4; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery button::after {
  content: "＋"; position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(18, 59, 99, .55); color: #fff; font-size: 1.6rem;
  opacity: 0; transition: opacity .25s ease;
}
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(9, 20, 33, .92); padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; border-radius: var(--radius); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 12px; font-size: .9rem; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; border: 0; font-size: 1.4rem;
}

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: 0; text-align: left;
  font-weight: 600; color: var(--primary); font-size: 1rem;
}
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--secondary); line-height: 1; }
.faq__q[aria-expanded="true"]::after { content: "–"; }
.faq__a { padding: 0 20px 18px; color: var(--muted); display: none; }
.faq__a.is-open { display: block; }

/* Forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--primary); }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--secondary); outline: none; }
.field .error { color: #b3261e; font-size: .8rem; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.form-status { margin-top: 14px; font-weight: 600; color: #146c2e; }

.contact-info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info svg { width: 20px; height: 20px; color: var(--secondary); flex: none; margin-top: 4px; }
.map-placeholder {
  margin-top: 20px; border-radius: var(--radius); border: 1px dashed #c9d6e6;
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e6ecf5 12px, #e6ecf5 24px);
  min-height: 220px; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .88rem; padding: 20px;
}

/* Prose (inner pages) */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1rem; color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.prose th { background: var(--white); color: var(--primary); }

/* ---------- 8. Footer ---------- */
.site-footer { background: #0e2d4c;  color: rgba(255, 255, 255, .78); padding: 64px 0 0; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--accent); }
.site-footer .grid-4 { gap: 36px; }
.footer-links li { margin-bottom: 10px; font-size: .92rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand .brand__logo { border-color: var(--accent); }
.footer-brand strong { color: var(--white); }
.footer-desc { font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
}
.socials a:hover { background: var(--accent); color: #16283c; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 52px; padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}
.footer-bottom .container { display: flex;  flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 9. Floating tools ---------- */
.floaters {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: flex; flex-direction: column; gap: 10px;
}
.floaters button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; display: grid; place-items: center;
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, background .18s ease;
}
.floaters button:hover { transform: translateY(-3px); background: var(--secondary); }
.floaters svg { width: 20px; height: 20px; }
#backToTop { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
#backToTop.is-visible { opacity: 1; visibility: visible; }

.a11y-panel {
  position: fixed; right: 16px; bottom: 78px; z-index: 160;
  width: min(280px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h3 { font-size: .95rem; margin-bottom: 12px; }
.a11y-panel .a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button {
  padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--background); color: var(--text); font-size: .82rem; font-weight: 600;
}
.a11y-panel button:hover { border-color: var(--secondary); color: var(--secondary); }

/* Accessibility modes toggled by JS on <html> */
html.a11y-contrast { filter: contrast(1.35); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-underline a { text-decoration: underline; }

/* ---------- 10. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 8px; font-size: .84rem; }
  .gallery { columns: 3; }
}
@media (max-width: 960px) {
  .nav, .topbar__org { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: block; }
  .topbar .container { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .quickstrip { margin-top: 0; padding-top: 48px; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .hero { min-height: 460px; }
  .hero__inner { padding: 64px 0 76px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__logo { width: 44px; height: 44px; font-size: .7rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .brand__sub { display: none; }
}
