﻿:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5d6678;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --blue: #0b5cad;
  --blue-deep: #073b72;
  --teal: #f5b700;
  --green: #e7a800;
  --coral: #f2b705;
  --gold: #ffd166;
  --shadow: 0 20px 60px rgba(11, 37, 69, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, "Noto Sans Thai", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

.home-main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(170, 194, 221, 0.5);
  box-shadow: 0 8px 26px rgba(11, 37, 69, 0.06);
  backdrop-filter: blur(20px) saturate(1.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(245, 183, 0, 0.25);
  overflow: hidden;
}

.brand-mark.has-logo {
  background: #fff;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.main-nav a {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  color: #24324a;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(144, 205, 244, 0.52);
  border-radius: 12px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.92),
    0 7px 18px rgba(11, 92, 173, 0.05);
  isolation: isolate;
  overflow: hidden;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.main-nav a::before {
  position: absolute;
  z-index: 0;
  top: -26px;
  bottom: -26px;
  left: -54px;
  width: 34px;
  pointer-events: none;
  content: "";
  background: rgba(255, 255, 255, 0.88);
  filter: blur(6px);
  opacity: 0;
  transform: rotate(18deg);
}

.main-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 4px;
  left: 18px;
  height: 2px;
  content: "";
  background: #ffd166;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.3);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: rgba(255, 209, 102, 0.84);
  box-shadow:
    0 6px 14px rgba(11, 92, 173, 0.18),
    0 14px 30px rgba(245, 183, 0, 0.2);
  transform: translateY(-3px);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before {
  animation: nav-item-scan 640ms ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: rgba(255, 209, 102, 0.84);
  box-shadow:
    0 6px 14px rgba(11, 92, 173, 0.16),
    0 12px 24px rgba(245, 183, 0, 0.14);
}

.main-nav a[href="admin.html"],
.main-nav a[href="layout.html"] {
  color: var(--blue-deep);
  background: rgba(226, 241, 255, 0.42);
  border-color: rgba(144, 205, 244, 0.76);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(11, 92, 173, 0.08);
}

.main-nav a[href="admin.html"]:hover,
.main-nav a[href="layout.html"]:hover,
.main-nav a[href="admin.html"]:focus-visible,
.main-nav a[href="layout.html"]:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

@keyframes nav-item-scan {
  0% {
    left: -54px;
    opacity: 0;
  }

  22% {
    opacity: 0.78;
  }

  100% {
    left: calc(100% + 24px);
    opacity: 0;
  }
}

.admin-nav {
  display: flex;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  background: #111827;
}

.hero img,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 20, 42, 0.9) 0%, rgba(4, 20, 42, 0.66) 42%, rgba(4, 20, 42, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 20, 42, 0.28), rgba(4, 20, 42, 0));
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 88px);
  padding-block: 72px 124px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd166;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  font-weight: 900;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions,
.section-heading,
.cta-section,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(231, 111, 81, 0.25);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.danger {
  color: #a93622;
  border-color: rgba(231, 111, 81, 0.46);
  background: #fff4ef;
}

.button.danger:hover {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(231, 111, 81, 0.2);
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 36px));
  margin: -58px auto 0;
  padding: 18px 22px;
  position: relative;
  z-index: 5;
  color: #fff;
  background: var(--blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.notice-strip strong {
  flex: 0 0 auto;
  color: #ffd166;
}

.notice-strip span {
  flex: 1 1 auto;
}

.notice-strip a {
  flex: 0 0 auto;
  font-weight: 800;
  color: #ffd166;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 88px auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro-section h2,
.section-heading h2,
.highlight-panel h2,
.cta-section h2,
.admin-form h2,
.admin-preview h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-section p:not(.eyebrow),
.cta-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(11, 37, 69, 0.08);
}

.stats-band div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  align-items: end;
  margin-bottom: 24px;
}

.section-title-block {
  position: relative;
  max-width: 780px;
  padding-left: 20px;
}

.section-title-block::before {
  position: absolute;
  top: 2px;
  bottom: 3px;
  left: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--blue), var(--teal), #ffd166);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(245, 183, 0, 0.2);
}

.section-title-block .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--teal);
  background: rgba(226, 247, 244, 0.78);
  border: 1px solid rgba(255, 209, 102, 0.58);
  border-radius: 999px;
}

.section-title-block h2 {
  position: relative;
  width: fit-content;
}

.section-title-block h2::after {
  display: block;
  width: min(150px, 42%);
  height: 4px;
  margin-top: 12px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
  border-radius: 999px;
}

.section-intro {
  max-width: 680px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.search-box {
  width: min(100%, 390px);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.05);
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.14);
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tab {
  min-height: 42px;
  padding: 8px 14px;
  color: #34425a;
  font: inherit;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.tab.active,
.tab:hover,
.tab:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
  background: #fff;
  border: 1px dashed #c9d7e8;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(11, 37, 69, 0.06);
}

.empty-state h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.empty-state p {
  margin: 12px auto 20px;
  max-width: 560px;
  color: var(--muted);
}

.article-card {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(170, 194, 221, 0.72);
  border-radius: 14px;
  box-shadow:
    0 4px 10px rgba(11, 37, 69, 0.04),
    0 20px 48px rgba(11, 37, 69, 0.09);
  cursor: pointer;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.article-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.article-card:hover,
.article-card:focus-within {
  border-color: rgba(245, 183, 0, 0.44);
  box-shadow:
    0 8px 18px rgba(11, 37, 69, 0.08),
    0 26px 58px rgba(11, 92, 173, 0.16);
  transform: translateY(-6px);
}

.article-card:hover::before,
.article-card:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.featured-card {
  grid-column: span 2;
}

.top-card {
  border-color: rgba(245, 183, 0, 0.38);
  box-shadow:
    0 6px 14px rgba(11, 37, 69, 0.06),
    0 20px 56px rgba(245, 183, 0, 0.16);
}

.latest-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
  min-height: 390px;
  border-color: rgba(11, 92, 173, 0.34);
  box-shadow:
    0 8px 18px rgba(11, 37, 69, 0.08),
    0 28px 68px rgba(11, 92, 173, 0.2);
}

.latest-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 2px solid rgba(255, 209, 102, 0.72);
  border-radius: inherit;
}

.card-image {
  position: relative;
  min-height: 190px;
  background-color: #eef4fb;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1);
  transition:
    transform 380ms ease,
    filter 380ms ease;
}

.card-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(245, 183, 0, 0.08));
  opacity: 0.52;
  transition: opacity 260ms ease;
}

