/* =====================================================================
   MULIA EDUKASI MANDIRI — public stylesheet
   Palette and type are derived from the MEM brand material.
   ===================================================================== */

:root {
  /* Colour */
  --navy:        #1b2a63;
  --navy-deep:   #0e1530;
  --navy-soft:   #2b3a80;
  --cyan:        #00a6e0;
  --cyan-deep:   #0083b5;
  --cyan-wash:   #e7f5fc;
  --yellow:      #ffc20e;
  --yellow-wash: #fff5d6;
  --paper:       #f7f9fc;
  --white:       #ffffff;
  --ink:         #16203d;
  --ink-muted:   #5b678a;
  --line:        #dde4f0;

  /* Type */
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* Scale — 1.25 minor third, fluid between 360px and 1180px */
  --fs-xs:  clamp(0.72rem, 0.68rem + 0.18vw, 0.8125rem);
  --fs-sm:  clamp(0.82rem, 0.77rem + 0.22vw, 0.9375rem);
  --fs-base: clamp(0.92rem, 0.86rem + 0.28vw, 1.0625rem);
  --fs-md:  clamp(1.02rem, 0.93rem + 0.40vw, 1.25rem);
  --fs-lg:  clamp(1.18rem, 1.02rem + 0.70vw, 1.5625rem);
  --fs-xl:  clamp(1.45rem, 1.20rem + 1.10vw, 2rem);
  --fs-2xl: clamp(1.70rem, 1.32rem + 1.65vw, 2.5rem);
  --fs-3xl: clamp(2.05rem, 1.50rem + 2.40vw, 3.25rem);

  /* Layout */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px -28px rgba(14, 21, 48, .45);
  --shadow-lift: 0 26px 60px -30px rgba(14, 21, 48, .55);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: var(--fs-2xl); overflow-wrap: break-word; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 1.1em; max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------- layout */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-deep); color: #d9e0f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-muted); font-size: var(--fs-md); margin-bottom: 0; }
.section--navy .section-head p { color: #a9b6dc; }

.section-head--split {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  align-items: flex-end; justify-content: space-between;
  max-width: none;
}
.section-head--split > div { max-width: 62ch; }

/* --------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--yellow); color: var(--navy-deep); }
.btn--primary:hover { background: #ffd450; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }

.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--wa { background: #25d366; color: #05331a; }
.btn--wa:hover { background: #3ee07b; }

.btn--sm { padding: .55rem 1.1rem; font-size: var(--fs-xs); }

/* --------------------------------------------------------------- header */

/* Pemilih bahasa di dalam navbar. Kontras dibuat jelas agar bahasa aktif
   terbaca tanpa harus mengandalkan warna saja. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: .4rem;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  padding: .25rem .6rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.2;
  color: var(--ink-muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* backdrop-filter membuat containing block baru, yang merusak position:fixed
   pada drawer navigasi mobile. Jadi efek ini hanya dipakai di desktop. */
@media (min-width: 961px) {
  .masthead {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
  }
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__logo {
  height: 46px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.brand__logo--footer { height: 42px; }

@media (max-width: 720px) {
  .brand__logo { height: 36px; max-width: 190px; }
  .brand__logo--footer { height: 34px; }
}

.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  color: var(--navy); line-height: 1.15; display: block;
}
.brand__tag { font-size: .72rem; color: var(--ink-muted); line-height: 1.3; display: block; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink); padding: .5rem .6rem; border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--cyan-wash); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--cyan-deep); font-weight: 700; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--navy);
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 5rem 1.5rem 2rem; gap: .25rem;
    transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -20px 0 60px -30px rgba(14,21,48,.6);
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { padding: .8rem .75rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav .lang-switch {
    margin: 1rem 0 0;
    align-self: flex-start;
  }
  .nav .lang-switch a { padding: .4rem .9rem; font-size: .85rem; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(14,21,48,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 39;
  }
  .nav-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,21,48,.96) 18%, rgba(14,21,48,.72) 52%, rgba(0,131,181,.45) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 11vw, 7.5rem);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: .5em; text-wrap: balance; }
