/* ============================================================
   utility bar
   ============================================================ */
.util {
    background: var(--ink);
    color: #cdd3df;
    font-size: .78rem
}

.util .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    flex-wrap: wrap
}

.util a {
    color: #cdd3df
}

.util .grp {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.util .a11y {
    display: flex;
    align-items: center;
    gap: 6px
}

.util .a11y button {
    background: transparent;
    border: 1px solid #41506b;
    color: #cdd3df;
    width: 26px;
    height: 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: .74rem;
    font-family: inherit
}

.util .a11y button[aria-pressed="true"] {
    background: var(--accent);
    color: #1b2436;
    border-color: var(--accent)
}

.util .lang button {
    background: transparent;
    border: 0;
    color: #cdd3df;
    cursor: pointer;
    font-size: .78rem;
    padding: 0 4px
}

.util .lang button.on {
    color: #fff;
    font-weight: 600;
    text-decoration: underline
}

/* ============================================================
   masthead
   ============================================================ */
.masthead {
    background: var(--surface);
    border-bottom: 3px solid var(--primary)
}

.masthead .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px
}

.crest {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, var(--primary-soft), var(--primary) 60%, var(--primary-deep));
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18), 0 0 0 2px var(--accent)
}

.crest svg {
    width: 34px;
    height: 34px
}

.crest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block
}

.crest:has(img) {
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 0 0 2px var(--accent)
}

.mast-txt {
    flex: 1;
    min-width: 0
}

.mast-txt .sub {
    font-size: .74rem;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600
}

.mast-txt h1 {
    font-size: 1.5rem;
    margin: .1em 0 .05em;
    color: var(--primary-deep)
}

.mast-txt .motto {
    font-style: italic;
    color: var(--accent);
    font-family: "DM Sans", sans-serif;
    font-size: .92rem
}

.mast-emblem {
    flex: none;
    text-align: center;
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.3
}

.mast-emblem .seal {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    display: grid;
    place-items: center;
    margin: 0 auto 3px;
    color: var(--ink-soft);
    background: var(--surface-2)
}

.mast-emblem .seal svg {
    width: 30px;
    height: 30px
}

button.mast-emblem {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font: inherit;
    color: inherit;
    font-size: .66rem;
    border-radius: 8px;
    transition: outline .1s;
}
button.mast-emblem:hover .seal,
button.mast-emblem:focus-visible .seal {
    border-color: var(--primary);
    background: rgba(11,78,72,.08);
    color: var(--primary);
}
button.mast-emblem:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Institution at a Glance modal */
.glance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: gFadeIn .18s ease;
}
.glance-overlay[hidden] { display: none !important; }

.glance-card {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    width: 100%;
    max-width: 520px;
    padding: 28px 28px 22px;
    position: relative;
    animation: gSlideUp .2s ease;
}
.glance-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s, border-color .15s;
}
.glance-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.glance-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.glance-seal {
    width: 52px; height: 52px; flex: none;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--primary);
}
.glance-seal svg { width: 26px; height: 26px; }
.glance-eyebrow { font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.glance-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; line-height: 1.25; }
.glance-sub { font-size: .75rem; color: var(--muted); }

.glance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 18px;
}
.glance-stat {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 10px 14px;
}
.glance-label { font-size: .63rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.glance-val { font-size: .95rem; font-weight: 700; color: var(--primary); }

.glance-addr {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .75rem;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px solid var(--line);
    line-height: 1.5;
}
.glance-addr svg { flex: none; margin-top: 2px; }

@keyframes gFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes gSlideUp { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ============================================================
   primary nav
   ============================================================ */
nav.main {
    background: var(--primary-deep);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm)
}

nav.main .wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap
}

.navtoggle {
    display: none
}

nav.main ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap
}

nav.main li {
    position: relative
}

nav.main a.top {
    display: block;
    color: #f3e7ea;
    padding: 13px 15px;
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
    border-bottom: 3px solid transparent
}

nav.main a.top:hover,
nav.main li:hover>a.top {
    background: var(--primary);
    color: #fff;
    border-bottom-color: var(--accent)
}

nav.main a.top.active {
    border-bottom-color: var(--accent);
    color: #fff
}

nav.main .drop {
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--surface);
    min-width: 248px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 6px;
    display: none;
    z-index: 50;
    border-radius: 0 0 var(--r) var(--r)
}

