/* Entry stylesheet khusus halaman publik. */
:root {
  color-scheme: light only;
  --text-dark: #111827;
  --text-muted: #4a5568;
  --text-accent: #15803d;
  --heading-accent: #166534;
}

/* Katalog modul: polish terarah tanpa mengubah grid utama. */
.modul-page-hero {
  padding-top: clamp(44px, 6vw, 64px);
  padding-bottom: clamp(20px, 3vw, 28px);
}

.modul-page-hero .eyebrow {
  margin-bottom: 8px;
}

.modul-page-hero h1 {
  margin-bottom: 10px;
}

.modul-format-filters {
  margin-top: 16px;
  padding-top: 16px;
}

.section.modul-page {
  padding-top: 24px;
  padding-bottom: clamp(64px, 8vw, 88px);
}

.modul-filter-panel {
  margin-bottom: 24px;
  padding: 22px 24px 24px;
  border-color: #e5ece8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 97, 61, 0.035);
}

.modul-filter-panel-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.modul-filter-form {
  gap: 16px;
}

.modul-filter-field input,
.modul-filter-field select,
.modul-filter-actions .btn {
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
}

.modul-search-control {
  position: relative;
}

.modul-search-control > .ui-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #718078;
  pointer-events: none;
  transform: translateY(-50%);
}

.modul-search-control input {
  padding-left: 44px;
}

.modul-results-bar {
  margin-bottom: 18px;
  padding: 12px 0 14px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modul-catalog-grid {
  grid-auto-rows: 1fr;
  gap: 20px;
}

.modul-catalog-grid .module-card {
  height: 100%;
  min-height: 340px;
  justify-content: flex-start;
  padding: 24px;
  border: 1px solid #e5ece8;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(16, 23, 22, 0.035);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.modul-catalog-grid .module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 97, 61, 0.48);
  box-shadow: 0 16px 34px rgba(23, 97, 61, 0.09);
}

.modul-catalog-grid .module-card-top {
  margin-bottom: 18px;
}

.modul-catalog-grid .module-card-copy {
  min-height: 104px;
}

.modul-catalog-grid .module-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.modul-catalog-grid .module-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.6;
}

.modul-catalog-grid .module-meta {
  width: 100%;
  margin: 20px 0;
}

.modul-catalog-grid .module-meta div {
  min-height: 34px;
  align-items: baseline;
  padding-top: 9px;
}

.modul-catalog-grid .module-meta dd {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.modul-catalog-grid .module-card-cta {
  width: fit-content;
  margin-top: auto;
  transition: color 250ms ease, transform 250ms ease;
}

.modul-catalog-grid .module-card:hover .module-card-cta {
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .modul-filter-panel {
    padding: 20px 16px;
  }

  .modul-catalog-grid .module-card {
    min-height: 320px;
  }
}

/* Card katalog modul saja: compact premium hierarchy. */
.modul-page .modul-catalog-grid .module-card {
  height: auto;
  min-height: 320px;
  justify-content: flex-start;
  padding: 32px;
  border: 1px solid #e8ecef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.04);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.modul-page .modul-catalog-grid .module-card:hover {
  transform: translateY(-4px);
  border-color: #cfe2d6;
  box-shadow: 0 16px 36px rgba(23, 97, 61, 0.09);
}

.modul-page .modul-catalog-grid .module-card-top {
  margin: 0 0 24px;
}

.modul-page .modul-catalog-grid .module-card-date {
  color: #7b8781;
  font-size: 0.72rem;
  font-weight: 600;
}

.modul-page .modul-catalog-grid .module-card-copy {
  min-height: 0;
}

.modul-page .modul-catalog-grid .module-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 1.6vw, 1.36rem);
  font-weight: 780;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.modul-page .modul-catalog-grid .module-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #68756f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modul-page .modul-catalog-grid .module-card-divider {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: #edf0ee;
}

.modul-page .modul-catalog-grid .module-card-meta {
  display: grid;
  gap: 10px;
}

.modul-page .modul-catalog-grid .module-card-meta-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #34423b;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.modul-page .modul-catalog-grid .module-card-meta-item .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.modul-page .modul-catalog-grid .module-card-meta-item > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  min-width: 0;
  overflow: hidden;
}

.modul-page .modul-catalog-grid .module-card-cta {
  min-height: 0;
  margin: 24px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.87rem;
  font-weight: 780;
  transition: color 250ms ease;
}

.modul-page .modul-catalog-grid .module-card-cta:hover,
.modul-page .modul-catalog-grid .module-card-cta:focus-visible {
  background: transparent;
  color: var(--primary-strong);
  transform: none;
}

.modul-page .modul-catalog-grid .module-card-cta span[aria-hidden="true"] {
  transition: transform 250ms ease;
}

.modul-page .modul-catalog-grid .module-card-cta:hover span[aria-hidden="true"],
.modul-page .modul-catalog-grid .module-card-cta:focus-visible span[aria-hidden="true"] {
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .modul-page .modul-catalog-grid .module-card {
    min-height: 300px;
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modul-page .modul-catalog-grid .module-card,
  .modul-page .modul-catalog-grid .module-card-cta,
  .modul-page .modul-catalog-grid .module-card-cta span[aria-hidden="true"] {
    transition-duration: 0.01ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modul-catalog-grid .module-card,
  .modul-catalog-grid .module-card-cta {
    transition-duration: 0.01ms;
  }
}

html {
  color-scheme: light only;
}

html,
body {
  color: #111827;
}

/* Tipografi publik: judul gelap, aksen hijau, subteks abu. */
h1,
h2,
h3,
.section-heading h2,
.page-hero h1,
.facility-section-header h2,
.article-header h1,
.detail-title h1,
.modul-detail-copy h1,
.news-card h2,
.public-card h2,
.module-card h3,
.modul-filter-panel-header h2,
.modul-detail-section-head h2,
.modul-sidebar-card-head h2,
.announcement-panel h2,
.contact-info h2,
.contact-form h2,
.content-panel h2 {
  color: var(--text-dark);
}

.text-gradient {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: currentColor;
  color: var(--heading-accent);
  display: inline;
}

/* Ruang napas horizontal — konten tidak mepet ke tepi layar. */
.container {
  width: min(calc(100% - clamp(40px, 6vw, 96px)), 1120px);
}

/* Navbar publik: warna brand tetap hijau, dropdown rounded mengambang. */
.navbar {
  min-height: 72px;
  align-items: center;
}

.site-header {
  overflow: visible;
  background: #166534;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
}

.site-header::after {
  display: none;
}

.site-header .brand strong {
  color: #f8fafc;
}

.site-header .brand small {
  color: rgba(248, 250, 252, .78);
}

.site-header .brand-mark {
  background: #f8fafc;
  color: #166534;
}

.nav-links {
  gap: clamp(6px, 0.9vw, 12px);
}

.nav-links > a:not(.btn),
.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(248, 250, 252, .78);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -.02em;
  transition: color 0.2s ease;
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active {
  color: #ffffff;
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: #ffffff;
}

.nav-links > a:not(.btn)::after {
  display: none;
}

.nav-dropdown summary {
  gap: 5px;
  list-style: none;
  padding-inline: 4px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  display: none;
  content: none;
}

.nav-dropdown[open] summary::after {
  display: none;
  content: none;
}

.nav-dropdown-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 8px;
  flex: 0 0 12px;
  margin-left: 2px;
  color: currentColor;
  transform: translateY(1px);
}

.nav-dropdown-icon::before,
.nav-dropdown-icon::after {
  position: absolute;
  top: 2px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-dropdown-icon::before {
  left: 0;
  transform: rotate(42deg);
  transform-origin: right center;
}

.nav-dropdown-icon::after {
  right: 0;
  transform: rotate(-42deg);
  transform-origin: left center;
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  text-shadow: 0 0 0 currentColor;
}

.nav-dropdown > div {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  z-index: 60;
  width: max-content;
  min-width: 178px;
  max-width: calc(100vw - 28px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  padding: 6px 0 8px;
  transform: none;
  transform-origin: top center;
}

.nav-dropdown > div a {
  display: block;
  border-radius: 0;
  padding: 7px 15px;
  color: #33383d;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.32;
  transition: background-color .18s ease, color .18s ease;
}

.nav-dropdown > div a:hover {
  background: color-mix(in srgb, var(--primary) 7%, #ffffff);
  color: var(--primary);
}

.site-header .btn-primary {
  background: #ffffff;
  color: #14532d;
}

.site-header .btn-primary:hover {
  background: #f0fdf4;
  color: #14532d;
}

.site-header .btn-outline {
  border-color: rgba(248, 250, 252, .62);
  color: #ffffff;
}

.site-header .btn-outline:hover {
  border-color: #ffffff;
  background: rgba(248, 250, 252, .1);
  color: #ffffff;
}

.site-header .nav-toggle {
  border-color: rgba(248, 250, 252, .32);
  background: rgba(248, 250, 252, .08);
}

.site-header .nav-toggle span:not(.sr-only) {
  background: #ffffff;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 0;
    background: #ffffff;
  }

  .nav-links > a:not(.btn),
  .nav-dropdown summary {
    min-height: auto;
    padding: 15px 4px;
    color: var(--text-muted);
    font-size: 1rem;
  }

  .nav-links > a:not(.btn):hover,
  .nav-links > a:not(.btn).active {
    color: var(--text-dark);
    background: transparent;
  }

  .nav-dropdown summary:hover,
  .nav-dropdown[open] summary {
    color: var(--text-dark);
    background: transparent;
  }

  .nav-links > a:not(.btn)::after {
    display: none;
  }

  .nav-dropdown > div {
    position: static;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 12px 14px;
    transform: none;
  }

  .nav-dropdown > div a {
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-muted);
    font-size: .94rem;
  }

  .nav-dropdown > div a:hover {
    padding-left: 14px;
  }
}

/* Public readability polish: menjaga warna brand, menaikkan keterbacaan dan ritme halaman. */
#main-content {
  overflow-x: clip;
}

.hero,
.page-hero {
  position: relative;
}

.hero {
  display: flex;
  align-items: flex-start;
  min-height: auto;
  overflow: visible;
  padding: clamp(14px, 2vw, 24px) 0 clamp(48px, 6vw, 72px);
}

.hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 380px);
  gap: clamp(28px, 4vw, 48px);
}

.hero-visual {
  width: min(100%, 380px);
  justify-self: end;
  padding-bottom: 12px;
}

.hero-visual::before {
  inset: -14px 18px 24px -14px;
}

.hero-visual img {
  width: 100%;
  height: clamp(250px, 30vw, 380px);
  aspect-ratio: auto;
  object-fit: cover;
}

.hero-note {
  right: 8px;
  bottom: 28px;
  min-width: 168px;
  padding: 13px 15px;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1,
.article-header h1 {
  max-width: 880px;
  text-wrap: balance;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.55rem);
}

.page-hero {
  padding: clamp(56px, 8vw, 86px) 0 clamp(48px, 7vw, 76px);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.1rem);
}

.hero-lead,
.page-hero p:not(.eyebrow),
.section-heading p,
.rich-content,
.rich-content p,
.module-card p,
.news-card p,
.public-card p,
.class-card p,
.contact-info p,
.footer-grid p,
.facility-section-header p,
.modul-page-lead,
.modul-filter-panel-header p,
.modul-detail-path,
.modul-detail-section-head p,
.modul-sidebar-card-head p {
  color: var(--text-muted);
}

.hero-lead,
.page-hero p:not(.eyebrow),
.section-heading p {
  line-height: 1.75;
}

.rich-content {
  font-size: 1.01rem;
  line-height: 1.82;
}

.rich-content p + p {
  margin-top: 1.05rem;
}

.section {
  padding-block: clamp(68px, 9vw, 104px);
}

.section-heading {
  max-width: 760px;
}

.module-card,
.type-card,
.class-card,
.news-card,
.public-card,
.content-panel,
.contact-form,
.profile-facts,
.facility-grid article,
.mission-column article {
  box-shadow: 0 16px 50px rgba(15, 23, 42, .035);
}

.module-card h3,
.news-card h2,
.public-card h2,
.class-card h3,
.teacher-card h3,
.announcement-list h2 {
  color: var(--text-dark);
  letter-spacing: -.03em;
}

.module-card {
  min-height: 310px;
}

.public-card {
  min-height: 248px;
}

.public-table td {
  color: color-mix(in srgb, var(--text-muted) 70%, var(--text-dark));
}

.profile-facts dt {
  color: rgba(248, 250, 252, .78);
}

.profile-facts dd {
  font-size: .94rem;
  line-height: 1.5;
}

.login-page {
  position: relative;
  min-height: 100dvh;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(rgba(22, 101, 52, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.07) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.05) 0%, transparent 70%);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.login-standalone {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 20px;
  width: 100%;
}

.login-standalone .login-card {
  position: relative;
  width: min(100%, 450px);
  overflow: hidden;
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 
    0 1px 3px rgba(16, 24, 40, 0.02),
    0 20px 48px -12px rgba(16, 24, 40, 0.08);
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.login-standalone .login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #166534, #15803d, #166534);
  z-index: 2;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
}

.login-brand {
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.login-brand .brand-logo,
.login-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.login-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.login-brand small {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}

.login-heading {
  margin-bottom: 24px;
}

.login-kicker {
  margin: 0 0 6px;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.login-heading p:not(.login-kicker) {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-standalone .messages {
  margin-bottom: 16px;
}

.login-standalone .alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.login-standalone .alert-error {
  background-color: #fef2f2;
  border-color: #fee2e2;
  color: #991b1b;
}

.login-standalone .alert-info {
  background-color: #f0fdf4;
  border-color: #dcfce7;
  color: #166534;
}

.login-standalone form {
  width: 100%;
}

.login-standalone .form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.login-standalone .form-group label {
  margin-bottom: 6px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-standalone .form-control {
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding-inline: 14px;
  font-size: 0.9rem;
  font-weight: 450;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-standalone .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.login-standalone .form-control:hover {
  border-color: #cbd5e1;
}

.login-standalone .form-control:focus {
  border-color: #166534;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.06);
}

.login-standalone .btn-primary {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  background: #166534;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.12);
}

.login-standalone .btn-primary:hover {
  background: #14532d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 101, 52, 0.18);
}

.login-standalone .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.login-footer-row {
  margin-top: 20px;
  text-align: center;
}

.login-back-link {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-back-link:hover {
  color: #166534;
  transform: translateX(-2px);
}

/* --- MOBILE RESPONSIVENESS FOR LOGIN --- */
@media (max-width: 520px) {
  .login-standalone {
    padding: 16px;
  }

  .login-standalone .login-card {
    border-radius: 12px;
  }

  .login-form-panel {
    padding: 32px 24px;
  }

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

  .login-heading h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero-copy h1,
  .page-hero h1 {
    text-wrap: initial;
  }

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

  .hero-visual {
    width: min(100%, 520px);
    justify-self: start;
  }

  .hero-visual img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .hero-note {
    right: 12px;
    bottom: 20px;
  }
}

/* Minimalist professional layer untuk semua halaman publik. */
body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--text-dark);
}

.site-header {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.navbar {
  width: min(calc(100% - 48px), 1340px);
}

.site-header .brand-logo,
.site-header .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.site-header .brand strong {
  font-size: .98rem;
}

.site-header .brand small {
  font-size: .72rem;
}

.nav-links > a:not(.btn),
.nav-dropdown summary {
  min-height: 44px;
  font-size: .98rem;
}

.site-header .btn {
  min-height: 42px;
  border-radius: 13px;
  padding-inline: 18px;
}

.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 24%, rgba(22, 101, 52, .08), transparent 32%),
    linear-gradient(180deg, #edf7f0 0%, #f8fafc 56px, #ffffff 100%);
}

.hero::after {
  position: absolute;
  right: max(20px, 7vw);
  bottom: 44px;
  z-index: -1;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  border-radius: 999px;
  background: rgba(22, 101, 52, .06);
  filter: blur(18px);
  content: "";
}

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

.hero-copy h1 {
  margin-bottom: 18px;
  color: #111827;
  line-height: 1.08;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 26px;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text-dark));
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.7;
}

.hero-visual {
  padding: 10px;
  border: 1px solid rgba(22, 101, 52, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 70px rgba(22, 101, 52, .12);
}

.hero-visual::before {
  display: none;
}

.hero-visual img {
  border-radius: 20px;
  box-shadow: none;
}

.hero-note {
  border-color: rgba(22, 101, 52, .16);
  background: rgba(255, 255, 255, .94);
}

.eyebrow {
  margin-bottom: 12px;
  letter-spacing: .18em;
  color: var(--text-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-copy > .eyebrow {
  margin-bottom: clamp(18px, 1.5vw, 22px);
}

.button-group {
  gap: 10px;
}

.btn {
  border-radius: 12px;
  font-weight: 800;
}

.stats-section {
  border-block: 0;
  background: transparent;
  padding: 0 0 22px;
}

.home-stats {
  padding: clamp(18px, 2.5vw, 26px) 0 clamp(22px, 3vw, 32px);
  border-block: 1px solid rgba(15, 23, 42, 0.07);
  background: #ffffff;
}

.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px clamp(10px, 2vw, 20px);
  text-align: center;
}

.home-stat + .home-stat {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.home-stat-value {
  display: block;
  color: var(--text-dark);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-stat-label {
  display: block;
  color: #94a3b8;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stats-grid {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .045);
}

.stats-grid > div {
  padding: 25px 18px;
}

.stats-grid strong {
  color: #14532d;
  font-size: 1.45rem;
}

.stats-grid span {
  color: #64748b;
  font-size: .72rem;
  letter-spacing: .02em;
}

.section {
  background: #ffffff;
}

.section-tinted {
  background:
    linear-gradient(180deg, #f4faf6 0%, #f8fafc 100%);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
  color: var(--text-dark);
  line-height: 1.1;
}

.section-heading p {
  max-width: 620px;
  font-size: .98rem;
}

.module-grid,
.teacher-row,
.public-card-grid,
.class-grid,
.news-grid {
  gap: 18px;
}

.module-card,
.type-card,
.class-card,
.teacher-card,
.news-card,
.public-card,
.content-panel,
.download-panel,
.contact-form,
.facility-grid article,
.mission-column article {
  border-color: rgba(15, 23, 42, .075);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .04);
}

.module-card,
.public-card,
.class-card {
  padding: 22px;
}

.module-card:hover,
.news-card:hover,
.public-card:hover,
.class-card:hover,
.teacher-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 101, 52, .22);
  box-shadow: 0 22px 58px rgba(22, 101, 52, .095);
}

.module-card h3,
.news-card h2,
.public-card h2,
.class-card h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.32;
}

.module-meta {
  margin: 18px 0;
}

.module-meta div {
  border-top-color: rgba(15, 23, 42, .07);
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  letter-spacing: .05em;
}

/* Custom variables for different card formats */
.type-card[data-type="pdf"] {
  --card-accent: #166534;
  --card-accent-rgb: 22, 101, 52;
  --card-glow-color: rgba(22, 101, 52, 0.14);
}
.type-card[data-type="youtube"] {
  --card-accent: #ef4444;
  --card-accent-rgb: 239, 68, 68;
  --card-glow-color: rgba(239, 68, 68, 0.14);
}
.type-card[data-type="drive"] {
  --card-accent: #0ea5e9;
  --card-accent-rgb: 14, 165, 233;
  --card-glow-color: rgba(14, 165, 233, 0.14);
}
.type-card[data-type="video"] {
  --card-accent: #6366f1;
  --card-accent-rgb: 99, 102, 241;
  --card-glow-color: rgba(99, 102, 241, 0.14);
}
.type-card[data-type="audio"] {
  --card-accent: #a855f7;
  --card-accent-rgb: 168, 85, 247;
  --card-glow-color: rgba(168, 85, 247, 0.14);
}
.type-card[data-type="document"] {
  --card-accent: #f59e0b;
  --card-accent-rgb: 245, 158, 11;
  --card-glow-color: rgba(245, 158, 11, 0.14);
}

.type-card {
  min-height: 146px;
  padding: 24px;
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  text-decoration: none;
}

.type-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--card-accent);
  box-shadow: 0 20px 40px var(--card-glow-color);
}

.type-grid {
  gap: 18px;
}

.type-card-featured {
  background: linear-gradient(165deg, #172033 0%, #166534 48%, #15803d 100%) !important;
  grid-row: span 2;
  min-height: 332px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  border: none !important;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(22, 101, 52, 0.18) !important;
}

.type-card-featured::before {
  position: absolute;
  top: 18%;
  right: -18%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 68%);
  content: "";
  pointer-events: none;
}

.type-card-featured > * {
  position: relative;
  z-index: 1;
}

.type-card-featured:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px rgba(22, 101, 52, 0.25) !important;
}

.type-card::after {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(var(--card-accent-rgb), 0.05);
  content: "";
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.type-card:hover::after {
  transform: scale(1.35);
  background: rgba(var(--card-accent-rgb), 0.08);
}

.type-card-featured::after {
  background: rgba(255, 255, 255, 0.12);
  width: 148px;
  height: 148px;
  right: -36px;
  bottom: -36px;
}

.type-card-featured:hover::after {
  background: rgba(255, 255, 255, 0.15);
}

.type-card .type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(var(--card-accent-rgb), 0.08);
  color: var(--card-accent);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.type-card:hover .type-icon {
  transform: scale(1.15) rotate(6deg);
  background: var(--card-accent);
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(var(--card-accent-rgb), 0.25);
}

.type-card-featured .type-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.type-card-featured:hover .type-icon {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.15) rotate(6deg);
}

