/* ============================================
   YAYASAN TRANSFORMASI - Design System
   Modern Futuristic Minimalist
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --purple: #6900ef;
  --purple-dark: #4d00b0;
  --purple-light: #8b33ff;
  --purple-glow: rgba(105, 0, 239, 0.3);
  --yellow: #ffe310;
  --yellow-dark: #d4bc00;
  --white: #ffffff;
  --off-white: #f8f7ff;
  --dark: #0a0014;
  --dark-card: #130026;
  --gray: #6b7280;
  --gray-light: #f3f0ff;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 20px rgba(105,0,239,0.12);
  --shadow-md: 0 8px 40px rgba(105,0,239,0.2);
  --shadow-lg: 0 16px 60px rgba(105,0,239,0.28);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --border-glow: 1px solid rgba(105,0,239,0.25);

  --white:#ffffff;
    --purple:#6900EF;
    --purple-deep:#4a00b0;
    --purple-glow:rgba(105,0,239,0.35);
    /* --yellow:#FFC53D; */
    /* --dark:#1a003a; */
    --gray:#6b6478;
    --radius-lg:20px;
    --shadow-md:0 12px 32px rgba(105,0,239,0.16);
    --transition:all .35s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  background: var(--purple-glow);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(105,0,239,0.2);
  margin-bottom: 16px;
}
.tag-yellow {
  background: rgba(255,227,16,0.15);
  color: #8b6d00;
  border-color: rgba(255,227,16,0.4);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 8px 30px rgba(105,0,239,0.45);
  transform: translateY(-2px);
}
.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(255,227,16,0.35);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,227,16,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-outline-purple {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline-purple:hover {
  background: var(--purple);
  color: var(--white);
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===========================================
   NAVBAR
=========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 20px 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(105,0,239,0.08);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 150px;
  height: auto;
  /* object-fit: contain; */
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  transition: color 0.3s;
  letter-spacing: -0.02em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo-name { color: var(--purple); }
#navbar.scrolled .nav-logo-sub { color: var(--gray); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--yellow);
  background: rgba(255,227,16,0.1);
}
#navbar.scrolled .nav-links a { color: var(--dark); }
#navbar.scrolled .nav-links a:hover, #navbar.scrolled .nav-links a.active {
  color: var(--purple);
  background: rgba(105,0,239,0.08);
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
  transition: var(--transition);
}
#navbar.scrolled .lang-toggle {
  background: rgba(105,0,239,0.06);
  border-color: rgba(105,0,239,0.2);
}
.lang-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  border: none;
  background: none;
  font-family: inherit;
}
#navbar.scrolled .lang-btn { color: var(--gray); }
.lang-btn.active {
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 50px;
  margin: 3px;
  padding: 4px 12px;
}
.nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
}
.nav-cta:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: var(--white);
  padding: 24px;
  border-top: 1px solid rgba(105,0,239,0.1);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  padding: 12px 16px;
  border-radius: 10px;
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(105,0,239,0.06); color: var(--purple); }

/* ===========================================
   HERO SECTION
=========================================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(105,0,239,0.85) 0%,
    rgba(10,0,20,0.75) 50%,
    rgba(105,0,239,0.65) 100%
  );
  z-index: 1;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease both;
}
.hero-tag span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title {
  font-size: clamp(2rem, 5vw, 4rem); /* kecilkan dari 2.8rem/7vw/5.5rem */
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title span { color: var(--yellow); display: block; }
.hero-title span.white { color: var(--white); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.35s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-school-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.65s both;
}
.school-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.school-badge:hover { background: rgba(255,227,16,0.2); border-color: var(--yellow); color: var(--yellow); }
.school-badge-icon { font-size: 1.3rem; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
}
.scroll-arrow {
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 1; }
  40%       { transform: translateY(8px); opacity: 0.6; }
  70%       { transform: translateY(3px); opacity: 0.9; }
}

@keyframes fadeInDown { from{opacity:0;transform:translateY(-30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* =========================================================
   ABOUT US
   ========================================================= */

#about.about-uph {
  position: relative;
  overflow: hidden;

  min-height: 900px;

  padding: 110px 0 120px;

  background: var(--dark);
  color: var(--white);
}


/* =========================================================
   BACKGROUND PHOTO
   ========================================================= */

.about-background {
  position: absolute;
  inset: 0;

  z-index: 0;

  background-image: url("aboutus.png");
  background-size: cover;
  background-position: center;

  transform: scale(1.03);
}


/* =========================================================
   PURPLE OVERLAY */

.about-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--purple);
  opacity: 0.35;
  pointer-events: none;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.about-uph .about-container {
  position: relative;
  z-index: 3;

  width: min(1160px, calc(100% - 48px));

  min-height: 760px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  grid-template-rows:
    250px
    auto
    auto;

  column-gap: 70px;
  row-gap: 30px;
}


/* =========================================================
   FOTO BESAR — KIRI
   ========================================================= */

.about-photo-main {
  grid-column: 1;
  grid-row: 1 / 4;

  width: 100%;
  height: 690px;

  overflow: hidden;

  border-radius: 28px 28px 5px 5px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  background: var(--dark);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45);
}

