/* =========================================================
   Fonts and design tokens
   - Font lokal ada di folder /font.
   - Warna utama website diatur lewat CSS variables di :root.
   ========================================================= */
@font-face {
  font-family: "Comic Neue";
  src: url("font/ComicNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue Bold";
  src: url("font/ComicNeue-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kufam";
  src: url("font/Kufam-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #154f43;
  --green-700: #1f8469;
  --green-100: #e6f4e9;
  --sky-600: #3286c7;
  --sky-100: #e6f4fb;
  --sun-500: #f6c85f;
  --coral-500: #e9765e;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --ink: #24332f;
  --muted: #65746f;
  --line: #e8dfc9;
  --shadow: 0 18px 46px rgba(36, 51, 47, .12);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(246, 200, 95, .38);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(246, 200, 95, 0);
  }
}

@keyframes icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes icon-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
}

@keyframes loading-sheen {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(110%);
  }
}

* {
  box-sizing: border-box;
}

/* =========================================================
   Base layout
   - Reset kecil, font dasar, aksesibilitas focus, dan skip link.
   ========================================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Comic Neue", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
}

body.is-loading {
  overflow: hidden;
}

/* =========================================================
   Full page loading screen
   - Loader pertama saat website baru dibuka.
   - Class .is-hidden ditambah lewat JavaScript setelah halaman siap.
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .96), rgba(230, 244, 233, .96)),
    repeating-linear-gradient(135deg, #f8f2df 0 18px, #fff8e8 18px 36px);
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-card {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  padding: 34px 24px;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}

.page-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 78px;
  animation: icon-spin 2s linear infinite;
}

.page-loader-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.page-loader-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(246, 200, 95, .34), transparent);
  animation: loading-sheen 1.1s ease-in-out infinite;
}

.page-loader-card strong {
  color: var(--green-900);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.22rem, 3vw, 1.55rem);
}

.page-loader-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--green-900);
  border-radius: 8px;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  transition: transform .2s ease;
}

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

/* =========================================================
   Header and navigation
   - Navbar desktop dan mobile menu.
   - .is-menu-open dikontrol dari scripts/app.js.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 247, .88);
  border-bottom: 1px solid rgba(232, 223, 201, .72);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.brand-mark svg {
  width: 44px;
  height: 44px;
}

.brand-visual {
  background-image: url("assets/logoRaudhatul-Athfal-Al-Muin.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
  color: #41514c;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--sun-500);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.footer-links a:hover {
  color: var(--green-700);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green-900);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

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

.arabic-nav {
  color: var(--green-900);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-cta,
.btn,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-family: "Kufam", "Comic Neue", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.header-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--green-700);
}

.header-cta:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 79, 67, .18);
}

/* =========================================================
   Hero
   - Background utama pakai assets/Slide.webp.
   - Counter angka di hero dianimasikan dari JavaScript.
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/Slide.webp");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
  z-index: -2;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(21, 79, 67, .92) 0%, rgba(21, 79, 67, .75) 38%, rgba(21, 79, 67, .18) 72%),
    linear-gradient(0deg, rgba(21, 79, 67, .18), rgba(21, 79, 67, .02));
  z-index: -1;
}

.hero-content {
  width: min(680px, calc(100% - 36px));
  padding: clamp(64px, 9vw, 112px) 0 64px;
  margin-left: clamp(18px, 5vw, 72px);
  color: #fff;
}

.hero-content > * {
  opacity: 0;
  animation: fade-up .72s ease forwards;
}

.hero-content > :nth-child(1) {
  animation-delay: .08s;
}

.hero-content > :nth-child(2) {
  animation-delay: .18s;
}

.hero-content > :nth-child(3) {
  animation-delay: .3s;
}

.hero-content > :nth-child(4) {
  animation-delay: .42s;
}

.hero-content > :nth-child(5) {
  animation-delay: .54s;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-500);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe08b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 10vw, 6.8rem);
  line-height: .95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.04rem, 2.3vw, 1.3rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  min-width: 170px;
  padding: 0 20px;
  font-size: 1rem;
}

.btn svg {
  width: 21px;
  height: 21px;
}

.btn.primary {
  color: var(--green-900);
  background: var(--sun-500);
  animation: soft-pulse 2.8s ease-in-out infinite;
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .14);
}

.btn,
.header-cta,
.contact-form button,
.program-card,
.intro-grid article,
.info-grid article {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover,
.program-card:hover,
.intro-grid article:hover,
.info-grid article:hover {
  transform: translateY(-3px);
}

.program-card:hover,
.intro-grid article:hover,
.info-grid article:hover {
  border-color: rgba(31, 132, 105, .34);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.hero-stats span {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .84);
  font-weight: 800;
  transform-origin: center;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.65rem;
}

/* =========================================================
   Intro and program sections
   - Card nilai sekolah, program belajar, dan informasi kelas.
   ========================================================= */