.hero__lead { color: #c3cff0; font-size: var(--fs-md); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero__accred {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: var(--fs-xs); color: #9fb0dd; max-width: 48ch;
}
.hero__accred strong { color: var(--yellow); font-weight: 600; }

/* Boarding-pass style stat panel */
.pass {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.pass__head {
  background: var(--cyan); color: #fff;
  padding: 1.1rem 1.5rem;
  font-family: var(--display); font-weight: 700; font-size: var(--fs-sm);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.pass__body { padding: .5rem 1.5rem 1.5rem; }
.pass__row {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px dashed var(--line);
}
.pass__row:last-child { border-bottom: 0; }
.pass__num {
  font-family: var(--display); font-weight: 800;
  font-size: var(--fs-xl); color: var(--navy);
  line-height: 1; min-width: 4.2rem;
}
.pass__label { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ----------------------------------------------------------- card grids */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Programme card */
.program {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
}
.program--featured { border-color: var(--cyan); border-width: 2px; }

.program__badge {
  position: absolute; top: -.75rem; left: 1.4rem;
  background: var(--yellow); color: var(--navy-deep);
  font-family: var(--display); font-weight: 700; font-size: .72rem;
  padding: .25rem .7rem; border-radius: 999px;
}
.program__icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--cyan-wash); color: var(--cyan-deep);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.program__icon svg { width: 22px; height: 22px; }
.program h3 { margin-bottom: .3em; }
.program__tagline {
  font-size: var(--fs-sm); color: var(--cyan-deep); font-weight: 600;
  margin-bottom: .75rem;
}
.program p { font-size: var(--fs-sm); color: var(--ink-muted); }
.program__foot {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-muted);
}
.program__link { font-family: var(--display); font-weight: 600; color: var(--navy); }

/* --------------------------------------------------- about / difference */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-block { margin-bottom: 2rem; }
.about-block:last-child { margin-bottom: 0; }
.about-block h3 { font-size: var(--fs-md); margin-bottom: .4em; }
.about-block p { color: var(--ink-muted); margin-bottom: 0; }

.difference {
  background: var(--navy); color: #cfd8f2;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.difference h3 { color: #fff; font-size: var(--fs-md); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); }
.check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .22rem;
  background: var(--cyan);
  clip-path: polygon(41% 76%, 87% 21%, 95% 32%, 42% 93%, 5% 55%, 14% 45%);
}

.value-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.value-chips span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #e3e9fb;
  padding: .35rem .8rem; border-radius: 999px; font-size: var(--fs-xs);
}

/* ------------------------------------------------------- supported by */

/* Dua slot gambar pendukung di halaman Tentang Kami. Tiap slot punya
   tinggi tetap dengan object-fit: contain, sehingga logo melebar maupun
   hampir persegi sama-sama muat tanpa terpotong atau melar. */
.supported { margin-top: 1.5rem; }

.supported__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 1rem;
}

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

