/* =========================================================
   AKL SMKN 1 MARTAPURA — STYLE.CSS
   Tema: Dark Mode + Gold, Glassmorphism
   ========================================================= */

:root {
  /* Palet warna utama (mengikuti logo AKL) */
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-soft: #f0d878;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(212, 175, 55, 0.25);
  --text-main: #e8e8ec;
  --text-muted: #9ca3af;
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.15);

  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* Lenis aktif: matikan smooth scroll bawaan browser agar tidak
   terjadi "double smoothing" (penyebab scroll mouse/touchpad terasa berat) */
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis,
html.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

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

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-kicker {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-top: 10px;
  color: #fff;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.gold-text {
  background: linear-gradient(
    100deg,
    var(--gold-light) 10%,
    var(--gold) 55%,
    #a9791f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 70%);
  color: #171205;
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-glass);
  color: var(--gold-soft);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.btn-wa {
  background: #1f2a1a;
  color: #7fe085;
  border-color: rgba(127, 224, 133, 0.3);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.brand-text .top {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-text .bottom {
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh; /* penuh layar HP, svh lebih akurat daripada vh di mobile */
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.3) 0%,
      rgba(2, 6, 23, 0.55) 55%,
      var(--bg-darker) 100%
    ),
    url("../img/hero/foto-hero.jpg") center 30% / cover no-repeat;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto; /* blok teks ikut ke tengah horizontal */
}

/* Judul hero: jarak ke paragraf dikunci supaya paragraf selalu tepat di bawahnya */
.hero h1 {
  margin: 0 0 14px;
}
.hero h1 .split-line {
  height: auto;
  margin: 0;
  padding: 0;
}

.hero p.lede {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto; /* paragraf ikut center, bukan cuma rata kiri di dalam blok */
}

.hero-actions {
  margin-top: 150px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 30px;
  justify-content: center;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.9rem;
  font-family: var(--font-heading);
  color: var(--gold-light);
}

.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   GLASS CARD (dipakai berulang)
   ========================================================= */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   PROFIL KEPALA SEKOLAH
   ========================================================= */
.principal-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 36px;
  align-items: center;
}

.principal-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-info {
  min-width: 0;
}

.principal-info .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.principal-info h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-top: 10px;
  color: #fff;
  overflow-wrap: break-word;
}

.principal-quote {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 640px;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.principal-info .btn {
  margin-top: 26px;
}

@media (max-width: 720px) {
  .principal-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .principal-photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =========================================================
   PROFIL KEPALA PROGRAM
   ========================================================= */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: stretch;
}

.profile-card {
  padding: 40px;
}

.profile-card .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.profile-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-top: 10px;
  color: #fff;
}

.profile-meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-meta div {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.profile-meta i {
  color: var(--gold);
  width: 18px;
  margin-top: 3px;
}

.history-card {
  padding: 40px;
}

.history-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

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

/* =========================================================
   PROGRAM KEAHLIAN
   ========================================================= */
.program-desc {
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 48px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.stat-box {
  padding: 26px 20px;
  text-align: center;
}

.stat-box b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--gold-light);
}

.stat-box span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.program-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  align-items: flex-start;
}

.feature-item i {
  color: var(--bg-darker);
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h5 {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* DU/DI Table */
.dudi-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.dudi-table th,
.dudi-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dudi-table th {
  color: var(--gold-light);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.06);
}

.dudi-table td {
  color: var(--text-muted);
}
.dudi-table tr:last-child td {
  border-bottom: none;
}
.dudi-table td.count {
  color: var(--gold-soft);
  font-weight: 600;
  text-align: right;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold-soft);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.tag-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* =========================================================
   GALERI
   ========================================================= */
.gallery-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab.active,
.gallery-tab:hover {
  background: linear-gradient(100deg, var(--gold-light), var(--gold));
  color: #171205;
  border-color: transparent;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

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

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

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
}

.gallery-item[data-cat] {
  display: none;
}
.gallery-item.show {
  display: block;
}

/* Video Dokumentasi */
.video-columns {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-list-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.video-list-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.video-list-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
}

.video-list-item h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.video-list-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-list-item .thumb {
  width: 84px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.video-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-list-item .thumb::after {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
}

.video-list-item h5 {
  font-size: 0.88rem;
  color: #fff;
}
.video-list-item span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-counter {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 1.6rem;
  color: var(--gold-light);
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

@media (max-width: 680px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox {
    padding: 20px 50px;
  }
}

/* Tombol "Lihat Mitra lainnya" */
.dudi-more-wrap {
  text-align: center;
  margin-top: 14px;
}
.dudi-more-btn {
  width: 100%;
  justify-content: center;
}

/* Modal Mitra DU/DI */
.dudi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 950;
  padding: 24px;
}
.dudi-modal-overlay.active {
  display: flex;
}

.dudi-modal {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.dudi-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-glass);
}
.dudi-modal-head h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin: 0;
}
.dudi-modal-close {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
}
.dudi-modal-body {
  padding: 8px 20px;
  overflow-y: auto;
}
@media (max-width: 960px) {
  .profile-grid,
  .contact-grid,
  .video-columns {
    grid-template-columns: 1fr;
  }
  .program-cols {
    grid-template-columns: 1fr;
  }

  @media (max-width: 720px) {
    .video-columns {
      gap: 20px;
    }
    /* ...aturan lain yang sudah ada di sini biarkan tetap ... */
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, auto);
    row-gap: 24px;
  }
}

