/* ============================================================
   IPS IBNU SINA – GLOBAL STYLESHEET
   Premium Dark Theme Design System (Public Pages & Admin Dashboard)
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Brand Dark Theme Colors */
  --navy-deep:     #0B1B30; /* Main body bg */
  --navy-card:     #0F2340; /* Cards, panels, modals */
  --navy-border:   #1A3155; /* Fine borders */
  --navy-hover:    #1F3A66; /* Hover states */
  --emerald:       #1B7A5A; /* Accent green, categories, badges */
  --emerald-light: #249C74;
  --gold:          #C9A24B; /* CTA, main highlights, branding */
  --gold-light:    #DEC280;
  --gold-dark:     #A07F37;
  --cream:         #F7F1E3; /* Primary headings, text on dark */
  --cream-muted:   rgba(247, 241, 227, 0.65); /* Readable body text */
  --white:         #FFFFFF;
  --dark-accent:   #06101D; /* Darker offsets */

  /* Semantic status colors */
  --success:       #22C55E;
  --error:         #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-px:  24px;
  --section-py:    100px;
  --section-py-sm: 60px;
  
  /* Admin layout sizes */
  --sidebar-width: 240px;
  --topbar-height: 70px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --radius-full: 9999px;

  /* Shadow offsets */
  --shadow-glow: 0 8px 32px rgba(201, 162, 75, 0.15);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: var(--navy-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-deep);
  color: var(--cream-muted);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ---- Utility Classes ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  position: relative;
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-title em {
  color: var(--gold);
  font-style: italic;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--cream-muted);
  line-height: 1.8;
}

/* ---- Buttons ---- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 200%;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(201,162,75,0.25);
  white-space: nowrap;
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,162,75,0.4);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid rgba(201,162,75,0.5);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: var(--transition);
  background: rgba(15,35,64,0.3);
  backdrop-filter: blur(4px);
}

.btn-outline-gold:hover {
  background: rgba(201,162,75,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 2px solid rgba(201,162,75,0.4);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  background: rgba(201,162,75,0.05);
}

.btn-gold-outline:hover {
  background: rgba(201,162,75,0.18);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Ornament Dividers */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  margin-bottom: 40px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,0.3), transparent);
}

.ornament-center {
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR (PUBLIC)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11, 27, 48, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--navy-border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(201,162,75,0.3);
  overflow: hidden;
}

.logo-star {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--navy-deep);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.logo-crescent {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--navy-deep);
  right: 5px;
  top: 5px;
  background: var(--gold);
  box-shadow: 2px 2px 0 var(--navy-deep);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-ips {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(201,162,75,0.08);
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  font-size: 0.85rem;
}

.nav-admin-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-border);
  color: var(--cream-muted);
  transition: var(--transition);
  background: rgba(26,49,85,0.3);
}

.nav-admin-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,75,0.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, rgba(27,122,90,0.15) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(201,162,75,0.1) 0%, transparent 50%),
              linear-gradient(to bottom, #06101D, var(--navy-deep));
  overflow: hidden;
}

/* Radial Glow Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}
.glow-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--emerald);
  top: 10%;
  right: -100px;
}
.glow-blob-2 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  bottom: -150px;
  left: -150px;
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04; /* Islamic geometric pattern at 4% */
}

.mosque-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px var(--container-px) 80px;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,75,0.12);
  border: 1px solid rgba(201,162,75,0.3);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title em {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--cream-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(15, 35, 64, 0.45);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 0;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(201,162,75,0.08);
  border: 1px solid rgba(201,162,75,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.stat-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--cream-muted);
}

.stat-divider {
  height: 40px;
  width: 1px;
  background: var(--navy-border);
}

/* ============================================================
   TENTANG KAMI
   ============================================================ */
.tentang-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.tentang-text {
  font-size: 1.02rem;
  margin-bottom: 20px;
  color: var(--cream-muted);
}

.tentang-text em {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

.values-callout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.values-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.values-icon {
  width: 40px;
  height: 40px;
  background: rgba(27,122,90,0.1);
  border: 1px solid rgba(27,122,90,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  flex-shrink: 0;
}

.values-text {
  display: flex;
  flex-direction: column;
}

.values-text strong {
  font-size: 0.95rem;
  color: var(--cream);
}

.values-text span {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

/* Right Decorative Card */
.visual-card {
  position: relative;
  background: linear-gradient(145deg, var(--navy-card), var(--dark-accent));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.visual-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.visual-quran-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(201,162,75,0.25));
}

.visual-arabic {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 8px;
  direction: rtl;
}

.visual-arabic-trans {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 32px;
}

.visual-visi {
  background: rgba(11,27,48,0.5);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.visi-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
}

.visi-text {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.6;
}

.visual-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

.mini-label {
  font-size: 0.65rem;
  color: var(--cream-muted);
  text-align: center;
}

.floating-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--emerald);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(27,122,90,0.3);
}

