/* ============================================================
   GLOBAL STYLES — Darul Furqan Website
   Design: Modern Glassmorphism + Gen-Z Aesthetic
   LN 6 Reference: Prinsip Simplicity, Hierarki Visual,
                   Konsistensi, Usability
   ============================================================ */

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

:root {
  --primary:       #059669;
  --primary-light: #10b981;
  --primary-dark:  #047857;
  --primary-glow:  rgba(5,150,105,0.25);
  --dark:          #0f172a;
  --dark-card:     #1e293b;
  --dark-border:   #334155;
  --dark-muted:    #475569;
  --light:         #f8fafc;
  --light-card:    #ffffff;
  --text-main:     #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 48px rgba(0,0,0,.14);
  --transition:    0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; }

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 5rem 0; background: var(--dark); color: #fff; }
.section-light { padding: 5rem 0; background: var(--light); color: var(--text-main); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: #fff;
}
.btn-outline {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(16,185,129,.12);
  color: var(--primary-light);
}
.btn-outline-white {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-dark); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(16px);
  padding: .6rem 0;
  border-bottom: 1px solid var(--dark-border);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
}
.brand-logo {
  height: 42px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.brand-logo-img {
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}

/* SVG icon sizing */
.icon     { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm  { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-md  { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-lg  { width: 28px; height: 28px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-xl  { width: 36px; height: 36px; flex-shrink: 0; display: inline-block; }
.icon-2xl { width: 48px; height: 48px; flex-shrink: 0; display: inline-block; }
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.1; color: #fff; }
.brand-sub  { font-size: .72rem; color: var(--primary-light); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.nav-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow) !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(5,150,105,.35) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 0% 100%, rgba(16,185,129,.15) 0%, transparent 60%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.hero-overlay {
  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='%2310b981' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4rem;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--primary-light);
  padding: .4rem 1rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}
.stat-divider { display: none; }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem 1.3rem;
  gap: 0.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: default;
}
.stat-item:hover {
  background: rgba(16,185,129,.14);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16,185,129,.18);
}
.stat-icon {
  width: 46px;
  height: 46px;
  background: rgba(16,185,129,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.stat-item:hover .stat-icon {
  background: rgba(16,185,129,.28);
  transform: scale(1.1);
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  letter-spacing: 0.5px;
  animation: statPop 0.7s cubic-bezier(.4,0,.2,1) both;
}
@keyframes statPop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
.stat-item:nth-child(1) .stat-num { animation-delay: 0.05s; }
.stat-item:nth-child(2) .stat-num { animation-delay: 0.15s; }
.stat-item:nth-child(3) .stat-num { animation-delay: 0.25s; }
.stat-item:nth-child(4) .stat-num { animation-delay: 0.35s; }
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  margin-top: .15rem;
  line-height: 1.3;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollAnim 1.6s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%      { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-badge {
  display: inline-block;
  background: rgba(5,150,105,.12);
  border: 1px solid rgba(5,150,105,.25);
  color: var(--primary);
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.section-light .section-badge {
  background: rgba(5,150,105,.1);
  color: var(--primary-dark);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-title { color: var(--text-main); }
.section .section-title { color: #fff; }
.section-light .section-title { color: var(--text-main); }
.section.section-light .section-title { color: var(--text-main); }
.section-desc { color: rgba(255,255,255,.65); max-width: 540px; margin: 0 auto; }
.section-light .section-desc { color: var(--text-muted); }
.section.section-light .section-desc { color: var(--text-muted); }
.section.section-light .section-badge { background: rgba(5,150,105,.1); color: var(--primary-dark); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* --- PROGRAM CARDS --- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--light-card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(5,150,105,.15);
  border-color: var(--primary-light);
}
.program-card.featured {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 40px var(--primary-glow);
}
.program-card.featured:hover { box-shadow: 0 20px 56px rgba(5,150,105,.45); }
.program-badge-card {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
}
.program-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,150,105,.1);
  border-radius: var(--radius-md);
  color: var(--primary);
  margin-bottom: 1rem;
}
.program-card.featured .program-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.program-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.program-card.featured h3 { color: #fff; }
.program-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.program-card.featured p { color: rgba(255,255,255,.85); }
.program-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tag {
  background: rgba(5,150,105,.1);
  color: var(--primary-dark);
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.program-card.featured .tag {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.program-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.program-card.featured .program-link { color: rgba(255,255,255,.9); }
.program-link:hover { color: var(--primary-dark); }
.program-card.featured .program-link:hover { color: #fff; }

/* --- PPDB BANNER --- */
.ppdb-banner {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  background: var(--dark-card);
}
.ppdb-banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,150,105,.2) 0%, transparent 60%),
              radial-gradient(ellipse 60% 100% at right, rgba(16,185,129,.15) 0%, transparent 70%);
}
.ppdb-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ppdb-banner-text { flex: 1; min-width: 280px; }
.ppdb-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.ppdb-banner-text h2 { font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.ppdb-banner-text p { color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.ppdb-deadline { color: var(--primary-light); font-weight: 600; font-size: .9rem; }
.ppdb-banner-action { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.ppdb-banner-action .btn { width: 100%; justify-content: center; }

/* --- NEWS CARDS --- */
.news-card {
  background: var(--light-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.news-img {
  height: 180px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.news-img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.news-kategori {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--primary);
  color: #fff;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.news-body { padding: 1.5rem; }
.news-date { font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }
.news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5rem;
  color: var(--text-main);
}
.news-excerpt { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.news-link { font-size: .85rem; font-weight: 600; color: var(--primary); }
.news-link:hover { color: var(--primary-dark); }

/* --- ACHIEVEMENT --- */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.achievement-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.achievement-card:hover {
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.3);
  transform: translateX(4px);
}
.achievement-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light);
}
.achievement-title { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }
.achievement-meta { font-size: .78rem; color: var(--primary-light); }

/* --- GALERI PREVIEW --- */
.galeri-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.galeri-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  cursor: pointer;
}
.galeri-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.galeri-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.galeri-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,150,105,.85) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay span { color: #fff; font-weight: 600; font-size: .9rem; }

/* --- FOOTER --- */
.footer {
  background: #060d1a;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-tagline { font-size: .88rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.footer-heading {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact-list li {
  display: flex; gap: .75rem;
  font-size: .88rem;
  margin-bottom: .75rem;
  align-items: flex-start;
}
.contact-icon { flex-shrink: 0; margin-top: .1rem; color: var(--primary-light); width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-admin-link { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-admin-link:hover { color: var(--primary-light); }

/* === PAGE-SPECIFIC: PROFIL === */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 50%, rgba(5,150,105,.2) 0%, transparent 70%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.page-hero-breadcrumb a { color: var(--primary-light); }
.page-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 600px; }

/* === TABS === */
.tabs-nav {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-btn {
  padding: .65rem 1.25rem;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === FORM STYLES === */
.form-card {
  background: var(--light-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full-width { grid-column: span 2; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text-main); }
.form-label span { color: #ef4444; }
.form-input, .form-select, .form-textarea {
  padding: .7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--text-main);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-file {
  padding: .7rem 1rem;
  border: 2px dashed #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.form-file:hover { border-color: var(--primary); color: var(--primary); }
.form-hint { font-size: .78rem; color: var(--text-light); }

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid,
.form-file.is-invalid {
  border-color: #ef4444 !important;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ppdb-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(92vw, 360px);
  padding: .95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #9a3412;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(180, 83, 9, .18);
  border: 1px solid #fdba74;
  border-left: 6px solid #f59e0b;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10000;
  pointer-events: none;
}
.ppdb-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === STEP INDICATOR === */
.steps-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.step-item.done::after, .step-item.active::after { background: var(--primary-light); }
.step-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-item.active .step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.step-item.done .step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.step-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-top: .4rem; text-align: center; }
.step-item.active .step-label { color: var(--primary-dark); }
.step-item.done .step-label { color: var(--primary); }

/* === STATUS CHECK === */
.status-result {
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
}
.status-result.show { display: block; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.status-menunggu  { background: #fef3c7; color: #d97706; }
.status-diterima  { background: #d1fae5; color: #065f46; }
.status-ditolak   { background: #fee2e2; color: #b91c1c; }
.status-cadangan  { background: #dbeafe; color: #1d4ed8; }

/* === ADMIN STYLES === */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: var(--dark);
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-nav { padding: 1rem; flex: 1; }
.sidebar-section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  padding: .5rem .75rem;
  margin-top: .5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(16,185,129,.12);
  color: var(--primary-light);
}
.sidebar-link .sidebar-icon { width: 20px; height: 20px; flex-shrink: 0; color: inherit; display: flex; align-items: center; justify-content: center; }
.sidebar-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 99px;
}

.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-notif {
  position: relative;
  width: 38px; height: 38px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}
.admin-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.admin-content { padding: 2rem 1.5rem; }

/* STAT CARDS */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-green  { background: rgba(5,150,105,.1);  color: var(--primary); }
.icon-blue   { background: rgba(59,130,246,.1); color: #3b82f6; }
.icon-yellow { background: rgba(234,179,8,.1);  color: #d97706; }
.icon-red    { background: rgba(239,68,68,.1);  color: #ef4444; }
.stat-card-info { flex: 1; }
.stat-card-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: .25rem; }
.stat-card-value { font-size: 1.75rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.stat-card-change { font-size: .78rem; color: var(--primary); margin-top: .25rem; }

/* DATA TABLE */
.data-table-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.table-title { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.table-actions { display: flex; gap: .5rem; align-items: center; }
.table-search {
  padding: .5rem .9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  outline: none;
  transition: all var(--transition);
}
.table-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #f8fafc;
  padding: .75rem 1.25rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #e2e8f0;
}
.data-table td {
  padding: .9rem 1.25rem;
  font-size: .88rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.table-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-menunggu  { background: #fef3c7; color: #d97706; }
.badge-diterima  { background: #d1fae5; color: #065f46; }
.badge-ditolak   { background: #fee2e2; color: #b91c1c; }
.badge-published { background: #d1fae5; color: #065f46; }
.badge-draft     { background: #f1f5f9; color: #64748b; }

/* === LOGIN PAGE === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 30% 50%, rgba(5,150,105,.2) 0%, transparent 70%),
              radial-gradient(ellipse 60% 60% at 80% 20%, rgba(16,185,129,.1) 0%, transparent 70%);
}
.login-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo .brand-logo {
  width: 60px; height: 60px;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.login-logo h2 { color: #fff; font-weight: 800; font-size: 1.3rem; }
.login-logo p { color: rgba(255,255,255,.5); font-size: .85rem; }
.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.login-input-wrap { position: relative; }
.login-input-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: rgba(255,255,255,.4);
}
.login-input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.5rem;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: all var(--transition);
}
.login-input::placeholder { color: rgba(255,255,255,.35); }
.login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.login-btn {
  width: 100%;
  padding: .9rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }
.login-footer { text-align: center; margin-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.4); }
.login-footer a { color: var(--primary-light); }

/* === GALERI PAGE === */
.galeri-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.galeri-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.galeri-card:hover .galeri-overlay { opacity: 1; }
.galeri-card-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* === PRESTASI PAGE === */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.prestasi-card {
  background: var(--light-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}
.prestasi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.prestasi-medal {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.prestasi-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.prestasi-meta { font-size: .8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .4rem; }
.prestasi-tingkat {
  background: rgba(5,150,105,.1);
  color: var(--primary-dark);
  padding: .15rem .5rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}

/* === KONTAK PAGE === */
.kontak-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; }
.kontak-info-card {
  background: var(--light-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
}
.kontak-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.kontak-info-icon {
  width: 46px; height: 46px;
  background: rgba(5,150,105,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.kontak-info-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; }
.kontak-info-value { font-size: .95rem; font-weight: 600; color: var(--text-main); }
.maps-embed {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Admin sidebar overlay */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.admin-sidebar-overlay.show { display: block; }
#sidebarToggle { display: none; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
  #sidebarToggle { display: flex; align-items: center; justify-content: center; }
  .admin-topbar { padding: .75rem 1rem; }
  .admin-content { padding: 1.5rem 1rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; width: 260px; height: 100vh; background: var(--dark); padding: 5rem 1.25rem 2rem; gap: .25rem; z-index: 999; transform: translateX(100%); transition: transform var(--transition); }
  .nav-links.open { transform: translateX(0); display: flex; }
  .hamburger { display: flex; z-index: 1000; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .galeri-preview-grid { grid-template-columns: 1fr 1fr; }
  .galeri-item.large { grid-column: span 2; }
  .ppdb-banner-inner { flex-direction: column; }
  .ppdb-banner-action { width: 100%; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
  }
  .stat-item { padding: 1.1rem 0.5rem 1rem; }
  .stat-icon { width: 38px; height: 38px; margin-bottom: 0.4rem; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .72rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .table-header { flex-wrap: wrap; gap: .75rem; }
  .table-actions { width: 100%; flex-wrap: wrap; }
  .table-search { flex: 1; min-width: 140px; }
  .stat-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .galeri-preview-grid { grid-template-columns: 1fr; }
  .galeri-item.large { grid-column: span 1; }
  .ppdb-banner-action { flex-direction: column; }
  .step-dot { width: 32px; height: 32px; font-size: .75rem; }
  .step-item:not(:last-child)::after { top: 16px; }
  .step-label { font-size: .65rem; }
  .steps-nav { margin-bottom: 1.5rem; }
  .stat-cards-grid { grid-template-columns: 1fr; }
  .admin-topbar { flex-wrap: wrap; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  .hero-content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .stat-item { padding: 1.1rem 0.75rem; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: .75rem; }
}

.maps-embed {
  width: 100%;
  height: 400px; /* samakan dengan iframe */
  overflow: hidden;
  border-radius: 16px; /* opsional */
}

.maps-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}