@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-800.woff2') format('woff2');
}

:root {
  --blue: #009fe3;
  --blue-ink: #0077b6;
  --blue-ink-hover: #006ea8;
  --navy: #0b1220;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e8eef5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--blue-ink); }

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"],
.nav-dropdown.is-active .nav-dropdown-toggle {
  color: var(--blue-ink);
}

.nav-caret {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  width: max-content;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(0, 159, 227, 0.08);
  color: var(--blue-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.cart-link svg { width: 19px; height: 19px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-ink);
  color: #ffffff;
}

.btn-dark {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.28);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(560px, 74vh, 820px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0 9%;
}

.hero-copy { max-width: 820px; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(13, 63, 95, 0.18);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #eaf6fd;
  max-width: 620px;
  margin-bottom: 26px;
}

.about {
  background: #ffffff;
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
  gap: 64px;
  align-items: center;
}

.section-label {
  display: block;
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 760px;
}

.about-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 600px;
}

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

.stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  text-align: center;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--blue-ink);
  line-height: 1;
  margin-bottom: 7px;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divisions {
  background: var(--soft);
  padding: 76px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

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

.div-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  background: var(--navy);
}

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

.div-card:hover img { transform: scale(1.035); }

.div-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(2, 20, 40, 0) 35%, rgba(3, 18, 35, 0.86) 100%);
}

.div-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.div-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.prestasi {
  background: #ffffff;
  padding: 76px 0;
}

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

.ach-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ach-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ach-body { padding: 14px 16px 18px; }

.ach-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 7px;
}

.ach-year {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.ach-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.prestasi-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.prestasi-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.prestasi-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.prestasi-more:hover {
  color: var(--blue-ink-hover);
}

.prestasi-more:hover svg {
  transform: translateX(3px);
}

.galeri {
  background: #ffffff;
  padding: 76px 0;
}

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

.gal-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.12);
}

picture > source { display: none; }

.div-card picture,
.ach-card picture,
.gal-grid picture { display: contents; }

.partners {
  background: var(--soft);
  padding: 71.5px 0 62px;
  text-align: center;
}

.partners .section-label { margin-bottom: 13.5px; }
.partners .section-title { font-size: 28.5px; }
.partners .section-head { margin-bottom: 35px; }

.sponsor-board {
  width: min(843px, 100%);
  margin: 0 auto;
}

.sponsor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sponsor-row--platinum {
  justify-content: center;
  gap: 3.74%;
}

.sponsor-row--gold { margin-top: 62px; }
.sponsor-row--silver { margin-top: 75px; }

.sponsor-row--bronze {
  width: 61.74%;
  margin: 43px auto 0;
}

.sponsor-row picture { display: block; }

.sponsor-logo {
  display: block;
  width: 100%;
  height: auto;
}

.sponsor-row--platinum picture:nth-child(1) { width: 45.255%; }
.sponsor-row--platinum picture:nth-child(2) { width: 50.653%; }

.sponsor-row--gold picture:nth-child(1) { width: 13.464%; }
.sponsor-row--gold picture:nth-child(2) { width: 15.954%; }
.sponsor-row--gold picture:nth-child(3) { width: 15.954%; }
.sponsor-row--gold picture:nth-child(4) { width: 17.616%; }
.sponsor-row--gold picture:nth-child(5) { width: 17.023%; }

.sponsor-row--silver picture:nth-child(1) { width: 32.562%; }
.sponsor-row--silver picture:nth-child(2) { width: 29.241%; }
.sponsor-row--silver picture:nth-child(3) { width: 31.317%; }

.sponsor-row--bronze picture:nth-child(1) { width: 52.546%; }
.sponsor-row--bronze picture:nth-child(2) { width: 39.097%; }

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 48px 0 22px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-team {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 2px;
}

.footer-heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-contact p,
.footer-social a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-contact svg,
.footer-social svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-social a:hover { color: #ffffff; }

.footer-copy {
  text-align: center;
  font-size: 10.5px;
  color: #cbd5e1;
  padding-top: 18px;
}

.page-section {
  padding: 96px 0;
  min-height: 60vh;
  background: var(--soft);
}

.page-section .section-label { margin-bottom: 8px; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.gal-grid img.reveal { transform: translateY(18px) scale(0.98); }
.gal-grid img.reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .about-inner { gap: 44px; }
  .footer-inner { gap: 36px; }
}

@media (max-width: 1000px) {
  .main-nav { margin-left: auto; gap: 14px; }
}

.status-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 81px);
  padding: 88px 0;
  background: radial-gradient(circle at 50% 0%, #eaf7fe 0%, #ffffff 58%);
}

.status-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.status-code {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-ink);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.status-title {
  margin: 0;
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.15;
}

.status-text {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.maintenance-page .status-main {
  min-height: calc(100vh - 81px);
}

@media (max-width: 768px) {
  .status-main {
    min-height: calc(100vh - 71px);
    padding: 64px 0;
  }

  .status-actions .btn {
    width: 100%;
  }
}

.scroll-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-ink);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

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

.scroll-top.is-visible:hover {
  background: var(--blue-ink-hover);
  transform: translateY(-2px);
}