/* ============================================================
   KURIKULUM ITAP
   ============================================================ */
.kurikulum {
  background: radial-gradient(circle at bottom right, rgba(27,122,90,0.1) 0%, transparent 60%),
              radial-gradient(circle at top left, rgba(201,162,75,0.06) 0%, transparent 50%),
              #071424;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.itap-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.itap-letters {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.itap-letter {
  width: 56px;
  height: 56px;
  border: 2px solid var(--navy-border);
  background: var(--navy-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,162,75,0.15);
  box-shadow: var(--shadow-dark);
}

.itap-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

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

.pillar-card {
  background: rgba(15,35,64,0.55);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(to bottom, var(--navy-border), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,162,75,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), var(--shadow-glow);
}

.pillar-letter {
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(201,162,75,0.04);
  line-height: 1;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,162,75,0.06);
  border: 1px solid rgba(201,162,75,0.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.pillar-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.pillar-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cream-muted);
  margin-bottom: 24px;
}

.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--navy-border);
  padding-top: 20px;
}

.pillar-features span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--cream-muted);
}

.pillar-features i {
  color: var(--emerald);
  font-size: 0.85rem;
}

.kurikulum-cta {
  margin-top: 48px;
  text-align: center;
}

/* ============================================================
   KEUNGGULAN
   ============================================================ */
.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.keunggulan-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.keunggulan-card:hover {
  border-color: rgba(201,162,75,0.25);
  box-shadow: var(--shadow-dark), var(--shadow-glow);
  transform: translateY(-3px);
}

.keu-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(27,122,90,0.08);
  border: 1px solid rgba(27,122,90,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-light);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.keu-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.4;
}

.keu-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--cream-muted);
}

/* ============================================================
   FASILITAS CAROUSEL
   ============================================================ */
.fasilitas-carousel-wrapper {
  position: relative;
  margin: 0 auto;
}

.fasilitas-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 30px;
  cursor: grab;
  scrollbar-width: none; /* Hide default scrollbar */
}

.fasilitas-carousel::-webkit-scrollbar {
  display: none;
}

.fasilitas-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
}

.fasilitas-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,162,75,0.2);
}

.fas-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--gold);
}

.fas-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.fas-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--cream-muted);
}

.fas-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--cream-muted);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  color: var(--cream-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-border);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: var(--radius-full);
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card.featured {
  background: linear-gradient(to bottom right, #0F2647, var(--navy-card));
  border-color: rgba(201,162,75,0.3);
  box-shadow: var(--shadow-glow);
}

.testi-quote-mark {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(201,162,75,0.06);
  line-height: 1;
}

.testi-stars {
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 18px;
  display: flex;
  gap: 4px;
}

.testi-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

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

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
}

.testi-info {
  display: flex;
  flex-direction: column;
}

.testi-info strong {
  font-size: 0.9rem;
  color: var(--cream);
}

.testi-info span {
  font-size: 0.72rem;
  color: var(--cream-muted);
}

/* ============================================================
   PUBLIC BLOG ARTIKEL & GALERI (DYNAMIC SECTIONS)
   ============================================================ */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.artikel-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

.artikel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,75,0.25);
  box-shadow: var(--shadow-dark), var(--shadow-glow);
}

.artikel-cover-wrap {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-border), var(--navy-deep));
}

.artikel-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.artikel-card:hover .artikel-cover {
  transform: scale(1.05);
}

