/* =====================================================
   ARUNA DIGITAL — Global Stylesheet
   Dark mode default, light mode via prefers-color-scheme
   ===================================================== */

/* === GOOGLE FONTS (imported in HTML via <link>) === */

/* === CSS VARIABLES === */
:root {
  /* Brand palette (unchanged in both modes) */
  --blue:   #3B82F6;
  --pink:   #EC4899;
  --orange: #F59E0B;
  --green:  #7BBF7B;
  --white:  #FFFFFF;

  /* Dark mode tokens (default) */
  --bg:          #14152E;
  --bg-alt:      #1F2247;
  --surface:     rgba(255,255,255,0.03);
  --border:      rgba(255,255,255,0.08);
  --border-md:   rgba(255,255,255,0.12);
  --text:        #FFF8EC;
  --text-soft:   #FFFFFF;
  --text-inv:    #14152E;
  --nav-bg:      rgba(20,21,46,0.92);
  --modal-bg:    rgba(10,11,30,0.82);
  --input-bg:    rgba(255,255,255,0.06);
  --select-opt:  #1F2247;
  --text-eyebrow: #3B82F6;
  --hyper-text: #2563EB;
}

/* === LIGHT MODE OVERRIDES === */
@media (prefers-color-scheme: light) {
  :root {
    --bg:          #F5F7FF;
    --bg-alt:      #EAEEF9;
    --surface:     rgba(0,0,0,0.03);
    --border:      rgba(0,0,0,0.08);
    --border-md:   rgba(0,0,0,0.14);
    --text:        #14152E;
    --text-soft:   #000000;
    --text-inv:    #FFFFFF;
    --nav-bg:      rgba(245,247,255,0.92);
    --modal-bg:    rgba(20,21,60,0.55);
    --input-bg:    rgba(0,0,0,0.05);
    --select-opt:  #EAEEF9;
    --text-eyebrow: #14152E;
    --hyper-text: #0000FF;
  }
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.mono { font-family: 'Space Mono', monospace; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 0;
  overflow: visible;
}
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 12px 0 16px;
  gap: 4px;
  order: 3;
}
.nav-links.open { display: flex; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(59, 130, 246, 1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta svg { width: 16px; height: 16px; }

@media (max-width: 970px) {
  .nav-right .btn-primary { font-size: 0.7rem; padding: 8px 14px; gap: 4px; }
  .nav-right .btn-primary svg { width: 14px; height: 14px; }
}

@media (max-width: 370px) {
  .nav-right .btn-primary { padding: 8px; gap: 0; }
  .nav-right .btn-text { display: none; }
  .nav-right .btn-primary svg { width: 18px; height: 18px; }
}

@media (min-width: 970px) {
  .hamburger { display: none; }
  .nav { justify-content: space-between; gap: 0; padding: 14px 48px; }
  .nav-logo { order: 1; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    order: 2;
    padding: 0;
    gap: 2px;
    flex: 1;
    justify-content: center;
  }
  .nav-links a { padding: 8px 14px; font-size: 0.85rem; }
  .nav-right { order: 3; }
  .nav-right .btn-primary { font-size: 0.78rem; padding: 7px 14px; box-shadow: none; }
  .nav-right .btn-primary svg { width: 14px; height: 14px; }
}

/* === HERO === */
.hero {
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-soft);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(123,191,123,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(123,191,123,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(123,191,123,0);   }
  100% { box-shadow: 0 0 0 0   rgba(123,191,123,0);   }
}
.hero h1 { font-size: clamp(2rem,8vw,3.2rem); margin-bottom: 16px; }
.hero p  { font-size: 1.02rem; color: var(--text-soft); max-width: 480px; margin: 0 auto 28px; }

.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 320px;
  justify-content: center;
  box-shadow: 0 6px 24px -8px rgba(236,72,153,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(236,72,153,0.6);
}
.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  color: var(--hyper-text);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(168,174,204,0.3);
  padding-bottom: 2px;
}

/* === CIRCUIT DIVIDER === */
.circuit-divider { width: 100%; height: 40px; margin: 8px 0; }

/* === MENTOR HERO CARD === */
.mentor-hero-card {
  margin: 36px auto 0;
  max-width: 420px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.mentor-circuit-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.mentor-hero-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 800; font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0; position: relative; z-index: 1;
}
.mentor-hero-info { width: 100%; position: relative; z-index: 1; }
.mentor-hero-label {
  color: var(--blue); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.mentor-hero-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mentor-hero-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--text);
}
.mentor-hero-list li svg { flex-shrink: 0; width: 18px; height: 18px; }