.article-card:hover .card-image,
.article-card:focus-within .card-image {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.article-card:hover .card-image::after,
.article-card:focus-within .card-image::after {
  opacity: 0.18;
}

.latest-card .card-image {
  min-height: 100%;
}

.image-lab {
  background-image: linear-gradient(135deg, rgba(11, 92, 173, 0.25), rgba(245, 183, 0, 0.12)), url("assets/campus-hero.png");
}

.image-community {
  background-image: linear-gradient(135deg, rgba(245, 183, 0, 0.32), rgba(255, 209, 102, 0.18)), url("assets/campus-hero.png");
  background-position: 66% 48%;
}

.image-notice {
  background: linear-gradient(135deg, #0b5cad, #f5b700);
}

.image-award {
  background: linear-gradient(135deg, #073b72, #ffd166);
}

.image-workshop {
  background: linear-gradient(135deg, #f5b700, #ffd166);
}

.image-scholarship {
  background: linear-gradient(135deg, #14213d, #e7a800);
}

.image-admin {
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.9), rgba(245, 183, 0, 0.82)),
    url("assets/campus-hero.png") center / cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.category-pill {
  width: fit-content;
  padding: 5px 10px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  background: #eaf3ff;
  border-radius: 999px;
}

.category-pill.warm {
  color: #7c3f00;
  background: #fff1d6;
}

.category-pill.coral {
  color: #8d2f1e;
  background: #ffe7df;
}

.category-pill.green {
  color: #7c5b00;
  background: #fff9e2;
}

.latest-pill {
  width: fit-content;
  padding: 5px 10px;
  color: #06224a;
  font-size: 0.78rem;
  font-weight: 900;
  background: #ffd166;
  border-radius: 999px;
}

.article-card h3 {
  font-size: 1.22rem;
}

.latest-card h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.article-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.latest-card p {
  -webkit-line-clamp: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  color: #6b7280;
  font-size: 0.92rem;
}

.card-meta a {
  position: relative;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.card-meta a::after {
  display: inline-block;
  margin-left: 5px;
  content: "›";
  transition: transform 180ms ease;
}

.card-meta a:hover,
.card-meta a:focus-visible {
  color: var(--teal);
  transform: translateX(2px);
}

.card-meta a:hover::after,
.card-meta a:focus-visible::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card::before,
  .card-image,
  .card-image::after,
  .card-meta a,
  .card-meta a::after,
  .modal-close,
  .modal-gallery-card,
  .main-nav a,
  .main-nav a::before,
  .main-nav a::after,
  .announcement-list li,
  .announcement-list li::before,
  .announcement-card-image::after,
  .announcement-card-image img,
  .announcement-type,
  .announcement-badge,
  .person-card,
  .person-avatar {
    transition: none;
  }

  .main-nav a:hover::before,
  .main-nav a:focus-visible::before {
    animation: none;
  }

  .modal-listen.speaking > span[aria-hidden] {
    animation: none;
  }
}

.highlight-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.highlight-panel .section-title-block {
  margin-bottom: 26px;
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.announcement-list li {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(170, 194, 221, 0.72);
  border-radius: 12px;
  box-shadow:
    0 4px 10px rgba(11, 37, 69, 0.04),
    0 18px 42px rgba(11, 37, 69, 0.08);
  cursor: pointer;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.announcement-list li::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.announcement-list li:hover,
.announcement-list li:focus-within {
  border-color: rgba(245, 183, 0, 0.44);
  box-shadow:
    0 8px 18px rgba(11, 37, 69, 0.08),
    0 26px 56px rgba(11, 92, 173, 0.15);
  transform: translateY(-6px);
}

.announcement-list li:hover::before,
.announcement-list li:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.announcement-empty {
  grid-column: 1 / -1;
  padding: 18px;
  cursor: default;
}

.announcement-empty:hover {
  border-color: rgba(170, 194, 221, 0.72);
  box-shadow:
    0 4px 10px rgba(11, 37, 69, 0.04),
    0 18px 42px rgba(11, 37, 69, 0.08);
  transform: none;
}

.announcement-card-image {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #7e1f24, #d05353);
}

.announcement-card-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(245, 183, 0, 0.08));
  opacity: 0.52;
  transition: opacity 260ms ease;
}

.announcement-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 380ms ease,
    filter 380ms ease;
}

.announcement-list li:hover .announcement-card-image img,
.announcement-list li:focus-within .announcement-card-image img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.announcement-list li:hover .announcement-card-image::after,
.announcement-list li:focus-within .announcement-card-image::after {
  opacity: 0.18;
}

.announcement-placeholder {
  background:
    linear-gradient(135deg, rgba(126, 31, 36, 0.94), rgba(208, 83, 83, 0.86)),
    url("assets/campus-hero.png") center / cover;
}

.announcement-type,
.announcement-badge {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(4, 20, 42, 0.16);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.announcement-type {
  left: 10px;
  background: #234b78;
}

.announcement-badge {
  right: 10px;
  background: #ba2d34;
}

.announcement-list li:hover .announcement-type,
.announcement-list li:hover .announcement-badge,
.announcement-list li:focus-within .announcement-type,
.announcement-list li:focus-within .announcement-badge {
  box-shadow: 0 8px 20px rgba(4, 20, 42, 0.22);
  transform: translateY(-1px);
}

.announcement-card-body {
  display: grid;
  gap: 14px;
  min-height: 160px;
  padding: 16px;
}

.announcement-list a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.5;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.announcement-card-body time {
  align-self: end;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 800;
}

.people-section {
  display: grid;
  gap: 34px;
}

.people-section.is-hidden {
  display: none;
}

.people-group {
  display: grid;
  gap: 16px;
}

.people-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(170, 194, 221, 0.68);
}

.people-group-heading span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.people-group-heading h3 {
  color: var(--blue-deep);
  font-size: 1.2rem;
}

.director-grid,
.deputy-grid,
.department-grid {
  display: grid;
  gap: 14px;
}

.org-chart {
  display: grid;
  gap: 42px;
}

.director-grid {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
}

.director-grid::after {
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 2px;
  height: 28px;
  content: "";
  background: linear-gradient(var(--teal), rgba(245, 183, 0, 0.3));
}

.deputy-grid {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-top: 14px;
}

.deputy-grid::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(245, 183, 0, 0.46) 12%, rgba(245, 183, 0, 0.46) 88%, transparent);
}

.department-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(170, 194, 221, 0.72);
  border-radius: 12px;
  box-shadow:
    0 4px 10px rgba(11, 37, 69, 0.04),
    0 16px 38px rgba(11, 37, 69, 0.07);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  cursor: pointer;
}