.artikel-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.artikel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kategori-badge {
  background: rgba(27,122,90,0.12);
  border: 1px solid rgba(27,122,90,0.3);
  color: var(--emerald-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.artikel-date {
  font-size: 0.72rem;
  color: var(--cream-muted);
}

.artikel-title-link {
  display: block;
  margin-bottom: 10px;
}

.artikel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
}

.artikel-title:hover {
  color: var(--gold-light);
}

.artikel-excerpt {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artikel-readmore {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.artikel-readmore:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.section-footer-link {
  text-align: center;
  margin-top: 48px;
}

/* Dynamic Gallery (Grid Section) */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.galeri-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--navy-border);
  box-shadow: var(--shadow-dark);
}

.galeri-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,27,48,0.92) 0%, rgba(11,27,48,0.3) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.galeri-item:hover .galeri-img {
  transform: scale(1.06);
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.galeri-item-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-empty {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  color: var(--cream-muted);
}

.gallery-admin-link {
  margin-top: 32px;
  text-align: center;
}

/* ============================================================
   PENDAFTARAN / FORM
   ============================================================ */
.pendaftaran {
  background: radial-gradient(circle at top left, rgba(201,162,75,0.06) 0%, transparent 50%),
              #071221;
  border-top: 1px solid var(--navy-border);
}

.pendaftaran-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pendaftaran-desc {
  font-size: 1.05rem;
  color: var(--cream-muted);
  margin-bottom: 32px;
}

.pendaftaran-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.ph-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ph-item i {
  width: 44px;
  height: 44px;
  background: rgba(201,162,75,0.06);
  border: 1px solid rgba(201,162,75,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ph-item div {
  display: flex;
  flex-direction: column;
}

.ph-item strong {
  font-size: 0.95rem;
  color: var(--cream);
}

.ph-item span {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.pendaftaran-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--navy-border);
}

.social-pill.whatsapp {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
  color: #22c55e;
}
.social-pill.whatsapp:hover {
  background: rgba(34,197,94,0.18);
  border-color: #22c55e;
  transform: translateY(-2px);
}

.social-pill.instagram {
  background: rgba(236,72,153,0.08);
  border-color: rgba(236,72,153,0.2);
  color: #ec4899;
}
.social-pill.instagram:hover {
  background: rgba(236,72,153,0.18);
  border-color: #ec4899;
  transform: translateY(-2px);
}

/* Card Form */
.form-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-dark);
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--cream);
}

.form-header p {
  font-size: 0.78rem;
  color: var(--cream-muted);
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-muted);
}

.form-group label .req {
  color: var(--error);
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  background: rgba(6,16,29,0.5);
  border: 1px solid var(--navy-border);
  color: var(--cream);
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
}

.input-wrap textarea {
  padding-top: 12px;
  resize: vertical;
}

.textarea-wrap i {
  top: 20px;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.1);
  background: rgba(6,16,29,0.7);
}

.field-error {
  font-size: 0.72rem;
  color: var(--error);
  display: none;
  margin-top: 2px;
}

.field-error.show {
  display: block;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,75,0.3);
}

.form-note {
  font-size: 0.7rem;
  color: var(--cream-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note i {
  color: var(--emerald-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-accent);
  border-top: 1px solid var(--navy-border);
  padding: 40px 0 20px;
}

.footer-divider {
  margin-bottom: 40px;
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--cream-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  color: var(--cream-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,75,0.05);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.82rem;
  color: var(--cream-muted);
}

.footer-links-list a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--cream-muted);
}

.footer-contact-list i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--cream-muted);
}

.footer-copy-sep {
  margin: 0 8px;
  color: var(--navy-border);
}

.footer-back-top {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-back-top:hover {
  color: var(--gold-light);
}

/* Floating WA Float */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 999;
  transition: var(--transition);
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.wa-float i {
  font-size: 1.15rem;
}

/* ============================================================
   TOAST STYLING (GLOBAL)
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.toast {
  background: var(--navy-card);
  border-left: 4px solid var(--emerald);
  box-shadow: var(--shadow-dark);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.82rem;
  position: relative;
}

.toast-success {
  border-color: var(--success);
}

.toast-success i {
  color: var(--success);
}

.toast-error {
  border-color: var(--error);
}

.toast-error i {
  color: var(--error);
}

.toast-message {
  flex: 1;
}

.toast-close {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--cream-muted);
  cursor: pointer;
}

.toast-fadeout {
  animation: toastFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes toastFadeOut {
  to { opacity: 0; transform: translateY(20px); }
}

/* ============================================================
   SKELETON ANIMATIONS & LOADERS
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--navy-border) 25%, rgba(26,49,85,0.6) 50%, var(--navy-border) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  width: 80%;
}

.skeleton-rect {
  height: 160px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   LIGHTBOX OVERLAY (PUBLIC GALLERY)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,16,29,0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: var(--navy-deep);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-details {
  text-align: center;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: var(--cream-muted);
}

.lightbox-close {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 2rem;
  color: var(--cream-muted);
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--gold);
}

/* ============================================================
   PUBLIC ARTIKEL LISTING PAGE SPECIFIC
   ============================================================ */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, var(--dark-accent), var(--navy-deep));
  border-bottom: 1px solid var(--navy-border);
}

