:root {
  /* 1. Core Brand Colors (Sangat Dibatasi) */
  --color-primary: #1E1B4B;       /* Deep Navy - Dominan, elegan, kuat */
  --color-primary-hover: #312E81;
  --color-accent: #EAB308;        /* Bright Gold - KHUSUS untuk Tombol Utama & Highlight */
  --color-accent-hover: #CA8A04;

  /* 2. Neutral Scale (Bersih & Modern) */
  --bg-pure: #FFFFFF;             /* Background utama */
  --bg-subtle: #F8FAFC;           /* Background section selang-seling (Pengganti Cream) */
  --text-main: #0F172A;           /* Teks utama (Bukan hitam murni #000) */
  --text-muted: #475569;          /* Teks deskripsi/paragraf */
  --border-light: #E2E8F0;        /* Garis pemisah, border input, border card */

  /* 3. Semantic Colors */
  --success: #10B981;
  --danger: #EF4444;

  /* 4. Elevasi / Shadows */
  --shadow-soft: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-medium: 0 10px 15px -3px rgba(15, 23, 42, 0.08);

  --imsisfo-navy: #2B2B53;
  --imsisfo-indigo: #3C3E93;
  --imsisfo-crimson: #DE1B55;
  --imsisfo-gold: #F4B400;
  --imsisfo-cream: #FAFAF4;
  --gray-50: #F8FAFC;
  --gray-100: #E5E7EB;
  --gray-200: #E2E8F0;
  --gray-500: #6B7280;
  --gray-900: #1F2937;
  --navbar-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-pure);
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.gallery-modal-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-primary);
  line-height: 1.18;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-subtitle::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent);
}

.section-subtitle.light {
  color: var(--bg-pure);
}

.section-title {
  font-size: 34px;
  margin-bottom: 12px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 28px;
}

.grid-1 {
  display: grid;
  gap: 18px;
}

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

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

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 10px 28px rgba(43, 43, 83, 0.10);
}

body.nav-open .navbar {
  z-index: 5000;
}

.nav-wrapper {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-weight: 800;
}

.navbar-brand {
  justify-self: start;
}

.navbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  min-width: 0;
}

.navbar-menu-head,
.navbar-cta-mobile,
.navbar-drawer-cta,
.navbar-overlay {
  display: none;
}

.nav-group {
  position: relative;
}