.intro-band {
  padding: clamp(38px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid article,
.program-card,
.info-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intro-grid h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.intro-grid p,
.program-card p,
.info-grid p,
.activity-content p,
.registration p,
.site-footer p {
  color: var(--muted);
  line-height: 1.68;
}

.icon-pill {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  animation: icon-bob 3.4s ease-in-out infinite;
}

.intro-grid article:nth-child(2) .icon-pill {
  animation-delay: .35s;
}

.intro-grid article:nth-child(3) .icon-pill {
  animation-delay: .7s;
}

.icon-pill svg {
  width: 25px;
  height: 25px;
}

.icon-pill.green {
  color: var(--green-700);
  background: var(--green-100);
}

.icon-pill.blue {
  color: var(--sky-600);
  background: var(--sky-100);
}

.icon-pill.coral {
  color: var(--coral-500);
  background: #ffebe6;
}

.section,
.activity-section,
.registration {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.section-copy {
  position: sticky;
  top: 104px;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.program-card {
  min-height: 210px;
  box-shadow: 0 16px 32px rgba(36, 51, 47, .06);
}

.program-card:nth-child(2),
.info-grid article:nth-child(2) {
  transition-delay: .08s;
}

.program-card:nth-child(3),
.info-grid article:nth-child(3) {
  transition-delay: .16s;
}

.program-card:nth-child(4) {
  transition-delay: .24s;
}

.program-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--green-900);
  background: var(--sun-500);
  border-radius: 8px;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

/* =========================================================
   Guru and staff
   - Foto staff dikunci oleh frame .staff-photo.
   - object-fit: cover menjaga foto tetap memenuhi card.
   ========================================================= */
.staff-section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ecf7f1 0%, #fffdf7 100%);
}

.staff-heading {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.staff-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.staff-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 132, 105, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(36, 51, 47, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 132, 105, .42);
  box-shadow: var(--shadow);
}

.staff-card-featured {
  display: grid;
  min-height: 100%;
  background: var(--green-900);
  color: #fff;
}

.staff-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  background:
    radial-gradient(circle at 24% 18%, rgba(246, 200, 95, .6), transparent 30%),
    linear-gradient(135deg, rgba(31, 132, 105, .82), rgba(50, 134, 199, .34)),
    repeating-linear-gradient(135deg, #e6f4e9 0 16px, #fff8e8 16px 32px);
}

.staff-card-featured .staff-photo {
  min-height: 360px;
}

.staff-photo.principal {
  background:
    radial-gradient(circle at 24% 20%, rgba(246, 200, 95, .72), transparent 30%),
    linear-gradient(135deg, rgba(21, 79, 67, .9), rgba(31, 132, 105, .46)),
    repeating-linear-gradient(135deg, #e6f4e9 0 16px, #fff8e8 16px 32px);
}

.staff-photo.teacher-one {
  background:
    radial-gradient(circle at 76% 18%, rgba(246, 200, 95, .62), transparent 30%),
    linear-gradient(135deg, rgba(50, 134, 199, .64), rgba(31, 132, 105, .5)),
    repeating-linear-gradient(135deg, #e6f4fb 0 16px, #fff8e8 16px 32px);
}

.staff-photo.teacher-two {
  background:
    radial-gradient(circle at 22% 26%, rgba(233, 118, 94, .5), transparent 32%),
    linear-gradient(135deg, rgba(31, 132, 105, .7), rgba(246, 200, 95, .36)),
    repeating-linear-gradient(135deg, #e6f4e9 0 16px, #fff8e8 16px 32px);
}

.staff-photo.teacher-three {
  background:
    radial-gradient(circle at 72% 24%, rgba(246, 200, 95, .58), transparent 31%),
    linear-gradient(135deg, rgba(21, 79, 67, .74), rgba(233, 118, 94, .34)),
    repeating-linear-gradient(135deg, #e6f4e9 0 16px, #fff8e8 16px 32px);
}

.staff-photo.teacher-four {
  background:
    radial-gradient(circle at 28% 22%, rgba(50, 134, 199, .52), transparent 31%),
    linear-gradient(135deg, rgba(31, 132, 105, .72), rgba(246, 200, 95, .38)),
    repeating-linear-gradient(135deg, #e6f4fb 0 16px, #fff8e8 16px 32px);
}

.staff-photo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, .78);
  border-radius: 8px;
  background: rgba(21, 79, 67, .42);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.staff-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.staff-card:hover .staff-photo img {
  transform: scale(1.1);
}

.staff-content {
  padding: 22px;
}

.staff-card-featured .staff-content {
  padding: 26px;
}

.staff-role {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: var(--green-900);
  background: var(--sun-500);
  border-radius: 8px;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .78rem;
  font-weight: 800;
}

.staff-card:not(.staff-card-featured) .staff-role {
  color: var(--green-700);
  background: var(--green-100);
}

.staff-content h3 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
}

.staff-content p {
  color: var(--muted);
  line-height: 1.65;
}

.staff-card-featured .staff-content p {
  color: rgba(255, 255, 255, .78);
}

.staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.staff-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--green-900);
  border: 1px solid rgba(31, 132, 105, .18);
  border-radius: 8px;
  background: #fff8e8;
  font-weight: 800;
}

.staff-card-featured .staff-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
}

.staff-card:nth-child(2),
.staff-grid .staff-card:nth-child(2) {
  transition-delay: .08s;
}

.staff-card:nth-child(3),
.staff-grid .staff-card:nth-child(3) {
  transition-delay: .16s;
}

.staff-grid .staff-card:nth-child(4) {
  transition-delay: .24s;
}

/* =========================================================
   Daily activity timeline
   - Jadwal kegiatan harian dengan badge jam di sebelah kiri.
   ========================================================= */
.activity-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background: #ecf7f1;
}

.activity-visual {
  min-height: 440px;
  border-radius: 8px;
  background-image: url("assets/kegiatan-kanak-kanak.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================================================
   Gallery
   - Konten galeri dirender dari scripts/app.js.
   - Frame foto dikunci agar upload guru tidak mengubah layout.
   ========================================================= */
.photo-section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.photo-heading {
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}

.photo-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.content-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 36px 22px;
  border: 1px dashed rgba(31, 132, 105, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(236, 247, 241, .86)),
    repeating-linear-gradient(135deg, #f8f2df 0 16px, #fff8e8 16px 32px);
  color: var(--green-900);
  text-align: center;
}

.photo-layout .content-state,
.achievement-grid .content-state {
  grid-column: 1 / -1;
}

.content-state span {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 132, 105, .92), rgba(50, 134, 199, .42)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .26) 0 8px, transparent 8px 16px);
}