/* =========================================================
   MATERI & BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.blog-card .thumb {
  height: 160px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.18),
    rgba(255, 255, 255, 0.02)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
}

.blog-card .thumb i {
  font-size: 2rem;
  color: var(--gold);
}

.blog-card .body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .cat {
  font-size: 0.74rem;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.blog-card h5 {
  font-size: 1.02rem;
  margin: 10px 0 12px;
  color: #fff;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  flex: 1;
}

.blog-card .readmore {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* =========================================================
   KONTAK & KRITIK SARAN
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-card {
  padding: 36px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item i {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-top: 3px;
}

.contact-item h5 {
  color: #fff;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.contact-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.wa-banner {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(
    120deg,
    rgba(37, 211, 102, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  border-color: rgba(37, 211, 102, 0.3);
}

.wa-banner p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding-top: 72px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-darker);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.footer-brand .top {
  font-weight: 700;
  color: #fff;
}
.footer-brand .bottom {
  font-size: 0.78rem;
  color: var(--gold-soft);
}

.footer-col h6 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-light);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  color: var(--gold-soft);
  transition: all 0.2s;
}

.social-icon:hover {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #171205;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom span {
  color: var(--gold-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .profile-grid,
  .contact-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .program-cols {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, auto);
    row-gap: 24px;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(16px);
    padding: 26px 24px;
    border-bottom: 1px solid var(--border-glass);
    gap: 22px;
  }

  .hero {
    min-height: 100svh; /* penuh layar HP, svh lebih akurat daripada vh di mobile */
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    padding-bottom: 0;
    background:
      linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.3) 0%,
        rgba(2, 6, 23, 0.55) 55%,
        var(--bg-darker) 100%
      ),
      url("../img/hero/foto-hero.jpg") center 30% / cover no-repeat;
  }

  .hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: nowrap; /* kunci: paksa tetap sebaris, tidak turun ke bawah */
    gap: 10px;
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1 1 0; /* dua tombol berbagi lebar 50-50, kiri & kanan */
    min-width: 0; /* izinkan menyusut supaya muat sebaris */
    padding: 12px 10px; /* lebih kecil dari desktop */
    font-size: 0.78rem;
    gap: 6px;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
  }

  .hero-actions .btn i {
    font-size: 0.75rem; /* ikon ikut mengecil biar proporsional */
  }

  .hero-stats {
    margin-top: 48px;
    padding: 18px 20px; /* panel lebih ramping di HP */
    gap: 24px; /* jarak antar angka dikecilkan supaya muat */
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .section {
    padding: 64px 0;
  }
  .floating-wrap {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 721px) {
  .hero-stats {
    margin-top: 260px;   /* didorong lebih jauh ke bawah, melewati wajah */
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 30px;
    justify-content: center;
  }

  .hero-actions {
    margin-top: 28px;    /* jarak dikecilkan, biar tombol nempel di bawah statistik */
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* =========================================================
   ANIMATION ENHANCEMENTS — Lenis / GSAP / ScrollTrigger / SplitType
   ========================================================= */

/* ---- Page Load Reveal overlay ---- */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-darker);
  will-change: transform;
}

/* ---- State awal (dipasang lewat CSS supaya tidak ada flash konten
   sebelum GSAP jalan — dicabut otomatis kalau JS gagal / reduced-motion) ---- */
.js-enabled .hero h1,
.js-enabled .hero p.lede,
.js-enabled .hero-stats .stat,
.js-enabled .hero-actions .btn,
.js-enabled .section-head h2 {
  opacity: 0;
}
.js-enabled .glass-card,
.js-enabled .principal-photo,
.js-enabled .gallery-item,
.js-enabled .video-list-item {
  opacity: 0;
  transform: translateY(40px);
}

/* ---- Staggered Text Reveal (SplitType) ---- */
.split-line {
  overflow: hidden;
  display: block;
}
.split-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---- Gold Shimmer: teks & angka gold berjalan pelan ---- */
@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.gold-text,
.gold-text .split-word,
.section-kicker,
.hero-stats .stat b,
.stat-box b,
.principal-info .role,
.profile-card .role {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, #fff8dc 50%, var(--gold-light) 75%, var(--gold) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 3s linear infinite;
}

/* ---- 3D tilt: siapkan konteks transform ---- */
.glass-card,
.principal-photo {
  will-change: transform;
}


/* =========================================================
   LIVE VISITOR BADGE
   ========================================================= */
.visitor-live {
  width: fit-content;
  margin: 12px auto 20px; /* tepat di bawah eyebrow, jarak ke judul */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(247, 208, 0, 0.10);
  border: 1px solid rgba(247, 208, 0, 0.30);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.visitor-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 7px #00ff88;
  animation: visitorPulse 1.5s ease-in-out infinite;
}

.visitor-live-label {
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.04em;
}

#visitor-count {
  color: #fff;
  font-weight: 500;
}

@keyframes visitorPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* =========================================================
   FOOTER CREATE BY XI.RPL — MARQUEE
   ========================================================= */
.footer-credits {
  overflow: hidden;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-credits-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-credits-title strong {
  color: var(--gold-light);
  font-weight: 700;
}

.footer-credits-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 7px 0;
  cursor: default;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.footer-credits-track {
  display: flex;
  width: max-content;
  animation: footerCreditsSlide 24s linear infinite;
  will-change: transform;
}

.footer-credits-marquee:hover .footer-credits-track {
  animation-play-state: paused;
}

.footer-credits-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-credits-group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0 26px;
}

.footer-credits-group span::after {
  content: "•";
  color: var(--gold);
  margin-left: 26px;
}

@keyframes footerCreditsSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-live-dot,
  .footer-credits-track {
    animation: none;
  }
}

@media (max-width: 720px) {
  .visitor-live {
    font-size: 0.7rem;
    padding: 7px 12px;
  }

  .footer-credits-track {
    animation-duration: 20s;
  }

  .footer-credits-group span {
    font-size: 0.75rem;
    padding: 0 18px;
  }

  .footer-credits-group span::after {
    margin-left: 18px;
  }
}