.navbar-menu a,
.nav-subnav-trigger {
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active,
.nav-group.active > .nav-subnav-trigger,
.nav-group.is-open > .nav-subnav-trigger,
.nav-group.open > .nav-subnav-trigger,
.nav-subnav-trigger:hover {
  color: var(--color-primary);
  background: rgba(222, 27, 85, 0.08);
}

.nav-subnav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-group.is-open .nav-caret,
.nav-group.open .nav-caret,
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-subnav {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 20;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-pure);
  box-shadow: 0 18px 44px rgba(43, 43, 83, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: 0.18s ease;
}

.nav-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-group:hover .nav-subnav,
.nav-group:focus-within .nav-subnav,
.nav-group.is-open .nav-subnav,
.nav-group.open .nav-subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-subnav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav-cta {
  color: var(--color-primary);
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.navbar-cta-mobile,
.navbar-drawer-cta {
  display: none;
}

.nav-cta:hover {
  color: var(--color-primary);
  background: #ffc736;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-pure);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-close {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--bg-pure);
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
  box-shadow: 0 10px 24px rgba(60, 62, 147, 0.28);
}

.btn-accent {
  color: var(--color-primary);
  background: var(--color-accent);
}

.btn-primary {
  color: var(--bg-pure);
  background: var(--color-primary);
}

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

.btn-outline-light {
  color: var(--bg-pure);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.card {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.card-title {
  margin: 12px 0 10px;
  font-size: 20px;
}

.card-text {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.badge-primary {
  color: var(--color-primary-hover);
  background: rgba(60, 62, 147, 0.12);
}

.badge-primary {
  color: var(--color-primary);
  background: rgba(222, 27, 85, 0.12);
}

.badge-accent {
  color: #7B5A00;
  background: rgba(244, 180, 0, 0.20);
}

.badge-success {
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
}

.badge-danger {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--bg-pure);
  background:
    linear-gradient(112deg, rgba(43, 43, 83, 0.95) 0%, rgba(60, 62, 147, 0.94) 62%, rgba(222, 27, 85, 0.94) 100%),
    var(--color-primary);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -180px 35%;
  height: 280px;
  transform: rotate(-7deg);
  background: rgba(244, 180, 0, 0.22);
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 76px);
  padding: 72px 0;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  color: var(--bg-pure);
  font-size: 52px;
  max-width: 820px;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 620px;
}

.hero-stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-stat strong {
  display: block;
  color: var(--bg-pure);
  font-size: 25px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-floating-card {
  position: absolute;
  right: -12px;
  bottom: 22px;
  width: min(280px, 80%);
  padding: 18px;
  border-radius: 22px;
  background: var(--bg-pure);
  box-shadow: var(--shadow-medium);
}

.hero-floating-card span {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-floating-card strong {
  display: block;
  margin-top: 8px;
  color: var(--color-primary);
  line-height: 1.35;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.stats-card {
  padding: 24px;
  border-top: 4px solid var(--color-accent);
  border-radius: 22px;
  background: var(--bg-pure);
  box-shadow: var(--shadow-soft);
}

.stats-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 32px;
  line-height: 1;
}

.stats-card span {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.page-header {
  color: var(--bg-pure);
  background:
    linear-gradient(120deg, rgba(43, 43, 83, 0.98), rgba(60, 62, 147, 0.96) 68%, rgba(222, 27, 85, 0.92)),
    var(--color-primary);
}

.page-header-inner {
  padding: 72px 0;
}

.page-header h1 {
  color: var(--bg-pure);
  font-size: 44px;
}

.page-header p {
  max-width: 780px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.about-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.identity-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(155deg, var(--bg-subtle), var(--bg-pure));
}

.identity-card img {
  width: 150px;
  margin: 0 auto 20px;
}

.logo-meaning-card {
  position: relative;
  overflow: hidden;
}

.logo-meaning-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(244, 180, 0, 0.10);
  pointer-events: none;
}

.logo-meaning-cut {
  width: 116px;
  height: 116px;
  margin-bottom: 18px;
  border: 1px solid rgba(43, 43, 83, 0.14);
  border-radius: 22px;
  background-color: var(--bg-pure);
  background-repeat: no-repeat;
  background-size: var(--crop-size, 270%);
  background-position: var(--crop-position, center);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.64), var(--shadow-soft);
}

.logo-crop-full {
  --crop-size: 86%;
  --crop-position: center;
}

.logo-crop-circle {
  --crop-size: 235%;
  --crop-position: 1% 50%;
}

.logo-crop-gold-line {
  --crop-size: 245%;
  --crop-position: 50% 1%;
}

.logo-crop-blue-ring {
  --crop-size: 235%;
  --crop-position: 99% 50%;
}

.logo-crop-muhammadiyah {
  --crop-size: 370%;
  --crop-position: 50% 18%;
}

.logo-crop-laptop-signal {
  --crop-size: 205%;
  --crop-position: 33% 66%;
}

.logo-crop-laptop-relation {
  --crop-size: 330%;
  --crop-position: 50% 53%;
}

.logo-crop-book {
  --crop-size: 295%;
  --crop-position: 50% 39%;
}

.value-list,
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.value-list li,
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-main);
  font-weight: 600;
}

.value-list li::before,
.check-list li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-primary);
}

.member-card {
  text-align: center;
  overflow: hidden;
}

.member-card.featured {
  border-top: 5px solid var(--color-accent);
}

.member-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 16px;
}

.member-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--gray-50);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.member-card h3 {
  font-size: 19px;
}

.member-card p {
  margin: 8px 0 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-bar a,
.filter-bar button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--bg-pure);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-bar a.active,
.filter-bar button.active {
  color: var(--bg-pure);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.program-card {
  border-top: 5px solid var(--color-primary-hover);
}

.lpj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  color: inherit;
  text-decoration: none;
  padding: 0;
  border-top: 5px solid var(--color-accent);
  overflow: hidden;
  cursor: pointer;
}

.lpj-card-preview {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background:
    linear-gradient(135deg, rgba(30, 27, 75, 0.08), rgba(234, 179, 8, 0.18)),
    var(--bg-subtle);
}

.lpj-card-preview iframe {
  width: calc(100% + 22px);
  height: calc(100% + 22px);
  margin-right: -22px;
  margin-bottom: -22px;
  border: 0;
  background: var(--bg-pure);
  pointer-events: none;
}

