:root {
  --navy: #06204a;
  --navy-2: #0a316d;
  --yellow: #ffc400;
  --yellow-2: #ffd84d;
  --ink: #10203f;
  --muted: #65748b;
  --line: #e5eaf2;
  --soft: #f6f8fc;
  --white: #ffffff;
  --link: #0067c5;
  --link-hover: #004f98;
  --shadow: 0 12px 30px rgba(6, 32, 74, 0.12);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--white);
  line-height: 1.6;
}

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

.page-content a[href],
.detail-body a[href] {
  color: var(--link);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a[href]:hover,
.detail-body a[href]:hover {
  color: var(--link-hover);
}

.page-content .btn,
.page-content .small-btn,
.page-content .back-link,
.page-content .content-card a,
.page-content .content-icon,
.page-content .gallery-cover-link,
.page-content .staff-category-card,
.page-content .staff-category-nav a,
.page-content .resource-link-item {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}

.topbar .container,
.brandbar .container,
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar .container {
  min-height: 42px;
}

.top-items {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--yellow);
  flex: 0 0 auto;
}

.brandbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brandbar .container {
  min-height: 132px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 76px;
  max-width: 220px;
  object-fit: contain;
}

.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--yellow) 0 32%, transparent 33%),
    conic-gradient(from 0deg, var(--yellow), #f3a700, var(--yellow), #f3a700, var(--yellow));
  box-shadow: inset 0 0 0 6px var(--navy), 0 5px 14px rgba(6, 32, 74, 0.18);
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.seal span {
  position: relative;
  font-size: 21px;
  line-height: 1;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  color: var(--navy);
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-title span {
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.helpbox {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  text-align: left;
}

.helpbox .icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #fff8d7;
}

.helpbox strong {
  display: block;
  color: var(--navy-2);
  font-size: 20px;
  line-height: 1.2;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 20px rgba(6, 32, 74, 0.06);
}

.navbar .container {
  min-height: 72px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  color: var(--yellow);
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  padding: 25px 15px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-caret {
  margin-left: 5px;
  font-size: 11px;
}

.menu a:hover,
.menu a.active {
  color: var(--navy);
  background: var(--yellow);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.has-dropdown:hover > .menu-dropdown,
.has-dropdown:focus-within > .menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-dropdown a {
  padding: 11px 16px;
  white-space: nowrap;
  text-transform: none;
}

.menu-dropdown a:hover {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
}

.hero-carousel {
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide-bg {
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  transform-origin: center center;
  will-change: transform;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.active .hero-slide-bg {
  animation-duration: 6800ms;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.hero-slide.hero-zoom-in.active .hero-slide-bg {
  animation-name: heroZoomIn;
}

.hero-slide.hero-zoom-out.active .hero-slide-bg {
  animation-name: heroZoomOut;
}

.hero-matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes heroZoomIn {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.12);
  }
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.14);
  }

  to {
    transform: scale(1.03);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(710px, 100%);
  padding: 72px 0 86px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1[data-hero-typewriter] {
  position: relative;
  display: block;
  max-width: 100%;
}

.hero-type-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.88em;
  margin-left: 0.09em;
  background: var(--yellow);
  transform: translateY(0.12em);
  animation: heroTypeCaret 0.78s steps(1) infinite;
}

.hero h1[data-hero-typewriter].typing-done .hero-type-caret {
  background: rgba(255, 255, 255, 0.95);
}

.hero h1 .hero-highlight {
  color: var(--yellow);
}

.hero-type-char {
  visibility: hidden;
}

.hero-type-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-type-char.is-visible {
  visibility: visible;
}

@keyframes heroTypeCaret {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0;
  }
}

.hero p {
  max-width: 570px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero-fact .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.16);
  border: 1px solid rgba(255, 196, 0, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 0;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 196, 0, 0.28);
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: max(20px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.slider-dots span,
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.slider-dots button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.slider-dots span:first-child,
.slider-dots button.active {
  background: var(--yellow);
}

section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.2;
}

.see-all {
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 900;
}

.resources {
  background: var(--white);
}

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

.resource-card {
  min-height: 142px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--resource-bg, var(--white));
  text-align: center;
  box-shadow: 0 8px 18px rgba(6, 32, 74, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}

.resource-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff7d1;
  color: var(--navy);
  line-height: 0;
}

.resource-card .icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.resource-card strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
}

.resource-card > span:not(.icon) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.banner-section {
  padding: 0 0 54px;
  background: var(--white);
}

.banner-stack {
  display: grid;
  gap: 18px;
}

.banner-item {
  position: relative;
  display: grid;
  min-height: clamp(340px, 34vw, 520px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--soft);
  box-shadow: none;
  isolation: isolate;
}

.banner-item::after {
  content: none;
}

.banner-item img {
  width: 100%;
  height: clamp(340px, 34vw, 520px);
  object-fit: cover;
  object-position: center center;
}

.banner-item--original {
  width: min(1180px, calc(100% - 40px));
  min-height: auto;
  margin-inline: auto;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(6, 32, 74, 0.08);
}

.banner-item--original img {
  width: auto;
  height: auto;
  min-height: 0;
  max-height: 520px;
  object-fit: contain;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  align-items: start;
}

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

.service-card,
.news-card,
.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(6, 32, 74, 0.06);
}