.supported__item {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.supported__item img {
  max-width: 100%;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .supported__grid { gap: .6rem; }
  .supported__item { min-height: 84px; padding: .7rem; }
  .supported__item img { max-height: 56px; }
}

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; display: grid; gap: 2rem; }
.timeline::before {
  content: ""; position: absolute;
  left: 27px; top: .6rem; bottom: .6rem; width: 2px;
  background-image: linear-gradient(var(--cyan) 55%, transparent 0);
  background-size: 2px 14px;
}
.timeline__item { position: relative; padding-left: 4.75rem; }
.timeline__year {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--cyan);
  font-family: var(--display); font-weight: 800; font-size: .88rem;
}
.section--navy .timeline__year { background: var(--navy-deep); color: #fff; }
.timeline__item h3 { font-size: var(--fs-md); margin-bottom: .3em; }
.timeline__item p { margin-bottom: 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.section--navy .timeline__item p { color: #a9b6dc; }

@media (max-width: 560px) {
  .timeline::before { left: 19px; }
  .timeline__item { padding-left: 3.5rem; }
  .timeline__year { width: 40px; height: 40px; font-size: .75rem; }
}

/* --------------------------------------------------------- destinations */
.destination {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem 1.25rem;
  display: flex; flex-direction: column; gap: .35rem;
}
/* Bendera destinasi diunggah lewat admin. object-fit: contain menjaga
   rasio asli berapa pun ukuran berkasnya, dengan tinggi kotak tetap
   supaya seluruh kartu sejajar. */
.destination__flag {
  width: auto;
  height: 28px;
  max-width: 48px;
  object-fit: contain;
  border-radius: 3px;
  margin-bottom: .45rem;
}

/* Penanda sementara selama bendera belum diunggah */
.destination__code {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 28px;
  margin-bottom: .45rem;
  background: var(--cyan-wash);
  border: 1px solid #bfe4f5;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--cyan-deep);
}
.destination__name {
  font-family: var(--display); font-weight: 700; color: var(--navy);
  font-size: var(--fs-md);
}
.destination__note { font-size: var(--fs-xs); color: var(--ink-muted); }
.destination__new {
  align-self: flex-start; margin-top: .5rem;
  background: var(--yellow-wash); color: #8a6200;
  border: 1px solid #f0d89a;
  padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
}

/* ------------------------------------------------------------- services */
.service {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service__icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--yellow-wash); color: #8a6200;
  display: grid; place-items: center;
}
.service__icon svg { width: 20px; height: 20px; }
.service h3 { font-size: var(--fs-base); margin-bottom: .2em; }
.service p { margin-bottom: 0; font-size: var(--fs-sm); color: var(--ink-muted); }

/* ------------------------------------------------------------- partners */

/* Grid logo partner.
   Setiap kartu punya tinggi tetap, dan logo dipaskan dengan object-fit:
   contain sehingga rasio aslinya terjaga dan tidak pernah terpotong,
   berapa pun ukuran berkas yang diunggah admin. */
.partner-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 108px;
  padding: 1rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.partner-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.partner-card img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Kartu tanpa logo tetap terbaca sebagai nama institusi */
.partner-card--text { justify-content: center; }
.partner-card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: .86rem;
  line-height: 1.3;
  color: var(--navy);
}
.partner-card__country { font-size: .72rem; color: var(--ink-muted); }

.partner-grid--accredit { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.partner-grid--accredit .partner-card { min-height: 124px; }
.partner-grid--accredit .partner-card img { max-height: 76px; }

@media (max-width: 720px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .partner-card { min-height: 88px; padding: .75rem .6rem; }
  .partner-card img { max-height: 48px; }
  .partner-card__name { font-size: .78rem; }
}

.partner-marquee { overflow: hidden; }
.partner-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.partner-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1rem; font-size: var(--fs-sm); color: var(--ink);
}
.partner-list li span { display: block; font-size: var(--fs-xs); color: var(--ink-muted); }

/* -------------------------------------------------------------- gallery */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(14,21,48,.88));
  color: #fff; padding: 2.5rem .9rem .8rem; font-size: var(--fs-xs);
}

/* -------------------------------------------------- galeri: video item */

.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }

/* Tombol putar membungkus thumbnail. Dibuat dari <button> agar bisa
   diakses lewat keyboard, dengan gaya tombol bawaan dihapus. */
.gallery-play {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  line-height: 0;
}
.gallery-play img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

.gallery-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 48, .28);
  transition: background .18s ease;
}
.gallery-play:hover::after,
.gallery-play:focus-visible::after { background: rgba(14, 21, 48, .12); }

.gallery-play__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -12px rgba(14, 21, 48, .7);
  transition: transform .18s ease, background .18s ease;
}
.gallery-play__icon svg { width: 26px; height: 26px; margin-left: 3px; }

.gallery-play:hover .gallery-play__icon,
.gallery-play:focus-visible .gallery-play__icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

/* -------------------------------------------------- pemutar video modal */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, .88);
}

.video-modal__dialog {
  position: relative;
  width: min(100%, 980px);
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}

.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
}
.video-modal__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-modal__close {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.video-modal__close:hover { background: rgba(255, 255, 255, .24); }

/* Rasio 16:9 dijaga lewat aspect-ratio, bukan padding-hack */
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 720px) {
  .gallery-play__icon { width: 44px; height: 44px; }
  .gallery-play__icon svg { width: 20px; height: 20px; }
  .video-modal { padding: .75rem; }
  .video-modal__dialog { border-radius: 14px; }
}