nav.main li:hover>.drop,
nav.main li:focus-within>.drop {
    display: block
}

nav.main .drop a {
    display: block;
    color: var(--text);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: .88rem
}

nav.main .drop a:hover {
    background: var(--surface-2);
    text-decoration: none;
    color: var(--primary)
}

/* mobile nav */
@media(max-width:880px) {
    .navtoggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: 0;
        color: #fff;
        font-weight: 600;
        padding: 12px 0;
        cursor: pointer;
        font-family: inherit;
        font-size: .95rem;
        width: 100%;
        justify-content: space-between
    }

    nav.main ul {
        display: none;
        flex-direction: column;
        width: 100%
    }

    nav.main.open ul {
        display: flex
    }

    nav.main a.top {
        border-bottom: 1px solid rgba(255, 255, 255, .08)
    }

    nav.main .drop {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        border-top: 0;
        background: rgba(0, 0, 0, .18);
        padding: 0 0 6px 12px;
        border-radius: 0
    }

    nav.main .drop a {
        color: #e7dade
    }

    nav.main .drop a:hover {
        background: transparent;
        color: #fff
    }
}

/* ============================================================
   ticker
   ============================================================ */
.ticker {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center
}

.ticker .lab {
    background: var(--alert);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 14px;
    white-space: nowrap;
    flex: none
}

.ticker .track {
    overflow: hidden;
    flex: 1
}

.ticker .move {
    display: inline-flex;
    gap: 48px;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 150s linear infinite;
    font-size: .88rem
}

.ticker .move a {
    color: var(--ink-soft)
}

.ticker .move .new {
    background: var(--accent);
    color: #1b2436;
    font-size: .62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle
}

@keyframes scroll {
    to {
        transform: translateX(-100%)
    }
}

.ticker:hover .move {
    animation-play-state: paused
}

/* ============================================================
   breadcrumb
   ============================================================ */
.crumb {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: .82rem
}

.crumb .wrap {
    padding: 9px 22px;
    color: var(--muted)
}

.crumb a {
    color: var(--muted)
}

.crumb b {
    color: var(--ink)
}

/* ============================================================
   side nav (inner pages)
   ============================================================ */
.side {
    position: sticky;
    top: 64px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px;
    box-shadow: var(--shadow-sm)
}

.side h4 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    padding: 10px 10px 6px;
    margin: 0
}

.side a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: .9rem;
    border-left: 3px solid transparent
}

.side a:hover {
    background: var(--surface-2);
    text-decoration: none
}

.side a.on {
    background: var(--surface-2);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600
}

@media(max-width:880px) {
    .side {
        position: static
    }
}

/* ============================================================
   card
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow-sm)
}

.card h3 {
    font-size: 1.1rem
}

.card.link {
    transition: transform .15s ease, box-shadow .15s ease
}

.card.link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none
}

/* ============================================================
   ui primitives — chip, button
   ============================================================ */
.chip {
    display: inline-block;
    font-size: .72rem;
    font-family: "IBM Plex Mono", monospace;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--surface-2);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    font-weight: 500
}

.chip.live {
    background: var(--live-bg);
    color: var(--live);
    border-color: #bfe3cf
}

.chip.alert {
    background: var(--alert-bg);
    color: var(--alert);
    border-color: #f2cfca
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 6px 13px;
    border-radius: 7px;
    font-weight: 600;
    font-size: .8rem;
    border: 0;
    cursor: pointer;
    letter-spacing: .01em
}

.btn:hover {
    background: var(--primary-deep);
    text-decoration: none;
    color: #fff
}

.btn.ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary)
}

.btn.ghost:hover {
    background: var(--primary);
    color: #fff
}

/* ============================================================
   data table
   ============================================================ */
table.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden
}

table.tbl th {
    background: var(--ink);
    color: #fff;
    text-align: left;
    padding: 11px 13px;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .02em
}

table.tbl td {
    padding: 10px 13px;
    border-top: 1px solid var(--line);
    vertical-align: top
}

table.tbl tr:nth-child(even) td {
    background: var(--surface-2)
}

.scrollx {
    overflow-x: auto
}

/* ============================================================
   note / callout
   ============================================================ */
.note {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--r);
    padding: 14px 16px;
    font-size: .9rem;
    color: var(--ink-soft)
}