.service-card > a:first-child,
.news-card > a:first-child,
.gallery-card {
  display: block;
  overflow: hidden;
}

.service-card img,
.news-card img,
.gallery-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.service-card img,
.news-card img,
.gallery-card img,
.facility-thumb img,
.staff-card img,
.content-card img,
  .gallery-photo-card img,
  .partner img,
  .banner-item img,
  .detail-image,
  .related-thumb img,
  .staff-detail-photo img {
  transition: transform 0.42s ease, filter 0.42s ease;
  will-change: transform;
}

.service-card:hover img,
.news-card:hover img,
.gallery-card:hover img,
.facility-item:hover .facility-thumb img,
.staff-card:hover img,
  .content-card:hover img,
  .gallery-photo-card:hover img,
  .partner:hover img,
  .banner-item:hover img,
  .detail-image:hover,
  .detail-image-frame:hover .detail-image,
  .related-card:hover .related-thumb img,
  .staff-detail-photo:hover img {
  transform: scale(1.08);
}

.service-body,
.news-body {
  padding: 18px;
}

.service-body h3,
.news-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.service-body p,
.news-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.small-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.facility-list {
  display: grid;
  gap: 15px;
}

.facility-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: start;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

a.facility-item:hover {
  background: var(--soft);
  transform: translateX(3px);
}

.facility-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--yellow);
}

.facility-thumb {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

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

.facility-item h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3;
}

.facility-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.updates {
  background: var(--soft);
}

.staff-section {
  background: var(--soft);
}

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

.staff-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(6, 32, 74, 0.06);
}

.staff-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}

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

.staff-body {
  padding: 16px;
  text-align: center;
}

.staff-body h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.staff-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.update-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(6, 32, 74, 0.05);
}

.list {
  display: grid;
  gap: 20px;
}

.date-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

a.date-row:hover {
  background: rgba(6, 32, 74, 0.04);
  transform: translateX(3px);
}

.date-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.date-badge strong {
  font-size: 23px;
}

.date-badge span {
  color: var(--yellow);
  font-size: 12px;
}

.agenda .date-badge {
  background: var(--yellow);
  color: var(--navy);
}

.agenda .date-badge span {
  color: var(--navy);
}

.date-row h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.date-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

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

.news-body time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.gallery-card-title {
  display: block;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  background: var(--white);
}