.about-photo-main img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  transition: transform 0.6s ease;
}

.about-photo-main:hover img {
  transform: scale(1.025);
}


/* =========================================================
   FOTO KEDUA — KANAN ATAS
   ========================================================= */

.about-photo-small {
  grid-column: 2;
  grid-row: 1;

  width: 100%;
  height: 250px;

  overflow: hidden;

  border-radius: 24px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  background: var(--dark);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.about-photo-small img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  transition: transform 0.6s ease;
}

.about-photo-small:hover img {
  transform: scale(1.025);
}


/* =========================================================
   CONTENT KANAN
   ========================================================= */

.about-content {
  grid-column: 2;
  grid-row: 2 / 4;

  align-self: start;

  padding-top: 8px;
}


/* =========================================================
   LABEL "TENTANG KAMI"
   ========================================================= */

.about-label {
  display: inline-flex;

  align-items: center;

  padding: 7px 18px;

  margin-bottom: 18px;

  border-radius: 50px;

  background: rgba(10, 0, 20, 0.35);

  border: 1px solid rgba(255, 227, 16, 0.55);

  color: var(--yellow);

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 2.5px;

  text-transform: uppercase;
}


/* =========================================================
   JUDUL
   ========================================================= */

.about-content h2 {
  max-width: 620px;

  margin: 0 0 28px;

  color: var(--white);

  font-size: clamp(2.8rem, 4vw, 4.15rem);

  line-height: 0.98;

  letter-spacing: -0.045em;

  font-weight: 900;
}

.about-content h2 span {
  color: var(--yellow);
}


/* =========================================================
   DESCRIPTION CARD
   ========================================================= */

.about-description {
  max-width: 620px;

  padding: 30px 32px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.30);
}

.about-description p {
  margin: 0 0 18px;

  color: rgba(0, 0, 0, 0.92);

  font-size: 0.94rem;

  line-height: 1.78;
}

.about-description p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BADGE DI ATAS FOTO
   ========================================================= */

.about-badge {
  position: absolute;

  z-index: 5;

  left: -25px;
  top: 530px;

  width: 360px;

  min-height: 92px;

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 18px 25px;

  background: var(--white);

  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  /* box-shadow:
    0 18px 45px rgba(105, 0, 239, 0.48); */
}

.about-badge-number {
  flex-shrink: 0;

  font-size: 3.2rem;

  line-height: 1;

  font-weight: 900;

  color: var(--dark);
}

.about-badge strong {
  display: block;

  color: var(--dark);

  font-size: 1.1rem;

  line-height: 1.15;

  font-weight: 800;
}

.about-badge small {
  display: block;

  margin-top: 6px;

  color: rgba(0, 0, 0, 0.68);

  font-size: 0.72rem;
}


/* =========================================================
   TEKS BAWAH FOTO
   ========================================================= */

.about-highlight {
  position: absolute;

  z-index: 4;

  left: 25px;
  top: 720px;

  width: 390px;
}

.about-highlight h3 {
  margin: 0 0 10px;

  color: var(--white);

  font-size: 1.9rem;

  line-height: 1.08;

  font-weight: 900;

  letter-spacing: -0.025em;
}

.about-highlight h3 em {
  color: var(--yellow);

  font-style: italic;
}

.about-highlight p {
  max-width: 350px;

  margin: 0;

  color: rgba(255, 255, 255, 0.70);

  font-size: 0.86rem;

  line-height: 1.6;
}




/* ===========================================
   STATS SECTION
=========================================== */
#stats {
  /* background: #4d00b0; */
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(105,0,239,0.3) 0%, transparent 70%);
  pointer-events: none;
}
#stats::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,227,16,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.stats-header { margin-bottom: 60px; }
.stats-header .section-title { color: var(--white); }
.stats-header .section-subtitle { color: rgba(255,255,255,0.55); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat-card {
  /* background: rgb(255, 255, 255); */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(105,0,239,0.08), transparent);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover { border-color: rgba(105,0,239,0.4); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(105,0,239,0.25); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.stat-icon img {
  width: 60px;      /* atur sesuai selera, misal 32px–56px */
  height: 60px;
  object-fit: contain;
  margin: 0 auto;    /* biar center kalau .stat-icon nggak flex */
  display: block;
}
.stat-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num .accent { color: var(--yellow); }
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* =========================================================
   VERSION 1 — EDITORIAL FOUNDATION
   Hanya memengaruhi #berita
========================================================= */

#berita {
  background: var(--off-white);
}

#berita .berita-header {
  max-width: 760px;
  margin: 0 auto 55px;
}

#berita .berita-header .tag {
  display: inline-block;
  padding: 7px 13px;

  background: rgba(105, 0, 239, 0.07);
  color: var(--purple);

  border: 1px solid rgba(105, 0, 239, 0.14);
  border-radius: 5px;

  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#berita .berita-header .section-title {
  margin-top: 14px;
  margin-bottom: 12px;
}

#berita .berita-header .section-subtitle {
  max-width: 620px;
  margin: auto;
}


/* =========================
   PRESTASI
========================= */