.note.todo {
    border-left-color: var(--alert);
    background: var(--alert-bg)
}

/* ============================================================
   doc row (downloadable item)
   ============================================================ */
.docrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    margin-bottom: 10px
}

.docrow .ic {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 8px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--primary)
}

.docrow .meta {
    flex: 1
}

.docrow .meta b {
    display: block;
    color: var(--ink)
}

.docrow .meta span {
    font-size: .78rem;
    color: var(--muted)
}

/* ============================================================
   hero (inner page banner)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary) 55%, var(--primary-soft));
    color: #fff;
    position: relative;
    overflow: hidden
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(233, 184, 119, .22), transparent 45%), linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0/100% 32px, linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0/32px 100%;
    pointer-events: none
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    padding: 46px 22px;
    align-items: center;
    position: relative;
    z-index: 2
}

@media(max-width:880px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 24px
    }
}

.hero .eyebrow {
    color: var(--accent-soft)
}

.hero h2 {
    color: #fff;
    font-size: 2.3rem;
    line-height: 1.12;
    margin: .3em 0 .4em
}

.hero p {
    color: #f0dde1;
    max-width: 46ch;
    margin: 0 0 22px
}

.hero .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero .cta .btn {
    background: var(--accent);
    color: #3a2410
}

.hero .cta .btn:hover {
    background: var(--accent-soft)
}

.hero .cta .btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55)
}

.hero .cta .btn.ghost:hover {
    background: rgba(255, 255, 255, .12)
}

.glance {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-lg);
    padding: 20px;
    backdrop-filter: blur(2px)
}

.glance h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-family: "IBM Plex Mono", monospace;
    margin-bottom: 14px;
    font-weight: 600
}

.glance .gg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.stat .n {
    font-family: "DM Sans", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1
}

.stat .l {
    font-size: .78rem;
    color: #e6cfd4
}

/* ============================================================
   quick links (dark band)
   ============================================================ */
.qlinks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: var(--ink-soft)
}

@media(max-width:880px) {
    .qlinks {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:520px) {
    .qlinks {
        grid-template-columns: repeat(2, 1fr)
    }
}

.qlinks a {
    color: #dfe4ee;
    padding: 18px 12px;
    text-align: center;
    font-size: .84rem;
    border-right: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.qlinks a:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none
}

.qlinks a svg {
    width: 24px;
    height: 24px;
    opacity: .9
}

/* ============================================================
   AEBAS dashboard
   ============================================================ */
.aebas {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden
}

.aebas .top {
    background: var(--ink);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px
}

.aebas .top h3 {
    color: #fff;
    margin: 0;
    font-size: 1.05rem
}

.aebas .top .live {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "IBM Plex Mono", monospace;
    font-size: .78rem;
    color: var(--accent-soft)
}

.aebas .top .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #37d27e;
    box-shadow: 0 0 0 0 rgba(55, 210, 126, .6);
    animation: pulse 1.8s infinite
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(55, 210, 126, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(55, 210, 126, 0)
    }
}

.aebas .body {
    padding: 20px
}

.aebas .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px
}

@media(max-width:620px) {
    .aebas .row {
        grid-template-columns: repeat(2, 1fr)
    }
}

.metric {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px;
    text-align: center
}

.metric .n {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--primary)
}

.metric .l {
    font-size: .74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em
}

.metric.ok .n {
    color: var(--live)
}

.bar {
    height: 9px;
    background: var(--surface-2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px
}

.bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--live), #37d27e);
    border-radius: 6px;
    width: 0;
    transition: width 1.2s ease
}

.deptline {
    display: grid;
    grid-template-columns: 160px 1fr 70px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: .86rem
}

.deptline:first-of-type {
    border-top: 0
}

.deptline .pct {
    text-align: right;
    font-family: "IBM Plex Mono", monospace;
    color: var(--ink-soft);
    font-weight: 500
}

@media(max-width:620px) {
    .deptline {
        grid-template-columns: 110px 1fr 56px
    }
}

/* ============================================================
   notice list
   ============================================================ */
.notice-list {
    margin: 0;
    padding: 0
}

