:root {
  --navy:   #0b1f3a;
  --teal:   #0d9488;
  --teal2:  #14b8a6;
  --gold:   #f59e0b;
  --cream:  #f8f5f0;
  --gray:   #64748b;
  --light:  #f1f5f9;
  --white:  #ffffff;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── UTILITY ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(13,148,136,.12); color: var(--teal);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.tag.gold { background: rgba(245,158,11,.15); color: #b45309; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--navy);
}
.section-title span { color: var(--teal); }
.divider { width: 56px; height: 4px; background: var(--teal); border-radius: 99px; margin: 16px 0 24px; }
.divider.gold { background: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  text-decoration: none; transition: all .25s ease;
  border: none; font-family: var(--font-body);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,.35); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e48e00; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.35); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── TOPBAR ─────────────────────────────────── */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.75);
  font-size: 12px; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.topbar a:hover { color: var(--teal2); }
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--teal2); }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: background .2s;
}
.topbar-social a:hover { background: var(--teal); color: #fff; }

/* ─── NAVBAR ─────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { border-left: 2px solid #e2e8f0; padding-left: 12px; }
.nav-logo-text h1 { font-family: var(--font-display); font-size: 16px; color: var(--navy); line-height: 1.2; }
.nav-logo-text p { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--teal); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: #475569; text-decoration: none;
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--teal); border-radius: 2px;
  transition: width .25s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  transition: all .3s; border-radius: 2px; margin: 5px 0;
}
.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; position: fixed; inset: 0; background: #fff;
  z-index: 998; padding: 100px 24px 40px; flex-direction: column; gap: 20px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 20px; font-weight: 700; color: var(--navy);
  text-decoration: none; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9;
}
.mobile-menu a:hover { color: var(--teal); }

/* ─── HERO ─────────────────────────────────── */
.hero {
  position: relative; height: calc(100vh - 105px); min-height: 500px;
  overflow: hidden; background: var(--navy);
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,31,58,.25) 0%, rgba(11,31,58,.72) 60%, rgba(11,31,58,.92) 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 24px 60px;
  max-width: 1200px; margin: 0 auto;
}
.hero-content .tag { margin-bottom: 16px; background: rgba(20,184,166,.2); color: var(--teal2); border: 1px solid rgba(20,184,166,.3); }
.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff; line-height: 1.12; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content h2 em { color: var(--gold); font-style: normal; }
.hero-content p { font-size: 16px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 24px; right: 24px; display: flex; gap: 8px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4);
  border: none; cursor: pointer; transition: all .3s;
}
.hero-dot.active { width: 28px; background: var(--teal2); }

/* ─── STATS BAR ─────────────────────────────────── */
.stats-bar {
  background: var(--navy); color: #fff;
  padding: 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--teal);
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--teal2); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; font-weight: 500; }