.type-card[data-type="drive"] .type-icon--brand {
  background: #fff !important;
  color: inherit !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.type-card[data-type="drive"] .type-icon--brand .google-drive-logo {
  width: 24px;
}

.type-card[data-type="drive"]:hover .type-icon--brand {
  background: #fff !important;
  transform: scale(1.12);
}

.type-card[data-type="drive"] .type-icon svg {
  fill: none;
  stroke: none;
}

.type-card .type-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.type-card .type-label {
  color: var(--card-accent);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.type-card-featured .type-label {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 0;
}

.type-card h3 {
  margin-top: 10px;
  line-height: 1.3;
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.type-card-featured h3 {
  color: #ffffff !important;
  font-size: 1.35rem;
  margin-top: 12px;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  transition: color 0.3s ease;
}

.type-card-featured p {
  color: rgba(248, 250, 252, 0.85) !important;
  max-width: 100%;
}

/* Format belajar — layout & tipografi */
.learning-types {
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.learning-types .eyebrow {
  margin-bottom: 16px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.learning-types h2 {
  max-width: 14ch;
  margin-bottom: 14px;
  color: var(--text-dark);
  line-height: 1.12;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.learning-types > div:first-child > p {
  max-width: 38ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.learning-intro-list {
  margin-top: 32px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.learning-intro-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.learning-intro-list li:hover {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.05);
}

.learning-intro-list li svg {
  color: var(--primary);
  background: rgba(22, 101, 52, 0.06);
  border-radius: 50%;
  padding: 5px;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.learning-intro-list li:hover svg {
  transform: scale(1.18) rotate(8deg);
  background-color: rgba(22, 101, 52, 0.12);
}

.learning-intro-list li span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.bg-grad-youtube { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-grad-drive { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.bg-grad-video { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.bg-grad-audio { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-grad-document { background: linear-gradient(135deg, #f59e0b, #d97706); }

.academic-flow {
  gap: 10px;
  margin-bottom: 34px;
}

.academic-flow > div {
  border-color: rgba(15, 23, 42, .075);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .035);
}

.academic-flow > span {
  color: rgba(22, 101, 52, .52);
}

.department-grid article {
  border: 1px solid rgba(15, 23, 42, .075);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .04);
}

.teacher-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.015);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teacher-card:hover {
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(22, 101, 52, 0.28);
  box-shadow: 0 20px 45px rgba(22, 101, 52, 0.08);
}

.teacher-card img,
.teacher-placeholder {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.teacher-card:hover img,
.teacher-card:hover .teacher-placeholder {
  transform: scale(1.08);
}

.teacher-card > div:last-child {
  padding: 20px;
  background: var(--surface);
  position: relative;
  z-index: 2;
}

.teacher-card h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-dark);
}

.teacher-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.teacher-placeholder {
  background: linear-gradient(135deg, var(--surface-soft), color-mix(in srgb, var(--primary) 10%, var(--surface-soft)));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
}

.home-updates {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(36px, 6vw, 68px);
}

.news-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 24px 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-row:hover {
  transform: translateX(6px);
}

.news-row time {
  color: var(--primary);
  background: rgba(22, 101, 52, 0.05);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  align-self: start;
  border: 1px solid rgba(22, 101, 52, 0.08);
  display: block;
}

.news-row h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--text-dark);
}

.news-row h3 a {
  color: var(--text-dark);
  transition: color 0.25s ease;
}

.news-row h3 a:hover {
  color: var(--primary);
}

.news-row p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.announcement-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #166534 0%, #115e59 100%);
  padding: 36px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(22, 101, 52, 0.15);
  position: relative;
  overflow: hidden;
  border: none;
}

.announcement-panel::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.announcement-panel h2 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.announcement-panel h2 .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

.announcement-panel > a:not(.text-link) {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 20px 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.announcement-panel > a:not(.text-link):hover {
  transform: translateX(4px);
}

.announcement-panel span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 8px;
}

.announcement-panel strong {
  display: block;
  margin: 6px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.announcement-panel > a:not(.text-link):hover strong {
  text-decoration: underline;
}

.announcement-panel time {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
}

.announcement-panel .text-link {
  color: #ffffff;
  font-weight: 750;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 20px;
  width: 100%;
}

.announcement-panel > p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  grid-template-rows: repeat(2, 210px);
  gap: 14px;
}

.gallery-preview {
  padding-block: clamp(72px, 9vw, 104px);
}

.gallery-preview-action {
  margin-top: clamp(24px, 4vw, 36px);
}

.gallery-preview-action .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.gallery-strip button {
  grid-row: span 1;
}

.gallery-strip button:first-child {
  grid-row: 1 / 3;
}

.gallery-strip button:nth-child(n+4) {
  display: none;
}

.gallery-button {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.gallery-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 101, 52, 0.35);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-button::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.gallery-button:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 36px rgba(22, 101, 52, 0.12);
}

.gallery-button:hover::before {
  opacity: 1;
}

.gallery-button:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-button img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-button:hover img {
  transform: scale(1.08);
}

.page-hero {
  border-bottom-color: rgba(15, 23, 42, .07);
  background:
    radial-gradient(circle at 88% 24%, rgba(22, 101, 52, .09), transparent 28%),
    linear-gradient(180deg, #f4faf6 0%, #f8fafc 100%);
}

.page-hero h1 {
  color: var(--text-dark);
  line-height: 1.08;
}

.profile-layout,
.detail-grid,
.contact-layout,
.values-layout {
  gap: clamp(26px, 5vw, 52px);
}

.profile-layout,
.detail-grid,
.contact-layout,
.profil-sejarah,
.profil-visi-misi {
    scroll-margin-top: 96px;
}

/* Profil: visi, misi, tujuan */
.profil-visi-misi {
  padding-block: clamp(72px, 9vw, 104px);
  scroll-margin-top: 96px;
}

.profil-visi-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--radius-lg, 20px) + 2px);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .14), transparent 28%),
    linear-gradient(135deg, #14532d 0%, #166534 52%, #15803d 100%);
  box-shadow: 0 24px 60px rgba(22, 101, 52, .18);
}

.profil-visi-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.profil-visi-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profil-visi-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ecfdf5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profil-visi-hero-mark {
  color: rgba(255, 255, 255, .28);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.profil-visi-quote {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.profil-visi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
}

.profil-visi-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(22, 101, 52, .1);
  border-radius: calc(var(--radius, 16px) + 2px);
  background: linear-gradient(160deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .04);
}

.profil-visi-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profil-visi-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(22, 101, 52, .08);
  color: #166534;
  flex-shrink: 0;
}

.profil-visi-card-icon svg {
  width: 22px;
  height: 22px;
}

.profil-visi-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.profil-visi-list {
  flex: 1;
}

.profil-visi-list p {
  position: relative;
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: #475569;
  font-size: .96rem;
  line-height: 1.7;
}

.profil-visi-list p:last-child {
  margin-bottom: 0;
}

.profil-visi-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #166534;
}

@media (max-width: 900px) {
  .profil-visi-grid {
    grid-template-columns: 1fr;
  }

  .profil-visi-hero-mark {
    display: none;
  }
}

/* Profil: sambutan kepala madrasah */
.sambutan-profil-wrap {
  padding-block: clamp(72px, 9vw, 104px);
  scroll-margin-top: 96px;
}

.sambutan-profil-wrap--home {
  scroll-margin-top: 0;
}

.sambutan-profil-stage {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(16px, 2.5vw, 22px) clamp(24px, 4vw, 40px);
  align-items: start;
}

.sambutan-profil-frame {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(160deg, #ecfdf3 0%, #f8fafc 100%);
  box-shadow:
    0 28px 64px rgba(22, 101, 52, .12),
    inset 0 0 0 1px rgba(22, 101, 52, .08);
}

.sambutan-profil-frame::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(22, 101, 52, .08);
  pointer-events: none;
}

.sambutan-profil-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sambutan-profil-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #166534;
}

.sambutan-profil-caption {
  grid-column: 1;
  grid-row: 2;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 101, 52, .12);
}

.sambutan-profil-caption strong {
  display: block;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.sambutan-profil-caption span {
  display: block;
  margin-top: 6px;
  color: #166534;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.sambutan-profil-letter {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: relative;
  padding: clamp(24px, 3.5vw, 36px) clamp(22px, 3.5vw, 36px);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .04);
}

.sambutan-profil-letter::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #166534 0%, #15803d 100%);
}

.sambutan-profil-letter-mark {
  position: absolute;
  top: 14px;
  right: 24px;
  color: rgba(22, 101, 52, .12);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.sambutan-profil-letter-body {
  position: relative;
  z-index: 1;
  max-width: 68ch;
}

.sambutan-profil-letter-body p {
  margin: 0 0 1.1em;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.85;
}

.sambutan-profil-letter-body p:first-child {
  font-size: 1.08rem;
  color: #1e293b;
}

.sambutan-profil-letter-body p:last-child {
  margin-bottom: 0;
}

.sambutan-profil-letter-scroll {
  position: relative;
  z-index: 1;
  max-height: min(22rem, 52vh);
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, .45) rgba(22, 101, 52, .08);
}

.sambutan-profil-letter-scroll:focus {
  outline: 2px solid rgba(22, 101, 52, .28);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.sambutan-profil-letter-scroll::-webkit-scrollbar {
  width: 7px;
}

.sambutan-profil-letter-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(22, 101, 52, .08);
}

.sambutan-profil-letter-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(22, 101, 52, .42);
  background-clip: padding-box;
}

.sambutan-profil-footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .sambutan-profil-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sambutan-profil-frame,
  .sambutan-profil-caption,
  .sambutan-profil-letter {
    grid-column: 1;
    grid-row: auto;
  }

  .sambutan-profil-frame {
    max-width: 320px;
  }

  .sambutan-profil-letter-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sambutan-profil-frame,
  .sambutan-profil-letter {
    animation: sambutanProfilIn .7s ease both;
  }

  .sambutan-profil-letter {
    animation-delay: .08s;
  }
}

@keyframes sambutanProfilIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rich-content {
  color: #475569;
}

.rich-content p,
.rich-content li {
  max-width: 72ch;
}

.public-table-wrap {
  border-color: rgba(15, 23, 42, .075);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .04);
}

.public-table th {
  background: #166534;
}

.form-control {
  background: #ffffff;
}

.site-footer {
  border-top-color: rgba(15, 23, 42, .08);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.footer-grid h2 {
  color: #111827;
  letter-spacing: -.02em;
}

.footer-grid > div:not(.footer-brand) > a {
  font-size: .86rem;
  line-height: 1.55;
}

.back-to-top {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 101, 52, 0.28);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.back-to-top:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(22, 101, 52, 0.3),
    0 14px 30px rgba(15, 23, 42, 0.2);
}

@media (max-width: 900px) {
  .navbar {
    width: min(calc(100% - 32px), 1340px);
  }

  .hero {
    min-height: auto;
  }

  .stats-grid {
    border-radius: 18px;
  }

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

  .home-stat:nth-child(3n + 1) {
    border-left: 0;
  }

  .home-stat:nth-child(n + 4) {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
  }

  .home-stat + .home-stat {
    border-left: 1px solid rgba(15, 23, 42, 0.07);
  }
}

@media (max-width: 680px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    font-size: .96rem;
  }

  .home-stats-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
    padding-inline: clamp(20px, 5vw, 40px);
  }

  .home-stats-strip::-webkit-scrollbar {
    display: none;
  }

  .home-stat {
    flex: 0 0 auto;
    min-width: 108px;
    scroll-snap-align: start;
    padding-inline: 18px;
  }

  .home-stat:nth-child(n) {
    border-top: 0;
  }

  .home-stat + .home-stat {
    border-left: 1px solid rgba(15, 23, 42, 0.07);
  }

  .module-card,
  .public-card,
  .class-card,
  .contact-form,
  .content-panel,
  .download-panel {
    padding: 20px;
  }

  .news-row {
    grid-template-columns: 1fr;
  }
}

/* Modul catalog page */
.modul-page-hero {
  padding-bottom: clamp(28px, 4vw, 40px);
}

.modul-page-lead {
  max-width: 640px;
  margin-bottom: 0;
}

.modul-format-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.modul-format-label {
  margin-right: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
}

.module-format-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.module-format-icon svg {
  width: 16px;
  height: 16px;
}

.module-format-icon--pdf { background: #fee2e2; color: #b91c1c; }
.module-format-icon--youtube { background: #fee2e2; color: #b91c1c; }
.module-format-icon--drive {
  background: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 85%, transparent);
}
.module-format-icon--audio { background: #f3e8ff; color: #7e22ce; }
.module-format-icon--dokumen { background: #fff7ed; color: #c2410c; }
.module-format-icon--default { background: #f1f5f9; color: #475569; }

.filter-btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-btn--icon .module-format-icon,
.filter-btn--icon .ui-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: none;
}

.filter-btn--icon .module-format-icon svg {
  width: 15px;
  height: 15px;
}

.filter-btn--icon:not(.active) .module-format-icon--pdf,
.filter-btn--icon:not(.active) .module-format-icon--youtube { color: #b91c1c; }
.filter-btn--icon:not(.active) .module-format-icon--audio { color: #7e22ce; }
.filter-btn--icon:not(.active) .ui-icon--grid { color: var(--text-muted); }

.google-drive-logo {
  display: block;
  width: 18px;
  height: auto;
}

.module-format-icon--drive .google-drive-logo {
  width: 17px;
  height: auto;
}

.filter-btn--icon .module-format-icon--drive {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
}

.filter-btn--icon .module-format-icon--drive .google-drive-logo {
  width: 15px;
  height: auto;
  margin: auto;
}

.filter-btn--icon.active .module-format-icon--drive {
  background: rgba(255, 255, 255, 0.95);
}

.filter-btn--icon.active .module-format-icon,
.filter-btn--icon.active .ui-icon {
  color: #fff;
}

.module-card-format {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.module-card-date .ui-icon {
  width: 14px;
  height: 14px;
  color: color-mix(in srgb, var(--primary) 70%, var(--text-muted));
}

.module-card-date time {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.section.modul-page {
  padding-top: clamp(36px, 5vw, 52px);
}

.modul-filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text-dark) 4%, transparent);
}

.modul-filter-panel-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modul-filter-panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modul-filter-panel-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modul-filter-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 16px 14px;
  align-items: end;
}

.modul-filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.modul-filter-field input,
.modul-filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--background);
  padding: 10px 12px;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modul-filter-field input:focus,
.modul-filter-field select:focus {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.modul-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modul-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modul-results-bar span {
  font-weight: 700;
  color: var(--text-dark);
}

.modul-results-bar small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modul-catalog-grid {
  margin-bottom: 8px;
}

.modul-empty-state {
  margin: 48px auto;
  max-width: 420px;
  text-align: center;
}

@media (max-width: 1024px) {
  .modul-filter-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .modul-filter-field--search {
    grid-column: 1 / -1;
  }

  .modul-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .modul-filter-panel {
    padding: 18px 16px;
  }

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

  .modul-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modul-filter-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Modul detail page */
.modul-detail-hero {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.modul-detail-breadcrumb {
  margin-bottom: 22px;
}

.modul-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.modul-detail-copy h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
}

.modul-detail-path {
  margin: 0;
  font-size: 1.02rem;
}

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

.modul-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.modul-meta-chip .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.modul-meta-chip time {
  color: inherit;
}

.modul-detail-author {
  border-left: 2px solid var(--primary);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modul-detail-author > strong {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.modul-detail-author-label,
.modul-detail-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.modul-detail-author-label .ui-icon,
.modul-detail-updated .ui-icon {
  display: inline-grid;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.modul-detail-page {
  padding-top: clamp(36px, 5vw, 52px);
}

.modul-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.modul-detail-main,
.modul-sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.modul-detail-main {
  padding: clamp(24px, 4vw, 36px);
}

.modul-detail-section-head {
  margin-bottom: 18px;
}

.modul-detail-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.modul-detail-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modul-detail-desc {
  margin-bottom: 8px;
}

.modul-bahan-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.modul-bahan-list {
  display: grid;
  gap: 18px;
}

.modul-bahan-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.modul-bahan-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.modul-bahan-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.modul-media-preview {
  overflow: hidden;
  background: #0f172a;
}

.modul-media-preview--pdf iframe {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  border: 0;
}

.modul-media-preview--video {
  aspect-ratio: 16 / 9;
}

.modul-media-preview--video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modul-media-preview--image img,
.media-preview > img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.modul-media-preview--office iframe,
.modul-media-preview--google iframe,
.modul-media-preview--file iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #f4faf7;
}

.modul-media-preview--office p {
  margin: 0;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  background: #f4faf7;
}

.modul-audio-card {
  padding: 20px 16px;
  background: var(--surface-soft);
}

.modul-audio-card audio {
  width: 100%;
}

.modul-bahan-card-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.modul-detail-back {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.modul-detail-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}

.modul-sidebar-card {
  padding: 22px;
}

.modul-sidebar-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.modul-sidebar-card-head p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.modul-sidebar-bahan-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.modul-sidebar-bahan-item .module-format-icon {
  align-self: start;
}

.modul-sidebar-bahan-item .modul-sidebar-bahan-label,
.modul-sidebar-bahan-item .btn {
  grid-column: 1 / -1;
}

.modul-sidebar-bahan-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.modul-sidebar-bahan-label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.modul-sidebar-empty {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modul-sidebar-facts {
  margin: 20px 0 0;
}

.modul-sidebar-facts div {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.modul-sidebar-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modul-sidebar-facts dt .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--primary);
}

.modul-sidebar-facts dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.modul-related-section .facility-section-header {
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .modul-detail-intro,
  .modul-detail-grid {
    grid-template-columns: 1fr;
  }

  .modul-detail-author {
    border-left: 0;
    border-top: 2px solid var(--primary);
    padding-left: 0;
    padding-top: 18px;
  }

  .modul-detail-sidebar {
    order: -1;
    position: static;
  }
}

@media (max-width: 680px) {
  .modul-detail-main,
  .modul-sidebar-card {
    padding: 18px 16px;
  }

  .modul-media-preview--pdf iframe {
    height: 420px;
  }
}

/* Berita catalog page */
.berita-page-hero {
  padding-bottom: clamp(28px, 4vw, 40px);
}

.berita-page-lead {
  max-width: 640px;
  margin-bottom: 0;
}

.berita-category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.berita-format-label {
  margin-right: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.berita-category-filters .filter-btn small {
  margin-left: 4px;
  opacity: 0.75;
  font-size: 0.78em;
  font-weight: 700;
}

.section.berita-page {
  padding-top: clamp(36px, 5vw, 52px);
}

.berita-filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text-dark) 4%, transparent);
}

.berita-filter-panel-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.berita-filter-panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.berita-filter-panel-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.berita-filter-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr auto;
  gap: 16px 14px;
  align-items: end;
}

.berita-filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.berita-filter-field input,
.berita-filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--background);
  padding: 10px 12px;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.berita-filter-field input:focus,
.berita-filter-field select:focus {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.berita-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.berita-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.berita-results-bar span {
  font-weight: 700;
  color: var(--text-dark);
}

.berita-results-bar small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.berita-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: 8px;
  align-items: stretch;
}

.berita-empty-state {
  margin: 48px auto;
  max-width: 420px;
  text-align: center;
}

.berita-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.berita-card-media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.berita-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.berita-card:hover .berita-card-media img {
  transform: scale(1.04);
}

.berita-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.berita-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 24px 24px;
  min-height: 0;
}

.berita-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
  min-height: 24px;
}

.berita-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.berita-card-date .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--text-accent);
}

.berita-card-date time {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.berita-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-card h2 a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.berita-card:hover h2 a {
  color: var(--text-accent);
}

.berita-card p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  min-height: calc(1.65em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.berita-card-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.berita-card-views .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--primary);
}

.article-share {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.article-share-actions {
  margin-top: 0;
}

.article-share-actions .public-cta {
  gap: 8px;
}

.article-share-actions .public-cta > i {
  flex: 0 0 auto;
  font-size: 1.08rem;
  transition: transform 200ms ease;
}

.article-share-actions .public-cta:hover > i {
  transform: translateY(-1px);
}

.article-share-actions .public-cta.is-copied {
  border-color: #166534;
  background: #f0fdf4;
  color: #166534;
}

.article-share-feedback {
  margin: 14px 0 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-share-feedback[hidden] {
  display: none;
}

.article-footer {
  padding-top: 8px;
}

/* Berita terkait — samakan proporsi gambar & tinggi kartu */
.related-news-section .related-grid {
  align-items: stretch;
}

.related-news-section .related-card {
  height: 100%;
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.related-news-section .related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text-accent) 25%, var(--border));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.related-news-section .related-card img,
.related-news-section .related-img-placeholder {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.related-news-section .related-img-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.related-news-section .related-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.related-news-section .related-info h4 {
  flex: 1 1 auto;
  min-height: calc(1.4em * 2);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .berita-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .berita-filter-field--search {
    grid-column: 1 / -1;
  }

  .berita-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .berita-catalog-grid {
    grid-template-columns: 1fr;
  }

  .berita-filter-panel {
    padding: 18px 16px;
  }

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

  .berita-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .berita-filter-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .berita-card-body {
    padding: 18px 16px 20px;
  }
}

/* === Public responsive layer (desktop + mobile) === */
html {
  overflow-x: clip;
}

.rich-content img,
.rich-content iframe,
.rich-content video,
.rich-content table,
.article-body img {
  max-width: 100%;
  height: auto;
}

.rich-content table {
  display: block;
  overflow-x: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links {
    gap: 8px;
  }

  .nav-links > a:not(.btn),
  .nav-dropdown summary {
    min-height: 44px;
    padding-inline: 4px;
    font-size: 0.9rem;
  }

  .site-header .btn-small {
    padding-inline: 12px;
    font-size: 0.82rem;
  }
}

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

@media (max-width: 900px) {
  .site-header {
    z-index: 40;
  }

  .nav-links.is-open {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  }

  .learning-types h2,
  .learning-types > div:first-child > p {
    max-width: none;
  }

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

  .type-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }

  .modul-format-filters,
  .berita-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(32px, 5vw, 48px));
    padding-inline: clamp(32px, 5vw, 48px);
    padding-bottom: 4px;
  }

  .modul-format-filters::-webkit-scrollbar,
  .berita-category-filters::-webkit-scrollbar {
    display: none;
  }

  .modul-format-filters .filter-btn,
  .berita-category-filters .filter-btn {
    flex: 0 0 auto;
  }

  .article-layout-grid {
    margin-top: 32px;
    gap: 40px;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
    max-width: 480px;
  }

  .hero-note {
    right: 10px;
    bottom: 24px;
  }

  .facility-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modul-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .hero-visual img {
    height: auto;
    min-height: 240px;
    max-height: 380px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    width: 100%;
    min-width: 0;
  }

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

  .type-card-featured {
    min-height: 220px;
  }

  .learning-intro-list li:hover {
    transform: none;
  }

  .modul-media-preview iframe,
  .media-preview iframe {
    height: min(56vw, 420px);
  }

  .article-header h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .section-action .btn {
    width: 100%;
  }

  .berita-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .teacher-modal-body {
    padding: 24px 20px 28px;
  }

  .teacher-modal-name {
    font-size: 1.35rem;
  }

  .academic-timeline-wrap {
    margin-block: 40px 52px;
  }

  .step-marker {
    width: 64px;
    height: 64px;
    margin-right: 18px;
  }

  .step-card {
    padding: 18px;
  }
}

@media (max-width: 440px) {
  .brand strong {
    max-width: min(150px, 42vw);
  }

  .filter-btn--icon {
    padding-inline: 12px;
    font-size: 0.78rem;
  }
}

/* Kontak page */
.kontak-page-hero {
  padding-bottom: clamp(28px, 4vw, 40px);
}

.kontak-page-lead {
  max-width: 640px;
  margin-bottom: 0;
}

.kontak-page {
  padding-top: clamp(36px, 5vw, 52px);
}

.kontak-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.kontak-intro-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(26px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-lg, 20px) + 2px);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #14532d 0%, #166534 52%, #15803d 100%);
  box-shadow: 0 24px 60px rgba(22, 101, 52, 0.16);
  color: #ffffff;
}

.kontak-intro-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.kontak-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.kontak-intro-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecfdf5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kontak-intro-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.kontak-intro-mark svg {
  width: 22px;
  height: 22px;
}

.kontak-intro-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.kontak-intro-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.7;
}

.kontak-intro-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kontak-intro-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0fdf4;
  font-size: 0.82rem;
  font-weight: 650;
}

.kontak-intro-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #86efac;
}