.notice-list li {
    list-style: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.notice-list .d {
    font-family: "IBM Plex Mono", monospace;
    font-size: .74rem;
    color: var(--primary);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 8px;
    text-align: center;
    flex: none;
    width: 64px;
    line-height: 1.2
}

.notice-list .d b {
    display: block;
    font-size: 1.05rem;
    color: var(--ink)
}

.notice-list.compact li {
    padding: 7px 0
}

.notice-list.compact .d {
    width: 52px;
    font-size: .68rem;
    padding: 3px 6px
}

.notice-list.compact .d b {
    font-size: .92rem
}

.notice-list.compact a {
    font-size: .88rem
}

/* ============================================================
   gallery grid
   ============================================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

@media(max-width:760px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

.gtile {
    aspect-ratio: 4/3;
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--surface-2), #D4E7E3);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .8rem;
    position: relative;
    overflow: hidden
}

.gtile svg {
    width: 30px;
    height: 30px;
    opacity: .4
}

.gtile span {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: .74rem;
    color: var(--ink-soft);
    z-index: 2
}

.gtile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform .5s ease
}

.gtile:has(img) span {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 12px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

a.gtile {
    text-decoration: none;
    color: inherit;
    cursor: pointer
}

a.gtile:hover img {
    transform: scale(1.04)
}

/* ============================================================
   album-card (gallery index)
   ============================================================ */
.filter-chip {
    cursor: pointer;
    font: inherit
}

.filter-chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.album-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr)
}

.album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.album-card:hover,
.album-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11, 78, 72, .14);
    border-color: var(--primary);
    outline: none
}

.album-card .cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #0B4E48, #0E6E66)
}

.album-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease
}

.album-card:hover .cover img {
    transform: scale(1.04)
}

.album-card .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 78, 72, .88);
    color: #fff;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase
}

.album-card .count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px
}

.album-card .body {
    padding: 14px 16px 16px
}

.album-card .body h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.3
}

.album-card .body .meta {
    font-size: .78rem;
    color: var(--muted)
}

@media (max-width:880px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:520px) {
    .album-grid {
        grid-template-columns: 1fr
    }
}

/* ============================================================
   profile / avatar
   ============================================================ */
.profile {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: "DM Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    flex: none
}

/* ============================================================
   footer
   ============================================================ */
footer {
    background: var(--ink);
    color: #aeb6c6;
    margin-top: 40px;
    font-size: .88rem
}

footer .top {
    padding: 40px 0
}

footer .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px
}

@media(max-width:880px) {
    footer .cols {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:520px) {
    footer .cols {
        grid-template-columns: 1fr
    }
}

footer h4 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: "IBM Plex Mono", monospace;
    margin-bottom: 14px
}

footer a {
    color: #aeb6c6;
    display: block;
    padding: 3px 0
}

footer a:hover {
    color: #fff
}

footer .badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px
}

footer .badge {
    border: 1px solid #41506b;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: .68rem;
    font-family: "IBM Plex Mono", monospace;
    color: #cdd3df
}

footer .bottom {
    border-top: 1px solid #2c3850;
    padding: 16px 0;
    font-size: .78rem;
    color: #8993a8;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

/* ============================================================
   carousel
   ============================================================ */
.carousel {
    position: relative;
    overflow: hidden;
    background: var(--primary-deep)
}

.cslides {
    display: flex;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1)
}

.cslide {
    min-width: 100%;
    position: relative;
    color: #fff;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden
}

.cslide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 86% -12%, rgba(233, 184, 119, .20), transparent 46%), linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/100% 34px, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/34px 100%;
    pointer-events: none
}

.cslide .motif {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    color: rgba(255, 255, 255, .10);
    z-index: 1
}

.cslide-in {
    position: relative;
    z-index: 2;
    padding: 48px 22px
}

.cslide-in .eyebrow {
    color: var(--accent-soft)
}

.cslide-in h2 {
    color: #fff;
    font-size: 2.4rem;
    line-height: 1.12;
    margin: .3em 0 .4em;
    max-width: 22ch
}

.cslide-in p {
    color: #e9f3f1;
    max-width: 52ch;
    margin: 0 0 22px;
    font-size: 1.04rem
}

.cslide-in .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.cslide-in .cta .btn {
    background: var(--accent);
    color: #2a1a06
}

.cslide-in .cta .btn:hover {
    background: var(--accent-soft)
}

.cslide-in .cta .btn.ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .55)
}

.cslide-in .cta .btn.ghost:hover {
    background: rgba(255, 255, 255, .12)
}

