
:root {
    --primary-color: #1c6198;
    --primary-dark: #0b3b60;
    --primary-soft: #e8f1f9;
    --secondary-color: #d4af37;
    --gold: #ffc107;
    --text-color: #333333;
    --muted: #6c757d;
    --radius: 12px;
    --radius-lg: 20px;
    --font-main: 'IBM Plex Sans Thai', sans-serif;
    --nav-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #f4f6f9;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > footer { margin-top: auto !important; }

img { max-width: 100%; }

.section { padding: 2.5rem 0; }
.bg-white-section { background-color: #fff; }
@media (min-width: 768px) { .section { padding: 3.5rem 0; } }

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: .75rem 1rem;
    margin-bottom: 1.5rem;
}
.section-title {
    font-weight: 700;
    font-style: italic;
    color: var(--primary-color);
    font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
    line-height: 1.25;
    margin: 0;
}
.section-title span { color: #201f20; }
.section-sub { color: var(--muted); font-size: .875rem; margin: .15rem 0 0; }

.section-head-center { text-align: center; margin-bottom: 2rem; }
.section-head-center .eyebrow {
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 2px;
    font-size: .8rem;
    margin-bottom: .25rem;
}
.section-head-center .section-title { font-style: normal; }
.section-head-center .section-title span { color: var(--gold); }
.section-head-center .title-bar {
    width: 60px; height: 3px;
    background: var(--primary-color);
    margin: .6rem auto 0;
}

.btn-view-all {
    background: #212529;
    color: #fff;
    border-radius: 50px;
    padding: .45rem 1.1rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: background .25s;
}
.btn-view-all:hover, .btn-view-all:focus { background: var(--primary-color); color: #fff; }

.topbar { background: var(--primary-color); font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.site-navbar {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding: .5rem 0;
}
.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    margin-right: .5rem;
    min-width: 0;
}
.site-navbar .brand-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text .th { font-size: 1.1rem; }
.brand-text .en { font-size: .68rem; letter-spacing: 1.5px; color: var(--muted); font-weight: 500; }

.site-navbar .navbar-toggler {
    border: 1px solid rgba(28,97,152,.25);
    padding: .4rem .6rem;
    border-radius: 10px;
}
.site-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(28,97,152,.2); }

.site-navbar .nav-link {
    font-weight: 500;
    color: #555 !important;
    position: relative;
    transition: color .25s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--primary-color) !important; }

.site-navbar .dropdown-menu {
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: .5rem;
}
.site-navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 8px;
    padding: .55rem .75rem;
    font-size: .92rem;
    white-space: normal;
}
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus { background: var(--primary-soft); color: var(--primary-color); }
.site-navbar .dropdown-item.active { background: var(--primary-color); color: #fff; }
.site-navbar .dropdown-item.active .icon-box { background: rgba(255,255,255,.2); color: #fff; }
.site-navbar .icon-box {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        margin-top: .5rem;
        border-top: 1px solid #eef1f4;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }
    .site-navbar .nav-link {
        padding: .75rem .25rem;
        border-bottom: 1px solid #f3f5f7;
    }
    .site-navbar .dropdown-menu {
        box-shadow: none;
        background: #f8fafc;
        margin: .25rem 0 .5rem;
    }
    .mobile-contact {
        font-size: .85rem;
        color: var(--muted);
        padding: 1rem .25rem .5rem;
    }
    .mobile-contact a { color: var(--primary-color); text-decoration: none; }
}

@media (min-width: 992px) {
    :root { --nav-height: 84px; }
    .site-navbar { padding: .85rem 0; }
    .site-navbar .brand-logo { width: 50px; height: 50px; }
    .brand-text .th { font-size: 1.4rem; }
    .site-navbar .nav-link {
        margin: 0 .35rem;
        background: linear-gradient(var(--secondary-color), var(--secondary-color)) no-repeat center bottom / 0 2px;
        transition: color .25s, background-size .3s ease;
    }
    .site-navbar .nav-link:hover,
    .site-navbar .nav-link.active { background-size: 70% 2px; }
    .site-navbar .dropdown-menu { min-width: 260px; }
    @media (hover: hover) {
        .site-navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    }
}
@media (min-width: 1200px) {
    .site-navbar .nav-link { margin: 0 .6rem; }
}

.hero .carousel-item { height: clamp(300px, 56vw, 72vh); background: #0b3b60; }
.hero .carousel-image {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}
.hero .carousel-image.no-dim { filter: none; }
@media (max-width: 767.98px) {
    .hero .carousel-item:has(.no-dim) { background: #111; }
    .hero .carousel-image.no-dim { object-fit: contain; }
}
.hero .carousel-caption {
    top: 50%;
    bottom: auto;
    left: 7%; right: 7%;
    transform: translateY(-50%);
    text-shadow: 2px 2px 8px rgba(0,0,0,.7);
    padding: 0;
}
.hero .carousel-caption h5 { font-size: clamp(.85rem, .7rem + .6vw, 1.25rem); font-weight: 400; margin-bottom: .4rem; }
.hero .carousel-caption h1 {
    font-size: clamp(1.4rem, .9rem + 3vw, 3.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: clamp(.5rem, 1.5vw, 1.25rem);
}
.hero .carousel-caption p {
    font-size: clamp(.9rem, .75rem + .8vw, 1.5rem);
    margin-bottom: clamp(.75rem, 2vw, 1.5rem);
}
.hero .carousel-indicators [data-bs-target] { width: 24px; height: 4px; border-radius: 2px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 10%; }
@media (max-width: 575.98px) {
    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
    .hero .carousel-caption { left: 5%; right: 5%; }
}

.btn-custom {
    background-color: var(--secondary-color);
    color: #fff;
    padding: clamp(.55rem, 1vw, .8rem) clamp(1.1rem, 2.5vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(.9rem, .8rem + .3vw, 1.1rem);
    border: none;
    transition: all .3s ease;
}
.btn-custom:hover { background-color: #b5952f; color: #fff; transform: translateY(-3px); }

.stats-section { background: var(--primary-color); position: relative; z-index: 1; padding: 2.5rem 0 5rem; }
.stat-box { padding: 1rem .5rem; }
.stat-icon-box {
    width: 60px; height: 60px;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    margin: 0 auto .75rem;
    transition: transform .4s cubic-bezier(.175,.885,.32,1.275), background .3s ease;
}
.stat-number { color: #fff; font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); margin: 0; }
.stat-label { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }
@media (min-width: 768px) {
    .stats-section { padding: 3.5rem 0 6rem; }
    .stat-icon-box { width: 80px; height: 80px; font-size: 2rem; margin-bottom: 1rem; }
}

.identity-section { margin-top: -3.5rem; position: relative; z-index: 2; margin-bottom: 1rem; }
.identity-card { border-radius: var(--radius-lg); transition: transform .3s ease; height: 100%; }
.identity-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 1.6rem;
}
.identity-card h4 { font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); }
.bg-primary-light { background-color: #e7f1ff; }
.bg-danger-light { background-color: #ffeef0; }
.bg-warning-light { background-color: #fff8e6; }
.italic { font-style: italic; }

.exec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.exec-main { grid-column: 1 / -1; order: -1; justify-self: center; width: min(240px, 65%); }
.admin-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}
.admin-card .img-box { aspect-ratio: 3 / 4; overflow: hidden; background: #eee; }
.admin-card .img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-info { flex: 1; text-align: center; background: var(--primary-color); padding: .6rem .4rem; }
.name-tag { color: #fff; font-weight: 700; font-size: .82rem; line-height: 1.35; }
.position-tag { color: var(--gold); font-size: .7rem; line-height: 1.35; margin-top: 2px; }
.exec-main .name-tag { font-size: .95rem; }
.exec-main .position-tag { font-size: .78rem; }

@media (min-width: 768px) {
    .exec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
    .exec-main { width: 260px; }
}
@media (min-width: 992px) {
    .exec-grid { display: flex; justify-content: center; align-items: flex-end; gap: .75rem; }
    .exec-grid > * { flex: 0 1 200px; }
    .exec-main { order: 0; flex-basis: 240px; width: auto; }
    .name-tag { font-size: .88rem; }
    .position-tag { font-size: .72rem; }
}
@media (min-width: 1200px) {
    .exec-grid > * { flex-basis: 220px; }
    .exec-main { flex-basis: 250px; }
}

.announce-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}
.announce-frame img { display: block; width: 100%; height: auto; }

.highlight-item {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ccc;
    height: 260px;
}
.highlight-item.large-item { height: 320px; }
.highlight-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.25,1,.5,1);
}
.highlight-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    transition: background .4s ease;
}
.highlight-overlay h3 { font-size: clamp(1.15rem, .9rem + 1.2vw, 1.85rem); }
.highlight-overlay h5 { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); }
@media (min-width: 768px) {
    .highlight-item, .highlight-item.large-item { height: 340px; }
    .highlight-overlay { padding: 1.75rem; }
}
@media (min-width: 992px) {
    .highlight-item.large-item { height: 520px; }
    .highlight-item.small-item { height: calc((520px - 1.5rem) / 2); }
}

.ns-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    cursor: pointer;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    aspect-ratio: 1 / 1.41;
    transition: transform .4s cubic-bezier(.165,.84,.44,1), box-shadow .4s;
}
.ns-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-overlay {
    position: absolute; inset: 0;
    background: rgba(28,97,152,.7);
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.ns-overlay i { color: #fff; font-size: 1.5rem; }
.ns-item:focus-visible .ns-overlay { opacity: 1; }

.preview-modal .modal-content { background: transparent; border: 0; }
.preview-modal .modal-body { position: relative; }
.preview-modal img { max-height: 85vh; max-height: 85dvh; width: auto; margin: 0 auto; display: block; }
.preview-modal .btn-close-white { position: absolute; top: -2.25rem; right: 0; filter: brightness(0) invert(1); opacity: 1; }
.modal-backdrop.show { opacity: .9; }

.newsletter-card .img-container { aspect-ratio: 3 / 4; overflow: hidden; background: #f8f9fa; }
.newsletter-card .img-container img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-card { border-radius: var(--radius-lg); height: 100%; }

.award-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    transition: all .5s cubic-bezier(.25,1,.5,1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.award-img-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f1f3f5; }
.award-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.25,1,.5,1); }
.award-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 14px;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: .5px;
}
.award-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.award-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-bottom: .5rem; }
.badge-custom {
    background: rgba(28,97,152,.08);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    transition: .3s ease;
}
.award-title {
    color: var(--primary-color);
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: .5rem;
    overflow-wrap: anywhere;
}
.award-title:hover { color: var(--primary-dark); }
.award-desc { line-height: 1.6; margin-bottom: 1rem; overflow-wrap: anywhere; }
.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
}
.btn-read-more i { font-size: .7rem; transition: transform .3s ease; }
.btn-read-more:hover { color: var(--primary-dark); }

.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

.activity-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .25rem .25rem 1rem;
    margin: 0 -.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.activity-track::-webkit-scrollbar { display: none; }
.activity-track > * { scroll-snap-align: start; }
@media (min-width: 576px) { .activity-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 992px) { .activity-track { grid-auto-columns: calc((100% - 3rem) / 4); } }

.track-nav { display: flex; justify-content: center; gap: .5rem; margin-top: .25rem; }
.track-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid #212529;
    background: #fff;
    color: #212529;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .25s;
}
.track-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.track-btn:disabled { opacity: .35; pointer-events: none; }

.activity-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all .4s cubic-bezier(.165,.84,.44,1);
}
.activity-img-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f8f9fa; }
.activity-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.activity-date {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(28,97,152,.9);
    color: #fff;
    padding: 2px 10px;
    font-size: .72rem;
    border-radius: 6px;
}
.activity-body { padding: .9rem 1rem 1rem; }
.activity-body h6 { color: #212529; font-weight: 700; margin-bottom: .35rem; }
.activity-body p { min-height: 3em; }

.news-item-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
    text-decoration: none;
    transition: all .3s ease;
}
.date-box {
    background: #f1f5f9;
    color: var(--primary-color);
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    flex-shrink: 0;
}
.date-box .day { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.date-box .month { font-size: .68rem; text-transform: uppercase; margin-top: 2px; }
.news-content { flex: 1; min-width: 0; }
.news-cat { background: #cce0f0; color: var(--primary-color); font-weight: 400; white-space: normal; text-align: left; }
.news-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: anywhere;
}
.arrow-circle {
    width: 36px; height: 36px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .3s;
}
@media (min-width: 576px) {
    .arrow-circle { display: flex; }
}
@media (min-width: 768px) {
    .news-item-card { padding: 1rem 1.25rem; gap: 1.25rem; border-radius: var(--radius-lg); }
    .date-box { width: 70px; height: 70px; border-radius: 16px; }
    .date-box .day { font-size: 1.8rem; }
    .date-box .month { font-size: .8rem; }
    .news-title { font-size: 1.05rem; -webkit-line-clamp: 1; }
    .arrow-circle { width: 40px; height: 40px; }
}

.admin-main-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.4rem .75rem;
    height: 100%;
    text-decoration: none;
    transition: all .3s ease;
}
.admin-icon-box {
    width: 52px; height: 52px;
    background: #f8f9fa;
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    border-radius: 10px;
    margin-bottom: .75rem;
    transition: all .3s ease;
}
.admin-group-name { color: #444; font-weight: 600; font-size: .85rem; text-align: center; line-height: 1.45; }
@media (min-width: 768px) {
    .admin-main-card { padding: 2.2rem 1.25rem; }
    .admin-icon-box { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 1rem; }
    .admin-group-name { font-size: .95rem; }
}

.sub-group-header { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.sub-group-header .line { width: 30px; height: 2px; background: var(--gold); }
.sub-group-header h5 { color: var(--primary-color); font-size: .9rem; letter-spacing: 1px; font-weight: 700; margin: 0; }

.program-tag {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all .2s;
}
.program-tag:hover { background: var(--primary-color); color: var(--gold); border-color: var(--primary-color); }

.subject-link { display: block; padding: .35rem 0; color: var(--muted); font-size: .875rem; text-decoration: none; transition: all .2s; }
.subject-link i { font-size: .6rem; color: var(--gold); }
.subject-link:hover { color: var(--primary-color); }

.menu-item-long {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1rem;
    border-radius: var(--radius);
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,.05);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,.02);
    transition: all .3s ease;
}
.icon-box-small {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.menu-label-long { color: #444; font-size: .88rem; font-weight: 600; line-height: 1.4; }
.arrow-icon { font-size: .8rem; color: #bbb; margin-left: auto; flex-shrink: 0; transition: .3s; }
@media (min-width: 768px) { .menu-item-long { padding: 1rem 1.25rem; } }

.bg-blue-soft   { background-color: #f0f7ff; } .bg-blue-soft .icon-box-small   { background: #e2edff; color: #4a90e2; }
.bg-green-soft  { background-color: #f2fdf7; } .bg-green-soft .icon-box-small  { background: #e0f7ea; color: #27ae60; }
.bg-orange-soft { background-color: #fffaf2; } .bg-orange-soft .icon-box-small { background: #fff0db; color: #e67e22; }
.bg-purple-soft { background-color: #faf5ff; } .bg-purple-soft .icon-box-small { background: #f0e4ff; color: #9b59b6; }
.bg-cyan-soft   { background-color: #f0fdff; } .bg-cyan-soft .icon-box-small   { background: #dbf5f8; color: #00a5bb; }
.bg-pink-soft   { background-color: #fff5f8; } .bg-pink-soft .icon-box-small   { background: #ffe6ed; color: #e91e63; }

.footer-section { background-color: var(--primary-color); }
.footer-heading {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-left: .75rem;
    border-left: 4px solid var(--gold);
}
.footer-contact p { font-size: .875rem; color: rgba(255,255,255,.85); margin-bottom: .5rem; display: flex; gap: .5rem; }
.footer-contact p i { width: 16px; margin-top: 4px; flex-shrink: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .92rem; transition: all .3s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.social-icon { color: #fff; font-size: 1.5rem; margin-right: 1rem; transition: .3s; display: inline-block; }
.social-icon:hover { color: var(--gold); transform: translateY(-3px); }
.footer-bottom { background-color: rgba(0,0,0,.15); border-top: 1px solid rgba(255,255,255,.1); }
.v-digit {
    color: #fff;
    font-weight: 700;
    padding: 1px 5px;
    font-size: .85rem;
    font-family: monospace;
    min-width: 18px;
    display: inline-block;
    text-align: center;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
}

.tp-pagination .page-link {
    border: none;
    background: #fff;
    color: var(--primary-color);
    border-radius: 8px !important;
    font-weight: 700;
    min-width: 40px;
    height: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tp-pagination .page-item.active .page-link { background: var(--primary-color); color: #fff; }
.tp-pagination .page-item.disabled .page-link { background: #f1f3f5; color: #bbb; box-shadow: none; }
.tp-pagination .page-link:hover { background: var(--primary-soft); }

.back-to-top {
    position: fixed;
    right: 16px; bottom: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 1030;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-dark); }

@media (hover: hover) {
    .stat-box:hover .stat-icon-box { transform: scale(1.15); background: var(--gold); color: var(--primary-dark); box-shadow: 0 0 20px rgba(255,193,7,.6); }
    .identity-card:hover { transform: translateY(-8px); }
    .admin-card:hover { transform: translateY(-6px); }
    .announce-frame:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.1) !important; }
    .highlight-item:hover .highlight-img { transform: scale(1.08); }
    .highlight-item:hover .highlight-overlay { background: linear-gradient(to top, rgba(28,97,152,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%); }
    .ns-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(28,97,152,.2); }
    .ns-item:hover .ns-overlay { opacity: 1; }
    .award-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(28,97,152,.15) !important; border-color: #1c619833; }
    .award-card:hover .award-img-box img { transform: scale(1.08); }
    .award-card:hover .badge-custom { background: var(--primary-color); color: #fff; }
    .btn-read-more:hover i { transform: translateX(5px); }
    .activity-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(0,0,0,.1) !important; }
    .activity-card:hover img { transform: scale(1.08); }
    .news-item-card:hover { transform: translateX(6px); border-color: #cce0f0; }
    .news-item-card:hover .arrow-circle { background: var(--primary-color); color: #fff; }
    .admin-main-card:hover { background: var(--primary-color); transform: translateY(-6px); box-shadow: 0 10px 25px rgba(28,97,152,.2) !important; border-color: var(--primary-color); }
    .admin-main-card:hover .admin-icon-box { background: var(--gold); color: var(--primary-color); }
    .admin-main-card:hover .admin-group-name { color: #fff; }
    .subject-link:hover { padding-left: 5px; }
    .menu-item-long:hover { transform: translateX(6px); box-shadow: 0 8px 15px rgba(28,97,152,.1); border-color: var(--primary-color); }
    .menu-item-long:hover .arrow-icon { color: var(--primary-color); transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.year-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.year-tabs::-webkit-scrollbar { display: none; }
.year-tab { flex: 0 0 auto; text-decoration: none; text-align: center; border: 1px solid #dbe3ec; background: #fff; color: #334155; border-radius: 14px; padding: 8px 18px; font-weight: 700; line-height: 1.2; transition: all .2s; }
.year-tab small { display: block; font-weight: 500; font-size: .72rem; color: #94a3b8; }
.year-tab:hover { border-color: var(--primary-color); color: var(--primary-color); }
.year-tab.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 6px 16px rgba(28,97,152,.25); }
.year-tab.is-active small { color: rgba(255,255,255,.75); }