.filter-search-wrap {
  margin: -30px auto 40px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-dark);
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  color: var(--cream-muted);
  transition: var(--transition);
}

.filter-pill:hover {
  color: var(--gold);
  border-color: rgba(201,162,75,0.3);
  background: rgba(201,162,75,0.05);
}

.filter-pill.active {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.search-input-wrap {
  position: relative;
  width: 320px;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
}

.search-input-wrap input {
  width: 100%;
  background: rgba(6,16,29,0.5);
  border: 1px solid var(--navy-border);
  color: var(--cream);
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--gold);
  background: rgba(6,16,29,0.8);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.1);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 700;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,75,0.05);
}

.page-btn.active {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.82rem;
  color: var(--cream-muted);
}

/* ============================================================
   PUBLIC DETAIL ARTICLE PAGE SPECIFIC
   ============================================================ */
.detail-article-wrap {
  padding: 120px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.detail-cover-container {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-border);
  margin-bottom: 32px;
}

.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 24px;
}

.detail-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cream-muted);
}

.detail-content p {
  margin-bottom: 20px;
}

.detail-content h2 {
  font-family: var(--font-heading);
  color: var(--cream);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.detail-content h3 {
  font-family: var(--font-heading);
  color: var(--cream);
  margin: 28px 0 14px;
  font-size: 1.25rem;
}

.detail-content ul, .detail-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.detail-content ul {
  list-style: disc;
}

.detail-content ol {
  list-style: decimal;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-content blockquote {
  border-left: 3px solid var(--gold);
  background: var(--navy-card);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-style: italic;
  color: var(--cream);
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 40px;
  border-bottom: 1.5px solid transparent;
}

.detail-back-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============================================================
   ADMIN LAYOUT SYSTEM & COMPONENTS
   ============================================================ */
.admin-body {
  background: var(--dark-accent);
  color: var(--cream);
}

/* Login Page specific styling */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--dark-accent));
  padding: 24px;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.login-logo .logo-ips {
  font-size: 1.6rem;
}

.login-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  display: none;
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
}

/* Sidebar navigation */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--navy-deep);
  border-right: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--navy-border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.sidebar-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
}

.sidebar-hamburger {
  display: none;
  font-size: 1rem;
  color: var(--cream-muted);
}

.admin-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.12em;
  padding: 10px 12px 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-muted);
  transition: var(--transition);
}

.admin-nav-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.admin-nav-link:hover {
  background: var(--navy-border);
  color: var(--cream);
}

.admin-nav-link.active {
  background: linear-gradient(135deg, rgba(201,162,75,0.18), rgba(201,162,75,0.06));
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--navy-border);
  flex-shrink: 0;
}

.btn-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--error);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-signout:hover {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}

/* Admin Main wrapper layout */
.admin-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: var(--topbar-height);
  background: var(--navy-card);
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-mobile-menu {
  display: none;
  font-size: 1.2rem;
  color: var(--cream);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}

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

.admin-main {
  flex: 1;
  padding: 32px;
}

/* Dashboard statistics cards grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-dark);
}

.dash-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-label {
  font-size: 0.76rem;
  color: var(--cream-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dash-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-top: 4px;
}

.recent-activity-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.dashboard-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-dark);
}

.db-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-border);
}

.db-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-card-title i {
  color: var(--gold);
}

/* Admin Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.admin-table th {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--gold-light);
  border-bottom: 2px solid var(--navy-border);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: rgba(6,16,29,0.3);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--navy-border);
  color: var(--cream-muted);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(26,49,85,0.15);
  color: var(--cream);
}

.cover-thumb {
  width: 50px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.published {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--success);
}

.status-badge.draft {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--navy-border);
  color: var(--cream-muted);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-border);
  background: rgba(255,255,255,0.02);
  color: var(--cream-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,75,0.05);
}

.action-btn.danger:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239,68,68,0.05);
}

.action-btn.success:hover {
  border-color: var(--success);
  color: var(--success);
  background: rgba(34,197,94,0.05);
}

/* Quick Actions buttons grid */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(6,16,29,0.3);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.qa-link-btn i {
  font-size: 1.1rem;
  color: var(--gold);
}

.qa-link-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: rgba(201,162,75,0.02);
}

/* ============================================================
   ADMIN EDITOR (Quill.js custom theme styling + Cover upload)
   ============================================================ */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.editor-card {
  min-height: 480px;
}