.cnav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(11, 78, 72, .45);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer
}

.cnav:hover {
    background: rgba(11, 78, 72, .85)
}

.cnav.prev {
    left: 16px
}

.cnav.next {
    right: 16px
}

.cdots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px
}

.cdots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: width .2s
}

.cdots button.on {
    background: var(--accent);
    width: 26px;
    border-radius: 5px
}

@media(max-width:760px) {
    .cslide {
        min-height: 340px
    }

    .cslide-in h2 {
        font-size: 1.7rem
    }

    .cslide .motif {
        display: none
    }
}

/* ============================================================
   stat strip
   ============================================================ */
.statstrip {
    background: var(--surface);
    border-bottom: 1px solid var(--line)
}

.statstrip .wrap {
    display: flex;
    flex-wrap: wrap
}

.ss {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 18px 10px;
    border-right: 1px solid var(--line)
}

.ss:last-child {
    border-right: 0
}

.ss b {
    display: block;
    font-family: var(--disp);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1
}

.ss span {
    font-size: .76rem;
    color: var(--muted)
}

@media(max-width:620px) {
    .ss {
        min-width: 33%;
        border-bottom: 1px solid var(--line)
    }
}

/* ============================================================
   principal block
   ============================================================ */
.principal {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    align-items: center
}

@media(max-width:720px) {
    .principal {
        grid-template-columns: 1fr;
        gap: 18px
    }
}

.p-photo {
    text-align: center
}

.p-av {
    width: 150px;
    height: 150px;
    border-radius: 14px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-size: 3rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 3px solid var(--surface);
    outline: 1px solid var(--line);
    overflow: hidden
}

.p-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.p-cap {
    margin-top: 12px;
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem
}

.p-cap span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 2px
}

.p-msg h2 {
    font-size: 1.7rem;
    margin: .1em 0 .5em
}

.p-msg p {
    color: var(--ink);
    margin-bottom: 12px
}

/* ============================================================
   administrative heads
   ============================================================ */
.head-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm)
}

.head-av {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    overflow: hidden
}

.head-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.head-card:has(.head-av img) {
    padding: 0;
    text-align: left;
    overflow: hidden
}

.head-card:has(.head-av img) .head-av {
    width: 100%;
    height: 200px;
    border-radius: 0;
    margin: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2)
}

.head-card:has(.head-av img) h3,
.head-card:has(.head-av img) .head-name,
.head-card:has(.head-av img) .head-meta,
.head-card:has(.head-av img) .head-contact {
    padding-left: 16px;
    padding-right: 16px
}

.head-card:has(.head-av img) .head-meta,
.head-card:has(.head-av img) .head-contact {
    padding-bottom: 16px
}

.head-card:has(.head-av img) .head-meta + .head-contact {
    padding-top: 4px
}

.head-card h3 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    font-family: var(--mono);
    margin: 0 0 8px
}

.head-name {
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem
}

.head-meta {
    font-size: .82rem;
    color: var(--muted)
}

.head-contact {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--primary);
    margin-top: 6px
}

/* ============================================================
   admin heads vertical scroller
   ============================================================ */
.heads-scroller {
    height: 260px;
    overflow: hidden;
    position: relative
}

.heads-scroller::before,
.heads-scroller::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 2;
    pointer-events: none
}

.heads-scroller::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%)
}

.heads-scroller::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%)
}

.heads-scroller-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: scrollDown 12s linear infinite
}

.heads-scroller:hover .heads-scroller-inner {
    animation-play-state: paused
}

@keyframes scrollDown {
    0%   { transform: translateY(0) }
    100% { transform: translateY(-50%) }
}

@media (prefers-reduced-motion: reduce) {
    .heads-scroller-inner {
        animation: none
    }
    .heads-scroller {
        height: auto;
        overflow: visible
    }
    .heads-scroller::before,
    .heads-scroller::after {
        display: none
    }
}

.head-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0
}

.head-row .head-av {
    margin: 0;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0
}

.head-row-info {
    flex: 1;
    min-width: 0
}

.head-row-info h3 {
    font-size: .7rem;
    margin: 0 0 2px
}

.head-row-info .head-name {
    font-size: .88rem
}

.head-row-info .head-meta {
    font-size: .76rem
}

.head-row .head-contact {
    font-size: .74rem;
    margin-top: 2px
}