.scroll-top:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; width: 100%; }
  .main-nav .nav-dropdown { width: 100%; display: block; }
  .main-nav .nav-dropdown-toggle { width: 100%; padding: 11px 0; justify-content: flex-start; }
  .main-nav .nav-dropdown-toggle .nav-caret { margin-left: auto; }
  .main-nav .nav-dropdown .nav-dropdown-menu {
    position: static;
    left: auto;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 2px 0 6px 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .main-nav .nav-dropdown.is-open .nav-dropdown-menu { display: block; transform: none; }
  .main-nav .nav-dropdown-menu a { padding: 9px 0; }
  .main-nav .nav-dropdown-menu a:hover,
  .main-nav .nav-dropdown-menu a.active { background: transparent; }
  .menu-toggle { display: block; }
  .about-inner { grid-template-columns: 1fr; }
  .stats-grid { max-width: 520px; }
  .div-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { height: 70px; }
  .main-nav { top: 70px; }
  .logo img { height: 30px; }
  .hero { min-height: 78vh; padding: 48px 0; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% center; }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 32, 54, 0.42), rgba(4, 32, 54, 0.26)); }
  .hero-content { position: relative; z-index: 2; padding: 0 20px; transform: none; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
  .about-title br { display: none; }
  .about,
  .divisions,
  .prestasi,
  .galeri { padding: 56px 0; }
  .about-inner { gap: 32px; }
  .about-title { font-size: 26px; }
  .div-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { padding: 56px 0; }
  .sponsor-row--gold { margin-top: 40px; }
  .sponsor-row--silver { margin-top: 48px; }
  .sponsor-row--bronze { margin-top: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 480px) {
  .hero { min-height: 84vh; }
  .hero-title { font-size: 30px; }
  .stat { padding: 16px 12px; }
  .stat-value { font-size: 25px; }
  .gal-grid { gap: 10px; }
}

.div-card[data-team-group] {
  cursor: pointer;
}

.div-card[data-team-group]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

body.has-dialog-open { overflow: hidden; }

.division-dialog {
  position: fixed;
  inset: 0;
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.28);
  overflow: hidden;
}

.division-dialog[open] {
  animation: division-dialog-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.division-dialog[open]::backdrop {
  animation: division-backdrop-in 220ms ease-out;
}

@keyframes division-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes division-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.division-dialog::backdrop {
  background: rgba(11, 18, 32, 0.58);
}

.division-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.division-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.division-dialog-category {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.division-dialog-title {
  margin: 0;
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

.division-dialog-count {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.division-dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.division-dialog-close:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

.division-members {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.division-member {
  flex: 0 0 200px;
  max-width: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.division-member img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 403;
  object-fit: cover;
  background: #f1f5f9;
}

.division-member-body {
  padding: 10px 12px 12px;
}

.division-member-name {
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.division-member-role {
  margin-top: 3px;
  color: var(--blue-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.division-member-major {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .division-dialog[open],
  .division-dialog[open]::backdrop {
    animation: none;
  }
}

@media (max-width: 560px) {
  .division-dialog { width: calc(100vw - 24px); }
  .division-dialog-head { padding: 18px 18px 14px; }
  .division-members {
    gap: 10px;
    padding: 16px 18px 20px;
  }
  .division-member {
    flex: 0 1 calc(50% - 5px);
    max-width: none;
  }
  .division-member-body { padding: 8px 10px 10px; }
  .division-member-name { font-size: 12.5px; }
  .division-member-role { font-size: 10px; }
  .division-member-major { font-size: 10.5px; }
}











/* Public dynamic pages (Fase 5) */
img { max-width: 100%; height: auto; }
.page-section { padding: 56px 0 72px; }
.button, .button-secondary {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font: inherit;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button { background: var(--blue, #009fe3); border: 1px solid var(--blue, #009fe3); color: #fff; }
.button-secondary { background: #fff; border: 1px solid #e2e8f0; color: #0f172a; }
.muted { color: #64748b; font-size: 13px; }
.lead { font-size: 18px; color: #334155; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select { padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.empty-state { padding: 32px; border: 1px dashed #cbd5e1; border-radius: 12px; text-align: center; color: #475569; background: #f8fafc; }
.media-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; background: #e2e8f0; border-radius: 10px; }
.ach-grid, .news-grid, .album-grid, .gallery-grid, .partner-grid, .member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.ach-card, .news-card, .album-card, .member-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.ach-card img, .news-card img, .album-card img, .member-card img, .gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ach-body, .news-body, .album-body { padding: 16px; }
.ach-year { font-size: 12px; font-weight: 700; color: #009fe3; text-transform: uppercase; letter-spacing: .04em; }
.ach-rank { font-weight: 700; color: #0b1220; }
.news-body time { font-size: 12px; color: #64748b; }
.album-card a { color: inherit; text-decoration: none; }
.gallery-item { margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.gallery-item figcaption { padding: 10px 14px; font-size: 13px; color: #475569; }
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-items: center; }
.partner-grid img { height: 90px; object-fit: contain; background: #fff; }
.member-card { padding: 12px; text-align: center; }
.member-card img { height: 180px; border-radius: 8px; }
.member-card strong { display: block; margin-top: 8px; }
.team-group { margin-bottom: 40px; }
.team-group-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.prose { line-height: 1.75; color: #1e293b; }
.prose p { margin: 0 0 1em; }
@media (max-width: 560px) {
  .ach-card img, .news-card img, .album-card img, .member-card img, .gallery-item img { height: 190px; }
  .page-section { padding: 32px 0 48px; }
}
