/* ============================================================
   KELAS MEMORIES — Updated Style
   Palette: Deep Navy + Emerald + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --bg:         #070d14;
  --bg2:        #0c1520;
  --surface:    #111d2b;
  --surface2:   #162436;
  --glass:      rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);

  --text:  #edf2f7;
  --dim:   #8fa5bb;
  --faint: #4e6477;

  --emerald:  #10d48a;
  --emerald2: #2fffaa;
  --gold:     #f5c843;
  --gold2:    #ffd96b;

  --line:  rgba(255,255,255,0.07);
  --line2: rgba(16,212,138,0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 80px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: min(960px, 90%); margin-inline: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all .4s ease;
}
header.solid {
  padding: 14px 0;
  background: rgba(7,13,20,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -.01em;
  color: var(--gold);
  transition: color .25s ease;
}
.logo-img {
  height: 40px; width: auto;
  filter: drop-shadow(0 0 6px rgba(245,200,67,.4));
}
.logo:hover { color: var(--gold2); }

.links { display: flex; gap: 6px; }
.links a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--dim);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .22s ease;
}
.links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: var(--glass-border);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger i {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,13,20,.5) 0%,
    rgba(7,13,20,.65) 45%,
    rgba(7,13,20,.9) 80%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16,212,138,.1);
  border: 1px solid rgba(16,212,138,.25);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero h1 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--emerald2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--dim);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   SECTIONS COMMONS
   ============================================================ */
section { padding: 96px 0; position: relative; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 10px;
}
.label::before {
  content: '';
  width: 18px; height: 1.5px;
  background: var(--emerald);
  border-radius: 2px;
}
.heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.2;
}
.sub { color: var(--dim); font-size: .95rem; max-width: 440px; }


/* ============================================================
   CLASS PHOTO — lebar, bersih
   ============================================================ */
.class-photo-wrap {
  margin-top: 40px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.class-photo {
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: var(--surface2);
  max-height: 75vh;
}
.class-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Overlay gelap bawah untuk keterbacaan angka */
.class-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,13,20,.25);
  pointer-events: none;
  z-index: 1;
}

/* Angka / statistik */
.counts {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 12vw, 120px);
  text-align: center;
  pointer-events: none;
}
.counts b {
  display: block;
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.counts span {
  display: block;
  margin-top: 8px;
  font-size: clamp(.75rem, 1.8vw, .95rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* ============================================================
   MEDIA SOSIAL
   ============================================================ */
.sosmed {
  margin-top: 36px;
  text-align: center;
}
.sosmed-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 16px;
}
.sosmed-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sosmed-card {
  position: relative;
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sosmed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.sosmed-bg { position: absolute; inset: 0; }
.sosmed-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sosmed-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.25);
}
.sosmed-placeholder.ig {
  background: linear-gradient(160deg, #2a1a30 0%, #3a1520 50%, #2a2010 100%);
}
.sosmed-placeholder.tt {
  background: linear-gradient(160deg, #111 0%, #1a1a1a 60%, #0d2a2a 100%);
}
.sosmed-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
}
.sosmed-badge {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.sosmed-handle {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}

.about-text {
  margin-top: 28px;
  color: var(--dim);
  font-size: .95rem;
  max-width: 560px;
}
.about-text p + p { margin-top: 12px; }

/* ============================================================
   STRUKTUR KELAS — seperti awal
   ============================================================ */
.org {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-level {
  display: flex;
  justify-content: center;
  gap: 28px;
  width: 100%;
  position: relative;
}
.org-level.two {
  max-width: 680px;
}
.org-level.two::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%; right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.org-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
}
.org-line-v {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--gold), rgba(245,200,67,.3));
  border-radius: 2px;
}
.org-line-v.short { height: 18px; }

.struktur-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  min-height: 125px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.struktur-card.top {
  max-width: 500px;
  min-height: 150px;
  border-color: rgba(245,200,67,.35);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.struktur-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
  border-color: rgba(245,200,67,.4);
}
.struktur-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
  border: 2px solid rgba(245,200,67,.35);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 0 0 3px rgba(245,200,67,.12), 0 8px 20px rgba(0,0,0,.3);
}
.struktur-card.top .struktur-photo {
  width: 110px;
  height: 110px;
}
.struktur-card:hover .struktur-photo {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(245,200,67,.35), 0 8px 24px rgba(0,0,0,.35);
}
.struktur-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.struktur-photo .ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  color: var(--faint);
}
.struktur-role {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.struktur-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* Shine on hover */
.struktur-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}
.struktur-card:hover .struktur-photo::after {
  transform: translateX(120%);
}