@media (min-width: 540px) {
  .mentor-hero-card { flex-direction: column; align-items: center; text-align: left; }
  .mentor-hero-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
}

/* === SECTIONS === */
.section { padding: 48px 20px; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--text-eyebrow);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.6rem,6vw,2.2rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 0.96rem;
}

/* === WHY GRID === */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 460px;
  margin: 0 auto;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.why-card:nth-child(1)::before { background: var(--blue); }
.why-card:nth-child(2)::before { background: var(--pink); }
.why-card:nth-child(3)::before { background: var(--orange); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.why-card p  { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

/* === LEVEL CARDS === */
.level-list {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 520px; margin: 0 auto;
}
.level-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  position: relative;
}
.level-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 1.5rem;
  color: var(--text-inv);
  background: var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  flex-shrink: 0; margin-top: 2px;
}
.level-card:nth-child(1) .level-num { background: var(--blue); }
.level-card:nth-child(2) .level-num { background: var(--green); }
.level-card:nth-child(3) .level-num { background: var(--orange); }
.level-card:nth-child(4) .level-num { background: var(--pink); color: var(--white); }
.level-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.level-info p  { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

/* === FLOW STEPS === */
.flow-list { display: flex; flex-direction: column; gap: 0; max-width: 420px; margin: 0 auto; }
.flow-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; position: relative;
}
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 48px; bottom: -4px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--pink));
  opacity: 0.3;
}
.flow-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700; color: var(--white);
  flex-shrink: 0; font-size: 1rem;
}
.flow-text h3 { font-size: 1rem; margin-bottom: 2px; }
.flow-text p  { font-size: 0.85rem; color: var(--text-soft); margin: 0; }

/* === PROJECT GALLERY === */
.project-scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
}
.project-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.project-card:hover {
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(59,130,246,0.25);
}
.project-link-hint {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 600; color: var(--blue);
  margin-top: 8px; transition: opacity 0.2s;
}
.project-card img { width: 100%; height: 130px; object-fit: cover; }
.project-info { padding: 14px; }
.project-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.project-info h3 { font-size: 1rem; margin-bottom: 4px; }
.project-info p  { font-size: 0.85rem; color: var(--text-soft); margin: 0; }

/* === TUTOR CARD === */
.tutor-card {
  max-width: 460px; margin: 0 auto;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--border);
  border-radius: 22px; padding: 28px;
  text-align: center; position: relative; overflow: hidden;
}
.tutor-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink), var(--orange));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 800; font-size: 1.8rem; color: var(--white);
}
.tutor-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tutor-role   { color: var(--text-soft); font-weight: 600; font-size: 0.88rem; margin-bottom: 18px; }
.tutor-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tutor-badge {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text-soft);
}