.gallery-card img {
  height: 145px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.58s ease,
    transform 0.58s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-slide-bg {
    animation: none;
    transform: scale(1.04);
  }

  .hero-matrix-canvas {
    display: none;
  }

  .partner-track {
    transition: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card img,
  .news-card img,
  .gallery-card img,
  .facility-thumb img,
  .staff-card img,
  .content-card img,
  .gallery-photo-card img,
  .partner img,
  .banner-item img,
  .detail-image,
  .related-thumb img,
  .staff-detail-photo img {
    transition: none;
  }

  .service-card:hover img,
  .news-card:hover img,
  .gallery-card:hover img,
  .facility-item:hover .facility-thumb img,
  .staff-card:hover img,
  .content-card:hover img,
  .gallery-photo-card:hover img,
  .partner:hover img,
  .banner-item:hover img,
  .detail-image:hover,
  .detail-image-frame:hover .detail-image,
  .related-card:hover .related-thumb img,
  .staff-detail-photo:hover img {
    transform: none;
  }
}

.stats {
  padding: 46px 0;
  background: var(--navy);
  color: var(--white);
}

.stats h2 {
  margin: 0 0 26px;
  font-size: 26px;
}

.stats h2 span {
  color: var(--yellow);
  font-size: 15px;
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat .icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.partners {
  padding: 40px 0 50px;
}

.partner-carousel {
  position: relative;
}

.partner-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.partner-viewport.is-dragging {
  cursor: grabbing;
}

.partner-track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform 0.42s ease;
}

.partner {
  display: grid;
  place-items: center;
  flex: 0 0 calc((100% - 72px) / 5);
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.partner:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.partner img {
  width: min(100%, 172px);
  height: min(100%, 172px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.partner-name {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  line-height: 1.25;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 74px 0;
  background: var(--navy);
  color: var(--white);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 32, 74, 0.9) 0%, rgba(6, 32, 74, 0.72) 48%, rgba(6, 32, 74, 0.64) 100%),
    rgba(6, 32, 74, 0.5);
  content: "";
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.page-hero .crumb {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.page-hero .crumb a {
  color: var(--yellow);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-content {
  color: var(--ink);
  font-size: 17px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-shell--single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.detail-image-frame {
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 26px rgba(6, 32, 74, 0.09);
}

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

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--resource-bg, var(--white));
  box-shadow: 0 8px 20px rgba(6, 32, 74, 0.06);
}

.content-card > a:first-child,
.staff-card > a {
  display: block;
}

.content-card > a:first-child:not(.content-icon) {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}

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

.content-icon {
  display: grid;
  place-items: center;
  height: 118px;
  background: #fff7d1;
  color: var(--navy);
}

.content-card-body {
  padding: 20px;
}

.content-card-body time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.content-card-body h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
}

.content-card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-card-heading {
  padding-bottom: 14px;
}

.gallery-card-heading h2 {
  margin-bottom: 0;
}

.gallery-cover-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

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

.staff-category-card {
  display: grid;
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 32, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.staff-category-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.staff-category-card .icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff7d1;
  color: var(--navy);
}

.staff-category-card strong {
  color: var(--navy);
  font-size: 25px;
  line-height: 1.2;
}

.staff-category-card span:not(.icon) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.staff-category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.staff-category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.staff-category-nav a.active,
.staff-category-nav a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.detail-body {
  margin-bottom: 24px;
  color: var(--ink);
  line-height: 1.8;
}

.detail-body > :first-child {
  margin-top: 0;
}

.safe-embed {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.safe-embed iframe {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
}

.resource-link-panel {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.resource-link-panel h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
}

.resource-link-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-link-item {
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--link);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
  box-shadow: 0 8px 18px rgba(6, 32, 74, 0.06);
}

.resource-link-item img {
  width: 100%;
  height: 118px;
  padding: 12px;
  object-fit: contain;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.resource-link-item span {
  padding: 14px;
}

.resource-link-item:hover img {
  transform: scale(1.07);
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-detail {
  min-width: 0;
}

.gallery-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.gallery-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(6, 32, 74, 0.07);
}

.gallery-photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

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

.gallery-photo-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.detail-sidebar h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.related-thumb,
.related-icon,
.related-letter {
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

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

.related-icon,
.related-letter {
  background: #fff7d1;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
}

.related-copy {
  min-width: 0;
}

.related-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.35;
}

.related-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.staff-detail-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.staff-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(6, 32, 74, 0.08);
}

.staff-detail-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.staff-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-detail-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--navy);
}

.staff-detail-copy {
  min-width: 0;
}

.back-link {
  color: var(--navy-2);
  font-weight: 900;
}

.empty-content {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-content h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.pagination-wrap {
  margin-top: 28px;
}

.app-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.app-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-pagination-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.app-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.app-pagination-btn.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
}

.app-pagination-btn.is-disabled {
  color: var(--muted);
  opacity: 0.55;
}

.pagination-wrap nav:not(.app-pagination) {
  display: grid;
  gap: 10px;
}

.pagination-wrap nav:not(.app-pagination) > div:first-child {
  display: none;
}

.pagination-wrap nav:not(.app-pagination) > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.pagination-wrap nav:not(.app-pagination) p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pagination-wrap nav:not(.app-pagination) span[aria-current="page"] span,
.pagination-wrap nav:not(.app-pagination) a,
.pagination-wrap nav:not(.app-pagination) span[aria-disabled="true"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.pagination-wrap nav:not(.app-pagination) span[aria-current="page"] span {
  border-color: var(--yellow);
  background: var(--yellow);
}

.pagination-wrap nav:not(.app-pagination) span[aria-disabled="true"] span {
  color: var(--muted);
  opacity: 0.55;
}

.pagination-wrap nav:not(.app-pagination) svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer {
  background: #041936;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 42px;
  padding: 54px 0;
}

.footer h3 {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 17px;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.footer ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a[href] {
  color: var(--yellow-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a[href]:hover {
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .seal {
  width: 54px;
  height: 54px;
  box-shadow: inset 0 0 0 4px var(--navy), 0 4px 12px rgba(0, 0, 0, 0.24);
}

.footer-brand .brand-logo {
  height: 54px;
  max-width: 170px;
}

.footer-brand .seal::before {
  inset: 13px;
}

.footer-brand .seal span {
  font-size: 15px;
}

.footer-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.footer-brand > span > span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.copyright {
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  padding: 14px;
}

.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating .chat {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.floating .wa,
.to-top {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.to-top {
  border-radius: var(--radius);
}

.mobile-only {
  display: none;
}

@media (max-width: 1040px) {
  .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .two-columns,
  .latest-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

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

  .detail-shell,
  .staff-detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .partner-track {
    gap: 16px;
  }

  .partner {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 780px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .topbar .container,
  .brandbar .container {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .top-items {
    gap: 10px;
  }

  .brandbar .container {
    min-height: auto;
  }

  .helpbox {
    display: none;
  }

  .brand-title strong {
    font-size: 24px;
  }

  .brand-title span {
    font-size: 12px;
  }

  .seal {
    width: 62px;
    height: 62px;
  }

  .brand-logo {
    height: 62px;
    max-width: 190px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .navbar .container {
    min-height: 62px;
  }

  .menu {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    padding: 15px 22px;
    border-top: 1px solid var(--line);
  }

  .menu-dropdown {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-dropdown a {
    padding-left: 38px;
    background: var(--soft);
  }

  .mobile-only {
    display: block;
    color: var(--navy);
    font-weight: 900;
  }

  .hero,
  .hero .container {
    min-height: 600px;
  }

  .hero-copy {
    padding: 58px 0 78px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-facts,
  .content-grid,
  .staff-category-grid,
  .service-grid,
  .staff-grid,
  .gallery-detail-grid,
  .resource-link-items,
  .update-grid,
  .news-list,
  .stats-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .banner-section {
    padding: 0 0 42px;
  }

  .banner-item {
    min-height: 260px;
  }

  .banner-item img {
    height: 260px;
  }

  .banner-item--original {
    padding: 12px;
  }

  .banner-item--original img {
    height: auto;
  }

  .partner-track {
    gap: 14px;
  }

  .partner {
    flex-basis: calc((100% - 14px) / 2);
  }

  .app-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-detail-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .staff-detail-photo {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

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

  .floating .chat {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .partner {
    flex-basis: 100%;
  }

  .footer ul {
    grid-template-columns: 1fr;
  }
}