#berita .prestasi-banner {
  position: relative;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  gap: 40px;

  padding: 30px 34px;
  margin-bottom: 45px;

  background: linear-gradient(135deg, var(--purple) 0%, #4a00b8 100%);

  border-radius: 12px;

  overflow: hidden;
}

#berita .prestasi-banner::before {
  content: "";

  position: absolute;
  right: -60px;
  top: -60px;

  width: 220px;
  height: 220px;

  background: rgba(255,255,255,.05);

  border-radius: 50%;
}

#berita .prestasi-banner::after {
  content: "";

  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 5px;

  background: var(--yellow);
}

#berita .prestasi-banner-text {
  position: relative;
  z-index: 1;
}

#berita .prestasi-banner-text h3 {
  margin-bottom: 8px;

  color: var(--white);

  font-size: 1.35rem;
  font-weight: 800;
}

#berita .prestasi-banner-text p {
  margin: 0;

  color: rgba(255,255,255,.75);

  font-size: .9rem;
  line-height: 1.7;
}

#berita .prestasi-awards {
  display: flex;
  flex-direction: column;
  gap: 8px;

  min-width: 270px;
}

#berita .award-pill {
  padding: 9px 13px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(255,255,255,.09);

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;

  color: var(--white);

  font-size: .77rem;

  backdrop-filter: none;

  transition: background .25s ease;
}

#berita .award-pill:hover {
  background: rgba(255,255,255,.15);
}


/* =========================
   FEATURED NEWS
========================= */

#berita .news-grid {
  display: grid;

  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: auto auto;

  gap: 24px;
}

#berita .news-card {
  transition: transform .3s ease, box-shadow .3s ease;
  animation: beritaFadeUp .5s ease both;
}

#berita .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(30,20,50,.1);
}

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


/* BERITA PERTAMA */

#berita .news-card:first-child {
  grid-row: span 2;

  display: flex;
  flex-direction: column;

  background: var(--white);

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 4px 20px rgba(30,20,50,.06);

  border: 1px solid rgba(105,0,239,.07);
}

#berita .news-card:first-child .news-img-wrap {
  height: 350px;
}


/* BERITA 2 & 3 */

#berita .news-card:not(:first-child) {
  display: grid;
  grid-template-columns: 180px 1fr;

  background: var(--white);

  border-radius: 12px;

  overflow: hidden;

  border: 1px solid rgba(105,0,239,.07);

  box-shadow: 0 3px 16px rgba(30,20,50,.045);
}

#berita .news-card:not(:first-child) .news-img-wrap {
  height: 100%;
  min-height: 190px;
}


/* IMAGE */

#berita .news-img-wrap {
  position: relative;
  overflow: hidden;
}

#berita .news-img-wrap img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .5s ease;
}

#berita .news-card:hover img {
  transform: scale(1.035);
}


/* BODY */

#berita .news-body {
  padding: 21px;

  display: flex;
  flex-direction: column;
}

#berita .news-meta {
  display: flex;
  gap: 9px;

  margin-bottom: 10px;
}

#berita .news-date {
  color: var(--gray);
  font-size: .72rem;
}

#berita .news-cat {
  color: var(--purple);

  font-size: .67rem;
  font-weight: 800;

  text-transform: uppercase;
}

#berita .news-card h3 {
  margin: 0 0 10px;

  color: var(--dark);

  font-size: 1rem;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#berita .news-card p {
  margin: 0 0 18px;

  color: var(--gray);

  font-size: .81rem;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#berita .news-link {
  margin-top: auto;

  display: inline-flex;
  gap: 6px;

  color: var(--purple);

  font-size: .77rem;
  font-weight: 800;

  transition: gap .25s ease;
}

#berita .news-link:hover {
  gap: 10px;
}

#berita .news-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}


/* BADGE */

#berita .news-badge {
  position: absolute;

  top: 14px;
  left: 14px;

  padding: 6px 10px;

  background: var(--yellow);
  color: var(--dark);

  border-radius: 5px;

  font-size: .6rem;
  font-weight: 800;

  letter-spacing: 1px;
  text-transform: uppercase;

  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}


/* FOOTER */

#berita .berita-footer {
  text-align: center;
  margin-top: 42px;
}


/* TABLET */

@media (max-width: 900px) {

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

  #berita .news-card:first-child {
    grid-row: auto;
  }

  #berita .news-card:first-child .news-img-wrap {
    height: 280px;
  }

}


/* MOBILE */