.person-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--blue), var(--teal), #ffd166);
  opacity: 0.76;
}

.person-card:hover {
  border-color: rgba(245, 183, 0, 0.42);
  box-shadow:
    0 8px 18px rgba(11, 37, 69, 0.07),
    0 24px 52px rgba(11, 92, 173, 0.13);
  transform: translateY(-5px);
}

.person-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.94), rgba(245, 183, 0, 0.88)),
    url("assets/campus-hero.png") center / cover;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(11, 92, 173, 0.16);
  transition: transform 220ms ease;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card:hover .person-avatar {
  transform: scale(1.04);
}

.person-content {
  min-width: 0;
}

.person-department {
  display: block;
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.person-content strong {
  display: block;
  color: #10203d;
  font-size: 1.08rem;
}

.person-content small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.executive-card {
  min-height: 132px;
  padding: 20px;
}

.executive-card .person-avatar {
  width: 82px;
  height: 82px;
  border-radius: 22px;
}

.primary-person {
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.82), rgba(232, 247, 236, 0.82)),
    #fff;
  border-color: rgba(245, 183, 0, 0.34);
}

.person-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 18px;
  place-items: center;
}

.person-modal.open {
  display: grid;
}

.person-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  width: min(860px, 100%);
  min-height: 430px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(202, 221, 241, 0.82);
  border-radius: 22px;
  box-shadow:
    0 10px 26px rgba(4, 20, 42, 0.18),
    0 34px 100px rgba(4, 20, 42, 0.42);
}

.person-modal-panel::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
}

.person-modal-photo {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.9), rgba(245, 183, 0, 0.78)),
    url("assets/campus-hero.png") center / cover;
}

.person-modal-photo.has-photo {
  background-position: center;
  background-size: cover;
}

.person-modal-photo.has-photo span {
  display: none;
}

.person-modal-content {
  align-self: center;
  padding: clamp(28px, 5vw, 48px);
}

.person-modal-content h2 {
  color: #10203d;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.person-modal-position {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 900;
}

.person-modal-department {
  margin: 8px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.person-modal-description {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.cta-section {
  width: min(1180px, calc(100% - 36px));
  margin: 88px auto;
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.95), rgba(245, 183, 0, 0.9)),
    url("assets/campus-hero.png") center / cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cta-section .eyebrow {
  color: #ffd166;
}

.cta-section p {
  max-width: 680px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 64px);
  color: #d9e6f7;
  background: #071c35;
}

.site-footer p {
  margin: 6px 0 0;
  color: #a9bbd1;
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(144, 205, 244, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e6f7;
  font-size: 0.92rem;
}

.visitor-counter strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-landmark {
  display: flex;
  min-width: min(100%, 310px);
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-landmark img {
  width: clamp(190px, 23vw, 300px);
  height: 116px;
  object-fit: contain;
}

.footer-landmark div {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid rgba(245, 183, 0, 0.72);
}

.footer-landmark strong {
  color: #ffd166;
  font-size: 1.04rem;
}

.footer-landmark span {
  color: #d9e6f7;
  font-size: 0.88rem;
  font-weight: 800;
}

.modal-gallery-links {
  margin-top: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(238, 247, 255, 0.82), rgba(240, 250, 248, 0.7));
  border: 1px solid rgba(193, 216, 239, 0.76);
  border-radius: 16px;
}

.modal-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-gallery-heading span {
  color: #0d274c;
  font-size: 0.96rem;
  font-weight: 900;
}

.modal-gallery-heading a {
  color: #0b65b9;
  font-weight: 800;
  text-decoration: none;
}

.modal-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.modal-gallery-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(170, 194, 221, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #06224a;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.modal-gallery-card:hover,
.modal-gallery-card:focus-visible {
  border-color: rgba(245, 183, 0, 0.44);
  box-shadow: 0 10px 22px rgba(11, 92, 173, 0.1);
  transform: translateY(-2px);
}

.modal-gallery-card img {
  width: 64px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.modal-gallery-card strong,
.modal-gallery-card small {
  display: block;
}

.modal-gallery-card strong {
  line-height: 1.35;
}

.modal-gallery-card small {
  margin-top: 3px;
  color: #5b6b80;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 22px;
  place-items: center;
}

.article-modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 20, 42, 0.82), rgba(7, 59, 114, 0.72));
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
  width: min(1320px, 100%);
  height: min(820px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(205, 224, 243, 0.9);
  border-radius: 24px;
  box-shadow:
    0 12px 32px rgba(4, 20, 42, 0.2),
    0 42px 120px rgba(4, 20, 42, 0.48);
}

.modal-panel::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 46px;
  height: 46px;
  color: #06224a;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(170, 194, 221, 0.86);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.1);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  background: var(--blue);
  transform: rotate(90deg);
}

.modal-image {
  position: relative;
  min-height: 0;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.08), rgba(245, 183, 0, 0.06)),
    url("assets/campus-hero.png") center / cover no-repeat;
  background-color: #e8f1fa;
  background-position: center;
  background-size: cover;
  box-shadow: inset -1px 0 rgba(170, 194, 221, 0.54);
}

.modal-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(0deg, rgba(7, 59, 114, 0.2), transparent 42%);
}

.modal-content {
  overflow-y: auto;
  padding: clamp(34px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.72), rgba(255, 255, 255, 0.98) 38%),
    #fff;
  scrollbar-color: rgba(11, 92, 173, 0.48) transparent;
  scrollbar-width: thin;
}

.modal-article-header {
  max-width: 720px;
  padding: 6px 68px 26px 0;
  border-bottom: 1px solid rgba(191, 213, 237, 0.82);
}

.modal-content h2 {
  max-width: 20ch;
  margin-top: 18px;
  color: #10203d;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.18;
}

.modal-article-header .category-pill {
  padding: 7px 12px;
  color: #075cae;
  font-size: 0.78rem;
  letter-spacing: 0;
  background: rgba(234, 243, 255, 0.94);
  border: 1px solid rgba(193, 216, 239, 0.82);
}

.modal-date {
  width: fit-content;
  margin: 18px 0 0;
  padding: 9px 13px;
  color: #41556f;
  background: rgba(234, 243, 255, 0.9);
  border: 1px solid rgba(193, 216, 239, 0.84);
  border-radius: 999px;
  font-weight: 800;
}

.modal-article-body {
  max-width: 720px;
  padding: 6px 0;
}

#modalSummary {
  margin: 26px 0 0;
  color: #344b67;
  font-size: 1.1rem;
  line-height: 2.05;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: -1px;
  margin: 30px -8px -8px;
  padding: 18px 8px 8px;
  background: linear-gradient(0deg, #fff 72%, rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(219, 231, 244, 0.78);
}