.content-state .section-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 78px;
  background: transparent;
  animation: icon-spin 2s linear infinite;
}

.section-loader-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.section-loader-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(246, 200, 95, .34), transparent);
  animation: loading-sheen 1.1s ease-in-out infinite;
}

.content-state strong {
  margin-bottom: 8px;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.content-state p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-state-loading span {
  position: relative;
  overflow: hidden;
}

.content-state-loading span::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent);
  animation: loading-sheen 1.15s ease-in-out infinite;
}

.photo-grid {
  display: grid;
  gap: 18px;
  grid-template-rows: repeat(3, 1fr);
}

.photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(36, 51, 47, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.photo-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(246, 200, 95, .22), rgba(50, 134, 199, .14), rgba(31, 132, 105, .14));
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 132, 105, .34);
  box-shadow: var(--shadow);
}

.photo-card:hover::before {
  opacity: 1;
}

.photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: 430px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 79, 67, .78), rgba(31, 132, 105, .4)),
    repeating-linear-gradient(135deg, #f8f2df 0 16px, #fff8e8 16px 32px);
  color: #fff;
  transition: transform .35s ease, filter .35s ease;
}

.photo-frame.small {
  height: 136px;
}

.photo-card:hover .photo-frame {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.photo-frame span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px dashed rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(21, 79, 67, .38);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   Achievement cards
   - Konten prestasi dirender dari scripts/app.js.
   - Maksimal 3 kartu terbaru.
   ========================================================= */
.achievement-section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: #ecf7f1;
}

.achievement-heading {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.achievement-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.achievement-card {
  overflow: hidden;
  border: 1px solid rgba(31, 132, 105, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(36, 51, 47, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transition-delay: var(--delay, 0ms);
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 132, 105, .38);
  box-shadow: var(--shadow);
}

.achievement-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(246, 200, 95, .72), transparent 30%),
    linear-gradient(135deg, rgba(21, 79, 67, .88), rgba(50, 134, 199, .36)),
    repeating-linear-gradient(135deg, #e6f4e9 0 16px, #fff8e8 16px 32px);
}

.achievement-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.achievement-media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px dashed rgba(255, 255, 255, .78);
  border-radius: 8px;
  background: rgba(21, 79, 67, .42);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.achievement-content {
  padding: 22px;
}

.achievement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.achievement-meta span,
.achievement-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 900;
}