#struktur .wrap { width: min(1100px, 92%); }

/* ============================================================
   AKTIVITAS — kartu foto lebar
   ============================================================ */
.aktivitas-wrap {
  width: min(1100px, 92%);
}
.aktivitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.aktivitas-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.aktivitas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  border-color: rgba(245,200,67,.35);
}
.aktivitas-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}
.aktivitas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.aktivitas-card:hover .aktivitas-photo img {
  transform: scale(1.04);
}
.aktivitas-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: .04em;
  background: linear-gradient(160deg, var(--surface2) 0%, #0e1a28 100%);
}
.aktivitas-body {
  padding: 18px 20px 22px;
}
.aktivitas-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.aktivitas-body p {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.6;
}

/* ============================================================
   DAFTAR ANGGOTA — seperti awal
   ============================================================ */
.anggota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.anggota-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.anggota-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.anggota-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--surface2);
  border: 2px solid rgba(245,200,67,.25);
  position: relative;
  box-shadow: 0 0 0 3px rgba(245,200,67,.1), 0 8px 20px rgba(0,0,0,.3);
  transition: transform .35s ease, box-shadow .35s ease;
}
.anggota-card:hover .anggota-photo {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(245,200,67,.35), 0 8px 24px rgba(0,0,0,.35);
}
.anggota-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.anggota-photo .ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  color: var(--faint);
}
.anggota-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}
.anggota-card:hover .anggota-photo::after {
  transform: translateX(120%);
}
.anggota-card h3 {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
.anggota-card p {
  font-size: .75rem;
  color: var(--dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--surface);
  position: relative;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--gold);
}
.footer-logo img {
  height: 32px;
  filter: drop-shadow(0 0 5px rgba(245,200,67,.35));
}
.footer-divider {
  width: 36px; height: 1px;
  background: var(--line);
}
.footer-text {
  font-size: .8rem;
  color: var(--faint);
}
.footer-text strong { color: var(--dim); }
.footer-year {
  font-size: .76rem;
  color: var(--faint);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.rv.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .logo { font-size: .8rem; gap: 8px; }
  .logo-img { height: 34px; }
  .links { display: none; }
  .links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,13,20,.97);
    backdrop-filter: blur(16px);
    padding: 16px 6%;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }
  .links.show a { padding: 11px 14px; border-radius: var(--r-sm); }
  .burger { display: flex; }

  .hero {
    padding: 100px 20px 80px;
    min-height: 90svh;            /* tinggi seperti awal, bisa di-scroll panjang */
  }
  .hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .hero-bg img {
    object-fit: cover;
    object-position: center 42%;  /* fokus ke barisan siswa, bukan langit/bangunan */
    animation: none;              /* matikan zoom biar lebih sedikit terpotong */
  }
  .hero-ctas { flex-direction: column; align-items: center; }

  .class-photo-wrap { width: 97%; margin-top: 28px; }
  .class-photo::before { inset: 8px; }

  .org-level.two {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .org-level.two::before { display: none; }
  .org-branch { max-width: 100%; width: 100%; }
  .struktur-card { max-width: 100%; }

  .struktur-photo img,
  .anggota-photo img {
    object-fit: cover;
    object-position: center 15%;
  }

  .anggota-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 480px) {
  .sosmed-card { width: 100%; aspect-ratio: 16 / 9; }
}
/* FIX FOTO KELAS - TIDAK TERPOTONG */
.class-photo,
.class-photo-wrap {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.class-photo img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
/* EFEK EMAS SAAT CURSOR MENYENTUH */
.layanan-link {
  color: #f5c843;
  transition: all 0.3s ease;
}
.counts b {
  background: linear-gradient(135deg, var(--gold), var(--emerald2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}