.modal-listen {
  gap: 8px;
}

.modal-listen > span[aria-hidden] {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  background: var(--blue);
  border-radius: 999px;
}

.modal-listen.speaking {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(245, 183, 0, 0.2);
}

.modal-listen.speaking > span[aria-hidden] {
  background: rgba(255, 255, 255, 0.2);
  animation: listen-pulse 1.3s ease-in-out infinite;
}

@keyframes listen-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(245, 183, 0, 0.18);
    transform: scale(0.9);
  }
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

.college-chatbot {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 55;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chatbot-launcher {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(135deg, #075cad, #f5b700);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  box-shadow:
    0 12px 28px rgba(7, 59, 114, 0.24),
    0 20px 48px rgba(245, 183, 0, 0.18);
  cursor: pointer;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
  box-shadow:
    0 16px 34px rgba(7, 59, 114, 0.28),
    0 26px 58px rgba(245, 183, 0, 0.22);
  transform: translateY(-4px);
}

.chatbot-launcher-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #073b72;
  font-size: 1.22rem;
  background: linear-gradient(135deg, #fff, #dff8f3);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(4, 20, 42, 0.16);
}

.chatbot-panel {
  display: none;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(170, 194, 221, 0.84);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(4, 20, 42, 0.18),
    0 30px 86px rgba(7, 59, 114, 0.24);
  backdrop-filter: blur(20px);
  transform-origin: bottom right;
}

.college-chatbot.open .chatbot-panel {
  display: block;
  animation: chatbot-open 220ms ease-out;
}

@keyframes chatbot-open {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  color: #fff;
  background: linear-gradient(135deg, #073b72, #f5b700);
}

.chatbot-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #073b72;
  font-weight: 900;
  background: #fff;
  border-radius: 13px;
}

.chatbot-header p,
.chatbot-header h2 {
  margin: 0;
}

.chatbot-header p {
  color: #a9eee1;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chatbot-header h2 {
  color: #fff;
  font-size: 1.06rem;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  color: #fff;
  font-size: 1.46rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  color: #4b6279;
  font-size: 0.76rem;
  font-weight: 800;
  background: #f3f8fd;
  border-bottom: 1px solid rgba(219, 231, 244, 0.94);
}

.chatbot-status span {
  width: 8px;
  height: 8px;
  background: #e7a800;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.12);
}

.chatbot-messages {
  display: grid;
  max-height: min(340px, calc(100vh - 350px));
  gap: 10px;
  overflow-y: auto;
  padding: 15px;
  scrollbar-color: rgba(11, 92, 173, 0.36) transparent;
  scrollbar-width: thin;
}

.chatbot-message {
  width: fit-content;
  max-width: 90%;
  padding: 10px 12px;
  color: #334b67;
  font-size: 0.9rem;
  background: #edf5fd;
  border: 1px solid rgba(193, 216, 239, 0.72);
  border-radius: 4px 13px 13px;
}

.chatbot-message.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #0b5cad, #f5b700);
  border-color: transparent;
  border-radius: 13px 4px 13px 13px;
}

.chatbot-message p {
  margin: 0;
}

.chatbot-loading p {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-loading p > span {
  width: 6px;
  height: 6px;
  background: #f5b700;
  border-radius: 999px;
  animation: chatbot-thinking 1.1s ease-in-out infinite;
}

.chatbot-loading p > span:nth-child(2) {
  animation-delay: 140ms;
}

.chatbot-loading p > span:nth-child(3) {
  animation-delay: 280ms;
}

.chatbot-loading small {
  margin-left: 5px;
  color: #567086;
  font-size: 0.76rem;
  font-weight: 800;
}

@keyframes chatbot-thinking {
  50% {
    opacity: 0.34;
    transform: translateY(-3px);
  }
}

.chatbot-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-message-links a {
  padding: 5px 8px;
  color: #075cad;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(170, 194, 221, 0.74);
  border-radius: 7px;
}

.chatbot-quick-actions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px 15px 12px;
}

.chatbot-quick-actions button {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #075cad;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  background: #f0f7ff;
  border: 1px solid rgba(170, 194, 221, 0.74);
  border-radius: 999px;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 12px;
  background: rgba(248, 251, 255, 0.94);
  border-top: 1px solid rgba(219, 231, 244, 0.94);
}

.chatbot-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: #243b5a;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid rgba(170, 194, 221, 0.8);
  border-radius: 10px;
  outline: none;
}

.chatbot-form input:focus {
  border-color: #f5b700;
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.12);
}

.chatbot-form button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(135deg, #0b5cad, #f5b700);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.chatbot-form.sending button {
  cursor: wait;
  opacity: 0.62;
}

.admin-page {
  background: #f4f8fc;
}

.admin-shell {
  width: min(1500px, calc(100% - 28px));
  margin: 0 auto 80px;
}

.admin-hero {
  margin: 42px 0 26px;
  padding: clamp(26px, 5vw, 46px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.94), rgba(245, 183, 0, 0.88)),
    url("assets/campus-hero.png") center / cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-sidebar-title {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 0 10px 14px;
  border-bottom: 1px solid #dbe7f4;
}

.admin-sidebar-title span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-title strong {
  color: var(--blue-deep);
  font-size: 1.15rem;
}

.admin-tabbar {
  display: grid;
  gap: 8px;
}

.admin-tabbar button {
  min-height: 42px;
  width: 100%;
  padding: 11px 14px;
  color: #33415c;
  font: inherit;
  font-weight: 900;
  text-align: left;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid transparent;
  border-left: 3px solid rgba(170, 194, 221, 0.8);
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-tabbar button.active,
.admin-tabbar button:hover,
.admin-tabbar button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(11, 92, 173, 0.2);
  transform: translateX(4px);
}

.admin-layout {
  display: block;
  min-width: 0;
}