/* ─── ABOUT ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-images { position: relative; }
.about-img-main {
  width: 100%; height: 460px; object-fit: cover; border-radius: 20px;
  display: block; box-shadow: 0 20px 60px rgba(11,31,58,.18);
}
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); padding: 20px 24px; border-radius: 16px;
  text-align: center; box-shadow: 0 8px 32px rgba(245,158,11,.35);
}
.about-img-badge strong { display: block; font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.about-img-badge span { font-size: 12px; font-weight: 700; color: var(--navy); opacity: .7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.feat-card {
  background: var(--cream); border-radius: 14px; padding: 20px;
  border: 1px solid rgba(0,0,0,.05); transition: all .25s;
}
.feat-card:hover { background: var(--teal); border-color: var(--teal); }
.feat-card:hover .feat-icon { background: rgba(255,255,255,.2); color: #fff; }
.feat-card:hover .feat-title { color: #fff; }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(13,148,136,.12); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px; transition: all .25s;
}
.feat-title { font-size: 13px; font-weight: 700; color: var(--navy); transition: color .25s; }

/* ─── PPDB ─────────────────────────────────── */
.ppdb-section { background: var(--cream); }
.ppdb-card {
  background: var(--navy); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 80px rgba(11,31,58,.25);
  min-height: 480px;
}
.ppdb-content {
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
}
.ppdb-content .tag { background: rgba(245,158,11,.2); color: var(--gold); margin-bottom: 20px; }
.ppdb-content h2 { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); color: #fff; line-height: 1.15; margin-bottom: 16px; }
.ppdb-content h2 em { color: var(--teal2); font-style: normal; }
.ppdb-content p { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 32px; font-size: 15px; }
.ppdb-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.ppdb-step { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 14px; }
.ppdb-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.ppdb-image { position: relative; overflow: hidden; }
.ppdb-image img { width: 100%; height: 100%; object-fit: cover; }
.ppdb-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,31,58,.3), transparent);
}
.ppdb-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── GALLERY ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  overflow: hidden; border-radius: 14px; position: relative; cursor: pointer;
  background: var(--light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:nth-child(1) { grid-column: span 2; height: 300px; }
.gallery-item:nth-child(2) { height: 300px; }
.gallery-item:nth-child(3) { height: 300px; }
.gallery-item:nth-child(4) { height: 220px; }
.gallery-item:nth-child(5) { height: 220px; }
.gallery-item:nth-child(6) { grid-column: span 2; height: 220px; }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(11,31,58,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 24px; }

/* ─── PROGRAMS (Digabung dengan CSS Tambahan Anda) ─── */
.programs-bg {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 10px;
}
.program-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,.05);
}
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(11,31,58,.14);
}
.program-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.program-card:hover .program-img img {
  transform: scale(1.1);
}
.program-body {
  padding: 30px;
  position: relative;
}
.program-icon {
  width: 50px;
  height: 50px;
  background: #e8f5f3;
  color: #209384;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 20px;
}
.program-body h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
}
.program-body p {
  color: #7f8c8d;
  line-height: 1.6;
  font-size: 15px;
}
.ekstrakurikuler-card .program-img img {
  object-position: center bottom !important; 
}
.tag.program-tag { /* Class khusus untuk tag di dalam section yang di-override */
  display: table;
  background: #e8f5f3;
  color: #209384;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.section-title.program-title span {
  color: #209384;
}
.divider.program-divider {
  width: 60px;
  height: 4px;
  background: #209384;
  border-radius: 2px;
}

/* ─── KARIR ─────────────────────────────────── */
.karir-card {
  position: relative; border-radius: 24px; overflow: hidden;
  height: 420px; cursor: pointer;
}
.karir-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.karir-card:hover img { transform: scale(1.04); }
.karir-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,.95) 40%, rgba(11,31,58,.3) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 40px;
}
.karir-positions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pos-card {
  background: #fff; border-radius: 16px; padding: 24px;
  border: 1px solid rgba(0,0,0,.07); transition: all .25s;
}
.pos-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(13,148,136,.15); transform: translateY(-3px); }
.pos-icon { font-size: 28px; margin-bottom: 12px; }
.pos-card h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.pos-card p { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.pos-badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 11px; font-weight: 700; background: rgba(13,148,136,.1); color: var(--teal);
}
.pos-badge.full { background: rgba(245,158,11,.1); color: #b45309; }

/* ─── KONTAK ─────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-map { border-radius: 20px; overflow: hidden; height: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }
.contact-info h2 { margin-bottom: 8px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(13,148,136,.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-item strong { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.contact-item span { font-size: 13px; color: var(--gray); }
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 24px rgba(37,211,102,.45);
  text-decoration: none; transition: all .25s;
  animation: pulse-wa 2s infinite;
}
.wa-float:hover { transform: scale(1.1); background: #1ebe5c; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,.7); }
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 18px; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none; transition: all .2s;
}
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal2); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.35); }

/* ─── LIGHTBOX ─────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: #fff; font-size: 32px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 50px; height: 50px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .topbar-left { display: none; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-main { height: 320px; }
  .about-img-badge { bottom: 12px; right: 12px; }
  .ppdb-card { grid-template-columns: 1fr; }
  .ppdb-image { height: 260px; order: -1; }
  .ppdb-image::after { background: linear-gradient(to top, rgba(11,31,58,.4), transparent); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(6) { grid-column: span 2; }
  .programs-grid { grid-template-columns: 1fr; }
  .karir-positions { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ppdb-content { padding: 36px 28px; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .about-features { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item { height: 160px !important; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 2; height: 200px !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 24px 24px 48px; }
  .hero-content h2 { font-size: 2rem; }
  .karir-card { height: 320px; }
  .karir-overlay { padding: 24px; }
}

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