@media (max-width: 600px) {

  #berita .prestasi-banner {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }

  #berita .prestasi-awards {
    min-width: 0;
  }

  #berita .news-card:not(:first-child) {
    display: flex;
    flex-direction: column;
  }

  #berita .news-card:not(:first-child) .news-img-wrap {
    height: 210px;
    min-height: 0;
  }

  #berita .news-card:first-child .news-img-wrap {
    height: 220px;
  }

}
/* ===========================================
   EXTRAKURIKULER
=========================================== */
#ekskul { background: var(--white); }
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.ekskul-card {
  background: var(--gray-light);
  border: 1px solid rgba(105,0,239,0.08);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.ekskul-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  transform: scaleX(0);
  transition: var(--transition);
}
.ekskul-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); background: var(--white); }
.ekskul-card:hover::after { transform: scaleX(1); }
.ekskul-icon { font-size: 2.8rem; margin-bottom: 14px; display: block; transition: var(--transition); }
.ekskul-card:hover .ekskul-icon { transform: scale(1.15) rotate(-5deg); }
.ekskul-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.ekskul-card p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }
.ekskul-card .ekskul-count {
  display: inline-block;
  margin-top: 12px;
  background: rgba(105,0,239,0.08);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===========================================
   GALLERY
=========================================== */
#gallery { background: var(--dark); overflow: hidden; }
#gallery .section-title { color: var(--white); }
#gallery .section-subtitle { color: rgba(255,255,255,0.55); }
#gallery .tag { background: rgba(255,227,16,0.15); color: var(--yellow); border-color: rgba(255,227,16,0.3); }

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  box-shadow: 0 4px 16px var(--purple-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(105,0,239,0.8));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { color: var(--white); font-size: 0.85rem; font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 0 80px rgba(105,0,239,0.4); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.lightbox-close:hover { background: var(--purple); }

/* ===========================================
   INSTAGRAM FEED
=========================================== */
#instagram { background: var(--off-white); }
.instagram-header { margin-bottom: 50px; }
.insta-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 12px;
}
.insta-handle::before { content: '@'; }
.instagram-feed-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: var(--border-glow);
  min-height: 300px;
}
/* Behold.so widget override for theme matching */
.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.insta-post-card {
  /* aspect-ratio: 19; */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--gray-light);
}
.insta-post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta-post-card:hover img { transform: scale(1.08); }
.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(105,0,239,0.7);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.insta-post-card:hover .insta-post-overlay { opacity: 1; }
.insta-follow-btn {
  text-align: center;
  margin-top: 32px;
}

.insta-follow-btn .btn img {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}
/* ===========================================
   PARTNERSHIP
=========================================== */
#partnership { background: var(--white); overflow: hidden; }
.partners-header { margin-bottom: 50px; }
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.marquee-track {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  animation: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo {
  background: var(--white);
  border: 1px solid rgba(105,0,239,0.1);
  border-radius: var(--radius-sm);
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  height: auto;
  min-height: 100px;
  transition: var(--transition);
  filter: grayscale(0%);
  opacity: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.08);
}

.partner-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  line-height: 1.4;
  max-width: 130px;
}
.partner-logo img {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.partner-logo:hover {
  box-shadow: 0 8px 32px rgba(105,0,239,0.2), 0 2px 8px rgba(0,0,0,0.10);
  transform: scale(1.08) translateY(-4px);
  border-color: rgba(105,0,239,0.25);
  z-index: 2;
  position: relative;
}

.partner-logo .partner-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* ===========================================
   FOOTER
=========================================== */
#footer {
  background: var(--dark);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo-name { font-size: 1.4rem; color: var(--white); }
.footer-brand .nav-logo-sub { color: rgba(255,255,255,0.45); }
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 48px;
  height: auto;
  border-radius: 10px;
  /* background: rgba(255,255,255,0.06); */
  /* border: 1px solid rgba(255,255,255,0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn:hover {  transform: translateY(-5px); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--yellow); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item .icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

.footer-contact-item .icon img {
  width: 18;
  height: 18px;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom span { color: var(--purple); }

/* Floating CTA */
.floating-chat {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  background: var(--yellow);
  color: var(--dark);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 255, 26, 0.406);
  transition: var(--transition);
  cursor: pointer;
}
.floating-chat:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 12px 32px rgba(0, 255, 26, 0.758); }


#visi-misi {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
#visi-misi::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(105,0,239,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.vm-header { margin-bottom: 64px; }

/* ---- Layout: manifesto panel (visi) + connected line (misi) ---- */
.vm-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.vm-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.vm-eyebrow--dark { color: var(--purple); }

/* =========================================================
   VISI — panel manifesto (bukan kartu kotak generik)
========================================================= */
.vm-vision {
  position: relative;
  background: linear-gradient(165deg, var(--dark) 0%, #1a003a 100%);
  border-radius: 36px 36px 36px 8px;
  padding: 52px 44px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vm-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(200deg, black, transparent 55%);
  mask-image: linear-gradient(200deg, black, transparent 55%);
  pointer-events: none;
}
.vm-vision-icon {
  width: 40px;
  height: 40px;
  color: var(--yellow);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.vm-vision-text {
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  letter-spacing: -0.01em;
  flex-grow: 1;
}
.vm-vision-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.vm-vision-foot span {
  width: 22px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}
.vm-vision-foot em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   MISI — garis penghubung + medali (satu bahasa visual
   dengan .nv-medal di section Nilai Inti)
========================================================= */
.vm-mission {
  background: var(--white);
  border: 1px solid rgba(105,0,239,0.1);
  border-radius: 8px 36px 36px 36px;
  padding: 48px 44px;
  box-shadow: 0 4px 24px rgba(105,0,239,0.06);
}

.vm-mission-line {
  position: relative;
  padding-left: 4px;
}
.vm-mission-line::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), rgba(105,0,239,0.15));
  opacity: 0.4;
}