/* ----------------------------------------------------------------- post */
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: .5rem; }
.post-card h3 { font-size: var(--fs-md); margin-bottom: .4em; }
.post-card p { font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: 1rem; }
.post-card__link { margin-top: auto; font-family: var(--display); font-weight: 600; }

/* -------------------------------------------------------- isi artikel */

/* Gambar sampul: dibatasi tingginya supaya kolase tinggi tidak
   mendorong seluruh teks jauh ke bawah layar. */
.article-cover {
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

/* Badan artikel. Panjang baris dijaga di bawah 70 karakter dan jarak
   antar-elemen dibuat longgar agar nyaman dibaca panjang-panjang. */
.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }

.article-body > * { max-width: 68ch; }
.article-body > hr,
.article-body > figure { max-width: none; }

.article-body p { margin: 0 0 1.25em; }

.article-body h2 {
  font-size: var(--fs-xl);
  margin: 2.25rem 0 .7em;
  line-height: 1.2;
}
.article-body h3 {
  font-size: var(--fs-lg);
  margin: 1.9rem 0 .6em;
  line-height: 1.25;
}
.article-body h4 {
  font-size: var(--fs-md);
  margin: 1.6rem 0 .5em;
}
.article-body > h2:first-child,
.article-body > h3:first-child,
.article-body > h4:first-child { margin-top: 0; }

.article-body ul,
.article-body ol { margin: 0 0 1.25em; padding-left: 1.3rem; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--cyan-deep); }

.article-body strong { color: var(--navy); font-weight: 700; }

.article-body a { color: var(--cyan-deep); text-decoration: underline; text-underline-offset: 2px; }

.article-body blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--cyan);
  color: var(--ink-muted);
  font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .9em;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0;
}

.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }

@media (max-width: 720px) {
  .article-cover { margin-bottom: 1.5rem; }
  .article-cover img { max-height: 260px; }
  .article-body { font-size: 1rem; line-height: 1.7; }
  .article-body h2 { margin-top: 1.75rem; }
  .article-body h3 { margin-top: 1.5rem; }
}

/* ----------------------------------------------------------------- form */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.field label span { font-weight: 400; color: var(--ink-muted); }