.kontak-channels {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.kontak-channel {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.035);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kontak-channel:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 101, 52, 0.18);
  box-shadow: 0 18px 44px rgba(22, 101, 52, 0.08);
}

.kontak-channel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}

.kontak-channel-icon svg {
  width: 22px;
  height: 22px;
}

.kontak-channel-icon--wa {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.kontak-channel-icon--mail {
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
}

.kontak-channel-label {
  display: block;
  margin-bottom: 4px;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kontak-channel p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}

.kontak-channel-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kontak-channel-link:hover {
  color: #166534;
}

.kontak-map-card {
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.kontak-map-head {
  padding: 18px 20px 14px;
}

.kontak-map-head h3 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kontak-map-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.kontak-map-frame iframe {
  height: 260px;
}

.kontak-form-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: calc(var(--radius-lg, 20px) + 2px);
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.05);
  padding: clamp(24px, 4vw, 36px);
}

.kontak-feedback-stack {
  margin-bottom: 20px;
}

.kontak-feedback {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.kontak-feedback + .kontak-feedback {
  margin-top: 10px;
}

.kontak-feedback-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.kontak-feedback-icon svg {
  width: 22px;
  height: 22px;
}

.kontak-feedback strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.kontak-feedback p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.kontak-feedback--success {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
}

.kontak-feedback--success .kontak-feedback-icon {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.kontak-feedback--success strong {
  color: var(--success);
}

.kontak-feedback--warning {
  border-color: color-mix(in srgb, #d97706 35%, var(--border));
  background: color-mix(in srgb, #d97706 8%, var(--surface));
}

.kontak-feedback--warning .kontak-feedback-icon {
  background: color-mix(in srgb, #d97706 16%, transparent);
  color: #d97706;
}

.kontak-feedback--warning strong {
  color: #d97706;
}

.kontak-form-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.kontak-form-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.kontak-form-head p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

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

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

.kontak-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.kontak-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.kontak-form .form-control:hover {
  border-color: rgba(22, 101, 52, 0.22);
  background: #ffffff;
}

.kontak-form .form-control:focus {
  outline: none;
  border-color: #166534;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.1);
}

.kontak-form-foot {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.kontak-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 220px);
}

.kontak-submit svg {
  width: 18px;
  height: 18px;
}

.kontak-form-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .kontak-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .kontak-form-grid {
    grid-template-columns: 1fr;
  }

  .kontak-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Halaman akademik — editorial minimal (taste-skill: VARIANCE 5, MOTION 3, DENSITY 3) */
.akademik-page-hero {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.akademik-page-hero h1 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.akademik-page-lead {
  max-width: 56ch;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.akademik-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  overflow: hidden;
  list-style: none;
}

.akademik-stat {
  padding: 18px 20px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.akademik-stat:last-child {
  border-right: 0;
}

.akademik-stat dt {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

.akademik-stat dd {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.akademik-path {
  margin: 0;
  color: rgba(74, 85, 104, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.akademik-path span {
  margin: 0 0.35em;
  color: rgba(15, 23, 42, 0.22);
  font-weight: 400;
}

.akademik-page {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.akademik-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: clamp(36px, 5vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.akademik-jump-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}

.akademik-jump-link:hover,
.akademik-jump-link:focus-visible {
  color: #166534;
  outline: none;
}

.akademik-dept + .akademik-dept {
  margin-top: clamp(56px, 8vw, 80px);
}

.akademik-dept-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 36px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.akademik-dept-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.akademik-dept-meta {
  margin: 0 0 10px;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 650;
}

.akademik-dept-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.akademik-class + .akademik-class {
  margin-top: clamp(32px, 5vw, 44px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.akademik-class-head {
  margin-bottom: 12px;
}

.akademik-class-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.akademik-class-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.akademik-subject-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.akademik-subject-list li + li {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.akademik-subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.akademik-subject-row:hover,
.akademik-subject-row:focus-visible {
  background: #f8fafc;
  outline: none;
}

.akademik-subject-row:active {
  background: #f1f5f9;
}

.akademik-subject-name {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 650;
}

.akademik-subject-row:hover .akademik-subject-name,
.akademik-subject-row:focus-visible .akademik-subject-name {
  color: #166534;
}

.akademik-subject-meta {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.akademik-subject-empty {
  padding: 16px 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.akademik-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin-top: clamp(56px, 8vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.akademik-foot p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.akademik-empty-state {
  margin: 56px auto;
  max-width: 420px;
  text-align: center;
}

.akademik-empty-inline {
  margin: 0;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

  .akademik-stat:nth-child(2) {
    border-right: 0;
  }

  .akademik-stat:nth-child(1),
  .akademik-stat:nth-child(2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 680px) {
  .akademik-stats {
    grid-template-columns: 1fr;
  }

  .akademik-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .akademik-stat:last-child {
    border-bottom: 0;
  }

  .akademik-subject-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 0;
  }

  .akademik-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .akademik-foot .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Akademik: final directory layout, scoped to this page. */
.akademik-page-hero {
  padding-block: clamp(52px, 7vw, 78px) clamp(36px, 5vw, 52px);
  background:
    radial-gradient(circle at 88% 10%, rgba(35, 125, 77, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fcfa 0%, #ffffff 100%);
}

.akademik-page-hero .eyebrow {
  margin: 0 0 14px;
  color: #17613d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.akademik-page-hero h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
}

.akademik-page-lead {
  max-width: 62ch;
  margin-bottom: clamp(30px, 4vw, 42px);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.akademik-stats {
  max-width: 920px;
  margin-bottom: 26px;
  border-width: 1px 0;
  border-radius: 0;
}

.akademik-stat {
  padding: 20px clamp(14px, 2.2vw, 26px);
}

.akademik-stat:first-child {
  padding-left: 0;
}

.akademik-stat:last-child {
  padding-right: 0;
}

.akademik-stat dt {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.akademik-stat dd {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
}

.akademik-path {
  display: flex;
  max-width: 640px;
  align-items: center;
  gap: 10px;
  color: #53645b;
  font-size: 0.78rem;
}

.akademik-path span {
  margin: 0;
  color: inherit;
  font-weight: 700;
}

.akademik-path i {
  width: clamp(18px, 4vw, 44px);
  height: 1px;
  background: #bad1c4;
}

.akademik-page {
  padding-top: clamp(42px, 6vw, 68px);
  background: #ffffff;
}

.akademik-jump {
  gap: 10px 24px;
  margin-bottom: clamp(42px, 6vw, 64px);
  padding-bottom: 16px;
}

.akademik-jump-link {
  position: relative;
  padding-block: 5px;
  font-size: 0.84rem;
  font-weight: 750;
}

.akademik-jump-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #237d4d;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.akademik-jump-link:hover::after,
.akademik-jump-link:focus-visible::after {
  transform: scaleX(1);
}

.akademik-dept {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  scroll-margin-top: 110px;
}

.akademik-dept + .akademik-dept {
  margin-top: clamp(72px, 10vw, 112px);
  padding-top: clamp(56px, 8vw, 80px);
  border-top: 1px solid #e5eee9;
}

.akademik-dept-head {
  max-width: 340px;
  margin: 0;
  padding: 0;
  border: 0;
}

.akademik-dept-label {
  margin: 0 0 12px;
  color: #237d4d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.akademik-dept-head h2 {
  margin-bottom: 9px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
}

.akademik-dept-meta {
  display: inline-block;
  margin-bottom: 16px;
  color: #17613d;
  font-size: 0.76rem;
  font-weight: 750;
}

.akademik-dept-desc {
  font-size: 0.92rem;
  line-height: 1.72;
}

.akademik-dept-classes {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.akademik-class,
.akademik-class + .akademik-class {
  margin: 0;
  padding: 24px;
  border: 1px solid #e5eee9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 97, 61, 0.05);
}

.akademik-class-head {
  margin-bottom: 18px;
}

.akademik-class-head h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 800;
}

.akademik-class-head p {
  max-width: 60ch;
  font-size: 0.86rem;
  line-height: 1.6;
}

.akademik-subject-list {
  border: 0;
  border-radius: 0;
}

.akademik-subject-list li {
  border-top: 1px solid #edf2ef;
}

.akademik-subject-list li + li {
  border-top-color: #edf2ef;
}

.akademik-subject-row {
  min-height: 54px;
  padding: 13px 4px;
  background: transparent;
}

.akademik-subject-row:hover,
.akademik-subject-row:focus-visible {
  background: transparent;
}

.akademik-subject-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.akademik-subject-meta {
  margin-left: auto;
  font-size: 0.76rem;
}

.akademik-subject-arrow {
  flex: 0 0 auto;
  color: #237d4d;
  font-size: 1rem;
  transition: transform 220ms ease;
}

.akademik-subject-row:hover .akademik-subject-arrow,
.akademik-subject-row:focus-visible .akademik-subject-arrow {
  transform: translateX(5px);
}

.akademik-foot {
  margin-top: clamp(64px, 9vw, 96px);
  border: 1px solid #dfeae4;
  border-radius: 18px;
  background: #f7fbf9;
  padding: 24px 26px;
}

@media (max-width: 820px) {
  .akademik-dept {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .akademik-dept-head {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .akademik-page-hero {
    padding-top: 42px;
  }

  .akademik-page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

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

  .akademik-stat,
  .akademik-stat:first-child,
  .akademik-stat:last-child {
    padding: 16px 12px;
  }

  .akademik-stat:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .akademik-stat:nth-child(even) {
    border-right: 0;
  }

  .akademik-path {
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .akademik-path i {
    width: 16px;
    flex: 0 0 16px;
  }

  .akademik-class,
  .akademik-class + .akademik-class {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .akademik-subject-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .akademik-subject-meta {
    grid-column: 1;
    margin-left: 0;
  }

  .akademik-subject-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .akademik-foot {
    padding: 22px 18px;
  }
}


/* CTA publik seragam — di akhir file agar tidak bentrok dengan style.css */
.article-share .section-action,
.article-footer.section-action {
  margin-top: 0;
}

.public-cta,
a.public-cta,
button.public-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px 20px;
  color: #111827;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.public-cta:hover,
.public-cta:focus-visible {
  border-color: #166534;
  background: #ffffff;
  color: #166534;
  outline: none;
  transform: translateY(-2px);
}

.public-cta.is-copied {
  border-color: #166534;
  background: #f0fdf4;
  color: #166534;
}

@media (max-width: 680px) {
  .button-group .public-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Professional minimalist public refresh. Taste skill: variance 5, motion 3, density 4. */
:root {
  --primary: #166534;
  --primary-strong: #14532d;
  --secondary: #166534;
  --accent: #166534;
  --background: #f7f9f8;
  --surface: #ffffff;
  --surface-soft: #f3f7f4;
  --text-dark: #101820;
  --text-muted: #52605a;
  --text-accent: #166534;
  --heading-accent: #166534;
  --border: #dfe7e2;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
  --shadow-small: 0 10px 28px rgba(16, 24, 32, 0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1180px;
}

html,
body {
  background: var(--background);
  color: var(--text-dark);
}

body {
  background-image: none;
  font-size: 15.5px;
}

.container,
.navbar {
  width: min(calc(100% - clamp(32px, 5vw, 72px)), var(--container));
}

h1,
h2,
h3 {
  color: var(--text-dark);
  letter-spacing: -0.035em;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  color: var(--primary);
}

.eyebrow,
.module-path,
.teacher-role,
.teacher-modal-role,
.kontak-channel-label,
.login-kicker,
.sambutan-panel-identity span,
.sambutan-identity span {
  color: var(--primary);
  letter-spacing: 0.08em;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
}

.navbar {
  min-height: 70px;
}

.site-header .brand strong {
  color: var(--text-dark);
}

.site-header .brand small {
  color: var(--text-muted);
}

.site-header .brand-logo,
.site-header .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-header .brand-mark {
  background: var(--primary);
  color: #ffffff;
}

.nav-links {
  gap: clamp(8px, 1.1vw, 16px);
}

.nav-links > a:not(.btn),
.nav-dropdown summary {
  min-height: 40px;
  padding-inline: 2px;
  color: #4b5a54;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: var(--primary);
}

.nav-dropdown-icon {
  width: 10px;
  height: 7px;
}

.nav-dropdown > div {
  top: calc(100% + 14px);
  min-width: 210px;
  border-color: rgba(16, 24, 32, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
}

.site-header .btn,
.btn,
.public-cta {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 750;
  box-shadow: none;
}

.btn:hover,
.public-cta:hover,
.module-card:hover,
.news-card:hover,
.public-card:hover,
.class-card:hover,
.teacher-card:hover,
.type-card:hover {
  transform: translateY(-2px);
}

.btn-primary,
.site-header .btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.site-header .btn-primary:hover {
  background: var(--primary-strong);
  color: #ffffff;
}

.btn-secondary,
.btn-outline,
.site-header .btn-outline,
.public-cta {
  border-color: rgba(16, 24, 32, 0.14);
  background: #ffffff;
  color: var(--text-dark);
}

.btn-secondary:hover,
.btn-outline:hover,
.site-header .btn-outline:hover,
.public-cta:hover {
  border-color: var(--primary);
  background: #f7fbf8;
  color: var(--primary);
}

.hero {
  min-height: auto;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 92px);
  background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
}

.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 440px);
  gap: clamp(32px, 6vw, 72px);
}

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

.hero-copy h1 {
  max-width: 12.5ch;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  font-weight: 800;
  line-height: 0.98;
}

.hero-lead {
  max-width: 48ch;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.hero-visual {
  width: min(100%, 440px);
  padding: 0;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.1);
}

.hero-visual img {
  height: clamp(300px, 34vw, 440px);
  border-radius: 16px;
}

.hero-note {
  right: 16px;
  bottom: 16px;
  min-width: 178px;
  border-color: rgba(16, 24, 32, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.12);
}

.hero-note strong {
  color: var(--primary);
}

.home-stats,
.stats-section {
  border-block: 1px solid rgba(16, 24, 32, 0.08);
  background: #ffffff;
}

.home-stat-value,
.stats-grid strong {
  color: var(--text-dark);
}

.home-stat-label,
.stats-grid span {
  color: var(--text-muted);
}

.section {
  padding-block: clamp(64px, 9vw, 108px);
  background: #ffffff;
}

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

.section-heading {
  max-width: 680px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-heading h2 {
  max-width: 14ch;
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-heading p {
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.module-grid,
.teacher-row,
.public-card-grid,
.class-grid,
.news-grid,
.type-grid {
  gap: 16px;
}

.module-card,
.type-card,
.class-card,
.teacher-card,
.news-card,
.public-card,
.content-panel,
.download-panel,
.contact-form,
.kontak-form-panel,
.kontak-channel,
.kontak-map-card,
.facility-grid article,
.mission-column article,
.step-card,
.stats-grid {
  border-color: rgba(16, 24, 32, 0.09);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.035);
}

.module-card:hover,
.news-card:hover,
.public-card:hover,
.class-card:hover,
.teacher-card:hover,
.type-card:hover,
.kontak-channel:hover {
  border-color: rgba(22, 101, 52, 0.24);
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.08);
}

.module-card,
.public-card,
.class-card,
.type-card {
  padding: 22px;
}

.module-card {
  min-height: 292px;
}

.type-card,
.type-card[data-type] {
  --card-accent: var(--primary);
  --card-accent-rgb: 22, 101, 52;
  --card-glow-color: rgba(22, 101, 52, 0.1);
}

.type-icon,
.department-icon,
.kontak-channel-icon,
.step-number {
  background: rgba(22, 101, 52, 0.1);
  color: var(--primary);
}

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

.department-grid article,
.department-grid article:nth-child(even) {
  border: 1px solid rgba(16, 24, 32, 0.09);
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.035);
}

.department-grid article:nth-child(odd) h3,
.department-grid article:nth-child(odd) p,
.department-grid article:nth-child(odd) span {
  color: inherit;
}

.department-grid h3,
.department-grid span {
  color: var(--text-dark);
}

.department-grid p {
  color: var(--text-muted) !important;
}

.academic-timeline-wrap::before {
  background: rgba(22, 101, 52, 0.18);
}

.step-marker {
  border-width: 1px;
  border-color: rgba(16, 24, 32, 0.1);
  box-shadow: none;
}

.step-number {
  color: var(--primary);
  box-shadow: none;
}

.home-updates {
  gap: clamp(32px, 5vw, 64px);
}

.news-row {
  border-top-color: rgba(16, 24, 32, 0.09);
}

.site-footer {
  background: #101820;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer h2,
.site-footer .brand strong,
.site-footer .brand small {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h2,
.site-footer .brand strong {
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 900px) {
  .site-header {
    background: #ffffff;
  }

  .nav-links {
    border: 1px solid rgba(16, 24, 32, 0.08);
    border-radius: 12px;
    background: #ffffff;
  }

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

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero-visual {
    justify-self: start;
    max-width: 560px;
  }

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

@media (max-width: 680px) {
  .container,
  .navbar {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero {
    padding-block: 38px 52px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 12vw, 3.3rem);
    line-height: 1.02;
  }

  .button-group,
  .button-group .btn {
    width: 100%;
  }

  .hero-visual {
    max-width: none;
  }

  .hero-visual img {
    height: auto;
    min-height: 260px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -8px 12px 12px;
  }

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

  .home-stat + .home-stat {
    border-left: 0;
  }

  .home-stat {
    border-top: 1px solid rgba(16, 24, 32, 0.08);
  }

  .home-stat:nth-child(1),
  .home-stat:nth-child(2) {
    border-top: 0;
  }
}

/* Final public design layer. Taste skill: professional minimalist, variance 5, motion 3, density 3. */
:root {
  --primary: #17613d;
  --primary-strong: #10452c;
  --secondary: #17613d;
  --accent: #17613d;
  --background: #f6f8f6;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --text-dark: #101716;
  --text-muted: #596761;
  --text-accent: #17613d;
  --heading-accent: #17613d;
  --border: #dce5df;
  --shadow: 0 18px 44px rgba(16, 23, 22, 0.08);
  --shadow-small: 0 10px 28px rgba(16, 23, 22, 0.055);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1160px;
}

html {
  scroll-padding-top: 88px;
}

body {
  background: var(--background);
  color: var(--text-dark);
  font-size: 15.5px;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 248, 246, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(23, 97, 61, 0.055), transparent 28%);
  content: "";
}

.container,
.navbar {
  width: min(calc(100% - clamp(32px, 5vw, 72px)), var(--container));
}

h1,
h2,
h3 {
  color: var(--text-dark);
  letter-spacing: -0.04em;
}

p {
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 97, 61, 0.24);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 23, 22, 0.08);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(16, 23, 22, 0.08);
}

.navbar {
  min-height: 68px;
}

.brand {
  gap: 10px;
}

.brand strong {
  color: var(--text-dark);
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

.brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo,
.brand-mark,
.site-header .brand-logo,
.site-header .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-mark,
.site-header .brand-mark {
  background: var(--primary);
  color: #ffffff;
}

.nav-links {
  gap: clamp(8px, 1vw, 14px);
}

.nav-links > a:not(.btn),
.nav-dropdown summary {
  min-height: 40px;
  color: #4e5b56;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: var(--primary);
}

.nav-dropdown > div {
  top: calc(100% + 12px);
  min-width: 220px;
  border-color: rgba(16, 23, 22, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 23, 22, 0.12);
}

.nav-dropdown > div a {
  color: #4f5f58;
}

.site-header .btn,
.btn,
.public-cta {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 780;
  box-shadow: none;
}

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

.btn:active,
.public-cta:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary,
.site-header .btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.site-header .btn-primary:hover {
  background: var(--primary-strong);
  color: #ffffff;
}

.btn-secondary,
.btn-outline,
.site-header .btn-outline,
.public-cta {
  border-color: rgba(16, 23, 22, 0.14);
  background: #ffffff;
  color: var(--text-dark);
}

.btn-secondary:hover,
.btn-outline:hover,
.site-header .btn-outline:hover,
.public-cta:hover {
  border-color: var(--primary);
  background: #f7fbf8;
  color: var(--primary);
}

.hero,
.page-hero {
  background:
    linear-gradient(180deg, #f2f7f3 0%, #ffffff 100%);
}

.hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 92px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 430px);
  gap: clamp(32px, 6vw, 70px);
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  font-weight: 820;
  line-height: 0.99;
}

.hero-lead {
  max-width: 48ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  font-weight: 500;
}

.hero-visual {
  border: 1px solid rgba(16, 23, 22, 0.08);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(16, 23, 22, 0.095);
}

.hero-visual img {
  border-radius: var(--radius-lg);
}

.hero-note {
  border-color: rgba(16, 23, 22, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(16, 23, 22, 0.11);
}

.page-hero {
  padding: clamp(54px, 8vw, 88px) 0 clamp(42px, 6vw, 68px);
  border-bottom: 1px solid rgba(16, 23, 22, 0.08);
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

.page-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  font-weight: 820;
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.72;
}

.eyebrow {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.11em;
}

.text-gradient {
  color: var(--primary);
}

.section {
  padding-block: clamp(62px, 8vw, 96px);
  background: #ffffff;
}

.section-compact {
  padding-top: clamp(42px, 6vw, 64px);
}

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

.section-heading {
  max-width: 650px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-heading h2 {
  max-width: 15ch;
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 820;
  line-height: 1.06;
}

.section-heading p {
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.72;
}

.module-grid,
.teacher-row,
.public-card-grid,
.class-grid,
.news-grid,
.type-grid {
  gap: 16px;
}

.module-card,
.type-card,
.class-card,
.teacher-card,
.news-card,
.public-card,
.content-panel,
.download-panel,
.contact-form,
.kontak-form-panel,
.kontak-channel,
.kontak-map-card,
.facility-grid article,
.mission-column article,
.profile-facts,
.prose-card,
.public-detail-card,
.step-card,
.stats-grid,
.berita-filter-panel,
.modul-filter-panel {
  border: 1px solid rgba(16, 23, 22, 0.09);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.035);
}

.module-card:hover,
.news-card:hover,
.public-card:hover,
.class-card:hover,
.teacher-card:hover,
.type-card:hover,
.kontak-channel:hover {
  border-color: rgba(23, 97, 61, 0.24);
  box-shadow: 0 16px 42px rgba(16, 23, 22, 0.075);
}

.module-card,
.public-card,
.class-card,
.type-card {
  padding: 22px;
}

.module-card {
  min-height: 280px;
}

.module-card[data-format],
.type-card[data-type] {
  --card-accent: var(--primary);
  --card-accent-rgb: 23, 97, 61;
  --card-glow: rgba(23, 97, 61, 0.1);
  --card-glow-color: rgba(23, 97, 61, 0.1);
}

.badge,
.filter-btn,
.category-tag,
.teacher-subject-tag {
  border-radius: 999px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-color: rgba(16, 23, 22, 0.12);
  background: #ffffff;
  color: #4f5f58;
  font-size: 0.83rem;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.modul-format-filters,
.berita-category-filters {
  margin-top: 22px;
}

.modul-filter-form,
.berita-filter-form,
.kontak-form-grid {
  gap: 16px;
}

.modul-filter-field input,
.modul-filter-field select,
.berita-filter-field input,
.berita-filter-field select,
.kontak-form .form-control,
.contact-form input,
.contact-form textarea,
.contact-form select {
  border-color: rgba(16, 23, 22, 0.12);
  border-radius: 10px;
  background: #f8faf9;
  color: var(--text-dark);
}

.modul-filter-field input:focus,
.modul-filter-field select:focus,
.berita-filter-field input:focus,
.berita-filter-field select:focus,
.kontak-form .form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 97, 61, 0.1);
}

.modul-results-bar,
.berita-results-bar {
  border-color: rgba(16, 23, 22, 0.09);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.03);
}

.public-table-wrap {
  overflow: auto;
  border: 1px solid rgba(16, 23, 22, 0.09);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.035);
}

.public-table {
  min-width: 760px;
}

.public-table th {
  background: #f3f7f4;
  color: var(--text-dark);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-table th,
.public-table td {
  border-color: rgba(16, 23, 22, 0.08);
  padding: 15px 18px;
}

.public-table td {
  color: #3f4c47;
}

.profile-layout {
  align-items: start;
  gap: clamp(28px, 5vw, 54px);
}

.public-detail-section {
  background: #ffffff;
}

.public-detail-card,
.prose-card,
.content-panel {
  padding: clamp(24px, 4vw, 38px);
}

.public-detail-image,
.article-image {
  margin-bottom: 24px;
  border-radius: var(--radius);
}

.rich-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content > :last-child {
  margin-bottom: 0;
}

.rich-content h2,
.rich-content h3 {
  color: var(--text-dark);
}

.profile-facts {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.profile-facts h2 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.profile-facts dl {
  display: grid;
  gap: 0;
}

.profile-facts dl > div {
  padding: 14px 0;
  border-top: 1px solid rgba(16, 23, 22, 0.08);
}

.profile-facts dt {
  color: var(--text-muted);
}

.profile-facts dd,
.profile-facts a {
  color: var(--text-dark);
}

.profile-facts a:hover {
  color: var(--primary);
}

.empty-state {
  border: 1px solid rgba(16, 23, 22, 0.09);
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(28px, 5vw, 46px);
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.035);
}

.empty-state h2,
.empty-state h3 {
  color: var(--text-dark);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 23, 22, 0.12);
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 14px;
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 750;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer {
  background: #101716;
}

.footer-grid {
  gap: clamp(26px, 5vw, 58px);
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer .brand small {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2,
.site-footer .brand strong {
  color: #ffffff;
}

.back-to-top {
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
}

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

@media (max-width: 980px) {
  .nav-links {
    border: 1px solid rgba(16, 23, 22, 0.09);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(16, 23, 22, 0.12);
  }

  .profile-facts {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 560px);
  }
}

@media (max-width: 680px) {
  .container,
  .navbar {
    width: min(calc(100% - 32px), var(--container));
  }

  .navbar {
    min-height: 64px;
  }

  .brand strong {
    max-width: 17ch;
    font-size: 0.84rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .hero,
  .page-hero {
    padding-block: 38px 48px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.25rem);
    line-height: 1.03;
  }

  .button-group,
  .button-group .btn,
  .button-group .public-cta {
    width: 100%;
  }

  .button-group .btn,
  .button-group .public-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: none;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -10px 12px 12px;
  }

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

  .public-detail-card,
  .prose-card,
  .content-panel,
  .profile-facts {
    padding: 20px;
  }

  .pagination {
    justify-content: stretch;
  }

  .pagination a,
  .pagination span {
    flex: 1 1 100%;
  }
}

/* Perapihan sambutan kepala madrasah dan CTA teks publik. */
.sambutan-profil-wrap {
  padding-block: clamp(68px, 8vw, 96px);
  background: var(--surface-soft);
}

.sambutan-profil .facility-section-header {
  align-items: flex-start;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.sambutan-profil .facility-section-header h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.sambutan-profil .facility-section-header p:last-child {
  max-width: 52ch;
  color: var(--text-muted);
}

.sambutan-profil-stage {
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 24px) clamp(26px, 4vw, 46px);
}

.sambutan-profil-frame {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #eaf5ee 0%, #ffffff 100%);
  box-shadow:
    0 18px 44px rgba(16, 23, 22, 0.09),
    inset 0 0 0 1px rgba(23, 97, 61, 0.1);
}

.sambutan-profil-frame::after {
  background: rgba(23, 97, 61, 0.08);
}

.sambutan-profil-caption {
  padding: 15px 16px;
  border: 1px solid rgba(16, 23, 22, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.035);
}

.sambutan-profil-caption strong {
  color: var(--text-dark);
  font-weight: 820;
}

.sambutan-profil-caption span {
  color: var(--primary);
}

.sambutan-profil-letter {
  border-color: rgba(16, 23, 22, 0.09);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 23, 22, 0.065);
}

.sambutan-profil-letter::before {
  top: 26px;
  bottom: 26px;
  width: 3px;
  background: var(--primary);
}

.sambutan-profil-letter-mark {
  top: 12px;
  color: rgba(23, 97, 61, 0.11);
}

.sambutan-profil-letter-body p {
  color: var(--text-muted);
}

.sambutan-profil-letter-body p:first-child {
  color: #2f3b37;
}

.sambutan-profil-footer {
  margin-top: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none;
}

.text-link span[aria-hidden="true"] {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary-strong);
}

.text-link:hover span[aria-hidden="true"],
.text-link:focus-visible span[aria-hidden="true"] {
  transform: translateX(4px);
}

.section-action .text-link,
.gallery-preview-action .text-link,
.sambutan-profil-footer .text-link {
  font-size: 0.94rem;
}

.announcement-panel .text-link {
  color: #ffffff;
}

.announcement-panel .text-link:hover,
.announcement-panel .text-link:focus-visible {
  color: #ffffff;
}

@media (max-width: 900px) {
  .sambutan-profil-stage {
    gap: 18px;
  }

  .sambutan-profil-frame {
    max-width: 300px;
  }
}

@media (max-width: 680px) {
  .sambutan-profil-wrap {
    padding-block: 54px;
  }

  .sambutan-profil .facility-section-header h2 {
    max-width: 100%;
  }

  .sambutan-profil-letter {
    padding: 22px 20px;
  }

  .sambutan-profil-letter-scroll {
    max-height: min(19rem, 56vh);
  }
}

/* Panel pengumuman beranda */
.home-updates-section {
  padding-block: clamp(56px, 8vw, 88px);
}

.home-updates {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 380px);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.home-updates .announcement-panel {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #14532d 0%, #17613d 58%, #166534 100%);
  padding: clamp(22px, 3vw, 28px);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(20, 83, 45, 0.22);
}

.home-updates .announcement-panel::before {
  display: none;
}

.announcement-panel-head {
  margin-bottom: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.announcement-panel-kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-updates .announcement-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.announcement-panel-list {
  display: flex;
  flex-direction: column;
}

.announcement-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.announcement-item:hover,
.announcement-item:focus-visible {
  opacity: 0.94;
  outline: none;
}

.announcement-item:last-child {
  border-bottom: 0;
}

.home-updates .announcement-panel .announcement-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-updates .announcement-panel .announcement-badge--penting {
  border-color: rgba(253, 224, 71, 0.45);
  background: rgba(253, 224, 71, 0.16);
  color: #fef9c3;
}

.home-updates .announcement-panel .announcement-badge--mendesak {
  border-color: rgba(252, 165, 165, 0.5);
  background: rgba(248, 113, 113, 0.18);
  color: #fee2e2;
}

.home-updates .announcement-panel .announcement-item-title {
  display: block;
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.45;
}

.home-updates .announcement-panel .announcement-item:hover .announcement-item-title,
.home-updates .announcement-panel .announcement-item:focus-visible .announcement-item-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-item time {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 600;
}

.announcement-panel-empty {
  margin: 0;
  padding: 18px 0 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  line-height: 1.55;
}

.announcement-panel-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 780;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.announcement-panel-more svg {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.announcement-panel-more:hover,
.announcement-panel-more:focus-visible {
  color: #ffffff;
  opacity: 0.92;
  outline: none;
}

.announcement-panel-more:hover svg,
.announcement-panel-more:focus-visible svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .home-updates {
    grid-template-columns: 1fr;
  }

  .home-updates .announcement-panel {
    position: static;
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .home-updates .announcement-panel {
    max-width: none;
  }
}

/* Home — Modul Pembelajaran Terbaru */
.home-modules-section {
  --hm-primary: #166534;
  --hm-primary-hover: #14532d;
  --hm-soft: #dcfce7;
  --hm-text: #0f172a;
  --hm-muted: #64748b;
  --hm-border: #e2e8f0;
  --hm-surface: #f8fafc;
  --hm-card-min: 300px;

  background: var(--hm-surface);
  padding-block: clamp(72px, 10vw, 104px);
}

.home-modules-header {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 44px);
}

.home-modules-kicker {
  margin: 0 0 12px;
  color: var(--hm-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-modules-header h2 {
  margin: 0 0 14px;
  color: var(--hm-text);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.home-modules-lead {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-module-card {
  display: flex;
  flex-direction: column;
  min-height: var(--hm-card-min);
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    transform 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.home-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 101, 52, 0.32);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.home-module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 108px);
  min-height: 24px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: var(--hm-soft);
  color: var(--hm-primary);
}

.home-module-badge-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.home-module-badge-icon .module-format-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--hm-primary);
}

.home-module-badge-icon .module-format-icon svg,
.home-module-badge-icon .module-format-icon .google-drive-logo {
  width: 14px;
  height: 14px;
}

.home-module-badge-label {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-module-date {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-module-meta-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.home-module-mapel {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--hm-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.home-module-mapel span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.home-module-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 780;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.home-module-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--hm-text);
  text-decoration: none;
  transition: color 250ms ease;
}

.home-module-card:hover .home-module-title a,
.home-module-title a:focus-visible {
  color: var(--hm-primary);
  outline: none;
}

.home-module-desc {
  flex: 1 1 auto;
  margin: 0 0 12px;
  color: var(--hm-muted);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-module-desc--placeholder {
  color: #94a3b8;
  font-style: normal;
}

.home-module-pengampu {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-module-pengampu-label {
  flex-shrink: 0;
  color: #94a3b8;
  font-weight: 700;
}

.home-module-pengampu-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  color: var(--hm-text);
  font-weight: 650;
}

.home-module-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hm-border);
  color: var(--hm-primary);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
  transition: color 250ms ease;
}

.home-module-cta-arrow {
  display: inline-block;
  transition: transform 250ms ease;
}

.home-module-cta:hover,
.home-module-cta:focus-visible {
  color: var(--hm-primary-hover);
  outline: none;
}

.home-module-cta:hover .home-module-cta-arrow,
.home-module-cta:focus-visible .home-module-cta-arrow {
  transform: translateX(4px);
}

.home-modules-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 48px) 24px;
  border: 1px dashed var(--hm-border);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.home-modules-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--hm-soft);
  color: var(--hm-primary);
}

.home-modules-empty-icon svg {
  width: 28px;
  height: 28px;
}

.home-modules-empty h3 {
  margin: 0 0 8px;
  color: var(--hm-text);
  font-size: 1.1rem;
  font-weight: 780;
}

.home-modules-empty p {
  margin: 0 0 20px;
  color: var(--hm-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-modules-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--hm-primary);
  border-radius: 10px;
  background: #ffffff;
  color: var(--hm-primary);
  font-size: 0.88rem;
  font-weight: 780;
  text-decoration: none;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease;
}

.home-modules-empty-btn:hover,
.home-modules-empty-btn:focus-visible {
  border-color: var(--hm-primary-hover);
  background: var(--hm-soft);
  color: var(--hm-primary-hover);
  outline: none;
}

@media (max-width: 960px) {
  .home-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-modules-grid {
    grid-template-columns: 1fr;
  }

  .home-modules-empty-btn {
    width: 100%;
    justify-content: center;
  }

  .home-module-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-module-badge {
    max-width: 100%;
  }

  .home-module-date {
    align-self: flex-start;
  }
}

/* Navbar — dropdown panjang (mata pelajaran) */
.nav-dropdown--scroll > div {
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.nav-dropdown summary.active {
  color: var(--primary);
}

/* Home: katalog mata pelajaran. Seluruh aturan dibatasi pada section ini. */
.home-mapel-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 88% 10%, rgba(23, 97, 61, 0.085), transparent 34%),
    linear-gradient(180deg, #f8fbf9 0%, #f2f8f4 100%);
}

.home-mapel-section .section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.home-mapel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  align-items: stretch;
}

.home-mapel-card {
  display: flex;
  min-width: 0;
  height: 100%;
  min-height: 304px;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 28px);
  border: 1px solid #e7efe9;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 97, 61, 0.045);
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.home-mapel-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid #e2ece6;
  border-radius: 14px;
  background: #f5f9f6;
  color: #52645b;
  font-size: 1.42rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    color 250ms ease,
    transform 250ms ease;
}

.home-mapel-card h3 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.home-mapel-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: #65736c;
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-mapel-card-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.home-mapel-stat {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-radius: 10px;
  background: #f1f7f3;
  padding: 6px 10px;
  color: #385647;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-mapel-stat i {
  color: var(--primary);
  font-size: 1rem;
}

.home-mapel-stat strong {
  color: var(--primary-strong);
  font-weight: 850;
}

.home-mapel-stat--empty {
  background: #f5f7f6;
  color: #748078;
  font-weight: 650;
}

.home-mapel-stat--empty i {
  color: #87938c;
}

.home-mapel-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d6e7dc;
  border-radius: 12px;
  background: #edf7f1;
  padding: 9px 14px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    color 250ms ease,
    transform 250ms ease;
}

.home-mapel-cta-arrow {
  display: inline-block;
  font-size: 1.05rem;
  transform: translateX(0);
  transition: transform 250ms ease;
}

.home-mapel-card:hover {
  transform: translateY(-6px);
  border-color: #cadfd1;
  box-shadow: 0 22px 48px rgba(23, 97, 61, 0.12);
}

.home-mapel-card:hover .home-mapel-icon {
  transform: translateY(-2px);
  border-color: #c9dfd1;
  background: #eaf6ef;
  color: var(--primary);
}

.home-mapel-card:hover .home-mapel-cta,
.home-mapel-cta:hover,
.home-mapel-cta:focus-visible {
  transform: translateX(4px);
  border-color: #a9cfb8;
  background: #ffffff;
  color: var(--primary-strong);
}

.home-mapel-card:hover .home-mapel-cta-arrow,
.home-mapel-cta:hover .home-mapel-cta-arrow,
.home-mapel-cta:focus-visible .home-mapel-cta-arrow {
  transform: translateX(5px);
}

.home-mapel-cta:active {
  transform: translateY(1px) scale(0.985);
}

.home-mapel-empty {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .home-mapel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-mapel-section .section-heading {
    margin-bottom: 24px;
  }

  .home-mapel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-mapel-card {
    min-height: 0;
    padding: 24px;
  }

  .home-mapel-icon {
    margin-bottom: 16px;
  }

}

/* Home: alur belajar. Seluruh aturan dibatasi pada section ini. */
#alur-belajar.learning-flow-section {
  --flow-border: #e5eee9;
  --flow-soft: #f4faf7;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 7vw, 88px);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 52%, var(--flow-soft) 100%);
}

#alur-belajar .learning-flow-heading {
  max-width: 820px;
  margin-bottom: 0;
}

#alur-belajar .learning-flow-heading .eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#alur-belajar .learning-flow-heading h2 {
  max-width: 20ch;
  margin: 0 0 16px;
  font-size: clamp(2.75rem, 4.4vw, 3.25rem);
  line-height: 1.04;
}

#alur-belajar .learning-flow-heading > p:last-child {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}

#alur-belajar .academic-timeline-wrap {
  position: relative;
  margin: clamp(28px, 3.5vw, 38px) 0 0;
}

#alur-belajar .academic-timeline-wrap::before {
  top: 35px;
  right: 11.5%;
  left: 11.5%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #17613d 0%, #4f9b72 54%, #b7d9c5 100%);
  box-shadow: 0 3px 12px rgba(23, 97, 61, 0.12);
}

#alur-belajar .academic-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2.1vw, 26px);
  margin: 0;
  padding: 0;
}

#alur-belajar .timeline-step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

#alur-belajar .step-marker {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  margin: 0 0 20px;
  border: 3px solid #d8e8df;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 12%, #f3faf6 100%);
  box-shadow:
    0 12px 28px rgba(23, 97, 61, 0.11),
    0 2px 8px rgba(16, 23, 22, 0.06);
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

#alur-belajar .step-icon-wrap {
  color: #17613d;
  transition: color 250ms ease, transform 250ms ease;
}

#alur-belajar .step-icon-wrap i {
  font-size: 2rem;
  line-height: 1;
}

#alur-belajar .step-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 180px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(20px, 2.1vw, 24px);
  border: 1px solid var(--flow-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 97, 61, 0.055);
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

#alur-belajar .step-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#alur-belajar .step-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #17613d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

#alur-belajar .step-card h3 {
  margin: 0 0 9px;
  color: var(--text-dark);
  font-size: clamp(1.16rem, 1.7vw, 1.3rem);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

#alur-belajar .step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

#alur-belajar .timeline-step:hover .step-card {
  transform: translateY(-6px);
  border-color: #c8dfd1;
  box-shadow: 0 22px 48px rgba(23, 97, 61, 0.13);
}

#alur-belajar .timeline-step:hover .step-marker {
  transform: translateY(-3px) scale(1.045);
  border-color: #17613d;
  background: #edf8f1;
  box-shadow: 0 17px 34px rgba(23, 97, 61, 0.2);
}

#alur-belajar .timeline-step:hover .step-icon-wrap {
  transform: scale(1.08);
  color: #17613d;
}

@media (max-width: 900px) {
  #alur-belajar.learning-flow-section {
    padding-block: clamp(54px, 9vw, 72px);
  }

  #alur-belajar .learning-flow-heading h2 {
    max-width: 19ch;
    font-size: clamp(2rem, 6vw, 2.25rem);
    line-height: 1.08;
  }

  #alur-belajar .academic-timeline-wrap {
    margin-top: 24px;
  }

  #alur-belajar .academic-timeline-wrap::before {
    display: none;
  }

  #alur-belajar .academic-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #alur-belajar .timeline-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  #alur-belajar .timeline-step:not(:last-child)::before {
    position: absolute;
    top: 36px;
    left: 34px;
    z-index: 0;
    width: 5px;
    height: calc(100% + 20px);
    border-radius: 999px;
    background: linear-gradient(180deg, #17613d 0%, #78b18f 68%, #c5dfcf 100%);
    content: "";
  }

  #alur-belajar .step-marker {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    margin: 0;
  }

  #alur-belajar .step-icon-wrap i {
    font-size: 1.75rem;
  }

  #alur-belajar .step-card {
    min-height: 0;
    border-radius: 20px;
    padding: 20px;
  }

  #alur-belajar .step-card-meta {
    margin-bottom: 14px;
  }
}