.lpj-card-filetype {
  min-width: 86px;
  min-height: 86px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--color-primary);
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
  font-size: 20px;
  font-weight: 900;
}

.lpj-card-body {
  display: grid;
  gap: 12px;
  flex: 1;
  padding: 22px;
}

.lpj-card-click {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}

.lpj-card-click:focus-visible {
  outline: 4px solid rgba(234, 179, 8, 0.65);
  outline-offset: -6px;
}

.lpj-download-label {
  align-self: end;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.program-meta,
.news-meta,
.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.news-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-body {
  padding: 22px;
}

.featured-news {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  overflow: hidden;
}

.featured-news img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

.media-count-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(244, 180, 0, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  margin-bottom: 24px;
}

.agenda-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.date-box {
  width: 74px;
  min-width: 74px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-pure);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 20px;
}

.date-box strong {
  color: var(--bg-pure);
  font-size: 24px;
  line-height: 1;
}

.date-box span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: var(--bg-pure);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 180, 0, 0.55);
  box-shadow: var(--shadow-medium);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(244, 180, 0, 0.55);
  outline-offset: 4px;
}

.gallery-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(244, 180, 0, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: var(--bg-pure);
  background: linear-gradient(180deg, transparent, rgba(43, 43, 83, 0.90));
  text-align: left;
}

.gallery-overlay h3 {
  color: var(--bg-pure);
  font-size: 18px;
}

.gallery-overlay p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-pure);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.gallery-modal-media {
  position: relative;
  min-height: min(70vh, 620px);
  display: grid;
  place-items: center;
  padding: 18px;
  background: #0f172a;
}

.gallery-modal-content img {
  display: block;
  width: auto;
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #0f172a;
}

.gallery-modal-body {
  padding: 18px 24px 22px;
}

.gallery-modal-body h2 {
  font-size: 22px;
}

.gallery-modal-body p {
  margin-top: 8px;
}

.gallery-modal-meta {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 100001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.05);
  background: #f8fafc;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-modal-prev {
  left: 18px;
}

.gallery-modal-next {
  right: 18px;
}

.gallery-slide-indicator {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.form-card {
  padding: 32px;
  border-top: 5px solid var(--color-primary);
  border-radius: 28px;
  background: var(--bg-pure);
  box-shadow: var(--shadow-medium);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 13px 15px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: var(--text-main);
  background: var(--bg-pure);
  font: inherit;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--color-primary-hover);
  outline: none;
  box-shadow: 0 0 0 4px rgba(60, 62, 147, 0.12);
}

.alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.alert-success {
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
}

.alert-danger {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.12);
}

.registration-layout {
  align-items: start;
}

.registration-card {
  border-top-color: var(--color-accent);
}

.registration-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: var(--gray-50);
}

.registration-tabs a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.registration-tabs a.active {
  color: var(--color-primary);
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(244, 180, 0, 0.25);
}

.registration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.registration-card-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.registration-description {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.registration-status-box {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
  padding: 15px 16px;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--color-primary);
  border-radius: 16px;
  background: #f8fafc;
}

.registration-status-box strong {
  color: var(--color-primary);
}

.registration-status-box span,
.registration-status-box small {
  color: var(--text-muted);
  line-height: 1.55;
}

.registration-status-dibuka {
  border-left-color: var(--success);
  background: rgba(22, 163, 74, 0.08);
}

.registration-status-ditutup,
.registration-status-nonaktif {
  border-left-color: var(--danger);
  background: rgba(220, 38, 38, 0.07);
}

.registration-status-belum_dibuka {
  border-left-color: var(--color-accent);
  background: rgba(244, 180, 0, 0.10);
}

.form-control:disabled,
.form-control[disabled],
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-map {
  min-height: 320px;
}

.map-frame.contact-map iframe {
  height: 320px;
}

.contact-main-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.contact-summary-card {
  display: grid;
  gap: 18px;
}

.contact-summary-card .contact-card + .contact-card {
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.contact-link-row {
  color: inherit;
  text-decoration: none;
}

.contact-link-row:hover h3,
.contact-link-row:focus-visible h3 {
  color: var(--color-primary);
}

.contact-link-row:focus-visible {
  outline: 3px solid rgba(245, 197, 24, 0.55);
  outline-offset: 4px;
  border-radius: 18px;
}

.contact-icon {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
  font-weight: 900;
}

.contact-social-icon {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
}

.contact-social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.map-frame {
  overflow: hidden;
  min-height: 320px;
  border: 0;
  border-radius: 24px;
  background: var(--border-light);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.cta-band {
  padding: 48px;
  border-radius: 30px;
  color: var(--bg-pure);
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-hover) 70%, var(--color-primary));
}