.admin-stack {
  display: block;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-form,
.admin-preview {
  padding: clamp(10px, 2vw, 20px) clamp(4px, 1vw, 12px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-form,
.admin-preview,
.layout-manager {
  width: 100%;
}

.form-heading {
  margin-bottom: 20px;
}

.section-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #33415c;
  font-weight: 800;
}

.admin-filter {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  color: #33415c;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-filter select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-filter select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.14);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.form-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 900;
  background: #eaf3ff;
  border: 1px solid #cfe2f8;
  border-radius: 999px;
}

.category-chip button {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #8d2f1e;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  background: #ffe7df;
  border: 1px solid #ffc8ba;
  border-radius: 999px;
  cursor: pointer;
}

.image-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  margin: -4px 0 16px;
  color: var(--muted);
  background: #f8fbff;
  border: 1px dashed #c9d7e8;
  border-radius: 12px;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.logo-preview img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
}

.button.secondary {
  color: var(--blue);
  background: #eaf3ff;
  border-color: #cfe2f8;
}

.button.ai-action {
  color: #06224a;
  background: linear-gradient(135deg, #fff3c4, #fff4c2);
  border-color: #f1d36a;
  box-shadow: 0 12px 24px rgba(245, 183, 0, 0.12);
}

.ai-review-help {
  margin-top: 12px;
  padding: 10px 12px;
  color: #7c5b00;
  background: #fff9e2;
  border: 1px solid #f1dc8b;
  border-radius: 10px;
}

.admin-empty {
  margin-top: 20px;
  padding: 18px;
  color: var(--muted);
  background: #f8fbff;
  border: 1px dashed #c9d7e8;
  border-radius: 10px;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.basic-info-admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.basic-info-admin-tabs button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: #415168;
  font: inherit;
  text-align: left;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.basic-info-admin-tabs button:hover,
.basic-info-admin-tabs button:focus-visible {
  border-color: #88b9dc;
  box-shadow: 0 10px 22px rgba(11, 92, 173, 0.1);
  transform: translateY(-2px);
}

.basic-info-admin-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(11, 92, 173, 0.18);
}

.basic-info-admin-tabs span {
  font-weight: 900;
}

.basic-info-admin-tabs small {
  color: inherit;
  opacity: 0.82;
}

.basic-info-form-heading {
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: #eef7ff;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.basic-info-form-heading h3 {
  color: var(--blue-deep);
}

.basic-info-field-group[hidden] {
  display: none;
}

.admin-field-note {
  margin: 0;
  padding: 12px 14px;
  color: #36536f;
  font-size: 0.88rem;
  line-height: 1.65;
  background: rgba(234, 243, 255, 0.78);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.admin-content-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-content-card img,
.admin-thumb-placeholder {
  width: 118px;
  height: 88px;
  object-fit: cover;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: #edf4fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-thumb-placeholder {
  display: grid;
  place-items: center;
}

.document-admin-icon,
.document-card-icon {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(11, 92, 173, 0.16);
}

.document-admin-icon {
  width: 118px;
  height: 88px;
}

.admin-content-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  background: #eaf3ff;
  border-radius: 999px;
}

.documents-page {
  min-height: 70vh;
  padding: 22px clamp(18px, 4vw, 68px) 72px;
}

.documents-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: end;
  padding: clamp(24px, 5vw, 58px);
  color: #fff;
  background: #092b55;
  border-radius: 18px;
  overflow: hidden;
}

.documents-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.documents-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 29, 62, 0.94), rgba(11, 92, 173, 0.65), rgba(245, 183, 0, 0.42));
}

.documents-hero div,
.documents-hero > strong {
  position: relative;
  z-index: 1;
}

.documents-hero h1 {
  max-width: 760px;
  margin: 8px 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.05;
}

.documents-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  line-height: 1.8;
}

.documents-hero > strong {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(20px, 4vw, 48px);
  display: grid;
  min-width: 134px;
  min-height: 118px;
  place-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.documents-hero > strong span {
  font-size: 2.8rem;
  line-height: 1;
}

.documents-hero > strong small {
  margin-top: 8px;
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px) minmax(180px, 240px);
  gap: 14px;
  align-items: end;
  margin: 34px 0 18px;
}

.documents-toolbar h2 {
  margin-top: 4px;
}

.documents-toolbar input,
.documents-toolbar select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.documents-toolbar input:focus,
.documents-toolbar select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.14);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 152px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(18, 63, 105, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover {
  border-color: rgba(245, 183, 0, 0.58);
  box-shadow: 0 20px 38px rgba(18, 63, 105, 0.14);
  transform: translateY(-4px);
}

.document-card-icon {
  width: 82px;
  height: 94px;
}

.document-card-body span {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  background: #eaf3ff;
  border-radius: 999px;
}

.document-card h3 {
  margin: 9px 0 5px;
  color: var(--blue-deep);
}

.document-card p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.document-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.document-download {
  white-space: nowrap;
}

.documents-empty {
  margin-top: 20px;
}

@media (max-width: 920px) {
  .documents-toolbar,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .documents-hero {
    min-height: 360px;
    padding-bottom: 150px;
  }

  .documents-hero > strong {
    right: auto;
    left: clamp(24px, 5vw, 58px);
  }
}

@media (max-width: 560px) {
  .document-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .document-card-icon {
    width: 64px;
    height: 76px;
  }

  .document-download {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

.admin-content-card h3 {
  font-size: 1.05rem;
}

.admin-content-card p {
  margin: 8px 0;
  color: var(--muted);
}

.admin-content-card small {
  color: #6b7280;
}

.admin-content-card button {
  min-height: 36px;
  padding: 6px 12px;
  color: #8d2f1e;
  font: inherit;
  font-weight: 800;
  background: #ffe7df;
  border: 1px solid #ffc8ba;
  border-radius: 8px;
  cursor: pointer;
}

.admin-card-actions {
  display: grid;
  gap: 8px;
}

.admin-content-card .edit-action {
  color: #0b5cad;
  background: #eaf3ff;
  border-color: #cfe2f8;
}

.content-admin-form {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-section-card {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 46px rgba(11, 37, 69, 0.08);
}

.content-manage-section {
  margin-top: 20px;
}

.content-manage-section .admin-list {
  margin-top: 14px;
  gap: 10px;
}

.content-register-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.content-register-heading .form-heading {
  margin-bottom: 0;
}

.record-count {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 900;
  background: #eaf3ff;
  border: 1px solid #cfe2f8;
  border-radius: 999px;
}

.content-manage-section .admin-content-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  background: #fbfdff;
}

.content-manage-section .admin-content-card img,
.content-manage-section .admin-thumb-placeholder {
  width: 96px;
  height: 72px;
}

.content-manage-section .admin-content-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.analytics-panel {
  padding: clamp(10px, 2vw, 20px) clamp(4px, 1vw, 12px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.analytics-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.analytics-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.analytics-stats article {
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
}

.analytics-stats span,
.analytics-stats strong {
  display: block;
}

.analytics-stats span {
  color: var(--muted);
  font-weight: 800;
}

.analytics-stats strong {
  margin-top: 8px;
  color: var(--blue);
  font-size: 2rem;
}

.analytics-insight {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff9e2, #eef6ff);
  border: 1px solid #f1dc8b;
  border-radius: 12px;
}

.analytics-insight h3 {
  margin-top: 5px;
}

.analytics-insight p:last-child {
  margin-top: 8px;
  color: #33415c;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.analytics-chart-panel {
  min-width: 0;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
}

.analytics-chart-panel h3 {
  margin-top: 5px;
}

.analytics-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(100px, 1.5fr) auto;
  gap: 10px;
  align-items: center;
}

.analytics-bar-label {
  overflow: hidden;
  color: #33415c;
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar-track {
  height: 12px;
  overflow: hidden;
  background: #e4edf7;
  border-radius: 999px;
}

.analytics-bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: inherit;
}

.reading-chart .analytics-bar-track span {
  background: linear-gradient(90deg, #f5b700, #ffd166);
}

.analytics-bar-row strong {
  min-width: 42px;
  color: var(--blue-deep);
  font-size: 0.86rem;
  text-align: right;
}

.analytics-chart-empty {
  color: var(--muted);
}

.analytics-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.analytics-table th,
.analytics-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #e7eef7;
}

.analytics-table th {
  color: var(--blue-deep);
  background: #f8fbff;
}

.analytics-table tr:last-child td {
  border-bottom: 0;
}

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-deep), var(--teal));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 20px 54px rgba(7, 28, 53, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7, 28, 53, 0.78), rgba(245, 183, 0, 0.68)),
    url("assets/campus-hero.png") center / cover fixed;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  padding: clamp(24px, 5vw, 38px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(4, 20, 42, 0.32);
  backdrop-filter: blur(16px);
}

.login-brand {
  margin-bottom: 30px;
}

.login-heading h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #33415c;
  font-weight: 900;
}