@media (max-width: 600px) {
  #alur-belajar .learning-flow-heading > p:last-child {
    font-size: 1rem;
  }

  #alur-belajar .academic-timeline {
    gap: 18px;
  }

  #alur-belajar .timeline-step {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
  }

  #alur-belajar .timeline-step:not(:last-child)::before {
    top: 31px;
    left: 29px;
    height: calc(100% + 18px);
    width: 4px;
  }

  #alur-belajar .step-marker {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-width: 3px;
  }

  #alur-belajar .step-icon-wrap i {
    font-size: 1.55rem;
  }

  #alur-belajar .step-card {
    padding: 18px;
  }

  #alur-belajar .step-card p {
    font-size: 0.96rem;
  }

}

/* Katalog modul: final scoped overrides. */
.modul-page-hero {
  padding-top: clamp(44px, 6vw, 64px);
  padding-bottom: clamp(20px, 3vw, 28px);
}

/* Public navigation: institutional two-tier header inspired by the supplied reference. */
.site-header {
  overflow: visible;
  border-bottom: 1px solid #e4ebe7;
  background: #ffffff;
  backdrop-filter: none;
}

.site-utility {
  background: #145c3a;
  color: #ffffff;
}

.site-utility-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-utility-contact {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.site-utility-contact span,
.site-utility-inner > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-utility-contact i,
.site-utility-inner > a i {
  font-size: 0.9rem;
}

.site-utility-inner > a {
  flex: 0 0 auto;
  transition: opacity 200ms ease;
}

.site-utility-inner > a:hover {
  opacity: 0.78;
}

.site-header .navbar {
  min-height: 84px;
}

.site-header .brand {
  flex: 0 1 auto;
  gap: 12px;
}

.site-header .brand-logo,
.site-header .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.site-header .brand strong {
  max-width: 22ch;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-header .brand small {
  font-size: 0.65rem;
}

.site-header .nav-links {
  gap: clamp(4px, 0.7vw, 10px);
}

.site-header .nav-links > a:not(.btn):not(.nav-search),
.site-header .nav-dropdown summary {
  position: relative;
  min-height: 84px;
  border-bottom: 2px solid transparent;
  padding-inline: clamp(5px, 0.55vw, 9px);
  color: #26352e;
  font-size: clamp(0.76rem, 0.78vw, 0.86rem);
  font-weight: 700;
}

.site-header .nav-links > a:not(.btn):not(.nav-search)::after {
  display: none;
}

.site-header .nav-dropdown summary::before {
  display: none;
}

.site-header .nav-links > a:not(.btn):not(.nav-search):hover,
.site-header .nav-links > a:not(.btn):not(.nav-search).active,
.site-header .nav-dropdown summary:hover,
.site-header .nav-dropdown summary.active,
.site-header .nav-dropdown[open] summary {
  border-bottom-color: transparent;
  color: #145c3a;
}

@media (min-width: 981px) {
  .site-header .nav-links > a:not(.btn)::after,
  .site-header .nav-dropdown > summary::before {
    display: none;
  }

  .site-header .nav-label {
    position: relative;
    display: inline-block;
  }

  .site-header .nav-label::after {
    position: absolute;
    top: calc(100% + 19px);
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: #3f9b66;
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-header .nav-links > a.active .nav-label::after,
  .site-header .nav-dropdown > summary.active .nav-label::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

.site-header .nav-dropdown > div {
  top: calc(100% + 1px);
  border-radius: 12px;
}

.site-header .nav-dropdown-icon {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: -4px 0 0 7px;
  border: 0;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
  transition: margin-top 200ms ease, transform 200ms ease;
}

.site-header .nav-dropdown-icon::before,
.site-header .nav-dropdown-icon::after {
  display: none;
}

.site-header .nav-dropdown[open] .nav-dropdown-icon {
  margin-top: 3px;
  transform: rotate(225deg);
}

.site-header .nav-links > .btn {
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .site-utility-contact span:first-child {
    display: none;
  }

  .site-header .brand strong {
    max-width: 17ch;
  }
}

@media (max-width: 980px) {
  .site-header .navbar {
    min-height: 72px;
  }

  .site-header .nav-links {
    top: 110px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    max-height: calc(100dvh - 110px);
    gap: 0;
    overflow-y: auto;
    border: 0;
    border-top: 1px solid #e3ebe6;
    border-radius: 0;
    background: #ffffff;
    padding: 10px clamp(18px, 5vw, 34px) 22px;
    box-shadow: 0 16px 36px rgba(16, 23, 22, 0.09);
    overscroll-behavior: contain;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search),
  .site-header .nav-dropdown summary {
    width: 100%;
    min-height: 46px;
    border-bottom: 0;
    border-radius: 0;
    padding-inline: 4px;
    font-size: 0.88rem;
  }

  .site-header .nav-dropdown[open] {
    border-bottom-color: transparent;
  }

  .site-header .nav-dropdown[open] > div {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    border: 0;
    border-left: 2px solid #c8dfd1;
    border-radius: 0;
    background: transparent;
    padding: 2px 0 4px 12px;
    box-shadow: none;
  }

  .site-header .nav-dropdown > div a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-radius: 7px;
    padding: 9px 10px;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search)::after,
  .site-header .nav-dropdown summary::before {
    display: none;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search):hover,
  .site-header .nav-links > a:not(.btn):not(.nav-search).active,
  .site-header .nav-dropdown summary:hover,
  .site-header .nav-dropdown summary.active,
  .site-header .nav-dropdown[open] summary {
    background: transparent;
    color: #17613d;
  }

  .site-header .nav-links > .btn {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

}

@media (max-width: 680px) {
  .site-utility {
    display: none;
  }

  .site-header .navbar {
    min-height: 68px;
  }

  .site-header .nav-links {
    top: 68px;
    right: 0;
    bottom: auto;
    left: 0;
    max-height: calc(100dvh - 68px);
    padding: 10px 16px 20px;
  }

  .site-header .brand-logo,
  .site-header .brand-mark {
    width: 40px;
    height: 40px;
  }
}

.modul-page-hero .eyebrow { margin-bottom: 8px; }
.modul-page-hero h1 { margin-bottom: 10px; }
.modul-page-hero .modul-format-filters { margin-top: 16px; padding-top: 16px; }

.section.modul-page {
  padding-top: 24px;
  padding-bottom: clamp(64px, 8vw, 88px);
}

.modul-page .modul-filter-panel {
  margin-bottom: 24px;
  padding: 22px 24px 24px;
  border-color: #e5ece8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 97, 61, 0.035);
}

.modul-page .modul-filter-panel-header { margin-bottom: 18px; padding-bottom: 14px; }
.modul-page .modul-filter-form { gap: 16px; }

.modul-page .modul-filter-field input,
.modul-page .modul-filter-field select,
.modul-page .modul-filter-actions .btn {
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
}

.modul-search-control { position: relative; }

.modul-search-control > .ui-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #718078;
  pointer-events: none;
  transform: translateY(-50%);
}

.modul-page .modul-search-control input { padding-left: 44px; }

.modul-page .modul-results-bar {
  margin-bottom: 18px;
  padding: 12px 0 14px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.modul-page .modul-catalog-grid { grid-auto-rows: 1fr; gap: 20px; }

.modul-page .modul-catalog-grid .module-card {
  height: 100%;
  min-height: 340px;
  justify-content: flex-start;
  padding: 24px;
  border: 1px solid #e5ece8;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(16, 23, 22, 0.035);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.modul-page .modul-catalog-grid .module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 97, 61, 0.48);
  box-shadow: 0 16px 34px rgba(23, 97, 61, 0.09);
}

.modul-page .module-card-top { margin-bottom: 18px; }
.modul-page .module-card-copy { min-height: 104px; }

.modul-page .module-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.modul-page .module-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.6;
}

.modul-page .module-meta { width: 100%; margin: 20px 0; }
.modul-page .module-meta div { min-height: 34px; align-items: baseline; padding-top: 9px; }

.modul-page .module-meta dd {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.modul-page .module-card-cta {
  width: fit-content;
  margin-top: auto;
  transition: color 250ms ease, transform 250ms ease;
}

.modul-page .module-card:hover .module-card-cta { transform: translateX(4px); }

@media (max-width: 680px) {
  .modul-page .modul-filter-panel { padding: 20px 16px; }
  .modul-page .modul-catalog-grid .module-card { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .modul-page .modul-catalog-grid .module-card,
  .modul-page .module-card-cta { transition-duration: 0.01ms; }
}

/* Katalog modul: less-is-more refinement. */
.modul-page-hero {
  padding-bottom: 40px;
}

.modul-page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.055em;
}

.modul-page-hero .modul-page-lead {
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.modul-page-hero .modul-format-filters {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.modul-page-hero .filter-btn {
  min-height: 40px;
  border-color: transparent;
  background: #f3f6f4;
}

.modul-page-hero .filter-btn:hover,
.modul-page-hero .filter-btn.active {
  border-color: transparent;
  background: var(--primary);
}

.section.modul-page {
  padding-top: 36px;
}

.modul-page .modul-filter-panel {
  margin-bottom: 44px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 14px 38px rgba(16, 23, 22, 0.07),
    0 0 0 1px rgba(16, 23, 22, 0.035);
}

.modul-page .modul-filter-form {
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.8fr)) auto;
  gap: 6px;
}

.modul-page .modul-filter-field input,
.modul-page .modul-filter-field select {
  height: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background-color: #f6f8f7;
  font-size: 0.88rem;
  box-shadow: none;
}

.modul-page .modul-filter-field select {
  padding-inline: 14px 34px;
}

.modul-page .modul-filter-field input:hover,
.modul-page .modul-filter-field select:hover {
  background-color: #f1f5f2;
}

.modul-page .modul-filter-field input:focus,
.modul-page .modul-filter-field select:focus {
  border: 0;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(23, 97, 61, 0.22);
}

.modul-page .modul-filter-actions {
  gap: 4px;
}

.modul-page .modul-filter-actions .btn {
  height: 50px;
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 12px;
  white-space: nowrap;
}

.modul-page .modul-filter-actions .btn-ghost {
  color: #617068;
}

.modul-page .modul-results-bar {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
}

.modul-page .modul-results-bar span {
  font-size: 0.92rem;
  font-weight: 720;
}

.modul-page .modul-catalog-grid {
  gap: 24px;
}

.modul-page .modul-catalog-grid .module-card {
  min-height: 380px;
  padding: 30px;
  border-color: transparent;
  border-radius: 18px;
  box-shadow:
    0 12px 32px rgba(16, 23, 22, 0.06),
    0 0 0 1px rgba(16, 23, 22, 0.025);
}

.modul-page .modul-catalog-grid .module-card:hover {
  border-color: rgba(23, 97, 61, 0.42);
  box-shadow: 0 20px 44px rgba(23, 97, 61, 0.1);
}

.modul-page .module-card-top {
  margin-bottom: 26px;
}

.modul-page .module-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 1.7vw, 1.42rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.modul-page .module-card-description {
  font-size: 0.92rem;
  line-height: 1.7;
}

.modul-page .module-meta {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.modul-page .module-meta div,
.modul-page .module-meta div:first-child {
  min-height: 0;
  align-items: start;
  border: 0;
  padding: 0;
}

.modul-page .module-meta dt {
  color: #78857e;
  font-size: 0.72rem;
}

.modul-page .module-meta dd {
  color: #28342f;
  font-size: 0.78rem;
}

.modul-page .module-card-cta {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #edf5f0;
  color: var(--primary);
  font-size: 0.86rem;
}

.modul-page .module-card-cta:hover,
.modul-page .module-card-cta:focus-visible {
  background: #e4f0e8;
  color: var(--primary-strong);
}

@media (max-width: 1024px) {
  .modul-page .modul-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .modul-page .modul-filter-field--search,
  .modul-page .modul-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .modul-page-hero { padding-bottom: 30px; }
  .section.modul-page { padding-top: 28px; }

  .modul-page .modul-filter-panel {
    margin-bottom: 34px;
    padding: 8px;
  }

  .modul-page .modul-filter-form { grid-template-columns: 1fr; }
  .modul-page .modul-filter-field--search,
  .modul-page .modul-filter-actions { grid-column: auto; }

  .modul-page .modul-catalog-grid .module-card {
    min-height: 360px;
    padding: 28px;
  }
}

/* Final card-only override. */
.modul-page .modul-catalog-grid .module-card {
  height: auto;
  min-height: 320px;
  justify-content: flex-start;
  padding: 32px;
  border: 1px solid #e8ecef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 23, 22, 0.04);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.modul-page .modul-catalog-grid .module-card:hover {
  transform: translateY(-4px);
  border-color: #cfe2d6;
  box-shadow: 0 16px 36px rgba(23, 97, 61, 0.09);
}

.modul-page .modul-catalog-grid .module-card-top { margin: 0 0 24px; }
.modul-page .modul-catalog-grid .module-card-date { color: #7b8781; font-size: 0.72rem; font-weight: 600; }
.modul-page .modul-catalog-grid .module-card-copy { min-height: 0; }

.modul-page .modul-catalog-grid .module-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 1.6vw, 1.36rem);
  font-weight: 780;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.modul-page .modul-catalog-grid .module-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #68756f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modul-page .modul-catalog-grid .module-card-divider {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: #edf0ee;
}

.modul-page .modul-catalog-grid .module-card-meta { display: grid; gap: 10px; }

.modul-page .modul-catalog-grid .module-card-meta-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #34423b;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.modul-page .modul-catalog-grid .module-card-meta-item .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.modul-page .modul-catalog-grid .module-card-meta-item > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  min-width: 0;
  overflow: hidden;
}

.modul-page .modul-catalog-grid .module-card-cta,
.modul-page .modul-catalog-grid .module-card-cta:hover,
.modul-page .modul-catalog-grid .module-card-cta:focus-visible {
  min-height: 0;
  margin: 24px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.87rem;
  font-weight: 780;
  transform: none;
  transition: color 250ms ease;
}

.modul-page .modul-catalog-grid .module-card-cta:hover,
.modul-page .modul-catalog-grid .module-card-cta:focus-visible { color: var(--primary-strong); }

.modul-page .modul-catalog-grid .module-card-cta span[aria-hidden="true"] { transition: transform 250ms ease; }
.modul-page .modul-catalog-grid .module-card-cta:hover span[aria-hidden="true"],
.modul-page .modul-catalog-grid .module-card-cta:focus-visible span[aria-hidden="true"] { transform: translateX(4px); }

@media (max-width: 680px) {
  .modul-page .modul-catalog-grid .module-card { min-height: 300px; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .modul-page .modul-catalog-grid .module-card,
  .modul-page .modul-catalog-grid .module-card-cta,
  .modul-page .modul-catalog-grid .module-card-cta span[aria-hidden="true"] { transition-duration: 0.01ms; }
}

/* Katalog modul: equal-width tracks, long content cannot resize columns. */
.modul-page .modul-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.modul-page .modul-catalog-grid .module-card {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.modul-page .modul-catalog-grid .module-card-copy,
.modul-page .modul-catalog-grid .module-card-description,
.modul-page .modul-catalog-grid .module-card-meta-item,
.modul-page .modul-catalog-grid .module-card-meta-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

@media (max-width: 680px) {
  .modul-page .modul-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card katalog: identitas provider tanpa badge capsule. */
.modul-page .modul-catalog-grid .module-card-format {
  min-width: 0;
}

.modul-page .modul-catalog-grid .module-provider {
  display: inline-flex;
  min-width: 0;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: #4b5a53;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.25;
}

.modul-page .modul-catalog-grid .module-provider > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modul-page .modul-catalog-grid .module-provider-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: #617068;
}

.modul-page .modul-catalog-grid .module-provider-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.modul-page .modul-catalog-grid .module-provider-icon .google-drive-logo {
  width: 18px;
  height: auto;
}

.modul-page .module-provider[data-provider="pdf"] .module-provider-icon { color: #b94747; }
.modul-page .module-provider[data-provider="youtube"] .module-provider-icon { color: #d14646; }
.modul-page .module-provider[data-provider="google_docs"] .module-provider-icon { color: #3f76c5; }
.modul-page .module-provider[data-provider="google_sheets"] .module-provider-icon { color: #287a4b; }
.modul-page .module-provider[data-provider="google_slides"] .module-provider-icon { color: #b57a16; }
.modul-page .module-provider[data-provider="audio"] .module-provider-icon { color: #7650a6; }
.modul-page .module-provider[data-provider="gambar"] .module-provider-icon { color: #31786e; }
.modul-page .module-provider[data-provider="word"] .module-provider-icon { color: #3566a0; }
.modul-page .module-provider[data-provider="excel"] .module-provider-icon { color: #28734a; }
.modul-page .module-provider[data-provider="powerpoint"] .module-provider-icon { color: #b45c3c; }

/* Hero katalog modul saja: compact SaaS catalog rhythm. */
.modul-page-hero {
  min-height: 0;
  padding: 40px 0 12px;
  border-bottom: 0;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.modul-page-hero > .container {
  width: min(calc(100% - 64px), 1280px);
  max-width: 1280px;
}

.modul-page-hero .eyebrow {
  margin: 0 0 20px;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.modul-page-hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2.45rem, 4.6vw, 4.1rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.modul-page-hero .modul-page-lead {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 620px;
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.modul-page-hero .modul-format-filters {
  min-height: 44px;
  margin: 40px 0 0;
  padding: 0;
  border: 0;
  gap: 8px;
}

.modul-page-hero .filter-btn {
  min-height: 44px;
  gap: 8px;
  padding: 9px 13px;
  border-color: transparent;
  background: #f0f4f1;
  font-size: 0.82rem;
  transition: background-color 225ms ease, color 225ms ease, border-color 225ms ease;
}

.modul-page-hero .filter-btn--icon .module-format-icon,
.modul-page-hero .filter-btn--icon .ui-icon {
  width: 18px;
  height: 18px;
}

.modul-page-hero .filter-btn:hover {
  border-color: transparent;
  background: #e7eee9;
  color: var(--primary-strong);
  transform: none;
}

.modul-page-hero .filter-btn.active,
.modul-page-hero .filter-btn.active:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 680px) {
  .modul-page-hero {
    padding: 32px 0 12px;
  }

  .modul-page-hero > .container {
    width: min(calc(100% - 32px), 1280px);
  }

  .modul-page-hero .eyebrow {
    margin-bottom: 16px;
  }

  .modul-page-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .modul-page-hero .modul-format-filters {
    margin-top: 32px;
  }
}

/* Login: minimalist, professional, trust-first. */
.login-page {
  min-height: 100dvh;
  overflow-y: auto;
  background: #f5f7f6;
  background-image: none;
}

.login-page::before,
.login-page::after {
  display: none;
}

.login-standalone {
  min-height: 100dvh;
  padding: 32px 20px;
}

.login-standalone .login-card {
  width: min(100%, 430px);
  overflow: visible;
  border: 1px solid #e4e9e6;
  border-radius: 20px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 18px 50px rgba(16, 23, 22, 0.07);
  transition: none;
}

.login-standalone .login-card::before {
  display: none;
}

.login-form-panel {
  padding: 40px;
}

.login-brand {
  gap: 11px;
  margin-bottom: 40px;
}

.login-brand .brand-logo,
.login-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.login-brand strong {
  color: #18211d;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.login-brand small {
  margin-top: 2px;
  color: #748078;
  font-size: 0.72rem;
  font-weight: 550;
}

.login-heading {
  margin-bottom: 32px;
}

.login-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.login-heading h1 {
  margin: 0 0 10px;
  color: #18211d;
  font-size: clamp(1.7rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.login-heading p:not(.login-kicker) {
  max-width: 34ch;
  margin: 0;
  color: #66736c;
  font-size: 0.9rem;
  line-height: 1.65;
}

.login-standalone .messages,
.login-standalone .alert {
  margin-bottom: 16px;
}

.login-standalone .alert {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-standalone .form-group {
  margin-bottom: 20px;
}

.login-standalone .form-group label {
  margin-bottom: 8px;
  color: #34423b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.login-standalone .form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 14px;
  color: #18211d;
  font-size: 0.9rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.login-standalone .form-control::placeholder {
  color: #929d97;
}

.login-standalone .form-control:hover {
  border-color: #c9d3cd;
}

.login-standalone .form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 97, 61, 0.11);
}

.login-standalone .btn-primary {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  background: var(--primary);
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: none;
  transition: background-color 200ms ease, transform 200ms ease;
}

.login-standalone .btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: none;
}

.login-standalone .btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.login-footer-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf0ee;
}

.login-back-link {
  color: #69766f;
  font-size: 0.82rem;
  font-weight: 650;
  transition: color 200ms ease;
}

.login-back-link:hover {
  color: var(--primary);
  transform: none;
}

@media (max-width: 520px) {
  .login-standalone {
    align-items: flex-start;
    padding: 16px;
  }

  .login-standalone .login-card {
    border-radius: 16px;
  }

  .login-form-panel {
    padding: 32px 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .login-standalone .form-control,
  .login-standalone .btn-primary,
  .login-back-link {
    transition-duration: 0.01ms;
  }
}

/* Login spacing correction: override legacy form margins. */
.login-form-panel {
  padding: 36px 40px;
}

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

.login-heading {
  margin-bottom: 24px;
}

.login-standalone form {
  width: 100%;
  margin: 0;
}

.login-standalone .form-group {
  margin-bottom: 16px;
}

.login-standalone .form-group:last-of-type {
  margin-bottom: 20px;
}

.login-standalone .btn-primary {
  margin-top: 0;
}

.login-footer-row {
  margin-top: 20px;
  padding-top: 16px;
}

.login-standalone .form-control:-webkit-autofill,
.login-standalone .form-control:-webkit-autofill:hover,
.login-standalone .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #18211d;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-out;
}

@media (max-width: 520px) {
  .login-form-panel {
    padding: 28px 24px;
  }

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

/* Halaman guru: modal detail yang selaras dengan pola Home. */
.teacher-card--interactive {
  cursor: pointer;
}

.teacher-card--interactive:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 24%, transparent);
  outline-offset: 4px;
}

.teacher-detail-link {
  margin-top: 4px;
  pointer-events: none;
}

.teacher-modal-subjects .teacher-subject-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  background: #f3f8f5;
  padding: 6px 10px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.25;
}

/* Galeri: judul pada hover dan caption lengkap di modal. */
.gallery-button::before {
  background: linear-gradient(180deg, transparent 35%, rgba(8, 18, 13, 0.78) 100%);
}

.gallery-button::after {
  content: attr(data-gallery-title);
  top: auto;
  right: 20px;
  bottom: 18px;
  left: 20px;
  width: auto;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
  transform: translateY(8px);
}

.gallery-button:hover::after,
.gallery-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-button:focus-visible::before {
  opacity: 1;
}

.gallery-modal {
  width: min(92vw, 1100px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 18px;
}

.gallery-modal-figure {
  margin: 0;
}

.gallery-modal-figure > img {
  display: block;
  max-height: 70dvh;
}

.gallery-modal-caption {
  padding: 18px 4px 4px;
}

.gallery-modal-caption h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
}

.gallery-modal-caption p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Galeri modal refinement: image-first, no title inside modal. */
.gallery-button::before {
  background: linear-gradient(180deg, transparent 42%, rgba(8, 16, 12, 0.84) 100%);
}

.gallery-button::after {
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: #f8fbf9;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.gallery-modal {
  position: relative;
  width: min(94vw, 1200px);
  max-height: 94dvh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #0c1410;
  padding: 8px;
  box-shadow: 0 30px 90px rgba(3, 10, 6, 0.42);
}

.gallery-modal::backdrop {
  background: rgba(5, 12, 8, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-modal > button[data-gallery-close] {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 16, 0.76);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.gallery-modal > button[data-gallery-close]:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.94);
  color: #15221b;
  transform: none;
}

.gallery-modal-figure {
  display: grid;
  max-height: calc(94dvh - 16px);
  overflow-y: auto;
  margin: 0;
}

.gallery-modal-figure > img {
  display: block;
  width: 100%;
  max-height: 78dvh;
  border-radius: 14px;
  background: #080d0a;
  object-fit: contain;
}

.gallery-modal-caption {
  padding: 16px 18px 14px;
}

.gallery-modal-caption[hidden] {
  display: none;
}

.gallery-modal-caption p {
  max-width: 76ch;
  margin: 0;
  color: #d4ddd8;
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .gallery-button::after {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .gallery-modal {
    width: calc(100% - 20px);
    border-radius: 16px;
    padding: 6px;
  }

  .gallery-modal > button[data-gallery-close] {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .gallery-modal-figure > img {
    border-radius: 11px;
  }

  .gallery-modal-caption {
    padding: 14px 12px 12px;
  }
}

/* Galeri modal: white surface with centered description. */
.gallery-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border-color: #e5ebe7;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(3, 10, 6, 0.28);
}

body:has(.gallery-modal[open]) {
  overflow: hidden;
}

.gallery-modal > button[data-gallery-close] {
  border-color: rgba(16, 23, 22, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #18211d;
}

.gallery-modal > button[data-gallery-close]:hover {
  border-color: #cbd8d0;
  background: #edf5f0;
  color: var(--primary);
}

.gallery-modal-figure > img {
  background: #f3f6f4;
}

.gallery-modal-caption {
  display: flex;
  justify-content: center;
  padding: 18px 20px 16px;
  text-align: center;
}

.gallery-modal-caption[hidden] {
  display: none;
}

.gallery-modal-caption p {
  max-width: 68ch;
  color: #56635c;
}

/* Public mobile hardening: shared safeguards for every public route. */
main,
main > section,
main > article,
main .container,
main .container > *,
.kontak-aside,
.kontak-form-panel,
.modul-detail-main,
.modul-detail-sidebar,
.modul-bahan-card,
.rich-content {
  min-width: 0;
}

main img,
main video,
main audio,
main iframe,
main table {
  max-width: 100%;
}

.rich-content,
.rich-content p,
.rich-content a,
.kontak-channel,
.kontak-channel a,
.modul-detail-copy,
.module-card {
  overflow-wrap: anywhere;
}

.teacher-modal {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body:has(.teacher-modal[open]) {
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header .nav-toggle span:not(.sr-only) {
    width: 22px;
    background: #173f2c;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header .nav-toggle[aria-expanded="true"] span:not(.sr-only) {
    background: #145c3a;
  }

}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    min-width: 0;
  }

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

  .section,
  .section.section-compact {
    padding-block: clamp(40px, 12vw, 58px);
  }

  .page-hero,
  .hero {
    padding-block: 38px 48px;
  }

  .site-header .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .site-header .brand > span:last-child {
    min-width: 0;
  }

  .site-header .brand strong {
    display: block;
    overflow: hidden;
    max-width: min(62vw, 230px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-content: center;
  }

  .modul-page-hero .modul-format-filters {
    max-width: calc(100vw - 16px);
    margin-right: -16px;
    padding-right: 16px;
    scroll-padding-inline: 16px;
    overscroll-behavior-inline: contain;
  }

  .modul-page-hero .modul-format-filters > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .modul-filter-panel,
  .modul-detail-main,
  .modul-sidebar-card,
  .kontak-form-panel,
  .public-detail-card,
  .prose-card,
  .content-panel {
    width: 100%;
    padding: 18px 16px;
  }

  .modul-detail-grid,
  .kontak-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .modul-detail-main,
  .modul-detail-sidebar,
  .kontak-aside,
  .kontak-form-panel {
    width: 100%;
    max-width: 100%;
  }

  .kontak-intro-card {
    width: 100%;
    padding: 22px 18px;
  }

  .kontak-intro-top {
    gap: 10px;
  }

  .kontak-intro-list li {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .kontak-channel {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .kontak-channel-icon {
    width: 42px;
    height: 42px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .modul-filter-form input,
  .modul-filter-form select {
    font-size: 16px;
  }

  .teacher-modal {
    width: calc(100% - 24px);
    max-width: none;
    border-radius: 16px;
  }

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

  .teacher-modal-visual {
    max-height: 220px;
  }

  .teacher-modal-visual img {
    height: 220px;
    aspect-ratio: auto;
    object-position: center 20%;
  }

  .teacher-modal-visual .teacher-placeholder {
    min-height: 200px;
    aspect-ratio: auto;
  }

  .teacher-modal-body {
    padding: 24px 20px 26px;
  }

  .teacher-modal-body .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .gallery-modal-figure {
    max-height: calc(100dvh - 32px);
  }

  .gallery-modal-figure > img {
    max-height: 68dvh;
  }

  .schedule-table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tbody {
    display: grid;
    gap: 14px;
  }

  .schedule-table tr {
    overflow: hidden;
    border: 1px solid #e4ece7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 23, 22, 0.04);
  }

  .schedule-table td {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    border: 0;
    border-bottom: 1px solid #edf2ef;
    padding: 11px 14px;
    text-align: left;
    overflow-wrap: anywhere;
  }

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

  .schedule-table td::before {
    color: #66746d;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .schedule-table .schedule-empty-row td {
    display: block;
  }

  .schedule-table .schedule-empty-row td::before {
    display: none;
  }

  .footer-grid,
  .footer-grid > div,
  .footer-grid > div:last-child {
    grid-column: auto;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .container,
  .navbar {
    width: calc(100% - 24px);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.35rem);
  }

  .btn,
  .filter-btn {
    max-width: 100%;
  }

  .schedule-table td {
    grid-template-columns: 88px minmax(0, 1fr);
    padding-inline: 12px;
  }
}

/* Mobile navigation modal. Desktop navigation remains unchanged. */
.mobile-nav-head {
  display: none;
}

@media (max-width: 1120px) {
  body.nav-open::after {
    position: fixed;
    inset: 0;
    z-index: 34;
    background: rgba(9, 20, 14, 0.52);
    backdrop-filter: blur(5px);
    content: "";
  }

  body.nav-open .site-header {
    z-index: 40;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.nav-open .site-utility,
  body.nav-open .navbar > .brand,
  body.nav-open .navbar > .nav-toggle {
    visibility: hidden;
  }

  .site-header .nav-links {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 45;
    display: flex;
    width: min(360px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: #ffffff;
    padding: 0 14px 14px;
    box-shadow: 0 28px 80px rgba(5, 16, 10, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% - 12px)) scale(0.98);
    transition: opacity 200ms ease, transform 220ms ease;
  }

  .site-header .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .mobile-nav-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e8eeea;
    background: #ffffff;
  }

  .mobile-nav-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #17241d;
    text-decoration: none;
  }

  .mobile-nav-brand img,
  .mobile-nav-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    object-fit: contain;
  }

  .mobile-nav-mark {
    background: #17613d;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-nav-brand > span:last-child {
    display: grid;
    min-width: 0;
  }

  .mobile-nav-brand strong {
    overflow: hidden;
    color: #17241d;
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-brand small {
    margin-top: 3px;
    color: #68766f;
    font-size: 0.62rem;
    font-weight: 650;
    text-transform: uppercase;
  }

  .mobile-nav-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #17241d;
    font-size: 1.45rem;
    cursor: pointer;
  }

  .mobile-nav-close:hover,
  .mobile-nav-close:focus-visible {
    background: #f0f6f2;
    color: #17613d;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search),
  .site-header .nav-dropdown > summary {
    min-height: 51px;
    border-bottom: 1px solid #e8eeea;
    border-radius: 0;
    padding: 0 3px;
    color: #26342d;
    font-size: 0.92rem;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search) {
    display: flex;
    align-items: center;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search)::before {
    display: none;
    content: none;
  }

  .site-header .nav-links > a:not(.btn):not(.nav-search).active,
  .site-header .nav-dropdown > summary.active,
  .site-header .nav-dropdown[open] > summary {
    background: #f6f9f7;
    color: #17613d;
  }

  .site-header .nav-dropdown[open] > div {
    width: 100%;
    margin: 0;
    position: static;
    border: 0;
    border-bottom: 1px solid #e8eeea;
    border-left: 0;
    border-radius: 0;
    background: #f8faf9;
    padding: 6px 10px 8px;
    box-shadow: none;
  }

  .site-header .nav-dropdown > div a {
    min-height: 40px;
    padding: 8px 10px;
  }

  .site-header .nav-links > .btn {
    min-height: 48px;
    margin-top: 14px;
    border-color: #17613d;
    border-radius: 12px;
    background: #17613d;
    color: #ffffff;
  }
}

@media (max-width: 380px) {
  .site-header .nav-links {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 16px);
  }
}

/* Akademik alignment: same page rhythm as the other public catalogs. */
.akademik-page-hero {
  padding-block: clamp(44px, 6vw, 64px) clamp(34px, 4.5vw, 48px);
  background: linear-gradient(180deg, #f2f7f3 0%, #ffffff 100%);
}

.akademik-page-hero h1 {
  max-width: 19ch;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 4.6vw, 3.35rem);
  line-height: 1.04;
}

.akademik-page-hero .akademik-page-lead {
  max-width: 60ch;
  margin: 0;
}

.akademik-page {
  padding-top: clamp(32px, 4vw, 48px);
}

.akademik-summary {
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 48px);
  border: 1px solid #e4ece7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 97, 61, 0.05);
}

.akademik-summary .akademik-stats {
  max-width: none;
  margin: 0;
  border: 0;
}

.akademik-summary .akademik-stat {
  padding: 20px 24px;
}

.akademik-summary .akademik-stat:first-child {
  padding-left: 24px;
}

.akademik-summary .akademik-stat:last-child {
  padding-right: 24px;
}

.akademik-summary .akademik-path {
  max-width: none;
  margin: 0;
  border-top: 1px solid #e8efeb;
  padding: 15px 24px;
  background: #f8fbf9;
}

.akademik-jump {
  margin-bottom: clamp(38px, 5vw, 56px);
}

.akademik-class {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.akademik-class:hover {
  border-color: #cfe1d6;
  box-shadow: 0 16px 38px rgba(23, 97, 61, 0.09);
  transform: translateY(-3px);
}

@media (max-width: 680px) {
  .akademik-page-hero {
    padding-block: 38px 44px;
  }

  .akademik-page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10vw, 2.55rem);
    line-height: 1.04;
  }

  .akademik-summary {
    margin-bottom: 30px;
    border-radius: 16px;
  }

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

  .akademik-summary .akademik-stat,
  .akademik-summary .akademik-stat:first-child,
  .akademik-summary .akademik-stat:last-child {
    padding: 16px;
  }

  .akademik-summary .akademik-stat:nth-child(odd) {
    border-right: 1px solid #e8efeb;
  }

  .akademik-summary .akademik-stat:nth-child(-n + 2) {
    border-bottom: 1px solid #e8efeb;
  }

  .akademik-summary .akademik-path {
    display: none;
  }

  .akademik-jump {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    margin: 0 -4px 34px;
    padding: 0 4px 13px;
    scrollbar-width: none;
  }

  .akademik-jump::-webkit-scrollbar {
    display: none;
  }

  .akademik-jump-link {
    flex: 0 0 auto;
  }

  .akademik-dept {
    gap: 22px;
  }

  .akademik-dept + .akademik-dept {
    margin-top: 56px;
    padding-top: 44px;
  }

  .akademik-dept-head h2 {
    font-size: 1.7rem;
  }

  .akademik-class,
  .akademik-class + .akademik-class {
    padding: 18px 16px;
  }

  .akademik-class:hover {
    transform: none;
  }
}

/* Footer links and contact icons. */
.site-footer .footer-links > a,
.site-footer .footer-contact > a {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.site-footer .footer-links > a i,
.site-footer .footer-contact > a i {
  width: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: #73bd91;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.site-footer .footer-contact > a span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.site-footer .footer-contact > a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 12px 0;
}

.site-footer .footer-contact > a i {
  display: grid;
  width: 20px;
  height: 20px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
}

.site-footer .footer-contact > a strong {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Keep contact icon and value on the same row despite legacy footer selectors. */
.site-footer .footer-grid .footer-contact > a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.site-footer .footer-grid .footer-contact > a i {
  margin-top: 2px;
}

.site-footer .footer-grid .footer-contact > a strong {
  display: block;
  letter-spacing: -0.01em;
}

/* Teacher detail modal: stable media pane with an independently scrollable body. */
.teacher-modal {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid #e1e9e4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(5, 18, 10, 0.28);
}

.teacher-modal::backdrop {
  background: rgba(12, 24, 17, 0.56);
  backdrop-filter: blur(7px);
}

.teacher-modal-content {
  height: auto;
  max-height: calc(100dvh - 40px);
}

.teacher-modal-grid {
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  height: auto;
  min-height: 440px;
  max-height: min(720px, calc(100dvh - 40px));
}

.teacher-modal-visual {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #eef4f0;
}

.teacher-modal-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
}

.teacher-modal-visual .teacher-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.teacher-modal-body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  justify-content: flex-start;
  padding: 48px 54px 32px;
  scrollbar-width: thin;
  scrollbar-color: #b7c8be transparent;
  overscroll-behavior: contain;
}

.teacher-modal-body::-webkit-scrollbar {
  width: 7px;
}

.teacher-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.teacher-modal-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b7c8be;
  background-clip: padding-box;
}

.teacher-modal-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid #e1e9e4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #53645b;
  font-size: 1.25rem;
  box-shadow: 0 8px 22px rgba(16, 23, 22, 0.08);
}

.teacher-modal-close:hover {
  background: #f1f7f3;
  color: #17613d;
}

.teacher-modal-close:focus-visible {
  outline: 2px solid rgba(23, 97, 61, 0.32);
  outline-offset: 2px;
}

.teacher-modal-name {
  max-width: calc(100% - 40px);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.teacher-modal-bio {
  max-width: 54ch;
  font-size: 0.96rem;
  line-height: 1.75;
}

.teacher-modal-body > .btn {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: 24px;
  justify-content: center;
  box-shadow: 0 -14px 22px 10px #ffffff;
}

@media (max-width: 720px) {
  .teacher-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .teacher-modal-content {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .teacher-modal-grid {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .teacher-modal-visual {
    min-height: 190px;
    max-height: 230px;
    flex: 0 0 32%;
  }

  .teacher-modal-visual img {
    height: 100%;
    object-position: center 20%;
  }

  .teacher-modal-body {
    flex: 1 1 auto;
    padding: 26px 20px 22px;
  }

  .teacher-modal-close {
    top: 12px;
    right: 12px;
  }

  .teacher-modal-name {
    font-size: 1.45rem;
  }
}

/* Contact anti-spam field and location card polish. */
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.kontak-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.kontak-map-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.kontak-map-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 11px;
  background: #edf6f0;
  color: #17613d;
  font-size: 1.12rem;
}

.kontak-map-title h3 {
  margin-bottom: 3px;
}

.kontak-map-title p {
  line-height: 1.45;
}

.kontak-map-link {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce8e1;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 11px;
  color: #17613d;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.kontak-map-link:hover {
  border-color: #b9d3c3;
  background: #f3f8f5;
}

.kontak-map-frame {
  border-top: 1px solid #e7eee9;
  border-radius: 0;
}

.kontak-map-frame iframe {
  display: block;
  height: 300px;
}

.kontak-form-note {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kontak-form-note i {
  flex: 0 0 auto;
  color: #237d4d;
  font-size: 1rem;
}

@media (max-width: 680px) {
  .kontak-map-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .kontak-map-link {
    width: 100%;
    justify-content: center;
  }

  .kontak-map-frame iframe {
    height: 250px;
  }
}

.site-footer .footer-links > a:hover,
.site-footer .footer-contact > a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.site-footer .footer-links > a:hover i,
.site-footer .footer-contact > a:hover i {
  color: #9ad5b1;
}

@media (max-width: 680px) {
  .site-footer .footer-links > a,
  .site-footer .footer-contact > a {
    min-height: 38px;
    margin-block: 6px;
  }

  .site-footer .footer-contact > a {
    align-items: start;
    margin-block: 12px;
  }
}

/* Profile page: calm institutional rhythm and readable identity card. */
.profil-page-hero {
  padding-block: clamp(54px, 7vw, 78px);
}

.profil-page-hero .container > p:last-child {
  max-width: 62ch;
}

.madrasah-intro,
.profil-sejarah,
.profil-visi-misi,
.sambutan-profil-wrap--profil,
.facility-section {
  padding-block: clamp(64px, 8vw, 88px);
}

.madrasah-intro-layout {
  align-items: start;
}

.profile-facts {
  overflow: hidden;
  border-color: #e2ebe5;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 23, 22, 0.06);
}

.profile-facts h2 {
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-facts .profile-facts-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.profile-facts .profile-facts-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #edf6f0;
  color: var(--primary);
}

.profile-facts .profile-facts-icon svg {
  width: 18px;
  height: 18px;
}

.profile-facts .profile-facts-item > div {
  min-width: 0;
}

.profile-facts dt {
  color: #69766f;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-facts dd {
  overflow-wrap: anywhere;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.profil-sejarah .prose-card {
  max-width: 900px;
}

.profil-sejarah .article-image {
  max-height: 480px;
  object-fit: cover;
}

.sambutan-profil-wrap--profil {
  background: #ffffff;
}

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

@media (max-width: 900px) {
  .profile-facts {
    position: static;
  }
}

@media (max-width: 680px) {
  .profil-page-hero {
    padding-block: 44px;
  }

  .madrasah-intro,
  .profil-sejarah,
  .profil-visi-misi,
  .sambutan-profil-wrap--profil,
  .facility-section {
    padding-block: 52px;
  }

  .profile-facts {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-facts dl > div {
    padding-block: 13px;
  }

  .profile-facts .profile-facts-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-facts .profile-facts-icon {
    width: 36px;
    height: 36px;
  }
}

/* Error page */
.error-page {
  display: grid;
  min-height: auto;
  align-items: start;
  overflow: hidden;
  padding-block: clamp(36px, 4vw, 60px);
  background:
    radial-gradient(circle at 78% 45%, rgba(36, 126, 79, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
}

.error-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.error-page-copy {
  padding-top: 0;
}

.error-page-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.error-page-copy h1 {
  max-width: 11ch;
  margin: 14px 0 20px;
  color: var(--text-dark);
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.error-page-description {
  max-width: 50ch;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.75;
}

.error-page-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 20px;
  white-space: nowrap;
}

.error-page-action i {
  font-size: 1.15rem;
  transition: transform 220ms ease;
}

.error-page-action:hover i {
  transform: translateX(-4px);
}

.error-page-visual {
  display: grid;
  min-width: 0;
  place-items: center;
}

.error-page-visual img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .error-page {
    min-height: auto;
    padding-block: 32px 48px;
  }

  .error-page-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .error-page-copy {
    max-width: 620px;
  }

  .error-page-copy h1 {
    max-width: 13ch;
  }

  .error-page-visual {
    grid-row: 1;
  }

  .error-page-visual img {
    width: min(78vw, 520px);
  }
}

@media (max-width: 560px) {
  .error-page {
    padding-block: 24px 40px;
  }

  .error-page-layout {
    gap: 24px;
  }

  .error-page-copy h1 {
    margin-block: 12px 16px;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .error-page-description {
    margin-bottom: 24px;
    font-size: 0.96rem;
  }

  .error-page-action {
    width: 100%;
  }

  .error-page-visual img {
    width: min(90vw, 390px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-page-action i {
    transition: none;
  }
}

/* Footer navigation hierarchy */
.site-footer .footer-grid {
  align-items: start;
}

.site-footer .footer-links h2,
.site-footer .footer-contact h2 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer .footer-links > a {
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

.site-footer .footer-links > a:hover,
.site-footer .footer-links > a:focus-visible {
  color: #ffffff;
}

.site-footer .footer-links > a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .site-footer .footer-links h2,
  .site-footer .footer-contact h2 {
    margin-bottom: 14px;
  }

  .site-footer .footer-links > a {
    min-height: 38px;
    margin: 0;
    font-size: 0.92rem;
  }
}

/* Instant module search and popular learning modules. */
.modul-search-control[data-module-instant-search] {
  z-index: 12;
}

.modul-search-control.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 15px;
  height: 15px;
  border: 2px solid #cbd8d0;
  border-top-color: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: moduleSearchSpin 650ms linear infinite;
}

@keyframes moduleSearchSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.module-instant-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: min(620px, calc(100vw - 32px));
  max-height: min(430px, 62dvh);
  overflow-y: auto;
  border: 1px solid #dfe8e2;
  border-radius: 14px;
  background: #ffffff;
  padding: 7px;
  box-shadow: 0 20px 55px rgba(16, 23, 22, 0.16);
}

.module-instant-results[hidden] {
  display: none;
}

.module-instant-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 11px 12px;
  color: #25322b;
  text-decoration: none;
}

.module-instant-item:hover,
.module-instant-item:focus-visible,
.module-instant-item.is-active {
  outline: none;
  background: #f0f6f2;
}

.module-instant-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #e8f3ec;
  color: #17613d;
  font-size: 1.05rem;
}

.module-instant-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.module-instant-copy strong,
.module-instant-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-instant-copy strong {
  font-size: 0.82rem;
}

.module-instant-copy small {
  color: #718078;
  font-size: 0.68rem;
}

.module-instant-arrow {
  color: #4f8d67;
}

.module-instant-empty {
  margin: 0;
  padding: 16px;
  color: #718078;
  font-size: 0.78rem;
  text-align: center;
}

.module-popular {
  margin: 0 0 38px;
  border: 1px solid #e1e9e4;
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(16, 23, 22, 0.045);
}

.home-modules-section .module-popular {
  margin: 44px 0 0;
}

.module-popular-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.module-popular-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 11px;
  background: #edf6f0;
  color: #17613d;
  font-size: 1.2rem;
}

.module-popular-head p {
  margin: 0 0 2px;
  color: #6c7a72;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-popular-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

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

.module-popular-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #e7ede9;
  border-radius: 12px;
  background: #fbfdfc;
  padding: 14px;
  color: #25322b;
  text-decoration: none;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.module-popular-item:hover {
  border-color: #bdd5c6;
  background: #f3f8f5;
  transform: translateY(-2px);
}

.module-popular-rank {
  color: #8caf98;
  font-size: 0.75rem;
  font-weight: 850;
}

.module-popular-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.module-popular-copy strong,
.module-popular-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-popular-copy strong {
  font-size: 0.8rem;
}

.module-popular-copy small,
.module-popular-views {
  color: #718078;
  font-size: 0.66rem;
}

.module-popular-views {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.module-popular-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #4f8d67;
}

@media (max-width: 900px) {
  .module-popular-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .module-instant-results {
    width: 100%;
  }

  .module-popular {
    padding: 18px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modul-search-control.is-loading::after {
    animation: none;
  }
}

/* Password visibility control */
.password-field {
  position: relative;
}

.password-field > input {
  width: 100%;
  padding-right: 48px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66746d;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 200ms ease, color 200ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #edf6f0;
  color: var(--primary);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(23, 97, 61, 0.3);
  outline-offset: 1px;
}

.password-toggle i {
  font-size: 1.15rem;
}

/* Gallery catalogue and home preview */
.gallery-page {
  background: #f8faf9;
}

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

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4ebe7;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(16, 23, 22, 0.04);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.gallery-card:hover {
  border-color: #c5ddce;
  box-shadow: 0 18px 44px rgba(16, 23, 22, 0.09);
  transform: translateY(-4px);
}

.gallery-card-media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 0;
}

.gallery-card-media img {
  border-radius: 0;
}

.gallery-card-video,
.gallery-card-placeholder {
  background: #edf5f0;
  color: var(--primary);
}

.gallery-card-video {
  align-content: center;
  gap: 12px;
}

.gallery-card-video i,
.gallery-card-placeholder i {
  font-size: 2rem;
}

.gallery-card-video a {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.gallery-card-body {
  padding: 20px 22px 22px;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #718078;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.gallery-preview .gallery-strip {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, 190px);
}

.gallery-preview .gallery-strip > .gallery-button {
  display: block;
  grid-column: span 3;
  grid-row: span 1;
}

.gallery-preview .gallery-strip > .gallery-button:first-child {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-preview .gallery-strip > .gallery-button:nth-child(n+4) {
  display: block;
}

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

@media (max-width: 680px) {
  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-card {
    border-radius: 16px;
  }

  .gallery-card-body {
    padding: 18px;
  }

  .gallery-preview .gallery-strip {
    display: grid;
    grid-auto-columns: min(82vw, 340px);
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: 1fr;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .gallery-preview .gallery-strip > .gallery-button,
  .gallery-preview .gallery-strip > .gallery-button:first-child {
    display: block;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

}

/* Mobile news list dividers */
@media (max-width: 680px) {
  .home-updates .news-row {
    gap: 10px;
    border-top: 0;
    border-bottom: 1px solid #dce5df;
    padding-block: 20px;
  }

  .home-updates .news-row:first-of-type {
    padding-top: 16px;
  }

  .home-updates .news-row:last-of-type {
    border-bottom-color: #dce5df;
  }

  .home-updates .news-row:hover {
    transform: none;
  }
}

.teacher-placeholder-monogram i {
  font-size: clamp(2.4rem, 5vw, 4rem);
  stroke-width: 1.5;
}

/* Berita catalogue and editorial article polish. */
.berita-page-hero {
  padding-block: clamp(52px, 7vw, 76px) clamp(34px, 5vw, 48px);
}

.berita-page-hero h1 {
  max-width: 760px;
}

.berita-category-filters {
  max-width: 920px;
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.berita-category-filters .filter-btn {
  min-height: 40px;
  padding-inline: 14px;
}

.section.berita-page {
  padding-block: clamp(42px, 6vw, 72px) clamp(72px, 9vw, 104px);
  background: #f8faf9;
}

.berita-filter-panel {
  margin-bottom: 36px;
  border-color: #e1e9e4;
  border-radius: 18px;
  padding: 22px 24px 24px;
  box-shadow: 0 10px 30px rgba(16, 23, 22, 0.045);
}

.berita-filter-panel-header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.berita-filter-panel-header h2 {
  font-size: 1.05rem;
}

.berita-filter-panel-header p {
  font-size: 0.84rem;
}

.berita-filter-field input,
.berita-filter-field select {
  min-height: 48px;
  border-radius: 11px;
  background: #f7faf8;
}

.berita-search-input {
  position: relative;
}

.berita-search-input > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #738078;
  font-size: 1.05rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.berita-search-input > input {
  padding-left: 42px;
}

.berita-results-bar {
  margin-bottom: 24px;
  border-bottom-color: #dfe7e2;
}

.berita-catalog-grid {
  gap: 24px;
}

.berita-card {
  min-height: 0;
  border-color: #e1e8e4;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(16, 23, 22, 0.04);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.berita-card:hover {
  border-color: #c5d9cc;
  box-shadow: 0 18px 44px rgba(16, 23, 22, 0.085);
  transform: translateY(-4px);
}

.berita-card-body {
  padding: 22px 22px 24px;
}

.berita-card h2 {
  min-height: auto;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.berita-card p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.berita-card-foot {
  margin-top: 20px;
}

.article-page {
  padding-block: clamp(34px, 5vw, 58px) clamp(76px, 9vw, 112px);
  background: linear-gradient(180deg, #f7faf8 0, #ffffff 300px);
}

.article-layout-grid {
  grid-template-columns: minmax(0, 800px) minmax(250px, 300px);
  justify-content: space-between;
  gap: clamp(48px, 7vw, 84px);
  max-width: 1240px !important;
  margin-top: 0;
}

.article-main-col {
  max-width: 800px;
}

.article-page .breadcrumb {
  margin-bottom: 32px;
}

.article-page .breadcrumb i {
  color: #96a29b;
  font-size: 0.78rem;
}

.article-header {
  max-width: 800px;
}

.article-header .article-meta {
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.article-header .article-meta > span:not(.category-tag) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #69766f;
  font-size: 0.75rem;
  font-weight: 700;
}

.article-header .article-meta i {
  color: var(--primary);
  font-size: 0.95rem;
}

.article-header h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.article-header .excerpt {
  max-width: 680px;
  margin: 0;
  color: #536159;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.article-cover {
  max-width: 800px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #edf2ef;
  box-shadow: 0 18px 54px rgba(16, 23, 22, 0.09);
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.article-main-col .article-body {
  margin-top: 42px;
  color: #3f4c45;
  font-size: 1.03rem;
  line-height: 1.88;
}

.article-main-col .article-body > :first-child {
  margin-top: 0;
}

.article-sidebar-col {
  position: sticky;
  top: 112px;
  align-self: start;
  gap: 30px;
}

.sidebar-widget {
  border: 1px solid #e2e9e5;
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 8px 26px rgba(16, 23, 22, 0.035);
}

.sidebar-widget:last-child {
  border: 1px solid #e2e9e5;
  padding-bottom: 22px;
}

.widget-title {
  display: block;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e9e5;
  padding-bottom: 12px;
  font-size: 0.92rem;
}

.widget-link {
  min-height: 34px;
  font-size: 0.84rem;
}

.popular-list {
  gap: 0;
}

.popular-item {
  gap: 12px;
  border-bottom: 1px solid #edf1ef;
  padding-block: 14px;
}

.popular-item:first-child {
  padding-top: 0;
}

.popular-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.popular-num {
  color: #88ad96;
  font-size: 1.1rem;
}

.related-news-section {
  margin-top: 56px;
}

@media (max-width: 900px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .article-sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .berita-page-hero {
    padding-block: 44px 34px;
  }

  .berita-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .berita-category-filters .filter-btn,
  .berita-format-label {
    flex: 0 0 auto;
  }

  .berita-filter-panel {
    border-radius: 16px;
    padding: 18px;
  }

  .berita-card {
    border-radius: 16px;
  }

  .berita-card-body {
    padding: 18px;
  }

  .berita-card-foot {
    flex-direction: row;
    align-items: center;
  }

  .article-page {
    padding-block: 26px 72px;
  }

  .article-page .breadcrumb {
    margin-bottom: 24px;
  }

  .article-header h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -0.045em;
  }

  .article-cover {
    margin-top: 30px;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
  }

  .article-cover img {
    border-radius: 0;
  }

  .article-main-col .article-body {
    margin-top: 32px;
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .article-sidebar-col {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Academic directory: quiet visual depth and semantic cues. */
.akademik-page {
  background:
    radial-gradient(circle at 92% 8%, rgba(35, 125, 77, 0.055), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 46%, #ffffff 100%);
}

.akademik-summary {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.akademik-stats {
  max-width: none;
  gap: 14px;
  border: 0;
  overflow: visible;
}

.akademik-stat,
.akademik-stat:first-child,
.akademik-stat:last-child {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 13px;
  min-height: 108px;
  align-content: center;
  border: 1px solid #e1ebe5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 97, 61, 0.045);
}

.akademik-stat-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  border-radius: 12px;
  background: #edf6f0;
  color: #17613d;
  font-size: 1.2rem;
}

.akademik-stat dt {
  align-self: end;
  margin: 0;
}

.akademik-stat dd {
  align-self: start;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.akademik-path {
  max-width: 760px;
  min-height: 48px;
  border: 1px solid #e1ebe5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 16px;
}

.akademik-path span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}

.akademik-path i {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4ea16e, #bad8c5);
}

.akademik-dept {
  border: 1px solid #e2ebe6;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(237, 246, 240, 0.84) 0%, rgba(255, 255, 255, 0.96) 42%);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 50px rgba(23, 97, 61, 0.055);
}

.akademik-dept + .akademik-dept {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid #e2ebe6;
}

.akademik-dept-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid #d3e5da;
  border-radius: 14px;
  background: #ffffff;
  color: #17613d;
  font-size: 1.35rem;
  box-shadow: 0 8px 22px rgba(23, 97, 61, 0.07);
}

.akademik-class,
.akademik-class + .akademik-class {
  border-color: #e0e9e4;
  box-shadow: 0 8px 24px rgba(23, 97, 61, 0.045);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.akademik-class:hover {
  border-color: #c5dbcd;
  box-shadow: 0 16px 36px rgba(23, 97, 61, 0.08);
  transform: translateY(-3px);
}

.akademik-class-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}

.akademik-class-title > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: #edf6f0;
  color: #17613d;
  font-size: 0.95rem;
}

.akademik-class-title h3 {
  margin: 0;
}

.akademik-class-head > p {
  padding-left: 43px;
}

.akademik-subject-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.akademik-subject-name i {
  color: #5e9472;
  font-size: 1rem;
}

.akademik-subject-row:hover {
  padding-inline: 10px 6px;
}

.akademik-subject-row {
  transition: padding 220ms ease, background-color 220ms ease, color 220ms ease;
}

.akademik-foot {
  border-color: #d9e8df;
  background: linear-gradient(135deg, #edf6f0, #f8fbf9);
  box-shadow: 0 12px 34px rgba(23, 97, 61, 0.055);
}

@media (max-width: 860px) {
  .akademik-dept {
    gap: 28px;
  }
}

.article-back-link > i {
  flex: 0 0 auto;
  font-size: 1.05rem;
  transition: transform 200ms ease;
}

.article-back-link:hover > i,
.article-back-link:focus-visible > i {
  transform: translateX(-4px);
}

.article-back-link > span {
  transform: none !important;
}

@media (max-width: 680px) {
  .article-footer .article-back-link {
    min-height: 44px;
    align-items: center;
  }

  .article-share-actions.button-group {
    display: flex;
    width: auto;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .article-share-actions.button-group .public-cta {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    justify-content: center;
    border-radius: 12px;
    padding: 0;
  }

  .article-share-actions .public-cta > i {
    font-size: 1.2rem;
  }

  .article-share-actions .public-cta > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .akademik-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .akademik-stat,
  .akademik-stat:first-child,
  .akademik-stat:last-child,
  .akademik-stat:nth-child(odd),
  .akademik-stat:nth-child(even) {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 96px;
    border: 1px solid #e1ebe5;
    padding: 14px;
  }

  .akademik-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .akademik-stat dt {
    font-size: 0.66rem;
  }

  .akademik-stat dd {
    font-size: 1.35rem;
  }

  .akademik-path {
    border-radius: 12px;
    padding: 9px 12px;
  }

  .akademik-dept {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .akademik-dept-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
  }

  .akademik-class-head > p {
    padding-left: 0;
  }
}
/* Compact footer rhythm. */
.site-footer {
  padding-top: 50px;
}

.site-footer .footer-grid {
  padding-bottom: 42px;
}

.site-footer .footer-bottom {
  padding-block: 16px;
}

.article-page {
  padding-bottom: clamp(58px, 7vw, 80px);
}

@media (max-width: 680px) {
  .site-footer {
    padding-top: 42px;
  }

  .site-footer .footer-grid {
    gap: 30px;
    padding-bottom: 34px;
  }

  .site-footer .footer-bottom {
    padding-block: 14px;
  }

  .article-page {
    padding-bottom: 54px;
  }
}

/* Compact footer navigation links. */
.site-footer .footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer .footer-links h2 {
  margin-bottom: 8px;
}

.site-footer .footer-links > a {
  min-height: 0;
  margin: 0;
  padding-block: 2px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .site-footer .footer-links {
    gap: 4px;
  }

  .site-footer .footer-links > a {
    min-height: 36px;
    align-items: center;
    padding-block: 7px;
  }
}

/* Footer link spacing — override legacy style.css margin on direct child anchors */
.site-footer .footer-grid .footer-links,
.site-footer .footer-grid .footer-contact {
  display: grid;
  align-content: start;
  gap: 6px;
}

.site-footer .footer-grid .footer-links h2,
.site-footer .footer-grid .footer-contact h2 {
  margin: 0 0 10px;
}

.site-footer .footer-grid .footer-links > a,
.site-footer .footer-grid .footer-contact > a {
  margin: 0;
  min-height: 0;
  padding-block: 3px;
  line-height: 1.4;
}

.site-footer .footer-grid .footer-contact > a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding-block: 6px;
}

@media (max-width: 680px) {
  .site-footer .footer-grid .footer-links,
  .site-footer .footer-grid .footer-contact {
    gap: 4px;
  }

  .site-footer .footer-grid .footer-links > a {
    min-height: 0;
    padding-block: 6px;
  }

  .site-footer .footer-grid .footer-contact > a {
    margin-block: 0;
    padding-block: 8px;
  }
}

/* Galeri modal — lightbox rapi, stage gelap, navigasi foto */
body:has(.gallery-modal[open]) {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.gallery-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal::backdrop {
  background: rgba(5, 12, 8, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-modal__inner {
  display: flex;
  flex-direction: column;
  width: min(96vw, 1080px);
  max-height: min(94dvh, 920px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(3, 10, 6, 0.38);
  overflow: hidden;
}

.gallery-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid #e8efea;
  background: #ffffff;
}

.gallery-modal__counter {
  margin: 0;
  color: #64736b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-modal__counter[hidden] {
  display: none;
}

.gallery-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e4dd;
  border-radius: 999px;
  background: #f7faf8;
  color: #1a2620;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-modal__close:hover {
  border-color: #b9cfc2;
  background: #edf5f0;
  color: var(--primary);
}

.gallery-modal__viewport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 0;
}

.gallery-modal__figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.gallery-modal__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(58dvh, 520px);
  max-height: calc(94dvh - 180px);
  padding: 0;
  background: #0a100d;
}

.gallery-modal__stage > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94dvh - 180px);
  object-fit: contain;
  object-position: center;
}

.gallery-modal__meta {
  padding: 14px 18px 16px;
  border-top: 1px solid #e8efea;
  text-align: center;
}

.gallery-modal__meta[hidden] {
  display: none;
}

.gallery-modal__meta h2 {
  margin: 0;
  color: #15221b;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
}

.gallery-modal__meta h2[hidden] {
  display: none;
}

.gallery-modal__meta p {
  max-width: 68ch;
  margin: 6px auto 0;
  color: #56635c;
  font-size: 0.9rem;
  line-height: 1.65;
}

.gallery-modal__meta p[hidden] {
  display: none;
}

.gallery-modal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  align-self: center;
  margin: 0 6px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 16, 13, 0.72);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-modal__nav[hidden] {
  display: none;
}

.gallery-modal__nav:hover {
  background: rgba(255, 255, 255, 0.94);
  color: #15221b;
}

.gallery-modal__nav:active {
  transform: scale(0.96);
}

@media (max-width: 760px) {
  .gallery-modal {
    padding: 10px;
  }

  .gallery-modal__inner {
    width: 100%;
    border-radius: 14px;
  }

  .gallery-modal__viewport {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }

  .gallery-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin: 0;
    transform: translateY(-50%);
  }

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

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

  .gallery-modal__nav:active {
    transform: translateY(-50%) scale(0.96);
  }

  .gallery-modal__stage {
    min-height: min(52dvh, 420px);
    max-height: calc(100dvh - 210px);
  }

  .gallery-modal__stage > img {
    max-height: calc(100dvh - 210px);
  }

  .gallery-modal__meta {
    padding: 12px 14px 14px;
  }
}

/* Pagination bar — ringkasan dan kontrol di tengah */
.pagination-bar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  text-align: center;
}

.pagination-summary {
  margin: 0;
  color: #56635c;
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-page,
.pagination-action {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f1f4f2;
  padding: 0 12px;
  color: #3d4a43;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination-page {
  min-width: 40px;
  padding: 0;
}

.pagination-page.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 97, 61, 0.22);
}

.pagination-page:not(.is-active):hover {
  background: #e4ebe7;
  color: var(--primary);
}

.pagination-action {
  min-width: auto;
  padding: 0 16px;
}

.pagination-action:hover {
  background: #e4ebe7;
  color: var(--primary);
}

.pagination button {
  font: inherit;
  cursor: pointer;
}

@media (max-width: 680px) {
  .pagination-bar {
    gap: 10px;
  }
}

.gallery-modal__toolbar {
  justify-content: flex-end;
  min-height: 48px;
  padding: 8px 10px 0;
  border-bottom: 0;
}

/* Modul — filter format terkelompok */
.modul-format-panel {
  padding: 18px 20px 20px;
  border-bottom: 1px solid #e8efea;
}

.modul-format-panel__head {
  margin-bottom: 14px;
}

.modul-format-panel__title {
  margin: 0;
  color: #15221b;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modul-format-panel__hint {
  margin: 4px 0 0;
  color: #64736b;
  font-size: 0.82rem;
}

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

.modul-format-group {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.modul-format-group__label {
  color: #7b8981;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modul-format-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modul-format-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #dfe8e2;
  border-radius: 999px;
  background: #f7faf8;
  padding: 0 12px;
  color: #2f3b34;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.modul-format-chip .module-format-icon,
.modul-format-chip .ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.modul-format-chip .module-format-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.modul-format-chip:hover {
  border-color: #b9cfc2;
  background: #edf5f0;
  color: var(--primary);
}

.modul-format-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 97, 61, 0.18);
}

.modul-format-chip.is-active .module-format-icon,
.modul-format-chip.is-active .ui-icon {
  color: #ffffff;
}

.modul-format-chip.is-active .module-format-icon--drive {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 980px) {
  .modul-format-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modul-format-panel {
    padding: 16px 16px 18px;
  }

  .modul-format-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modul-format-group__chips {
    gap: 7px;
  }

  .modul-format-chip {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.78rem;
  }
}

/* Modul populer — editorial ranked list (taste-skill: trust-first LMS, density 3) */
.module-popular--editorial {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-popular--editorial .module-popular__header {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3ebe6;
}

.module-popular--editorial .module-popular__eyebrow {
  margin: 0 0 6px;
  color: #5f8f72;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.module-popular--editorial .module-popular__heading h2 {
  margin: 0;
  color: #122018;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.module-popular--editorial .module-popular__lede {
  max-width: 52ch;
  margin: 0;
  color: #64736b;
  font-size: 0.92rem;
  line-height: 1.65;
}

.module-popular--editorial .module-popular__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-popular--editorial .module-popular__item {
  min-width: 0;
}

.module-popular--editorial .module-popular__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 18px;
  min-width: 0;
  border: 1px solid #e3ebe6;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbf9 100%);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.module-popular--editorial .module-popular__item.is-featured .module-popular__card {
  border-color: #c5dccf;
  background: linear-gradient(135deg, #f4faf6 0%, #ffffff 58%);
  box-shadow: 0 14px 36px rgba(23, 97, 61, 0.07);
}

.module-popular--editorial .module-popular__card:hover {
  border-color: #9fc4af;
  box-shadow: 0 16px 40px rgba(23, 97, 61, 0.1);
  transform: translateY(-2px);
}

.module-popular--editorial .module-popular__rank {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: #edf5f0;
  color: #17613d;
  font-size: 0.92rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.module-popular--editorial .module-popular__item.is-featured .module-popular__rank {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 97, 61, 0.22);
}

.module-popular--editorial .module-popular__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.module-popular--editorial .module-popular__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.module-popular--editorial .module-popular__format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 10px 4px 6px;
  color: #2f4a3b;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: inset 0 0 0 1px #dfe9e3;
}

.module-popular--editorial .module-popular__format .module-format-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.module-popular--editorial .module-popular__subject {
  color: #718078;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.module-popular--editorial .module-popular__title {
  overflow: hidden;
  color: #15221b;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-popular--editorial .module-popular__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64736b;
  font-size: 0.74rem;
  font-weight: 650;
}

.module-popular--editorial .module-popular__stat i {
  color: #5f8f72;
  font-size: 0.9rem;
}

.module-popular--editorial .module-popular__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #ffffff;
  padding: 9px 14px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px #d5e5dc;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.module-popular--editorial .module-popular__card:hover .module-popular__action {
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

@media (max-width: 760px) {
  .module-popular--editorial .module-popular__card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding: 14px 14px 16px;
  }

  .module-popular--editorial .module-popular__action {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 58px;
  }

  .module-popular--editorial .module-popular__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-popular--editorial .module-popular__card,
  .module-popular--editorial .module-popular__action {
    transition: none;
  }

  .module-popular--editorial .module-popular__card:hover {
    transform: none;
  }
}

/* Final cascade: module detail mobile layout */
.modul-detail-page { background: #f8fafc; }
.modul-mobile-quick, .modul-mobile-summary { display: none; }
.modul-bahan-section { margin-top: 0; padding-top: 0; border-top: 0; }
.modul-about-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e5e7eb; }
.modul-bahan-card { border-color: #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(22, 101, 52, .055); }
.modul-bahan-card-head, .modul-bahan-card-foot { background: #fff; }
.modul-bahan-card-head h3 { min-width: 0; color: #0f172a; overflow-wrap: break-word; }
.modul-related-section .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modul-related-section .module-card { min-width: 0; height: auto; }
.modul-related-section .module-card-copy h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.modul-related-section .module-provider, .modul-related-section .module-provider > span { min-width: 0; white-space: nowrap; }
.modul-related-section .module-card-cta { margin-top: auto; }

@media (max-width: 960px) {
  .modul-detail-sidebar { display: none; }
  .modul-mobile-quick, .modul-mobile-summary { display: block; }
  .modul-mobile-quick { margin-bottom: 18px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(22, 101, 52, .05); }
  .modul-mobile-quick-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
  .modul-mobile-quick-copy > div { min-width: 0; }
  .modul-mobile-quick-copy span { display: block; margin-bottom: 2px; color: #64748b; font-size: .72rem; font-weight: 700; }
  .modul-mobile-quick-copy strong { display: block; overflow: hidden; color: #0f172a; font-size: .94rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
  .modul-mobile-quick .btn { min-height: 46px; border-radius: 12px; background: #166534; }
  .modul-mobile-summary { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e5e7eb; }
  .modul-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .modul-summary-grid > div { min-width: 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f8fafc; }
  .modul-summary-grid dt { margin-bottom: 5px; color: #64748b; font-size: .7rem; font-weight: 700; }
  .modul-summary-grid dd { margin: 0; color: #0f172a; font-size: .84rem; font-weight: 750; line-height: 1.4; overflow-wrap: break-word; }
  .modul-related-section .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .modul-detail-hero { padding-block: 24px 30px; }
  .modul-detail-breadcrumb { margin-bottom: 14px; font-size: .7rem; }
  .modul-detail-copy .eyebrow { margin-bottom: 7px; font-size: .68rem; }
  .modul-detail-copy h1 { max-width: 100%; margin: 7px 0 9px; font-size: clamp(2rem, 9.4vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: normal; word-break: normal; }
  .modul-detail-path { font-size: .86rem; line-height: 1.45; }
  .modul-detail-meta { gap: 7px 14px; margin-top: 12px; }
  .modul-meta-chip { font-size: .72rem; }
  .modul-detail-author { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 11px 12px; border: 1px solid rgba(22, 101, 52, .14); border-radius: 14px; background: rgba(255,255,255,.72); }
  .modul-detail-author-label { grid-column: 1 / -1; }
  .modul-detail-author > strong { font-size: .82rem; }
  .modul-detail-updated { align-self: center; text-align: right; }
  .modul-detail-page.section.section-compact { padding-block: 24px 38px; }
  .modul-detail-main { padding: 18px 16px; border-radius: 16px; box-shadow: 0 10px 32px rgba(22, 101, 52, .045); }
  .modul-detail-section-head { margin-bottom: 14px; }
  .modul-detail-section-head h2 { font-size: 1.08rem; }
  .modul-bahan-list { gap: 14px; }
  .modul-bahan-card-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; padding: 12px; }
  .modul-bahan-card-head h3 { font-size: .86rem; line-height: 1.4; }
  .modul-bahan-card-foot { padding: 10px 12px; }
  .modul-bahan-card-foot .btn, .modul-detail-back .btn { width: 100%; min-height: 42px; justify-content: center; }
  .modul-media-preview--office iframe, .modul-media-preview--google iframe, .modul-media-preview--file iframe { min-height: 360px; }
  .modul-about-section { margin-top: 28px; padding-top: 26px; }
  .modul-summary-grid { grid-template-columns: 1fr; }
  .modul-related-section .related-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .modul-related-section .module-card { width: 100%; padding: 18px; }

  .site-footer { padding-top: 32px; overflow: hidden; }
  .site-footer .footer-grid, .site-footer .footer-grid > div, .site-footer .footer-grid > div:last-child { grid-column: auto; min-width: 0; width: 100%; }
  .site-footer .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 16px; padding-bottom: 24px; }
  .site-footer .footer-brand { padding-bottom: 24px; }
  .site-footer .brand-footer { display: flex; width: 100%; min-width: 0; margin-bottom: 12px; align-items: flex-start; gap: 12px; }
  .site-footer .brand-footer .brand-logo, .site-footer .brand-footer .brand-mark { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
  .site-footer .brand-footer > span:last-child { min-width: 0; }
  .site-footer .brand-footer strong, .site-footer .brand-footer small { display: block; max-width: 100%; white-space: normal; overflow-wrap: break-word; }
  .site-footer .brand-footer strong { font-size: .94rem; line-height: 1.35; }
  .site-footer .brand-footer small { margin-top: 3px; font-size: .72rem; }
  .site-footer .footer-brand p { max-width: 100%; margin: 0; font-size: .8rem; line-height: 1.65; overflow-wrap: break-word; }
  .site-footer .footer-links, .site-footer .footer-contact { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .site-footer .footer-grid .footer-links h2, .site-footer .footer-grid .footer-contact h2 { margin: 0 0 10px; font-size: .72rem; }
  .site-footer .footer-grid .footer-links { gap: 0; }
  .site-footer .footer-grid .footer-links > a { width: 100%; min-height: 34px; padding-block: 6px; font-size: .84rem; }
  .site-footer .footer-grid .footer-contact > a { grid-template-columns: 20px minmax(0, 1fr); width: 100%; min-width: 0; padding-block: 7px; }
  .site-footer .footer-contact span, .site-footer .footer-contact strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .site-footer .footer-contact > a strong { font-size: .78rem; line-height: 1.55; }
  .site-footer .footer-bottom { width: 100%; padding: 14px 16px 18px; }
  .site-footer .footer-bottom p { max-width: 34ch; margin: 0; font-size: .68rem; line-height: 1.55; }
}

/* Katalog modul v2 */
.modul-catalog-v2__hero {
  padding-block: clamp(38px, 5vw, 64px);
  background:
    radial-gradient(circle at 82% 20%, rgba(21, 128, 61, .1), transparent 31%),
    linear-gradient(180deg, #f7fbf8 0%, #f8fafc 100%);
}

.modul-catalog-v2__hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.modul-catalog-v2__hero-copy h1 {
  max-width: 760px;
  margin-block: 8px 12px;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.modul-catalog-v2__hero-copy .modul-page-lead {
  max-width: 58ch;
  margin: 0;
  color: #64748b;
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.modul-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.modul-hero-stats > div {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(22, 101, 52, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(22, 101, 52, .055);
}

.modul-hero-stats i { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; border-radius: 11px; background: #eef7f1; color: #166534; font-size: 1.08rem; }
.modul-hero-stats dt { color: #64748b; font-size: .68rem; font-weight: 700; line-height: 1.35; }
.modul-hero-stats dd { margin: 5px 0 0; color: #0f172a; font-size: clamp(.96rem, 1.2vw, 1.12rem); font-weight: 850; line-height: 1.3; }

.modul-catalog-v2 {
  padding-block: clamp(30px, 4vw, 52px) clamp(58px, 7vw, 88px);
  background: #f8fafc;
}

.modul-catalog-v2 .modul-filter-panel {
  margin: 0 0 clamp(34px, 5vw, 54px);
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 101, 52, .045);
}

.modul-catalog-v2 .modul-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(145px, .72fr)) auto;
  gap: 10px;
  align-items: center;
}

.modul-catalog-v2 .modul-filter-form input,
.modul-catalog-v2 .modul-filter-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #fff;
  color: #334155;
  font-size: .82rem;
}

.modul-catalog-v2 .modul-search-control { min-width: 0; }
.modul-catalog-v2 .modul-filter-actions { display: flex; gap: 7px; }
.modul-catalog-v2 .modul-filter-actions .btn { min-height: 46px; padding-inline: 15px; border-radius: 12px; font-size: .8rem; }

.modul-catalog-v2 .modul-format-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid #eef2f0;
  background: transparent;
}

.modul-catalog-v2 .modul-format-panel__title {
  flex: 0 0 auto;
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.modul-catalog-v2 .modul-format-scroll {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: thin;
}

.modul-catalog-v2 .modul-format-chip {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.modul-catalog-v2 .modul-format-chip .module-format-icon,
.modul-catalog-v2 .modul-format-chip .ui-icon { width: 15px; height: 15px; }
.modul-catalog-v2 .modul-format-chip:hover { border-color: #a7cbb5; background: #f0f7f3; color: #166534; }
.modul-catalog-v2 .modul-format-chip.is-active { border-color: #166534; background: #166534; color: #fff; }

.modul-catalog-v2 .module-popular--editorial {
  margin: 0 0 clamp(38px, 5vw, 58px);
  padding: 0;
  border: 0;
  background: transparent;
}

.modul-catalog-v2 .module-popular__header {
  display: block;
  margin-bottom: 18px;
}

.modul-catalog-v2 .module-popular__heading h2 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.modul-catalog-v2 .module-popular__lede { max-width: 56ch; margin: 0; color: #64748b; font-size: .86rem; }
.modul-catalog-v2 .module-popular__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.modul-catalog-v2 .module-popular__item { min-width: 0; }

.modul-catalog-v2 .module-popular__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px 14px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(22, 101, 52, .04);
}

.modul-catalog-v2 .module-popular__card:hover { border-color: #a7cbb5; transform: translateY(-2px); }
.modul-catalog-v2 .module-popular__rank { color: #166534; font-size: .76rem; font-weight: 850; }
.modul-catalog-v2 .module-popular__content { min-width: 0; }
.modul-catalog-v2 .module-popular__meta { align-items: center; gap: 7px; }
.modul-catalog-v2 .module-popular__subject { overflow: hidden; color: #64748b; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.modul-catalog-v2 .module-popular__title { display: -webkit-box; margin-top: 12px; overflow: hidden; color: #0f172a; font-size: .98rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.modul-catalog-v2 .module-popular__stat { margin-top: 10px; color: #64748b; font-size: .72rem; }
.modul-catalog-v2 .module-popular__action { grid-column: 2; justify-self: start; margin: 0; color: #166534; font-size: .76rem; }

.modul-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dfe7e2;
}

.modul-catalog-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}

.modul-catalog-heading p {
  flex: 0 0 auto;
  margin: 0;
  color: #64748b;
  font-size: .76rem;
  font-weight: 600;
}

.modul-catalog-heading p strong {
  color: #166534;
  font-size: .92rem;
  font-weight: 850;
}

.modul-catalog-v2 .modul-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.modul-catalog-v2 .module-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 101, 52, .045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.modul-catalog-v2 .module-card:hover { border-color: #a7cbb5; box-shadow: 0 16px 34px rgba(22, 101, 52, .08); transform: translateY(-3px); }
.modul-catalog-v2 .module-card-top { align-items: center; margin: 0; }
.modul-catalog-v2 .module-provider { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modul-catalog-v2 .module-provider > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modul-catalog-v2 .module-card-date { color: #64748b; font-size: .68rem; }

.modul-catalog-v2 .module-card-copy { min-height: 104px; margin-top: 28px; }
.modul-catalog-v2 .module-card-copy h3 { margin: 0 0 9px; }
.modul-catalog-v2 .module-card-copy h3 a { display: -webkit-box; overflow: hidden; color: #0f172a; font-size: 1.05rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.modul-catalog-v2 .module-card-description { display: -webkit-box; margin: 0; overflow: hidden; color: #64748b; font-size: .8rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.modul-catalog-v2 .module-card-divider { margin-block: 18px 15px; border-color: #eef2f0; }
.modul-catalog-v2 .module-card-meta { display: grid; gap: 9px; }
.modul-catalog-v2 .module-card-meta-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; color: #64748b; font-size: .74rem; line-height: 1.45; }
.modul-catalog-v2 .module-card-meta-item .ui-icon { width: 15px; height: 15px; color: #15803d; }
.modul-catalog-v2 .module-card-cta { margin-top: auto; padding-top: 20px; color: #166534; font-size: .8rem; font-weight: 800; }

.modul-catalog-v2 .pagination-bar { gap: 16px; margin-top: 28px; padding-top: 22px; }
.modul-catalog-v2 .pagination-page,
.modul-catalog-v2 .pagination-action { min-width: 34px; min-height: 34px; border-radius: 10px; font-size: .76rem; }
.modul-catalog-v2 .pagination-page.is-active { border-color: #166534; background: #166534; color: #fff; }

.site-footer { background: #111a17; }

@media (max-width: 1050px) {
  .modul-catalog-v2__hero-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); }
  .modul-catalog-v2 .modul-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modul-catalog-v2 .modul-filter-field--search { grid-column: 1 / -1; }
  .modul-catalog-v2 .modul-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 800px) {
  .modul-catalog-v2__hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .modul-hero-stats { max-width: 560px; }
  .modul-catalog-v2 .module-popular__list,
  .modul-catalog-v2 .modul-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modul-catalog-v2 .module-popular__item:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .modul-catalog-v2__hero { padding-block: 28px 30px; }
  .modul-catalog-v2__hero-copy h1 { max-width: 12ch; font-size: clamp(2.25rem, 11vw, 3rem); line-height: 1.03; }
  .modul-catalog-v2__hero-copy .modul-page-lead { font-size: .9rem; }
  .modul-hero-stats { grid-template-columns: 1fr; }
  .modul-hero-stats > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 0 11px; padding: 12px 14px; }
  .modul-hero-stats dt { display: contents; font-size: .62rem; }
  .modul-hero-stats dt i { grid-column: 1; grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
  .modul-hero-stats dt span { grid-column: 2; grid-row: 1; color: #64748b; font-size: .62rem; font-weight: 700; }
  .modul-hero-stats dd { grid-column: 2; grid-row: 2; margin: 3px 0 0; font-size: .86rem; }
  .modul-catalog-v2 { padding-block: 22px 52px; }
  .modul-catalog-v2 .modul-filter-panel { margin-bottom: 34px; padding: 12px; border-radius: 16px; }
  .modul-catalog-heading { gap: 12px; margin-bottom: 16px; padding-bottom: 12px; }
  .modul-catalog-heading p { font-size: .7rem; }
  .modul-catalog-v2 .modul-filter-form { grid-template-columns: 1fr; }
  .modul-catalog-v2 .modul-filter-field--search,
  .modul-catalog-v2 .modul-filter-actions { grid-column: auto; }
  .modul-catalog-v2 .modul-filter-actions { display: grid; grid-template-columns: 1fr auto; }
  .modul-catalog-v2 .modul-format-panel { display: block; }
  .modul-catalog-v2 .modul-format-panel__title { display: block; margin-bottom: 9px; padding-top: 0; }
  .modul-catalog-v2 .modul-format-scroll { width: 100%; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .modul-catalog-v2 .modul-format-chip { scroll-snap-align: none; }
  .modul-catalog-v2 .module-popular__list,
  .modul-catalog-v2 .modul-catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .modul-catalog-v2 .module-popular__item:last-child { grid-column: auto; }
  .modul-catalog-v2 .module-popular__card { min-height: 158px; }
  .modul-catalog-v2 .module-card { min-height: 0; padding: 20px; }
  .modul-catalog-v2 .module-card-copy { min-height: 0; margin-top: 20px; }
  .modul-catalog-v2 .pagination-bar { align-items: flex-start; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .modul-catalog-v2 .module-card,
  .modul-catalog-v2 .module-popular__card { transition: none; }
  .modul-catalog-v2 .module-card:hover,
  .modul-catalog-v2 .module-popular__card:hover { transform: none; }
}

/* Profil madrasah v2 */
.profile-v2-hero {
  padding-block: clamp(38px, 5vw, 62px);
  background:
    radial-gradient(circle at 84% 20%, rgba(21, 128, 61, .1), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, #f8fafc 100%);
}

.profile-v2-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.profile-v2-hero h1 {
  margin: 7px 0 12px;
  color: #0f172a;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.profile-v2-hero-layout > div > p:last-child {
  max-width: 61ch;
  margin: 0;
  color: #64748b;
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.profile-v2-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-v2-hero-stats > div {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(22, 101, 52, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(22, 101, 52, .055);
}

.profile-v2-hero-stats i { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; border-radius: 11px; background: #eef7f1; color: #166534; font-size: 1.08rem; }
.profile-v2-hero-stats dt { display: block; color: #64748b; font-size: .68rem; font-weight: 700; }
.profile-v2-hero-stats dd { margin: 5px 0 0; color: #0f172a; font-size: clamp(.96rem, 1.2vw, 1.12rem); font-weight: 850; line-height: 1.3; overflow-wrap: normal; word-break: normal; }

.profile-v2-intro,
.profile-v2-history,
.profile-v2-facilities { background: #f8fafc; }

.profile-v2-intro { padding-block: clamp(52px, 7vw, 88px); }
.profile-v2-intro-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: start; gap: clamp(34px, 6vw, 74px); }
.profile-v2-story { max-width: 760px; }

.profile-v2-since {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid #cfe3d6;
  border-radius: 10px;
  background: #eef7f1;
  color: #166534;
  font-size: .72rem;
  font-weight: 800;
}

.profile-v2-story h2,
.profile-v2-section-head h2,
.profile-v2-history-card h2 {
  color: #0f172a;
  letter-spacing: -.035em;
}

.profile-v2-story h2 { max-width: 16ch; margin: 0 0 22px; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.08; }
.profile-v2-story > p { max-width: 66ch; margin: 0 0 16px; color: #64748b; font-size: .96rem; line-height: 1.8; }
.profile-v2-story-content { max-width: 66ch; color: #64748b; font-size: .96rem; line-height: 1.8; }
.profile-v2-story-content p { margin: 0 0 16px; }

.profile-v2-identity {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 101, 52, .055);
}

.profile-v2-identity > h2 { margin: 0 0 10px; color: #0f172a; font-size: 1.05rem; }
.profile-v2-identity dl { margin: 0; }
.profile-v2-identity dl > div { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 14px; }
.profile-v2-identity dl > div + div { border-top: 1px solid #eef2f0; }
.profile-v2-identity i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #eef7f1; color: #166534; font-size: 1.05rem; }
.profile-v2-identity dt { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; color: #64748b; font-size: .65rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.profile-v2-identity dd { margin: -9px 0 0 50px; color: #0f172a; font-size: .84rem; font-weight: 750; line-height: 1.5; overflow-wrap: break-word; }

.profile-v2-history { padding-block: 0 clamp(54px, 7vw, 88px); }
.profile-v2-history-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 101, 52, .045);
}

.profile-v2-history-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; background: #166534; color: #fff; font-size: 1.45rem; }
.profile-v2-history-card h2 { margin: 6px 0 13px; font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
.profile-v2-history-image { display: block; width: 100%; max-height: 360px; margin: 0 0 20px; border-radius: 16px; object-fit: cover; }
.profile-v2-history-card > div:last-child > p:last-child { max-width: 78ch; margin: 0; color: #64748b; line-height: 1.8; }
.profile-v2-history-content { max-width: 78ch; color: #64748b; line-height: 1.8; }
.profile-v2-history-content p:last-child { margin-bottom: 0; }

.profile-v2-direction {
  padding-block: clamp(58px, 8vw, 96px);
  background: #eef7f1;
}

.profile-v2-section-head { max-width: 760px; margin-bottom: 28px; }
.profile-v2-section-head h2 { margin: 6px 0 10px; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; }
.profile-v2-section-head > p:last-child { max-width: 64ch; margin: 0; color: #64748b; line-height: 1.7; }

.profile-v2-vision-quote {
  margin: 0 0 20px;
  padding: clamp(26px, 4vw, 42px);
  border: 0;
  border-radius: 24px;
  background: #166534;
  color: #fff;
  box-shadow: 0 18px 42px rgba(22, 101, 52, .16);
}

.profile-v2-vision-quote > span { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.profile-v2-vision-quote p { max-width: 34ch; margin: 12px 0 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }

.profile-v2-direction-grid { display: grid; grid-template-columns: .9fr 1.2fr .9fr; align-items: start; gap: 16px; }
.profile-v2-direction-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(22, 101, 52, .13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(22, 101, 52, .04);
}

.profile-v2-direction-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #0f172a; font-size: 1rem; }
.profile-v2-direction-card h3 i { color: #15803d; font-size: 1.2rem; }
.profile-v2-direction-card ul,
.profile-v2-direction-card ol { display: grid; gap: 10px; margin: 0; padding-left: 19px; color: #475569; font-size: .8rem; line-height: 1.55; }
.profile-v2-direction-card li::marker { color: #15803d; font-weight: 800; }
.profile-v2-direction-card > p { margin: 0 0 13px; color: #64748b; font-size: .84rem; line-height: 1.7; }
.profile-v2-direction-card > p:last-child { margin-bottom: 0; }
.profile-v2-direction-content { color: #64748b; font-size: .82rem; line-height: 1.65; }
.profile-v2-direction-content p,
.profile-v2-direction-content li { color: inherit; font-size: inherit; line-height: inherit; }
.profile-v2-direction-content p:last-child,
.profile-v2-direction-content ul:last-child,
.profile-v2-direction-content ol:last-child { margin-bottom: 0; }

.sambutan-profil-wrap--profil { background: #f8fafc; }
.sambutan-profil-wrap--profil .sambutan-profil-stage { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 5vw, 62px); align-items: center; }
.sambutan-profil-wrap--profil .sambutan-profil-portrait { max-width: 390px; margin-inline: auto; border-radius: 24px; }
.sambutan-profil-wrap--profil .sambutan-profil-photo,
.sambutan-profil-wrap--profil .sambutan-profil-photo-placeholder { aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; }
.sambutan-profil-wrap--profil .sambutan-profil-photo-placeholder > i { font-size: 4rem; }
.sambutan-profil-wrap--profil .sambutan-profil-card { border-radius: 24px; }
.sambutan-profil-wrap--profil .sambutan-profil-body { color: #64748b; line-height: 1.8; }

.profile-v2-facilities { padding-block: clamp(58px, 7vw, 88px); }
.profile-v2-facility-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.profile-v2-facility-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 101, 52, .035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-v2-facility-grid article:hover { border-color: #a7cbb5; box-shadow: 0 13px 30px rgba(22, 101, 52, .07); transform: translateY(-2px); }
.profile-v2-facility-grid i { display: grid; width: 44px; height: 44px; margin-bottom: 18px; place-items: center; border-radius: 13px; background: #eef7f1; color: #166534; font-size: 1.25rem; }
.profile-v2-facility-grid h3 { margin: 0 0 8px; color: #0f172a; font-size: .95rem; }
.profile-v2-facility-grid p { margin: 0; color: #64748b; font-size: .78rem; line-height: 1.6; }

.profile-v2-land {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #dce7e0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 101, 52, .055);
}

.profile-v2-land > header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 26px 28px;
  border-bottom: 1px solid #e4ece7;
}

.profile-v2-land > header > i {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  background: #166534;
  color: #fff;
  font-size: 1.28rem;
}

.profile-v2-land h3 { margin: 0 0 5px; color: #0f172a; font-size: 1.08rem; letter-spacing: -.015em; }
.profile-v2-land header p { margin: 0; color: #64748b; font-size: .8rem; line-height: 1.55; }
.profile-v2-land-body { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }

.profile-v2-land-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 28px;
  background: #eef7f1;
}

.profile-v2-land-metrics > div {
  display: grid;
  min-width: 0;
  min-height: 128px;
  align-content: center;
}

.profile-v2-land-metrics > div + div {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid #cfe3d6;
}

.profile-v2-land-metrics dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #47705a;
  font-size: .72rem;
  font-weight: 750;
}

.profile-v2-land-metrics dt i { color: #166534; font-size: 1.05rem; }
.profile-v2-land-metrics dd { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; color: #0f172a; }
.profile-v2-land-metrics dd strong { font-size: clamp(1.85rem, 3vw, 2.45rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.profile-v2-land-metrics dd span { color: #47705a; font-size: .82rem; font-weight: 750; }

.profile-v2-land-records {
  margin: 0;
  padding: 12px 28px;
  border-left: 1px solid #e4ece7;
}

.profile-v2-land-records > div {
  display: grid;
  grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-block: 20px;
}

.profile-v2-land-records > div + div { border-top: 1px solid #e8eeea; }
.profile-v2-land-records dt { color: #64748b; font-size: .7rem; font-weight: 750; line-height: 1.5; }
.profile-v2-land-records dd { margin: 0; color: #0f172a; font-size: .9rem; font-weight: 750; line-height: 1.55; overflow-wrap: break-word; }

@media (max-width: 960px) {
  .profile-v2-hero-layout,
  .profile-v2-intro-layout { grid-template-columns: 1fr; }
  .profile-v2-hero-stats { max-width: 620px; }
  .profile-v2-direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-v2-direction-card--mission { grid-row: span 2; }
  .sambutan-profil-wrap--profil .sambutan-profil-stage { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); }
  .profile-v2-facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-v2-land-body { grid-template-columns: 1fr; }
  .profile-v2-land-records { border-top: 1px solid #e4ece7; border-left: 0; }
}

@media (max-width: 680px) {
  .profile-v2-hero { padding-block: 28px 32px; }
  .profile-v2-hero-layout { gap: 24px; }
  .profile-v2-hero h1 { font-size: clamp(2.25rem, 11vw, 3.1rem); }
  .profile-v2-hero-stats { grid-template-columns: 1fr; }
  .profile-v2-hero-stats > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 0 11px; padding: 12px 14px; text-align: left; }
  .profile-v2-hero-stats dt { display: contents; font-size: .62rem; }
  .profile-v2-hero-stats dt i { grid-column: 1; grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
  .profile-v2-hero-stats dt span { grid-column: 2; grid-row: 1; color: #64748b; font-size: .62rem; font-weight: 700; }
  .profile-v2-hero-stats dd { grid-column: 2; grid-row: 2; margin: 3px 0 0; font-size: .86rem; }
  .profile-v2-intro,
  .profile-v2-direction,
  .profile-v2-facilities { padding-block: 40px; }
  .profile-v2-intro-layout { gap: 28px; }
  .profile-v2-story h2 { font-size: 2rem; }
  .profile-v2-story > p { font-size: .9rem; line-height: 1.72; }
  .profile-v2-identity { padding: 18px; border-radius: 18px; }
  .profile-v2-history { padding-bottom: 40px; }
  .profile-v2-history-card { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; border-radius: 20px; }
  .profile-v2-history-icon { width: 48px; height: 48px; }
  .profile-v2-section-head { margin-bottom: 22px; }
  .profile-v2-section-head h2 { font-size: 2rem; }
  .profile-v2-vision-quote { padding: 24px 20px; border-radius: 20px; }
  .profile-v2-vision-quote p { font-size: 1.35rem; }
  .profile-v2-direction-grid { grid-template-columns: 1fr; }
  .profile-v2-direction-card--mission { grid-row: auto; }
  .profile-v2-direction-card { padding: 20px 18px; }
  .sambutan-profil-wrap--profil .sambutan-profil-stage { grid-template-columns: 1fr; }
  .sambutan-profil-wrap--profil .sambutan-profil-portrait { max-width: 330px; }
  .profile-v2-facility-grid { grid-template-columns: 1fr; }
  .profile-v2-facility-grid article { padding: 20px; }
  .profile-v2-land { border-radius: 20px; }
  .profile-v2-land > header { padding: 20px 18px; }
  .profile-v2-land > header > i { width: 44px; height: 44px; flex-basis: 44px; }
  .profile-v2-land-metrics { padding: 20px 18px; }
  .profile-v2-land-metrics > div { min-height: 104px; }
  .profile-v2-land-metrics > div + div { margin-left: 16px; padding-left: 16px; }
  .profile-v2-land-metrics dd strong { font-size: clamp(1.65rem, 8vw, 2rem); }
  .profile-v2-land-records { padding: 0 18px; }
  .profile-v2-land-records > div { grid-template-columns: 1fr; gap: 6px; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-v2-facility-grid article { transition: none; }
  .profile-v2-facility-grid article:hover { transform: none; }
}