/* === PRICING === */
.price-card {
  max-width: 380px; margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-md);
  border-radius: 24px; padding: 32px 24px;
  text-align: center; position: relative;
}
.price-ribbon {
  position: absolute; top: -14px; right: 24px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: white; font-weight: 700; font-size: 0.8rem;
  padding: 6px 16px; border-radius: 100px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price-sub { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 16px; }
.price-big { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 2.6rem; }
.price-big span { font-size: 1rem; color: var(--text-soft); font-weight: 500; }
.price-list { list-style: none; margin: 20px 0 24px; text-align: left; display: inline-block; }
.price-list li {
  padding: 6px 0; font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.price-list li svg { flex-shrink: 0; width: 18px; height: 18px; }

/* === LOKASI === */
.lokasi-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; max-width: 460px; margin: 0 auto;
}
.lokasi-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.lokasi-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lokasi-icon svg { width: 22px; height: 22px; }
.lokasi-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.lokasi-card p  { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.lokasi-tag {
  display: inline-block;
  background: rgba(123,191,123,0.15);
  color: var(--green);
  border: 1px solid rgba(123,191,123,0.3);
  border-radius: 100px;
  padding: 4px 12px; font-weight: 700; font-size: 0.75rem;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
}

/* === TRIAL FORM === */
#trial-form {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.trial-container { max-width: 560px; margin: 0 auto; }
.trial-eyebrow {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.trial-heading {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(28px,5vw,38px);
  font-weight: 800; color: var(--text);
  margin-bottom: 10px; line-height: 1.2;
}
.trial-sub { color: var(--text-soft); font-size: 15px; margin-bottom: 36px; line-height: 1.6; }
.trial-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 20px; padding: 36px 32px;
}
@media (max-width: 480px) { .trial-card { padding: 24px 18px; } }

.trial-field { margin-bottom: 18px; }
.trial-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-soft); margin-bottom: 7px; letter-spacing: 0.02em;
}
.trial-field input,
.trial-field select {
  width: 100%; padding: 13px 16px; font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--border-md);
  border-radius: 12px; box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.trial-field input::placeholder { color: rgba(168,174,204,0.5); }
.trial-field input:focus,
.trial-field select:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.trial-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A8AECC' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
.trial-field select option {
  background: var(--select-opt);
  color: var(--text);
}
.trial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .trial-row { grid-template-columns: 1fr; } }

.trial-submit {
  width: 100%; padding: 15px 24px;
  font-size: 16px; font-weight: 700;
  font-family: 'Baloo 2', cursive;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  border: none; border-radius: 12px; cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  letter-spacing: 0.01em;
}
.trial-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.45);
}
.trial-submit:active:not(:disabled) { transform: translateY(0); }
.trial-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.trial-status {
  margin-top: 16px; padding: 12px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  text-align: center; display: none;
}
.trial-status.show { display: block; }
.trial-status.success {
  background: rgba(123,191,123,0.12); color: #7BBF7B;
  border: 1px solid rgba(123,191,123,0.3);
}
.trial-status.error {
  background: rgba(239,68,68,0.10); color: #F87171;
  border: 1px solid rgba(239,68,68,0.25);
}
.trial-note { text-align: center; font-size: 13px; color: var(--text-soft); margin-top: 20px; line-height: 1.6; }
.trial-note a { color: var(--blue); font-weight: 600; }
.trial-note a:hover { text-decoration: underline; }

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--modal-bg);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-md);
  border-radius: 24px;
  width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-inner { padding: 36px 32px 32px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 20px; line-height: 1;
  transition: background 0.15s; z-index: 1;
}
.modal-close:hover { background: var(--border); }

/* === FOOTER CTA === */
.footer-cta {
  text-align: center; padding: 56px 20px;
  position: relative; overflow: hidden;
}
.footer-cta h2 { font-size: clamp(1.6rem,6vw,2.2rem); margin-bottom: 12px; }
.footer-cta p  { color: var(--text-soft); max-width: 420px; margin: 0 auto 28px; }

.footer-contact {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; margin-top: 28px;
}
.footer-contact a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-soft); font-size: 0.92rem; font-weight: 600;
  transition: color 0.15s;
}
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { width: 20px; height: 20px; }