.cta-band h2 {
  color: var(--bg-pure);
  font-size: 32px;
}

.cta-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  color: var(--bg-pure);
  background: linear-gradient(135deg, var(--color-primary), #151536);
  padding: 64px 0 24px;
}

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

.footer-brand {
  color: var(--bg-pure);
  margin-bottom: 16px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer h2 {
  margin-bottom: 16px;
  color: var(--bg-pure);
  font-size: 18px;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.76);
}

.footer a {
  display: block;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-email {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.4;
}

.footer-email svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-email span {
  display: inline-block;
  line-height: 1.4;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--bg-pure);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  color: var(--color-primary);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
}

.article-content p {
  color: var(--text-main);
  font-size: 17px;
}

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

.article-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--gray-200);
  border-radius: 24px;
  color: var(--text-muted);
  background: var(--gray-50);
  text-align: center;
  font-weight: 700;
}

.current-structure-section {
  background: var(--bg-pure);
}

.archive-period-section {
  background: var(--imsisfo-cream);
}

.period-structure {
  display: grid;
  gap: 46px;
}

.period-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.period-summary .section-subtitle {
  margin-bottom: 10px;
}

.period-summary-meta {
  min-width: 170px;
  padding: 18px 20px;
  border: 1px solid rgba(244, 180, 0, 0.35);
  border-radius: 22px;
  background: rgba(244, 180, 0, 0.12);
  text-align: right;
}

.period-summary-meta span,
.period-summary-meta strong {
  display: block;
}

.period-summary-meta span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.period-summary-meta strong {
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.2;
}

.structure-block {
  display: grid;
  gap: 22px;
}

.structure-block-head h3 {
  font-size: 28px;
}

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

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

.structure-person-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 100%;
  padding: 24px 18px;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--color-accent);
  border-radius: 24px;
  background: var(--bg-pure);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.structure-person-card h3 {
  margin-top: 12px;
  font-size: 19px;
}

.structure-person-card p {
  margin: 8px 0 12px;
  font-weight: 700;
}

.structure-person-card.bph-card {
  border-top-color: var(--imsisfo-gold);
  box-shadow: 0 14px 35px rgba(43, 43, 83, 0.10);
}

.structure-person-card.advisor-card {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
  border-top-color: var(--imsisfo-indigo);
}

.structure-person-photo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 4px solid var(--imsisfo-gold);
  border-radius: 50%;
  background: var(--bg-subtle);
}

.structure-person-photo-wrap {
  position: relative;
  display: inline-flex;
}

.structure-person-photo-wrap span,
.department-chair-photo span {
  position: absolute;
  right: -4px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--imsisfo-gold);
  box-shadow: 0 6px 16px rgba(43, 43, 83, 0.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

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

.department-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-pure);
  box-shadow: 0 14px 35px rgba(43, 43, 83, 0.10);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card:hover,
.department-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(43, 43, 83, 0.18);
  outline: none;
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--department-accent, var(--imsisfo-crimson)), var(--imsisfo-gold));
}

.department-code {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(244, 180, 0, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.department-card h4 {
  font-size: 21px;
}

.department-card p {
  margin: 0;
  font-size: 14px;
}

.department-chair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

.department-chair-photo {
  position: relative;
  display: inline-flex;
}

.department-chair-photo img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 3px solid var(--department-accent, var(--imsisfo-indigo));
  border-radius: 50%;
  background: var(--bg-subtle);
}

.department-chair-photo span {
  right: -5px;
  bottom: 2px;
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.department-chair strong,
.department-chair span {
  display: block;
}

.department-chair strong {
  color: var(--color-primary);
  line-height: 1.35;
}

.department-chair span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.department-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 800;
}

.department-card-foot span {
  color: var(--text-muted);
}

.department-card-foot strong {
  color: var(--department-accent, var(--imsisfo-indigo));
}

.department-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 35, 0.72);
}

.department-modal.active {
  display: flex;
}