.vm-mission-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 20px 0;
}
.vm-mission-item:first-child { padding-top: 0; }
.vm-mission-item:last-child { padding-bottom: 0; }

.vm-mission-medal {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(105,0,239,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  box-shadow: 0 6px 16px rgba(105,0,239,0.10);
  transition: var(--transition);
}
.vm-mission-medal svg { width: 24px; height: 24px; }

.vm-mission-item:hover .vm-mission-medal {
  background: linear-gradient(145deg, var(--purple), var(--purple-dark));
  border-color: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 24px var(--purple-glow);
  transform: scale(1.06);
}

.vm-mission-text {
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ===== Nilai Inti - Value Chain ===== */

.nv-container{
  padding-bottom: 150px;
}
.nv-head{
    text-align:center;
    max-width:600px;
    margin:0 auto 90px;
  }
  .nv-eyebrow{
    font-size:.72rem;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
    color:var(--purple);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:16px;
  }
  .nv-eyebrow::before,
  .nv-eyebrow::after{
    content:'';
    height:1px;
    width:24px;
    background:linear-gradient(90deg, transparent, var(--purple));
  }
  .nv-eyebrow::after{ transform:scaleX(-1); }
  .nv-head h2{
    font-size:clamp(1.8rem, 4vw, 2.6rem);
    font-weight:800;
    letter-spacing:-0.02em;
    margin:0 0 14px;
    color:var(--dark);
  }
  .nv-head p{
    color:var(--gray);
    font-size:1rem;
    line-height:1.7;
    margin:0;
  }

  /* ===== The value chain ===== */
  .nv-chain{
    position:relative;
    max-width:1100px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 10px 0;
  }

  /* connecting thread */
  .nv-chain::before{
    content:'';
    position:absolute;
    left:6%;
    right:6%;
    top:calc(40px + 42px);
    height:2px;
    background:linear-gradient(90deg, var(--yellow), var(--purple) 45%, var(--purple) 55%, var(--yellow));
    opacity:.35;
    z-index:0;
  }

  .nv-bead{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    width:19%;
    text-align:center;
    opacity:0;
    transform:translateY(24px);
    animation:nvRise .7s cubic-bezier(.4,0,.2,1) forwards;
  }
  .nv-bead:nth-child(1){ animation-delay:.05s; }
  .nv-bead:nth-child(2){ animation-delay:.15s; transform:translateY(-8px); }
  .nv-bead:nth-child(3){ animation-delay:.25s; }
  .nv-bead:nth-child(4){ animation-delay:.35s; transform:translateY(-8px); }
  .nv-bead:nth-child(5){ animation-delay:.45s; }

  .nv-bead:nth-child(2) .nv-medal-wrap{ transform:translateY(-22px); }
  .nv-bead:nth-child(4) .nv-medal-wrap{ transform:translateY(-22px); }

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

  .nv-medal-wrap{
    transition:var(--transition);
  }

  .nv-medal{
    width:84px;
    height:84px;
    border-radius:50%;
    background:var(--white);
    border:2px solid rgba(105,0,239,0.16);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(105,0,239,0.10);
    transition:var(--transition);
    position:relative;
  }
  .nv-medal svg{
    width:32px;
    height:32px;
    stroke:var(--purple);
    fill:none;
    stroke-width:1.7;
    transition:var(--transition);
  }
  .nv-medal::after{
    content:'';
    position:absolute;
    inset:-6px;
    border-radius:50%;
    border:1px dashed rgba(105,0,239,0.25);
    opacity:0;
    transition:var(--transition);
  }

  .nv-bead:hover .nv-medal-wrap{
    transform:translateY(-10px) !important;
  }
  .nv-bead:hover .nv-medal{
    background:linear-gradient(145deg, var(--purple), var(--purple-deep));
    border-color:var(--purple);
    box-shadow:0 14px 28px var(--purple-glow);
  }
  .nv-bead:hover .nv-medal svg{
    stroke:var(--white);
  }
  .nv-bead:hover .nv-medal::after{
    opacity:1;
    inset:-9px;
  }

  .nv-num{
    font-size:.62rem;
    font-weight:800;
    letter-spacing:1.5px;
    color:var(--yellow);
    background:var(--dark);
    padding:3px 8px;
    border-radius:20px;
    margin-top:14px;
  }
  .nv-title{
    font-size:1.02rem;
    font-weight:800;
    letter-spacing:-0.01em;
    color:var(--dark);
    margin:10px 0 4px;
  }
  .nv-sub{
    font-size:.8rem;
    color:var(--gray);
    max-width:140px;
    line-height:1.5;
  }


/* ===========================================
   LOKASI / MAP SECTION
=========================================== */
#lokasi { background: var(--white); }

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(105,0,239,0.12);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.map-direction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 20px var(--purple-glow);
  transition: var(--transition);
  z-index: 10;
}
.map-direction-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(105,0,239,0.45);
}



/* ===========================================
   SAMBUTAN KETUA YAYASAN
=========================================== */
#sambutan { background: var(--white); }

.sambutan-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}

/* Photo column */
.sambutan-photo-col { position: relative; }

.sambutan-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  
}

.sambutan-photo-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--yellow);
  border-radius: var(--radius-md);
  z-index: 0;
}