.footer-bottom {
  text-align: center; padding: 20px;
  font-size: 0.78rem; color: var(--text-soft);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* === STICKY WA BUTTON === */
.sticky-wa {
  position: fixed; bottom: 18px; right: 18px; z-index: 200;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -6px rgba(236,72,153,0.6);
  transition: transform 0.15s;
}
.sticky-wa:hover { transform: scale(1.08); }
.sticky-wa svg { width: 26px; height: 26px; color: white; }

/* === DESKTOP BREAKPOINTS === */
@media (min-width: 970px) {
  .nav { padding: 14px 48px; }
  .nav-logo { height: 56px; }
  .hero { padding: 80px 48px 60px; }
  .hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .btn-primary { width: auto; }
  .section { padding: 72px 48px; }
  .why-grid { grid-template-columns: repeat(3,1fr); max-width: 900px; }
  .level-list { max-width: 760px; }
  .level-card { padding: 24px 28px; }
  .lokasi-wrap { grid-template-columns: repeat(2,1fr); max-width: 760px; }
  .project-scroll { justify-content: center; margin: 0; padding: 4px 0 12px; }
  .blog-grid { justify-content: center; margin: 0; padding: 6px 0 12px; }
  .price-card { padding: 40px; }
}

/* =====================================================
   BLOG PAGE STYLES
   ===================================================== */

.blog-grid {
  display: flex;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.project-scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 12px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
}

.blog-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.blog-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.blog-tag {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: var(--orange);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .06em;
}

.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.blog-card p  { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 16px; }
.blog-read-more { font-size: 0.85rem; color: var(--blue); font-weight: 600; }

/* Blog article page */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.article-wrap h1 { font-size: clamp(1.6rem,5vw,2.2rem); margin-bottom: 12px; }
.article-meta  { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 32px; }
.article-wrap h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.article-wrap h3 { font-size: 1.1rem;  margin: 28px 0 8px; }
.article-wrap p  { color: var(--text-soft); margin-bottom: 16px; line-height: 1.75; }
.article-wrap ul, .article-wrap ol {
  padding-left: 24px; margin-bottom: 16px;
}
.article-wrap li { margin-bottom: 6px; color: var(--text-soft); }
.article-wrap a  { color: var(--blue); }
.article-wrap a:hover { text-decoration: underline; }
.article-wrap strong { color: var(--text); font-weight: 700; }

.article-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 40px;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p  { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 20px; }

/* === MISC === */
.footer-link { color: var(--blue); }
button.btn-primary { border: none; cursor: pointer; }


/* =====================================================
   NAV LOGO — fix ukuran agar tidak meluber
   ===================================================== */
.nav-logo {
  height: 48px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-full {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.nav-logo-icon { display: none; }

@media (max-width: 970px) {
  .nav-logo { height: 36px; }
  .nav-logo-full { max-width: 140px; }
}
@media (max-width: 370px) {
  .nav-logo-full { display: none; }
  .nav-logo-icon { display: block; height: 32px; width: auto; }
}
@media (min-width: 970px) {
  .nav-logo { height: 56px; }
  .nav-logo-full { max-width: 200px; }
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */

/* --- Layout --- */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static !important; }
  .article-hero { padding: 40px 20px 32px; }
}
@media (min-width: 970px) {
  .article-hero { padding: 72px 48px 56px; }
  .content-wrap { padding: 64px 48px; }
}

/* --- Article Hero --- */
.article-hero {
  background: var(--bg-alt);
  padding: 56px 20px 40px;
  border-bottom: 1px solid var(--border);
}
.article-hero-inner { max-width: 1100px; margin: 0 auto; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

.article-category {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  background: rgba(245,158,11,0.12);
  color: var(--orange);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px; letter-spacing: .08em; text-transform: uppercase;
}

.article-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2; max-width: 760px; margin-bottom: 16px;
}

.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-soft);
}

/* --- Article body --- */
article { min-width: 0; }
article p { margin-bottom: 20px; color: var(--text-soft); font-size: 16px; line-height: 1.8; }
article h2 {
  font-size: 22px; margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
article h3 { font-size: 17px; color: var(--text); margin: 28px 0 10px; }
article strong { color: var(--text); font-weight: 600; }
article em { color: #D4318A; font-style: italic; font-weight: 600; }
article hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.lead {
  font-size: 17px !important;
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin-bottom: 32px !important;
  color: var(--text-soft);
}

/* --- Benefit cards --- */
.benefit-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--pink));
}
.benefit-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}
.benefit-card h3 { margin: 0 0 10px; font-size: 16px; }
.benefit-card p  { margin: 0; font-size: 15px; color: var(--text-soft); }