.department-modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden auto;
  border-radius: 28px;
  background: var(--bg-pure);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.department-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.department-modal-head {
  padding: 30px 72px 28px 34px;
  color: var(--bg-pure);
  background:
    linear-gradient(135deg, rgba(43, 43, 83, 0.96), rgba(60, 62, 147, 0.9)),
    var(--department-accent, var(--imsisfo-indigo));
}

.department-modal-head span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--imsisfo-gold);
  font-size: 12px;
  font-weight: 800;
}

.department-modal-head h3 {
  color: var(--bg-pure);
  font-size: 28px;
}

.department-modal-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.department-slide-frame {
  min-height: 410px;
}

.member-slide {
  display: none;
  padding: 36px 72px 54px;
  text-align: center;
}

.member-slide.active {
  display: block;
}

.member-slide img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 5px solid var(--imsisfo-gold);
  border-radius: 50%;
  background: var(--bg-subtle);
}

.member-slide h4 {
  margin-top: 14px;
  font-size: 25px;
}

.member-slide-position {
  margin: 8px 0 6px;
  color: var(--color-primary);
  font-weight: 800;
}

.member-slide-meta,
.member-slide-description {
  margin-left: auto;
  margin-right: auto;
}

.member-slide-description {
  max-width: 520px;
}

.member-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  max-width: 500px;
  margin: 18px auto 0;
}

.member-photo-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 3px solid var(--border-light);
  border-radius: 16px;
  object-fit: cover;
}

.member-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.member-social-links a {
  padding: 8px 13px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.department-nav {
  position: absolute;
  top: 58%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--bg-pure);
  background: var(--color-primary);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.department-nav-prev {
  left: 20px;
}

.department-nav-next {
  right: 20px;
}

.department-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.department-slide-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  cursor: pointer;
}

.department-slide-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: var(--imsisfo-gold);
}

.department-modal-empty {
  padding: 54px 34px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 800;
}

.period-archive-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.period-toggle-btn {
  min-width: 240px;
  min-height: 50px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  color: var(--bg-pure);
  background: linear-gradient(135deg, var(--imsisfo-indigo), var(--imsisfo-navy));
  box-shadow: 0 12px 28px rgba(43, 43, 83, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.period-toggle-btn:hover,
.period-toggle-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(43, 43, 83, 0.24);
  outline: none;
}

.period-toggle-btn.active {
  color: var(--imsisfo-navy);
  background: linear-gradient(135deg, var(--imsisfo-crimson), var(--imsisfo-gold));
}

.period-archive-content {
  display: none;
  width: 100%;
  margin-top: 10px;
  padding: 32px;
  border-radius: 28px;
  background: var(--bg-pure);
  box-shadow: 0 14px 40px rgba(43, 43, 83, 0.10);
}

.period-archive-content.active {
  display: block;
}

@media (max-width: 1100px) {
  .structure-person-grid,
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .period-summary,
  .structure-person-grid,
  .structure-person-grid.compact,
  .department-grid {
    grid-template-columns: 1fr;
  }

  .period-summary-meta {
    width: 100%;
    text-align: left;
  }

  .structure-person-card.advisor-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .department-card {
    padding: 24px;
  }

  .member-slide {
    padding: 32px 26px 58px;
  }

  .member-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 280px;
  }

  .department-modal-head {
    padding: 28px 58px 24px 24px;
  }

  .department-nav {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }

  .department-nav-prev {
    left: 22px;
  }

  .department-nav-next {
    right: 22px;
  }

  .period-toggle-btn {
    width: 100%;
  }

  .period-archive-content {
    padding: 22px;
  }
}