.field input, .field select, .field textarea {
  font-family: var(--body); font-size: var(--fs-sm); color: var(--ink);
  background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); outline: 2px solid rgba(0,166,224,.25); outline-offset: 0;
}
.field__error { font-size: var(--fs-xs); color: #b3261e; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #b3261e; }

.alert {
  border-radius: var(--radius); padding: 1rem 1.15rem;
  font-size: var(--fs-sm); margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.alert--success { background: #e6f6ec; border-color: #9ed6b3; color: #1c5b34; }
.alert--error   { background: #fdeceb; border-color: #eba9a4; color: #8c2018; }

/* ------------------------------------------------------------------ cta */
.cta-band {
  background: var(--cyan);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e2f6ff; margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy-deep); color: #a9b6dc;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

.site-footer h4 {
  color: #fff; font-size: var(--fs-sm); margin-bottom: 1rem;
  font-weight: 700;
}
.site-footer a { color: #c3cdea; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer p { color: #a9b6dc; }

.footer-brand { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand .brand__mark { background: var(--cyan); }
.footer-brand .brand__logo {
  height: 46px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.brand__logo--footer { height: 42px; }

@media (max-width: 720px) {
  .brand__logo { height: 36px; max-width: 190px; }
  .brand__logo--footer { height: 34px; }
}

.brand__name { color: #fff; }
.footer-brand .brand__tag { color: #94a3ce; }

.footer-credit { color: #8fa0cf; }
.footer-credit strong { color: #cdd7f3; font-weight: 600; }

.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; font-size: var(--fs-xs);
}

/* --------------------------------------------------------- wa float btn */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(37,211,102,.7);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #1fbe59; text-decoration: none; }

/* ---------------------------------------------------------- page header */
.page-head {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #bcc8ec; margin-bottom: 0; }
.crumbs { font-size: var(--fs-xs); color: #93a2d0; margin-bottom: 1rem; }
.crumbs a { color: #cdd7f3; }

/* ------------------------------------------------------------ utilities */
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* =====================================================================
   RESPONSIVE — penyesuaian tablet & ponsel
   Blok ini sengaja diletakkan paling akhir agar menimpa aturan di atas.
   ===================================================================== */

/* Jaring pengaman: tidak ada elemen yang boleh memicu scroll horizontal. */
html, body { max-width: 100%; overflow-x: hidden; }
.shell, .section, .grid, .form-grid, .footer-grid, .about-grid { min-width: 0; }
.grid > *, .form-grid > *, .about-grid > *, .footer-grid > * { min-width: 0; }
pre, code, table { max-width: 100%; overflow-x: auto; }

/* ---------------------------------------------------- tablet (≤ 900px) */
@media (max-width: 900px) {
  :root {
    --fs-3xl: 2.4rem;
    --fs-2xl: 1.95rem;
    --fs-xl:  1.7rem;
    --fs-lg:  1.35rem;
    --gutter: 1.15rem;
  }

  .section { padding-block: clamp(2.5rem, 7vw, 4rem); }
  .section-head { margin-bottom: 1.75rem; }
  .section-head p { font-size: var(--fs-base); }

  .hero__inner { padding-block: clamp(2.5rem, 9vw, 4rem); gap: 2rem; }
  .hero__lead { font-size: var(--fs-base); }
}

/* ------------------------------------------------------ ponsel (≤ 700px) */
@media (max-width: 700px) {
  :root {
    --fs-3xl: 2.05rem;
    --fs-2xl: 1.65rem;
    --fs-xl:  1.4rem;
    --fs-lg:  1.18rem;
    --fs-md:  1.02rem;
    --fs-base: 0.95rem;
    --fs-sm:  0.875rem;
    --fs-xs:  0.78rem;
    --radius: 12px;
    --radius-lg: 16px;
  }

  body { line-height: 1.6; }

  /* Dua kolom di ponsel, bukan satu. */
  .grid { gap: .75rem; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Kartu program dipadatkan agar dua kolom tetap terbaca. */
  .program { padding: 1.1rem .9rem 1rem; }
  .program h3 { font-size: 1.02rem; line-height: 1.2; }
  .program__tagline { font-size: .8rem; margin-bottom: .5rem; }
  .program p { font-size: .82rem; line-height: 1.5; }
  .program__icon { width: 34px; height: 34px; border-radius: 9px; margin-bottom: .7rem; }
  .program__icon svg { width: 18px; height: 18px; }
  .program__badge { font-size: .64rem; padding: .18rem .55rem; left: .8rem; top: -.6rem; }
  .program__foot {
    flex-direction: column; align-items: flex-start; gap: .4rem;
    padding-top: .8rem; font-size: .72rem;
  }

  /* Destinasi, galeri, artikel ikut dua kolom. */
  .destination { padding: .85rem .8rem; }
  .destination__flag { height: 24px; max-width: 40px; }
  .destination__name { font-size: .95rem; }
  .destination__note { font-size: .72rem; }
  .destination__new { font-size: .64rem; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .gallery-grid figcaption { padding: 1.6rem .6rem .6rem; font-size: .7rem; }

  .post-card__body { padding: .9rem; }
  .post-card h3 { font-size: 1rem; }
  .post-card p { font-size: .82rem; }
  .post-card__meta { font-size: .7rem; }

  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .partner-list li { padding: .6rem .7rem; font-size: .8rem; }

  /* Hero dan panel statistik. */
  .hero__media img { opacity: .28; }
  .hero__actions { gap: .5rem; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__accred { margin-top: 1.75rem; padding-top: 1.1rem; font-size: .74rem; }

  .pass__head { padding: .85rem 1rem; font-size: .82rem; }
  .pass__body { padding: .25rem 1rem 1rem; }
  .pass__row { padding-block: .8rem; gap: .75rem; }
  .pass__num { font-size: 1.5rem; min-width: 3.4rem; }
  .pass__label { font-size: .8rem; }

  /* Header. */
  .masthead__inner { padding-block: .65rem; gap: .75rem; }
  .brand__mark { width: 38px; height: 38px; font-size: .88rem; border-radius: 10px; }
  .brand__logo {
  height: 46px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.brand__logo--footer { height: 42px; }

@media (max-width: 720px) {
  .brand__logo { height: 36px; max-width: 190px; }
  .brand__logo--footer { height: 34px; }
}

.brand__name { font-size: .92rem; }
  .brand__tag { font-size: .66rem; }

  /* Blok lain. */
  .difference { padding: 1.35rem 1.15rem; }
  .cta-band { padding: 1.5rem 1.25rem; gap: 1.1rem; }
  .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }

  .service { padding: 1rem 0; gap: .8rem; }
  .service__icon { width: 34px; height: 34px; }
  .service__icon svg { width: 17px; height: 17px; }

  .page-head { padding-block: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .footer-credit { color: #8fa0cf; }
.footer-credit strong { color: #cdd7f3; font-weight: 600; }

.footer-legal { margin-top: 1.75rem; padding-top: 1.1rem; }

  .btn { padding: .65rem 1.1rem; font-size: .84rem; }
  .btn--sm { padding: .45rem .85rem; font-size: .74rem; }

  .wa-float { width: 48px; height: 48px; right: .8rem; bottom: .8rem; }
  .wa-float svg { width: 24px; height: 24px; }

  .form-grid { grid-template-columns: 1fr; gap: .9rem; }
  .field textarea { min-height: 110px; }
}

/* ------------------------------------------- ponsel sempit (≤ 400px) */
@media (max-width: 400px) {
  :root { --gutter: .9rem; }

  .grid--3, .grid--4 { gap: .6rem; }
  .program { padding: .9rem .75rem .85rem; }
  .program h3 { font-size: .95rem; }
  .program p { font-size: .78rem; }

  .brand__tag { display: none; }   /* tagline terlalu panjang di layar sempit */

  .pass__num { font-size: 1.35rem; min-width: 3rem; }
  .partner-list { grid-template-columns: 1fr; }
}

/* =====================================================================
   MOBILE — penyesuaian layar kecil
   Struktur dan desain dipertahankan; hanya skala, kolom, dan jarak
   yang disesuaikan agar proporsional di layar HP.
   ===================================================================== */

/* --- Perbaikan menu mobile ------------------------------------------
   backdrop-filter pada .masthead membuat elemen position:fixed di
   dalamnya terkurung di header, bukan relatif ke viewport. Akibatnya
   panel navigasi muncul sebagai kotak kecil. Filter dimatikan di layar
   kecil agar panel kembali menempel penuh ke tepi layar. */
@media (max-width: 960px) {
  .masthead {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .nav {
    inset: 0 0 0 auto;
    height: 100dvh;
    padding: 1.25rem 1.25rem 2rem;
    gap: 0;
  }

  /* Baris atas panel: ruang untuk tombol tutup */
  .nav::before {
    content: "";
    display: block;
    height: 2.75rem;
    flex: none;
  }

  .nav a { font-size: 1rem; }

  .nav-toggle {
    position: relative;
    z-index: 41;
  }
}

/* --- Tata letak dua kolom di HP -------------------------------------- */
@media (max-width: 720px) {
  :root { --gutter: 1rem; }

  .section { padding-block: 2.5rem; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head--split { gap: 1rem; }

  /* Kartu tetap dua per baris, tidak menumpuk satu kolom */
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .grid--2 { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Kartu program */
  .program { padding: 1.1rem .9rem 1rem; border-radius: 12px; }
  .program--featured { border-width: 1px; }
  .program__badge { left: .8rem; font-size: .62rem; padding: .18rem .5rem; }
  .program__icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: .7rem; }
  .program__icon svg { width: 17px; height: 17px; }
  .program h3 { font-size: 1rem; line-height: 1.2; }
  .program__tagline { font-size: .76rem; margin-bottom: .5rem; }
  .program p {
    font-size: .78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .program__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding-top: .8rem;
    font-size: .7rem;
  }
  .program__link { font-size: .78rem; }

  /* Kartu destinasi */
  .destination { padding: .85rem .8rem; gap: .2rem; border-radius: 12px; }
  .destination__flag { height: 22px; max-width: 38px; margin-bottom: .3rem; }
  .destination__code { width: 32px; height: 22px; font-size: .64rem; margin-bottom: .3rem; }
  .destination__name { font-size: .92rem; }
  .destination__note { font-size: .7rem; }
  .destination__new { font-size: .62rem; padding: .12rem .45rem; }

  /* Kartu artikel */
  .post-card { border-radius: 12px; }
  .post-card__body { padding: .85rem; }
  .post-card__meta { font-size: .68rem; margin-bottom: .35rem; }
  .post-card h3 { font-size: .95rem; line-height: 1.25; }
  .post-card p {
    font-size: .78rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-card__link { font-size: .78rem; }

  /* Galeri */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .gallery-grid figcaption { padding: 1.75rem .6rem .55rem; font-size: .68rem; }

  /* Daftar partner */
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .partner-list li { padding: .6rem .7rem; font-size: .8rem; }
  .partner-list li span { font-size: .68rem; }
}

/* --- Hero ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero__inner { padding-block: 2.75rem 3rem; gap: 2rem; }
  .hero__lead { font-size: var(--fs-base); }
  .hero__actions { gap: .5rem; margin-top: 1.25rem; }
  .hero__accred { margin-top: 1.75rem; padding-top: 1.1rem; }

  .pass__head { padding: .8rem 1rem; }
  .pass__body { padding: .25rem 1rem 1rem; }
  .pass__row { padding-block: .7rem; gap: .75rem; }
  .pass__num { font-size: 1.6rem; min-width: 3.4rem; }
  .pass__label { font-size: .8rem; }
}

/* --- Tombol, header, footer ------------------------------------------ */
@media (max-width: 720px) {
  .btn { padding: .65rem 1.15rem; }
  .btn--sm { padding: .45rem .9rem; }


  .brand__mark { width: 38px; height: 38px; font-size: .88rem; border-radius: 10px; }
  .brand__logo {
  height: 46px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.brand__logo--footer { height: 42px; }

@media (max-width: 720px) {
  .brand__logo { height: 36px; max-width: 190px; }
  .brand__logo--footer { height: 34px; }
}

.brand__name { font-size: .88rem; }
  .brand__tag { font-size: .64rem; }

  .about-grid { gap: 2rem; }
  .difference { padding: 1.25rem; border-radius: 16px; }
  .check-list li { font-size: .85rem; }
  .value-chips span,
  .value-chips a { font-size: .72rem; padding: .28rem .6rem; }

  .service { padding: .9rem 0; gap: .75rem; }
  .service__icon { width: 34px; height: 34px; }
  .service__icon svg { width: 17px; height: 17px; }

  .cta-band { padding: 1.5rem 1.25rem; border-radius: 16px; gap: 1rem; }
  .cta-band__actions { gap: .5rem; }
  .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }

  .page-head { padding-block: 2rem; }

  .form-grid { grid-template-columns: 1fr; gap: .85rem; }

  .footer-grid { gap: 1.5rem; }
  .footer-credit { color: #8fa0cf; }
.footer-credit strong { color: #cdd7f3; font-weight: 600; }

.footer-legal { margin-top: 1.75rem; padding-top: 1.1rem; }

  .wa-float { width: 46px; height: 46px; right: .8rem; bottom: .8rem; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* --- Layar sangat sempit --------------------------------------------- */
@media (max-width: 380px) {
  .grid--3,
  .grid--4 { gap: .6rem; }
  .program { padding: .9rem .75rem .85rem; }
  .program h3 { font-size: .92rem; }
  .program p { -webkit-line-clamp: 3; }
  .pass__num { font-size: 1.4rem; min-width: 3rem; }
}

/* --- Konten lebar yang harus digulir sendiri ------------------------- */
table, pre { display: block; max-width: 100%; overflow-x: auto; }
img { height: auto; }
iframe { max-width: 100%; }