.achievement-meta span {
  color: var(--green-700);
  background: var(--green-100);
}

.achievement-meta time {
  color: var(--green-900);
  background: #ffe08b;
  font-size: .92rem;
  box-shadow: inset 0 0 0 1px rgba(21, 79, 67, .08);
}

.achievement-content h3 {
  margin-bottom: 10px;
  font-size: clamp(1.24rem, 2vw, 1.62rem);
}

.achievement-content strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-700);
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.achievement-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.photo-card figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 98px;
  padding: 14px 18px 16px;
  color: var(--green-900);
  font-weight: 900;
}

.photo-card figcaption strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.32;
  -webkit-box-orient: vertical;
}

.photo-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card:nth-child(2),
.photo-grid .photo-card:nth-child(2) {
  transition-delay: .08s;
}

.photo-card:nth-child(3),
.photo-grid .photo-card:nth-child(3) {
  transition-delay: .16s;
}

/* =========================================================
   Timeline, class info, and registration
   - Timeline kegiatan, informasi kelas, dan form WhatsApp.
   ========================================================= */
.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(31, 132, 105, .22);
  transition: transform .2s ease, border-color .2s ease;
}

.timeline div:hover {
  transform: translateX(6px);
  border-color: rgba(31, 132, 105, .44);
}

.timeline time {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  color: #fff;
  background: var(--green-700);
  border-radius: 8px;
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.timeline strong {
  padding-top: 4px;
  font-size: 1.08rem;
}

.timeline p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.registration {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  color: #fff;
  background: var(--green-900);
}

.registration .eyebrow {
  color: var(--sun-500);
}

.registration p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.08rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--sun-500);
  box-shadow: 0 0 0 4px rgba(246, 200, 95, .26);
  outline: 0;
}

.contact-form input:invalid:not(:placeholder-shown) {
  border-color: #f29a8a;
}

.contact-form button {
  min-height: 50px;
  margin-top: 4px;
  color: var(--green-900);
  background: var(--sun-500);
  font: inherit;
  font-weight: 900;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

/* =========================================================
   Floating actions and footer
   - Tombol WhatsApp kiri bawah dan tombol back-to-top kanan bawah.
   ========================================================= */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green-900);
  border: 1px solid rgba(21, 79, 67, .12);
  border-radius: 8px;
  background: var(--sun-500);
  box-shadow: 0 16px 32px rgba(36, 51, 47, .2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.whatsapp-float {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 54px;
  background: #25d366;
  box-shadow: 0 16px 32px rgba(37, 211, 102, .34);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(37, 211, 102, .50);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #132d28;
  color: #fff;
}

.site-footer strong {
  font-family: "Kufam", "Comic Neue Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

/* =========================================================
   Responsive layout
   - Breakpoint 900px untuk tablet.
   - Breakpoint 620px untuk mobile.
   ========================================================= */
@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .brand {
    min-width: auto;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .header-actions {
    order: 2;
  }

  .nav-links {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    transition: max-height .25s ease, padding .25s ease;
  }

  .site-header.is-menu-open .nav-links {
    max-height: 240px;
    padding-top: 8px;
  }

  .nav-links a {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.is-active {
    color: var(--green-900);
    background: var(--green-100);
    border-color: rgba(31, 132, 105, .24);
  }

  .hero {
    min-height: auto;
  }

  .hero-scrim {
    background: linear-gradient(90deg, rgba(21, 79, 67, .95), rgba(21, 79, 67, .7));
  }

  .hero-content {
    width: min(680px, calc(100% - 36px));
    padding: 58px 0;
  }

  .intro-grid,
  .split,
  .staff-layout,
  .activity-section,
  .photo-layout,
  .achievement-grid,
  .info-grid,
  .registration {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .activity-section {
    gap: 30px;
  }

  .staff-card-featured .staff-photo {
    min-height: 300px;
  }

  .activity-visual {
    min-height: 300px;
  }

  .photo-frame {
    height: 330px;
  }

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

  .photo-frame.small {
    height: 150px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding: 10px 16px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .header-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .arabic-nav {
    min-width: 0;
    font-size: clamp(.9rem, 4vw, 1.06rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    margin-left: 18px;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

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

  .staff-photo,
  .staff-card-featured .staff-photo {
    min-height: 230px;
  }

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

  .photo-frame,
  .photo-frame.small {
    height: 220px;
  }

  .achievement-media,
  .achievement-media img {
    height: 210px;
  }

  .site-header.is-menu-open .nav-links {
    max-height: 360px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
  }

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

  .timeline div {
    grid-template-columns: 1fr;
  }

  .timeline time {
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-content > *,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