@media (max-width: 1100px) {
  .navbar-menu a,
  .nav-subnav-trigger {
    padding-inline: 8px;
    font-size: 13px;
  }

  .nav-wrapper {
    gap: 14px;
  }

  .nav-cta {
    padding-inline: 12px;
    font-size: 13px;
  }

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

@media (max-width: 992px) {
  .grid-3,
  .grid-4,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-wrapper,
  .about-panel,
  .featured-news,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-wrapper {
    min-height: auto;
  }

  .hero-visual {
    max-width: 620px;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title,
  .cta-band h2 {
    font-size: 27px;
  }

  .page-header-inner {
    padding: 56px 0;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .navbar-brand {
    min-width: 0;
  }

  .navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-cta-desktop,
  .nav-top-cta {
    display: none !important;
  }

  .navbar-overlay {
    position: fixed;
    inset: 0;
    z-index: 5001;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    cursor: pointer;
  }

  body.nav-open .navbar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5002;
    width: min(88vw, 380px);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg-pure);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.28);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  .navbar-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navbar-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 900;
  }

  .navbar-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-subtle);
    color: var(--color-primary);
    cursor: pointer;
  }

  .navbar-close span {
    grid-area: 1 / 1;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .navbar-close span:first-child {
    transform: rotate(45deg);
  }

  .navbar-close span:last-child {
    transform: rotate(-45deg);
  }

  .navbar-dropdown,
  .nav-group {
    width: 100%;
    position: static !important;
  }

  .navbar-menu a,
  .nav-subnav-trigger,
  .navbar-dropdown-toggle {
    min-height: 46px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--gray-50);
    font-size: 15px;
    color: var(--text-main);
    text-align: left;
  }

  .nav-subnav-trigger {
    justify-content: space-between;
  }

  .nav-subnav,
  .navbar-dropdown-menu {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    display: none !important;
    flex-direction: column;
    gap: 6px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none;
    overflow: visible !important;
    pointer-events: auto;
  }

  .nav-subnav::before,
  .navbar-dropdown-menu::before {
    content: none !important;
    display: none !important;
  }

  .navbar-dropdown:hover .navbar-dropdown-menu,
  .navbar-dropdown:focus-within .navbar-dropdown-menu,
  .nav-group:hover .nav-subnav,
  .nav-group:focus-within .nav-subnav {
    position: static !important;
    transform: none !important;
  }

  .nav-group:not(.open):not(.is-open) .nav-subnav,
  .navbar-dropdown:not(.open):not(.is-open) .navbar-dropdown-menu {
    display: none !important;
  }

  .nav-group.is-open .nav-subnav,
  .nav-group.open .nav-subnav,
  .navbar-dropdown.open .navbar-dropdown-menu,
  .navbar-dropdown.is-open .navbar-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .nav-subnav a,
  .navbar-dropdown-menu a {
    display: block !important;
    width: 100%;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    font-weight: 600;
    white-space: normal !important;
  }

  .navbar-dropdown.open > .navbar-dropdown-toggle .dropdown-icon,
  .navbar-dropdown.is-open > .navbar-dropdown-toggle .dropdown-icon {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .navbar-cta-mobile,
  .navbar-drawer-cta {
    display: flex !important;
    width: 100%;
    margin-top: 4px;
    border-radius: 14px;
    min-height: 48px;
    color: var(--color-primary);
    background: var(--color-accent);
  }

  .hero-wrapper {
    padding: 54px 0;
  }

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

  .hero-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .article-gallery-grid,
  .gallery-grid,
  .search-form {
    grid-template-columns: 1fr;
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .gallery-modal-content {
    width: 94vw;
    max-height: 88vh;
    border-radius: 18px;
  }

  .gallery-modal-media {
    min-height: 54vh;
    padding: 12px;
  }

  .gallery-modal-content img {
    max-height: 58vh;
    border-radius: 10px;
  }

  .gallery-modal-body {
    padding: 16px;
  }

  .gallery-modal-body h2 {
    font-size: 18px;
  }

  .gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .gallery-modal-prev {
    left: 10px;
  }

  .gallery-modal-next {
    right: 10px;
  }

  .stats-grid {
    margin-top: 0;
    padding-top: 24px;
  }

  .agenda-card {
    flex-direction: column;
  }

  .cta-band {
    padding: 32px 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .nav-wrapper {
    gap: 8px;
  }

  .navbar-brand {
    gap: 8px;
    font-size: 14px;
  }

  .navbar-logo {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .navbar-drawer-cta {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .registration-tabs {
    grid-template-columns: 1fr;
  }

  .registration-card-head {
    flex-direction: column;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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

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

  .card,
  .form-card {
    padding: 20px;
  }

  .hero-floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
}

/* Optimasi Mobile Khusus 425px dan 375px */
@media (max-width: 425px) {
  .hero h1 {
    font-size: 28px;
  }
  .section-title {
    font-size: 24px;
  }
  .card, .form-card {
    padding: 18px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .stats-card strong {
    font-size: 28px;
  }
  .gallery-overlay h3 {
    font-size: 16px;
  }
  .page-header h1 {
    font-size: 30px;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 24px;
  }
  .section-title {
    font-size: 22px;
  }
  .container {
    width: 95%;
  }
  .stats-card {
    padding: 16px;
  }
  .stats-card strong {
    font-size: 26px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}