.editor-title-input {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--navy-border);
  padding-bottom: 12px;
  margin-bottom: 8px;
  outline: none;
}

.editor-title-input::placeholder {
  color: var(--cream-muted);
  opacity: 0.3;
}

.editor-slug-path {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.editor-sidebar-box {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-dark);
}

.editor-sidebar-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--navy-border);
  padding-bottom: 8px;
}

.editor-status-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(6,16,29,0.5);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.toggle-pill-btn {
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--cream-muted);
}

.toggle-pill-btn.active {
  background: var(--gold);
  color: var(--navy-deep);
}

/* File cover select element styling */
.cover-upload-zone {
  border: 2px dashed var(--navy-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(6,16,29,0.3);
  transition: var(--transition);
  margin-bottom: 16px;
  position: relative;
}

.cover-upload-zone:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,0.02);
}

.cover-upload-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.cover-upload-text {
  font-size: 0.78rem;
  color: var(--cream-muted);
}

.cover-preview-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-border);
  display: none;
}

.btn-sticky-save {
  position: sticky;
  bottom: 24px;
  z-index: 10;
  width: 100%;
  margin-top: 12px;
}

/* Custom quill themes restyle to dark */
.ql-toolbar.ql-snow {
  background: var(--navy-card) !important;
  border: 1.5px solid var(--navy-border) !important;
  border-bottom: none !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  padding: 8px 12px !important;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: var(--cream-muted) !important;
}

.ql-toolbar.ql-snow .ql-fill {
  fill: var(--cream-muted) !important;
}

.ql-toolbar.ql-snow .ql-picker {
  color: var(--cream-muted) !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--gold) !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: var(--gold) !important;
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-item:hover,
.ql-toolbar.ql-snow .ql-picker-item.ql-selected {
  color: var(--gold) !important;
}

.ql-container.ql-snow {
  border: 1.5px solid var(--navy-border) !important;
  background: rgba(6,16,29,0.3) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  color: var(--cream) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  min-height: 320px;
}

.ql-editor {
  line-height: 1.8 !important;
  min-height: 320px;
}

.ql-editor.ql-blank::before {
  color: var(--cream-muted) !important;
  opacity: 0.3 !important;
}

/* ============================================================
   ADMIN PHOTO GALLERY (Drag-and-Drop Area & Multi progress bar)
   ============================================================ */
.upload-dropzone {
  border: 2.5px dashed var(--navy-border);
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 32px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(201,162,75,0.03);
}

.upload-dz-icon {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.upload-dz-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.upload-dz-desc {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.upload-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.progress-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.progress-filename {
  font-weight: 600;
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}

.progress-percent {
  color: var(--gold-light);
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(6,16,29,0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s ease;
}

/* Gallery editing view grid in admin */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.admin-gal-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.admin-gal-card:hover {
  border-color: rgba(201,162,75,0.25);
  box-shadow: var(--shadow-dark);
}

.admin-gal-thumb-wrap {
  width: 100%;
  height: 150px;
  position: relative;
}

.admin-gal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gal-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.85);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}

.admin-gal-delete-btn:hover {
  background: var(--error);
  transform: scale(1.05);
}

.admin-gal-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-gal-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.admin-gal-title:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--navy-border);
}

.admin-gal-title-input {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(6,16,29,0.7);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--cream);
  padding: 2px 4px;
  outline: none;
}

.admin-gal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.admin-gal-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (MOBILE COMPATIBILITY)
   ============================================================ */
@media (max-width: 1100px) {
  .kurikulum .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .keunggulan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recent-activity-wrap {
    grid-template-columns: 1fr;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .admin-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px; /* Collapse sidebar by default on mobile */
  }

  .section {
    padding: var(--section-py-sm) 0;
  }

  /* Navigation burger menu styling */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,27,48,0.98);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    z-index: 999;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Stats elements */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .tentang-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pendaftaran-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .artikel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Admin mobile specific toggles */
  .admin-sidebar {
    left: -240px;
    width: 240px;
  }

  .admin-sidebar.open {
    left: 0;
    box-shadow: var(--shadow-dark);
  }

  .admin-wrapper {
    margin-left: 0;
  }

  .topbar-mobile-menu {
    display: block;
  }

  .sidebar-hamburger {
    display: block;
  }

  .admin-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeri-grid {
    grid-template-columns: 1fr;
  }
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  .lightbox {
    padding: 10px;
  }
}