.login-form input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.14);
}

.login-error {
  min-height: 24px;
  margin: 0;
  color: #b42318;
  font-weight: 800;
}


.layout-manager {
  margin-top: 0;
  padding: clamp(10px, 2vw, 20px) clamp(4px, 1vw, 12px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.layout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.layout-hint {
  color: var(--muted);
  font-weight: 800;
}

.section-drop-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-drop-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: grab;
}

.section-drop-card.dragging {
  opacity: 0.62;
  border-color: var(--teal);
}

.section-drop-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--teal);
  border-radius: 999px;
}

.section-drop-card h3 {
  font-size: 1.1rem;
}

.section-drop-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-visibility-toggle {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: center;
  cursor: pointer;
}

.section-visibility-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.section-visibility-toggle span {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  grid-row: span 2;
  background: #c9d5e3;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.section-visibility-toggle span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(11, 37, 69, 0.2);
  transition: transform 180ms ease;
}

.section-visibility-toggle input:checked + span {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.13);
}

.section-visibility-toggle input:checked + span::after {
  transform: translateX(22px);
}

.section-visibility-toggle input:focus-visible + span {
  outline: 3px solid rgba(11, 92, 173, 0.34);
  outline-offset: 3px;
}

.section-visibility-toggle strong {
  color: var(--blue-deep);
  font-size: 0.84rem;
}

.layout-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 0;
}

.layout-list {
  display: grid;
  gap: 14px;
}

.layout-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px 110px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.layout-row img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.layout-row-body span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  background: #eaf3ff;
  border-radius: 999px;
}

.layout-row-body h3 {
  font-size: 1.05rem;
}

.layout-row-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.layout-row label {
  display: grid;
  gap: 8px;
  color: #33415c;
  font-weight: 800;
}

.layout-row select,
.layout-row input {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.contact-page {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 88px;
}

.basic-info-page {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 88px;
}

.basic-info-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.basic-info-hero img,
.basic-info-hero div {
  grid-area: 1 / 1;
}

.basic-info-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basic-info-hero div {
  align-self: end;
  padding: clamp(28px, 6vw, 58px);
  background: linear-gradient(90deg, rgba(4, 20, 42, 0.94), rgba(4, 20, 42, 0.58) 58%, rgba(4, 20, 42, 0.1));
}

.basic-info-hero .eyebrow {
  color: #ffd166;
}

.basic-info-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.basic-info-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.basic-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.basic-stat-grid article,
.mission-grid article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(170, 194, 221, 0.66);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.06);
}

.basic-stat-grid article::before,
.mission-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
}

.basic-stat-grid span {
  display: block;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.basic-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.basic-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 20px;
  margin-top: 54px;
}

.basic-info-main,
.basic-info-side {
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(170, 194, 221, 0.66);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(11, 37, 69, 0.07);
}

.basic-info-main > p,
.basic-info-block p,
.identity-list p,
.mission-grid p {
  color: var(--muted);
}

.basic-info-main > p {
  margin: 22px 0 0;
  line-height: 1.9;
}

.basic-history-media {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid rgba(170, 194, 221, 0.7);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(11, 37, 69, 0.08);
}

.basic-history-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.basic-info-block {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(170, 194, 221, 0.6);
}

.basic-info-block p {
  margin: 12px 0 0;
}

.identity-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.identity-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(241, 247, 255, 0.82);
  border: 1px solid rgba(183, 209, 238, 0.76);
  border-radius: 10px;
}

.identity-list span,
.mission-grid strong {
  color: var(--teal);
  font-weight: 900;
}

.identity-list h3,
.mission-grid h3 {
  font-size: 1.02rem;
}

.identity-list p,
.mission-grid p {
  margin: 5px 0 0;
  font-size: 0.92rem;
}

.mission-section {
  margin-top: 56px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mission-grid article {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.mission-grid article:hover {
  border-color: rgba(245, 183, 0, 0.42);
  box-shadow: 0 22px 48px rgba(11, 92, 173, 0.12);
  transform: translateY(-5px);
}

.basic-data-section {
  margin-top: 68px;
}

.student-summary-grid,
.facility-summary-grid,
.program-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.student-filter-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(220px, 0.48fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(170, 194, 221, 0.68);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.06);
  backdrop-filter: blur(14px);
}

.student-filter-panel label {
  display: grid;
  gap: 6px;
  color: #33415c;
  font-size: 0.86rem;
  font-weight: 900;
}

.student-filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  font: inherit;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(170, 194, 221, 0.76);
  border-radius: 9px;
  outline: none;
}

.student-filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.14);
}

.student-filter-panel p {
  margin: 0;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 900;
}

.student-summary-grid,
.facility-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-summary-grid article,
.facility-summary-grid article {
  padding: 20px;
  background: linear-gradient(135deg, rgba(234, 243, 255, 0.84), rgba(232, 247, 236, 0.84));
  border: 1px solid rgba(170, 194, 221, 0.7);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.06);
}