/* ============================================================
   success stories
   ============================================================ */
.story {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px 16px;
    box-shadow: var(--shadow-sm)
}

.story-q {
    font-family: var(--disp);
    font-size: 2.6rem;
    color: var(--accent-soft);
    line-height: 1;
    height: 22px;
    margin-bottom: 4px
}

.story p {
    color: var(--ink);
    font-size: .95rem;
    margin: 0 0 16px
}

.story-by {
    display: flex;
    align-items: center;
    gap: 11px;
    border-top: 1px solid var(--line);
    padding-top: 12px
}

.story-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #A4651A);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem;
    flex: none
}

.story-by b {
    display: block;
    font-size: .9rem;
    color: var(--ink)
}

.story-by span {
    font-size: .76rem;
    color: var(--muted)
}

/* ============================================================
   student corner
   ============================================================ */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

@media(max-width:760px) {
    .sc-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.sc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 22px 14px 18px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s
}

.sc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
    text-decoration: none
}

.sc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center
}

.sc-icon svg {
    width: 24px;
    height: 24px
}

.sc-card b {
    display: block;
    font-size: .92rem;
    color: var(--ink);
    font-weight: 600;
    font-family: "DM Sans", sans-serif
}

.sc-card span {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.4
}

/* ============================================================
   useful links
   ============================================================ */
.ulinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

@media(max-width:760px) {
    .ulinks {
        grid-template-columns: 1fr
    }
}

.ulinks a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: var(--r);
    padding: 14px 16px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s
}

.ulinks a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none
}

.ul-ic {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: .86rem;
    font-weight: 700
}

.ulinks a b {
    display: block;
    color: var(--ink);
    font-size: .9rem
}

.ulinks a span {
    font-size: .78rem;
    color: var(--muted)
}

/* ============================================================
   useful links — split layout (scrolling links + anti-ragging)
   ============================================================ */
.ul-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start
}

@media(max-width:880px) {
    .ul-split {
        grid-template-columns: 1fr
    }
}

/* scrolling vscroll container */
.vscroll {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-radius: var(--r)
}

.vscroll::before,
.vscroll::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 2;
    pointer-events: none
}

.vscroll::before {
    top: 0;
    background: linear-gradient(to bottom, var(--surface) 0%, transparent 100%)
}

.vscroll::after {
    bottom: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 100%)
}

.vscroll-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: scrollDown 22s linear infinite
}

.vscroll:hover .vscroll-inner {
    animation-play-state: paused
}

@media(prefers-reduced-motion: reduce) {
    .vscroll-inner {
        animation: none
    }
    .vscroll {
        height: auto;
        overflow: visible
    }
    .vscroll::before,
    .vscroll::after {
        display: none
    }
}

/* individual link row inside vscroll */
.ul-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: var(--r);
    padding: 11px 14px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    flex-shrink: 0
}

.ul-row:hover {
    border-left-color: var(--accent);
    background: var(--surface-2);
    text-decoration: none
}

.ul-row .ul-ic {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: .86rem;
    font-weight: 700
}

.ul-row div {
    min-width: 0
}

.ul-row b {
    display: block;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600
}

.ul-row span {
    font-size: .76rem;
    color: var(--muted)
}

/* anti-ragging right panel */
.ar-panel {
    background: #7B1010;
    border-radius: var(--r-lg);
    padding: 22px 22px 20px;
    color: #fff
}

.ar-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px
}

.ar-header svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #FFCC80;
    margin-top: 2px
}

.ar-header h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    line-height: 1.3
}

.ar-intro {
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 16px;
    line-height: 1.5
}

.ar-helpline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.1);
    border-radius: var(--r);
    margin-bottom: 8px
}

.ar-helpline:last-of-type {
    margin-bottom: 0
}

.ar-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-size: .65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px
}

.ar-label {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2px
}

.ar-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: "IBM Plex Mono", monospace;
    color: #fff;
    text-decoration: none;
    letter-spacing: .5px
}

.ar-number:hover {
    text-decoration: underline;
    color: #FFCC80
}

.ar-email {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    word-break: break-all
}

.ar-email:hover {
    text-decoration: underline;
    color: #FFCC80
}

.ar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding-bottom: 1px
}

.ar-link:hover {
    color: #fff;
    border-bottom-color: #fff
}