.sambutan-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 60px;
  right: -16px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--purple);
  border-radius: var(--radius-md);
  z-index: 0;
  opacity: 0.4;
}

.sambutan-photo-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.sambutan-name-card {
  position: relative;
  z-index: 2;
  background: var(--dark);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-align: center;
}

.sambutan-name-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 4px;
}

.sambutan-name-card span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

/* Text column */
.sambutan-text-col { }

.sambutan-body {
  font-size: 0.98rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 16px;
}

.sambutan-contact-box {
  background: var(--gray-light);
  border: 1px solid rgba(105,0,239,0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.sambutan-contact-box h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.sambutan-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sambutan-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

.sambutan-contact-item a {
  color: var(--purple);
  font-weight: 600;
  transition: var(--transition);
}
.sambutan-contact-item a:hover { color: var(--purple-dark); text-decoration: underline; }

.sambutan-contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.sambutan-tagline {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: var(--radius-sm);
  padding: 16px 24px;
}

.sambutan-tagline strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}


/* ===========================================
   KEPALA SEKOLAH & GURU
=========================================== */
#guru { background: var(--off-white); }

/* Tab buttons */
.guru-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.guru-tab-btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid rgba(105,0,239,0.2);
  color: var(--gray);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.guru-tab-btn:hover { border-color: var(--purple); color: var(--purple); }
.guru-tab-btn.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  box-shadow: 0 4px 20px var(--purple-glow);
}

/* Tab content */
.guru-tab-content { display: none; }
.guru-tab-content.active { display: block; }

/* Kepala Sekolah card */
.kepsek-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(105,0,239,0.1);
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.kepsek-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple), var(--yellow));
}
.kepsek-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.kepsek-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.kepsek-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  display: block;
}
.kepsek-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.kepsek-school-tag {
  display: inline-block;
  background: rgba(105,0,239,0.08);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(105,0,239,0.15);
  margin-bottom: 14px;
}
.kepsek-school-tag.tk {
  background: rgba(255,227,16,0.12);
  color: #8b6d00;
  border-color: rgba(255,227,16,0.35);
}

.kepsek-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.kepsek-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
}
.kepsek-desc {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 28px;
}


/* Teacher carousel */
.guru-carousel-wrap { }
.guru-carousel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.guru-carousel {
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}
.guru-carousel:active { cursor: grabbing; }

.guru-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.guru-card {
  width: 200px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(105,0,239,0.07);
  border: 1px solid rgba(105,0,239,0.08);
  transition: var(--transition);
}
.guru-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.guru-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.guru-card-info {
  padding: 14px 16px;
  text-align: center;
}
.guru-card-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.guru-card-info span {
  font-size: 0.78rem;
  color: var(--gray);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(105,0,239,0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.carousel-dot.active {
  background: var(--purple);
  width: 24px;
  border-radius: 4px;
} 


/* ---- Hero Image Background Mobile ---- */
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}






/* ---------- Custom property untuk animasi border (fallback aman) ---------- */
@property --ek2-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
 
#ekskul.ek2-section {
  --ek2-purple: #6C4AB6;
  --ek2-purple-dark: #4B2E93;
  --ek2-lavender: #F1ECFB;
  --ek2-lavender-soft: #F7F4FD;
  --ek2-glow-1: #A78BFA;
  --ek2-glow-2: #F472B6;
  --ek2-glow-3: #60A5FA;
  --ek2-new-from: #3437d3;
  --ek2-new-to: #6226c2;
 
  padding: 96px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--ek2-lavender-soft) 100%);
  overflow: hidden;
}
 
.ek2-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
 
/* ---------- Header ---------- */
.ek2-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
 
.ek2-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ek2-purple-dark);
  background: var(--ek2-lavender);
  border: 1px solid rgba(108, 74, 182, 0.18);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}
 
.ek2-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: #1F1533;
  margin: 0 0 16px;
}
 
.ek2-subheading {
  font-size: 16px;
  line-height: 1.7;
  color: #5B5470;
  margin: 0;
}
 
/* ---------- Grid 2x2 ---------- */
.ek2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
 
 
/* ---------- Card: outer wrapper (holds animated gradient border) ---------- */
.ek2-card {
  position: relative;
  border-radius: 28px;
  isolation: isolate;
}
 
.ek2-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--ek2-angle),
    transparent 0deg,
    var(--ek2-glow-1) 60deg,
    var(--ek2-glow-2) 140deg,
    var(--ek2-glow-3) 220deg,
    transparent 300deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  animation: ek2-spin-border 3.2s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  z-index: 0;
}
 
.ek2-card:hover::before,
.ek2-card:focus-within::before {
  opacity: 1;
  animation-play-state: running;
}
 
@keyframes ek2-spin-border {
  to { --ek2-angle: 360deg; }
}
 
/* ---------- Card: inner surface (the actual visible card) ---------- */
.ek2-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  background: var(--ek2-lavender);
  border-radius: 26px;
  padding: 32px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1),
              background-color .4s ease,
              box-shadow .4s ease;
}

 
.ek2-card:hover .ek2-card-inner,
.ek2-card:focus-within .ek2-card-inner {
  transform: translateY(-8px) scale(1.02);
  background: #ffffff;
  box-shadow: 0 28px 60px -18px rgba(76, 46, 147, 0.35),
              0 10px 24px -8px rgba(76, 46, 147, 0.18);
}
 