/* --- Highlight box --- */
.highlight-box {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  padding: 24px; margin: 32px 0;
}
.highlight-box p { margin: 0; color: var(--text-soft); }

/* --- CTA box --- */
.cta-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px; text-align: center; margin-top: 48px;
}
.cta-box h2 { font-size: 22px; margin-bottom: 12px; border: none; padding: 0; }
.cta-box p  { color: var(--text-soft); margin-bottom: 24px; font-size: 15px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white); padding: 14px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px -8px rgba(236,72,153,0.5);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(236,72,153,0.6); }
.cta-sub { font-size: 13px; color: var(--text-soft); margin-top: 12px; margin-bottom: 0; }

/* --- Sidebar --- */
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px; margin-bottom: 16px;
}
.sidebar-card h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
  color: var(--text-soft); font-size: 13px; line-height: 1.5; display: block;
  transition: color .2s; padding: 2px 0;
}
.toc-list a:hover { color: var(--text); }
.sidebar-cta-btn {
  display: block; text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white); padding: 11px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 12px; transition: opacity .2s;
  box-shadow: 0 4px 16px -4px rgba(236,72,153,0.4);
}
.sidebar-cta-btn:hover { opacity: .88; }
.sidebar-info { font-size: 12px; color: var(--text-soft); text-align: center; line-height: 1.6; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--surface); color: var(--text-soft);
  font-size: 12px; padding: 4px 12px;
  border-radius: 100px; border: 1px solid var(--border);
}

/* =====================================================
   BLOG INDEX PAGE
   ===================================================== */

/* --- Blog Hero --- */
.blog-hero {
  padding: 56px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  pointer-events: none;
}
.blog-hero-content { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 14px; }
.blog-hero p  { color: var(--text-soft); font-size: 1rem; max-width: 440px; margin: 0 auto; }

/* --- Article grid --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 970px) {
  .blog-hero { padding: 80px 48px 64px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Article card --- */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--pink));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.article-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(59,130,246,0.2);
}
.article-card:hover::before { opacity: 1; }

.card-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 12px; letter-spacing: .04em;
  font-family: 'Space Mono', monospace;
}
.card-category {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
  margin-bottom: 10px;
}
.card-excerpt {
  font-size: 0.9rem; color: var(--text-soft);
  line-height: 1.6; margin-bottom: 16px;
}
.card-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.card-meta { font-size: 0.78rem; color: var(--text-soft); display: flex; gap: 14px; }
.card-read-more {
  font-size: 0.82rem; font-weight: 700;
  color: var(--blue); display: flex; align-items: center; gap: 4px;
  transition: gap 0.15s ease;
}
.article-card:hover .card-read-more { gap: 8px; }

/* =====================================================
   MISC
   ===================================================== */
.footer-link { color: var(--blue); }
button.btn-primary { border: none; cursor: pointer; }

/* === FAQ (accordion — memakai token & gaya kartu yang sudah ada) === */
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem; line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }
.faq-answer a { color: var(--blue); font-weight: 600; }

/* === Label usia/kelas tiap level (additif, memakai token yang ada) === */
.level-age {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-eyebrow);
  opacity: 0.85;
}

/* === STICKY CTA BAR (mobile saja) — additif, memakai token yang ada === */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mobile-cta-bar .mcb-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 14px;
  font-family: inherit; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; text-decoration: none;
}
.mobile-cta-bar .mcb-primary {
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: var(--white); border: none;
}
.mobile-cta-bar .mcb-wa {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-md);
}
.mobile-cta-bar .mcb-wa svg { width: 20px; height: 20px; }

/* tampil hanya di mobile; di desktop tetap pakai tombol WA mengambang */
@media (min-width: 970px) { .mobile-cta-bar { display: none; } }
@media (max-width: 969px) {
  .sticky-wa { display: none; }
  .nav-right .btn-primary { display: none; }
  body { padding-bottom: 76px; }
}