.student-summary-grid span,
.student-summary-grid small,
.facility-summary-grid span,
.facility-summary-grid small {
  color: var(--muted);
  font-weight: 800;
}

.student-summary-grid strong,
.facility-summary-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(170, 194, 221, 0.7);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.06);
}

.basic-data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.basic-data-table th,
.basic-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(219, 231, 244, 0.9);
}

.basic-data-table th {
  color: var(--blue-deep);
  font-size: 0.86rem;
  background: rgba(234, 243, 255, 0.78);
}

.basic-data-table td {
  color: #415168;
}

.basic-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.basic-data-table tbody tr:hover {
  background: rgba(241, 247, 255, 0.72);
}

.basic-empty-row {
  padding: 24px !important;
  color: var(--muted) !important;
  text-align: center;
}

.basic-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(170, 194, 221, 0.9);
  border-radius: 12px;
}

.managed-basic-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.managed-basic-info-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(170, 194, 221, 0.7);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.07);
}

.managed-basic-info-card > span {
  width: fit-content;
  padding: 4px 9px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  background: #eaf3ff;
  border-radius: 999px;
}

.managed-basic-info-card h3 {
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.managed-basic-info-card p {
  margin: 0;
  color: #53647a;
  line-height: 1.7;
}

.managed-basic-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.managed-basic-info-meta small,
.managed-basic-info-meta strong {
  padding: 4px 8px;
  color: #7c5b00;
  font-size: 0.78rem;
  background: #fff9e2;
  border-radius: 999px;
}

.managed-history-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: center;
}

.managed-history-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.managed-history-card div {
  display: grid;
  gap: 12px;
}

.managed-student-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.managed-student-counts small {
  padding: 7px 9px;
  color: #415168;
  font-weight: 800;
  background: #eef7ff;
  border-radius: 8px;
}

.managed-student-counts strong {
  color: var(--blue);
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(170, 194, 221, 0.7);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.06);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.program-grid button:hover,
.program-grid button:focus-visible {
  border-color: rgba(245, 183, 0, 0.42);
  box-shadow: 0 22px 48px rgba(11, 92, 173, 0.12);
  transform: translateY(-5px);
}

.program-grid span {
  color: var(--teal);
  font-weight: 900;
}

.program-grid h3 {
  font-size: 1.06rem;
}

.program-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.program-grid small {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.status-pill.ready {
  color: #7c5b00;
  background: #fff9e2;
}

.status-pill.maintain {
  color: #7c3f00;
  background: #fff1d6;
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 18px;
  place-items: center;
}

.program-modal.open {
  display: grid;
}

.program-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(202, 221, 241, 0.82);
  border-radius: 22px;
  box-shadow:
    0 10px 26px rgba(4, 20, 42, 0.18),
    0 34px 100px rgba(4, 20, 42, 0.42);
}

.program-modal-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), #ffd166);
}

.program-modal-heading {
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.96), rgba(245, 183, 0, 0.9)),
    var(--shared-hero-image, url("assets/campus-hero.png")) center / cover;
}

.program-modal-heading .eyebrow {
  color: #ffd166;
}

.program-modal-heading span {
  display: inline-flex;
  min-width: 44px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 5px 0 12px;
  color: #06224a;
  font-weight: 900;
  background: #ffd166;
  border-radius: 999px;
}

.program-modal-heading h2 {
  padding-right: 48px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.program-modal-heading > p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.program-modal-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.program-modal-content article {
  padding: 16px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(170, 194, 221, 0.68);
  border-radius: 11px;
}

.program-modal-content h3 {
  color: var(--blue-deep);
  font-size: 1.04rem;
}

.program-modal-content p,
.program-modal-content ul {
  margin: 10px 0 0;
  color: var(--muted);
}

.program-modal-content ul {
  padding-left: 20px;
}

.program-modal-content li + li {
  margin-top: 6px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--teal));
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.contact-hero div {
  padding: clamp(24px, 5vw, 46px);
}

.contact-hero .eyebrow {
  color: #ffd166;
}

.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.contact-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 24px;
  margin-top: 26px;
}

.contact-info-panel,
.map-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 46px rgba(11, 37, 69, 0.08);
}

.contact-info-panel h2,
.map-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-list article {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-list span {
  color: var(--teal);
  font-weight: 900;
}

.contact-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-list a {
  color: var(--blue);
}

.map-panel iframe {
  width: 100%;
  height: 430px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
}

.gallery-page {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 88px;
}

.gallery-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 114, 0.95), rgba(245, 183, 0, 0.86)),
    var(--shared-hero-image, url("assets/campus-hero.png")) center / cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.gallery-hero .eyebrow {
  color: #ffd166;
}

.gallery-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.gallery-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.gallery-hero-stat {
  display: grid;
  min-width: 160px;
  place-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.gallery-hero-stat strong {
  font-size: 3.4rem;
  line-height: 1;
}

.gallery-hero-stat span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 22px;
}

.gallery-toolbar h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-feature {
  margin-bottom: 18px;
}

.gallery-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(11, 37, 69, 0.12);
  cursor: pointer;
}

.gallery-feature-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-feature-card div {
  align-self: center;
  padding: clamp(20px, 3vw, 30px);
}

.gallery-feature-card span {
  color: var(--teal);
  font-weight: 900;
}

.gallery-feature-card h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.gallery-feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-feature-card strong,
.gallery-card strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 10px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  background: #eaf3ff;
  border-radius: 999px;
}

.gallery-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 46px rgba(11, 37, 69, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 64px rgba(11, 37, 69, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.gallery-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.gallery-preview img {
  height: 130px;
  border-radius: 8px;
}

.gallery-admin-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gallery-admin-card {
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(11, 37, 69, 0.12);
}

.gallery-admin-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.gallery-admin-card div {
  padding: 14px;
}

.gallery-admin-card span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.gallery-admin-card h3 {
  margin-top: 6px;
  font-size: 1rem;
}

.gallery-admin-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-admin-card button {
  min-height: 36px;
  width: 100%;
  color: #8d2f1e;
  font: inherit;
  font-weight: 900;
  background: #ffe7df;
  border: 1px solid #ffc8ba;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 18px;
  place-items: center;
}

.gallery-admin-modal.open {
  display: grid;
}

.gallery-admin-modal-grid figcaption {
  display: grid;
  gap: 10px;
}

.gallery-admin-modal-grid figcaption span {
  color: var(--muted);
  font-weight: 800;
}

.gallery-admin-modal-grid button {
  min-height: 36px;
  color: #8d2f1e;
  font: inherit;
  font-weight: 900;
  background: #ffe7df;
  border: 1px solid #ffc8ba;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-card div {
  padding: 14px;
}

.gallery-card span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.gallery-card h3 {
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.gallery-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 18px;
  place-items: center;
}

.gallery-modal.open {
  display: grid;
}

.gallery-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(4, 20, 42, 0.38);
}

.gallery-modal-heading {
  padding: clamp(22px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}

.gallery-modal-heading span {
  color: var(--teal);
  font-weight: 900;
}

.gallery-modal-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-modal-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.gallery-modal-grid figure {
  margin: 0;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.gallery-modal-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.gallery-image-button:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.gallery-modal-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: clamp(12px, 3vw, 30px);
  place-items: center;
}

.gallery-lightbox.open {
  display: grid;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 214, 10, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(6, 23, 44, 0.94), rgba(4, 43, 76, 0.9));
  backdrop-filter: blur(14px);
}

.gallery-lightbox-panel {
  position: relative;
  width: min(1180px, 100%);
  color: #fff;
}

.gallery-lightbox-panel figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 72px);
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.gallery-lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