/* ---------- Shine / shimmer sweep ---------- */
.ek2-card-inner::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, .55) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: translateX(-120%) rotate(8deg);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: 2;
}
 
.ek2-card:hover .ek2-card-inner::after,
.ek2-card:focus-within .ek2-card-inner::after {
  transform: translateX(220%) rotate(8deg);
}
 
/* ---------- Icon ---------- */
.ek2-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(108, 74, 182, 0.12);
  margin-bottom: 20px;
  transition: transform .4s ease, background-color .4s ease;
  position: relative;
  z-index: 3;
}
 
.ek2-card:hover .ek2-icon-wrap,
.ek2-card:focus-within .ek2-icon-wrap {
  transform: rotate(-6deg) scale(1.08);
  background: rgba(108, 74, 182, 0.16);
}
 
.ek2-icon {
  font-size: 26px;
  line-height: 1;
}
 
/* ---------- Card title ---------- */
.ek2-card-title {
  position: relative;
  z-index: 3;
  font-size: 20px;
  font-weight: 800;
  color: #1F1533;
  margin: 0 0 18px;
}
 
/* ---------- List ---------- */
.ek2-list {
  position: relative;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.ek2-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #3D3654;
}
 
.ek2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ek2-purple);
  flex-shrink: 0;
}
 
.ek2-item-note {
  font-size: 13px;
  color: #8B84A0;
  font-weight: 400;
}
 
/* ---------- Sub-grid (Seni & Kreativitas) ---------- */
.ek2-subgrid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
 
/* ---------- Badge "Baru" ---------- */
.ek2-badge-new {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(100deg, var(--ek2-new-from), var(--ek2-new-to));
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(89, 52, 211, 0.35);
}
 
/* ---------- CTA ---------- */
.ek2-cta {
  text-align: center;
  margin-top: 56px;
}
 
.ek2-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ek2-purple), var(--ek2-purple-dark));
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(108, 74, 182, 0.55);
  transition: transform .3s ease, box-shadow .3s ease;
}
 
.ek2-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -12px rgba(108, 74, 182, 0.65);
}
 
.ek2-cta-arrow {
  display: inline-block;
  transition: transform .3s ease;
}
 
.ek2-cta-btn:hover .ek2-cta-arrow {
  transform: translateX(4px);
}
 
/* ============================================
   MOBILE-FIRST (min-width) — biarkan terpisah,
   pola ini beda arah dengan max-width di bawah
   ============================================ */

@media (min-width: 640px) {
  .ek2-card-inner { padding: 36px; }
}

@media (min-width: 768px) {
  .ek2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .ek2-grid {
    gap: 32px;
  }
}


/* ============================================
   MAX-WIDTH: 1024px (gabungan 5 blok jadi 1)
   ============================================ */

@media (max-width: 1024px) {

  /* --- About / UPH section --- */
  #about.about-uph {
    min-height: 850px;
    padding: 90px 0 100px;
  }

  .about-uph .about-container {
    width: min(900px, calc(100% - 40px));
    column-gap: 40px;
    grid-template-rows: 220px auto auto;
  }

  .about-photo-main {
    height: 620px;
  }

  .about-photo-small {
    height: 220px;
  }

  .about-content h2 {
    font-size: 2.8rem;
  }

  .about-description {
    padding: 25px;
  }

  .about-badge {
    top: 475px;
    width: 320px;
  }

  .about-highlight {
    top: 650px;
    width: 320px;
  }

  /* --- Grid layouts umum --- */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .ekskul-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .instagram-feed-grid { grid-template-columns: repeat(3, 1fr); }

  /* --- Visi Misi --- */
  .vm-layout { grid-template-columns: 1fr; }
  .vm-vision { border-radius: 32px 32px 8px 8px; }
  .vm-mission { border-radius: 8px 8px 32px 32px; }

  /* --- Sambutan --- */
  .sambutan-grid { grid-template-columns: 1fr; gap: 48px; }
  .sambutan-photo-wrap img { height: 380px; }

  /* --- Kepala Sekolah --- */
  .kepsek-card { grid-template-columns: 220px 1fr; gap: 32px; }
  .kepsek-img-wrap img { height: 260px; }
}


/* ============================================
   MAX-WIDTH: 820px
   ============================================ */

@media (max-width: 820px) {
  .nv-chain {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    padding-left: 34px;
  }

  .nv-chain::before {
    left: 16px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--yellow), var(--purple) 45%, var(--purple) 55%, var(--yellow));
  }

  .nv-bead {
    width: 100%;
    flex-direction: row;
    text-align: left;
    transform: none !important;
    gap: 20px;
  }

  .nv-bead:nth-child(2) .nv-medal-wrap,
  .nv-bead:nth-child(4) .nv-medal-wrap {
    transform: none;
  }

  .nv-medal { width: 64px; height: 64px; flex-shrink: 0; }
  .nv-medal svg { width: 26px; height: 26px; }

  .nv-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nv-num { margin-top: 0; }
}


/* ============================================
   MAX-WIDTH: 768px (gabungan 4 blok jadi 1)
   ============================================ */

@media (max-width: 768px) {

  /* --- About / UPH section --- */
  #about.about-uph {
    min-height: auto;
    padding: 75px 0 90px;
  }

  .about-uph .about-container {
    width: min(100% - 32px, 600px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }

  .about-photo-main {
    order: 1;
    width: 100%;
    height: 420px;
    border-radius: 24px 24px 5px 5px;
  }

  .about-photo-small {
    order: 2;
    width: 100%;
    height: 210px;
  }

  .about-content {
    order: 3;
    padding-top: 5px;
  }

  .about-content h2 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .about-description {
    width: 100%;
    padding: 25px 22px;
  }

  .about-badge {
    top: 355px;
    left: 12px;
    width: calc(100% - 24px);
    min-height: 82px;
    padding: 15px 18px;
  }

  .about-highlight {
    order: 4;
    position: static;
    width: auto;
    margin-top: 2px;
  }

  /* --- Navbar & layout umum --- */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .section-pad { padding: 70px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-feed-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .prestasi-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .school-cards { grid-template-columns: 1fr; }
  .hero-school-badges { flex-direction: column; align-items: center; }

  /* --- Hero --- */
  #hero {
    height: 100svh;
    min-height: 600px;
  }

  .hero-video-wrap img {
    object-position: center top;
  }

  /* --- Kepala Sekolah / Guru --- */
  .kepsek-card { grid-template-columns: 1fr; padding: 28px; }
  .kepsek-img-wrap img { height: 280px; width: 200px; margin: 0 auto; }
  .kepsek-name { font-size: 1.4rem; }
  .guru-card { width: 160px; }
  .guru-card img { height: 180px; }
}


/* ============================================
   MAX-WIDTH: 480px (gabungan 6 blok jadi 1)
   ============================================ */

@media (max-width: 480px) {

  /* --- About / UPH section --- */
  #about.about-uph {
    padding: 65px 0 80px;
  }

  .about-photo-main {
    height: 350px;
  }

  .about-photo-small {
    height: 180px;
  }

  .about-content h2 {
    font-size: 2.25rem;
  }

  .about-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 6px 15px;
  }

  .about-description {
    padding: 22px 19px;
  }

  .about-description p {
    font-size: 0.87rem;
    line-height: 1.7;
  }

  .about-badge-number {
    font-size: 2.6rem;
  }

  .about-badge strong {
    font-size: 1rem;
  }

  .about-badge small {
    font-size: 0.67rem;
  }

  .about-highlight h3 {
    font-size: 1.65rem;
  }

  .about-highlight p {
    font-size: 0.82rem;
  }

  /* --- Grid layouts umum --- */
  .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .instagram-feed-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2.5rem; }
  .footer-bottom { text-align: center; }

  .insta-follow-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .insta-follow-btn .btn { font-size: 0.78rem; padding: 10px 18px; }
  .insta-follow-btn .btn img { width: 16px; height: 16px; }

  /* --- Visi Misi --- */
  .vm-vision { padding: 40px 26px 32px; border-radius: 28px 28px 8px 8px; }
  .vm-vision-text { font-size: 1.1rem; }
  .vm-mission { padding: 34px 22px; border-radius: 8px 8px 28px 28px; }
  .vm-mission-line::before { left: 23px; }
  .vm-mission-medal { width: 48px; height: 48px; }
  .vm-mission-medal svg { width: 20px; height: 20px; }
  .vm-mission-item { gap: 16px; }

  /* --- Map --- */
  .map-wrap iframe { height: 300px; }
  .map-direction-btn { font-size: 0.78rem; padding: 10px 16px; bottom: 12px; right: 12px; }

  /* --- Sambutan --- */
  .sambutan-photo-wrap img { height: 300px; }
  .sambutan-contact-box { padding: 18px; }

  /* --- Kepala Sekolah / Guru --- */
  .kepsek-stats { gap: 10px; }
  .kepsek-stat { padding: 8px 12px; }
  .guru-card { width: 140px; }
  .guru-card img { height: 160px; }
}


/* ============================================
   PREFERS-REDUCED-MOTION (gabungan 2 blok jadi 1)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .nv-bead { animation: none; opacity: 1; transform: none; }

  .ek2-card-inner,
  .ek2-card-inner::after,
  .ek2-icon-wrap,
  .ek2-cta-btn,
  .ek2-cta-arrow {
    transition: none !important;
  }

  .ek2-card::before {
    animation: none !important;
  }
}

/* FIX MOBILE WHITE STRIP / OVERFLOW */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  #navbar {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .nav-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-logo {
    min-width: 0;
  }

  .nav-logo img {
    max-width: 130px;
    height: auto;
  }

  .nav-right {
    margin-left: auto;
    flex-shrink: 0;
  }

  .hamburger {
    flex-shrink: 0;
  }

  /* cegah elemen yang melebar keluar layar */
  section,
  header,
  footer,
  main {
    max-width: 100%;
    overflow-x: hidden;
  }
}