.gallery-lightbox-panel figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(5, 22, 42, 0.82);
  font-weight: 900;
}

.gallery-lightbox-panel figcaption span {
  flex: 0 0 auto;
  color: #ffd60a;
}

.gallery-lightbox-close {
  top: 18px;
  right: 18px;
  z-index: 3;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-lightbox-nav:hover {
  background: #ffd60a;
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox-nav.prev {
  left: -18px;
}

.gallery-lightbox-nav.next {
  right: -18px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .admin-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav a {
    justify-content: flex-start;
    border-radius: 10px;
  }

  .notice-strip,
  .section-heading,
  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    gap: 16px;
  }

  .footer-landmark {
    width: 100%;
    justify-content: flex-start;
  }

  .intro-section {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 76px;
    z-index: 12;
    padding: 12px;
    border-radius: 14px;
  }

  .admin-sidebar-title {
    display: none;
  }

  .admin-tabbar {
    display: flex;
    overflow-x: auto;
  }

  .admin-tabbar button {
    width: auto;
    flex: 0 0 auto;
    border-radius: 999px;
    text-align: center;
  }

  .analytics-stats {
    grid-template-columns: 1fr;
  }

  .analytics-charts {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-filter-panel p {
    grid-column: 1 / -1;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deputy-grid,
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-card {
    grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
  }

  .modal-panel {
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .college-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-launcher {
    min-height: 54px;
    padding: 6px;
  }

  .chatbot-launcher-icon {
    width: 40px;
    height: 40px;
  }

  .chatbot-launcher-label {
    display: none;
  }

  .chatbot-panel {
    width: min(360px, calc(100vw - 24px));
  }

  .chatbot-messages {
    max-height: min(290px, calc(100vh - 330px));
  }

  .site-header {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    top: 70px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(4, 20, 42, 0.88), rgba(4, 20, 42, 0.44));
  }

  .hero-content {
    align-self: end;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-block: 70px 104px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.42rem;
  }

  .notice-strip {
    margin-top: -44px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .deputy-grid,
  .department-grid {
    grid-template-columns: 1fr;
  }

  .director-grid::after,
  .deputy-grid::before {
    display: none;
  }

  .org-chart {
    gap: 14px;
  }

  .people-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .person-modal {
    padding: 8px;
  }

  .person-modal-panel {
    display: block;
    max-height: calc(100vh - 16px);
    overflow: auto;
    border-radius: 14px;
  }

  .person-modal-photo {
    min-height: 230px;
  }

  .article-card,
  .latest-card {
    display: flex;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .card-image,
  .latest-card .card-image {
    min-height: 220px;
  }

  .modal-image {
    height: 190px;
  }

  .article-modal {
    padding: 8px;
  }

  .modal-panel {
    display: block;
    height: auto;
    max-height: calc(100vh - 16px);
    overflow: auto;
    border-radius: 14px;
  }

  .modal-content {
    overflow: visible;
    padding: 22px 18px 18px;
  }

  .modal-content h2 {
    max-width: 100%;
    font-size: 1.78rem;
    line-height: 1.22;
  }

  .modal-article-header {
    padding: 2px 46px 20px 0;
  }

  #modalSummary {
    font-size: 1rem;
    line-height: 1.9;
  }

  .modal-actions {
    justify-content: stretch;
    margin: 24px -2px -2px;
    padding: 16px 2px 2px;
  }

  .modal-actions .button {
    flex: 1 1 100%;
  }

  .admin-content-card {
    grid-template-columns: 1fr;
  }

  .content-register-heading {
    flex-direction: column;
  }

  .content-manage-section .admin-content-card {
    grid-template-columns: 1fr;
  }

  .content-manage-section .admin-content-card img,
  .content-manage-section .admin-thumb-placeholder {
    width: 100%;
    height: 170px;
  }

  .layout-toolbar,
  .gallery-toolbar,
  .layout-row,
  .section-drop-card,
  .gallery-feature-card,
  .basic-info-layout,
  .contact-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .basic-info-admin-tabs {
    grid-template-columns: 1fr;
  }

  .admin-form-grid,
  .managed-history-card {
    grid-template-columns: 1fr;
  }

  .basic-stat-grid,
  .student-summary-grid,
  .facility-summary-grid,
  .managed-basic-info-grid,
  .program-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .student-filter-panel {
    grid-template-columns: 1fr;
  }

  .student-filter-panel p {
    grid-column: auto;
  }

  .program-modal {
    padding: 8px;
  }

  .program-modal-panel {
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .program-modal-content {
    grid-template-columns: 1fr;
  }

  .layout-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .layout-row img {
    width: 100%;
    height: 180px;
  }

  .contact-hero img {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-admin-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero,
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-feature-card img {
    height: 260px;
  }

  .gallery-preview {
    grid-template-columns: 1fr;
  }

  .gallery-modal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal-grid img {
    height: 240px;
  }

  .gallery-lightbox-panel figure {
    max-height: calc(100vh - 44px);
  }

  .gallery-lightbox-panel img {
    max-height: calc(100vh - 150px);
  }

  .gallery-lightbox-panel figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 76px;
    width: 46px;
    height: 46px;
    font-size: 2.2rem;
    transform: none;
  }

  .gallery-lightbox-nav:hover {
    transform: scale(1.04);
  }

  .gallery-lightbox-nav.prev {
    left: 18px;
  }

  .gallery-lightbox-nav.next {
    right: 18px;
  }

  .admin-content-card img,
  .admin-thumb-placeholder {
    width: 100%;
    height: 170px;
  }
}


