/*
 * DutaSukses Pillar Hybrid — Shared Design System (pl-*)
 * Vanilla modern CSS, mobile-first, ~20 KB.
 * Color tokens diturunkan dari Astra global colors.
 */

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  /* Brand */
  --pl-navy:        #011457;
  --pl-navy-dark:   #010d3f;
  --pl-navy-soft:   #2536a3;
  --pl-slate-900:   #1e293b;
  --pl-slate-700:   #334155;
  --pl-slate-500:   #64748b;
  --pl-slate-300:   #cbd5e1;
  --pl-slate-200:   #e2e8f0;
  --pl-slate-100:   #f1f5f9;
  --pl-bg-light:    #F0F5FA;
  --pl-bg-white:    #FFFFFF;

  /* Accent */
  --pl-wa:          #25D366;
  --pl-wa-dark:     #1ebe5d;
  --pl-success:     #16a34a;
  --pl-warning:     #ea580c;

  /* Spacing (rem) */
  --pl-s-1: 0.25rem;  --pl-s-2: 0.5rem;   --pl-s-3: 0.75rem;
  --pl-s-4: 1rem;     --pl-s-5: 1.25rem;  --pl-s-6: 1.5rem;
  --pl-s-8: 2rem;     --pl-s-10: 2.5rem;  --pl-s-12: 3rem;
  --pl-s-16: 4rem;    --pl-s-20: 5rem;    --pl-s-24: 6rem;

  /* Typography */
  --pl-fs-xs:   0.75rem;   --pl-fs-sm:   0.875rem;
  --pl-fs-base: 1rem;      --pl-fs-lg:   1.125rem;
  --pl-fs-xl:   1.25rem;   --pl-fs-2xl:  1.5rem;
  --pl-fs-3xl:  1.875rem;  --pl-fs-4xl:  2.25rem;
  --pl-fs-5xl:  3rem;
  --pl-lh-tight: 1.2;
  --pl-lh-snug:  1.4;
  --pl-lh-base:  1.65;

  /* Radius & shadow */
  --pl-r-sm: 6px;  --pl-r-md: 12px;  --pl-r-lg: 16px;  --pl-r-pill: 999px;
  --pl-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --pl-shadow-md: 0 4px 16px rgba(15,23,42,.08);
  --pl-shadow-lg: 0 16px 40px rgba(15,23,42,.12);

  /* Container */
  --pl-container-max: 1200px;
  --pl-container-pad: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --pl-ease: cubic-bezier(.2,.7,.3,1);
}

/* =========================================================
   FULLWIDTH ESCAPE — keluar dari container Astra
   .ast-container parent punya padding/max-width. Pillar harus edge-to-edge.
   Trik: margin negatif viewport. Tetap aman karena overflow-x: clip di .pl-page.
   ========================================================= */
.pl-page {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow-x: clip;
}
/* Hapus padding/margin dari parent containers Astra untuk pillar page.
   Pakai body class `.pl-active` (di-inject via body_class filter) supaya generic
   untuk semua pillar — bukan hardcode post ID. */
.pl-active #content,
.pl-active #content > .ast-container,
.pl-active .site-content,
.pl-active #primary,
.pl-active .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Hilangkan default entry margin/padding kalau Astra inject */
.pl-active .entry-content,
.pl-active article.post {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}
/* Astra mengubah .site-content > .ast-container jadi display:flex di >=922px
   (untuk layout sidebar). Di halaman no-sidebar ini bikin <main> (yang bukan
   #primary, mis. template trainer) menyusut ke lebar konten, bukan full-width.
   Scope sengaja ke `#content > .ast-container` SAJA — JANGAN ke `.pl-active
   .ast-container` umum, karena header builder Astra juga pakai class .ast-container. */
.pl-active #content > .ast-container {
  display: block !important;
}
.pl-active #content > .ast-container > main {
  width: 100% !important;
}

/* =========================================================
   BASE
   ========================================================= */
.pl-page * { box-sizing: border-box; }
.pl-page h1, .pl-page h2, .pl-page h3, .pl-page h4,
.pl-page p, .pl-page ul, .pl-page ol, .pl-page figure { margin: 0; padding: 0; }
.pl-page ul, .pl-page ol { list-style: none; }
.pl-page img, .pl-page svg { max-width: 100%; height: auto; display: block; }
.pl-page a { color: var(--pl-navy); text-decoration: none; transition: color .15s var(--pl-ease); }
.pl-page a:hover { color: var(--pl-navy-dark); }
.pl-page p { color: var(--pl-slate-700); line-height: var(--pl-lh-base); }
.pl-page strong { color: var(--pl-slate-900); }

.pl-page {
  color: var(--pl-slate-900);
  font-size: var(--pl-fs-base);
  line-height: var(--pl-lh-base);
  background: var(--pl-bg-white);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.pl-container {
  max-width: var(--pl-container-max);
  margin-inline: auto;
  padding-inline: var(--pl-container-pad);
}

.pl-section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.pl-section--light { background: var(--pl-bg-light); }
.pl-section--white { background: var(--pl-bg-white); }
.pl-section--dark  { background: var(--pl-slate-900); color: #fff; }
.pl-section--dark p { color: #cbd5e1; }
.pl-section--dark h2, .pl-section--dark h3 { color: #fff; }

/* Section heading */
.pl-h-eyebrow {
  display: inline-block;
  font-size: var(--pl-fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-navy);
  margin-bottom: var(--pl-s-3);
}
.pl-h2 {
  font-size: clamp(var(--pl-fs-2xl), 4vw, var(--pl-fs-4xl));
  font-weight: 700;
  line-height: var(--pl-lh-tight);
  color: var(--pl-slate-900);
  margin-bottom: var(--pl-s-4);
}
.pl-h3 {
  font-size: var(--pl-fs-xl);
  font-weight: 600;
  line-height: var(--pl-lh-snug);
  color: var(--pl-slate-900);
  margin-bottom: var(--pl-s-2);
}
.pl-lead {
  font-size: clamp(var(--pl-fs-base), 2vw, var(--pl-fs-lg));
  color: var(--pl-slate-700);
  max-width: 65ch;
}
.pl-section-head { text-align: center; margin-bottom: var(--pl-s-12); }
.pl-section-head .pl-lead { margin-inline: auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pl-s-2);
  padding: var(--pl-s-3) var(--pl-s-6);
  font-size: var(--pl-fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--pl-r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--pl-ease), background .15s var(--pl-ease), box-shadow .15s var(--pl-ease);
  text-decoration: none;
  white-space: nowrap;
}
.pl-btn:hover { transform: translateY(-1px); box-shadow: var(--pl-shadow-md); }
.pl-btn:active { transform: translateY(0); }

.pl-btn--wa       { background: var(--pl-wa); color: #fff; }
.pl-btn--wa:hover { background: var(--pl-wa-dark); color: #fff; }

.pl-btn--primary       { background: var(--pl-navy); color: #fff; }
.pl-btn--primary:hover { background: var(--pl-navy-dark); color: #fff; }

.pl-btn--outline       { background: transparent; color: var(--pl-navy); border-color: var(--pl-navy); }
.pl-btn--outline:hover { background: var(--pl-navy); color: #fff; }

.pl-btn--lg { padding: var(--pl-s-4) var(--pl-s-8); font-size: var(--pl-fs-lg); }

.pl-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pl-s-3);
  margin-top: var(--pl-s-6);
}

/* =========================================================
   BADGES & PILLS
   ========================================================= */
.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--pl-s-2);
  padding: var(--pl-s-2) var(--pl-s-3);
  background: var(--pl-bg-light);
  color: var(--pl-navy);
  font-size: var(--pl-fs-sm);
  font-weight: 600;
  border-radius: var(--pl-r-pill);
  border: 1px solid var(--pl-slate-200);
}
.pl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pl-s-2);
  margin: var(--pl-s-4) 0;
}

/* =========================================================
   GRID
   ========================================================= */
.pl-grid { display: grid; gap: var(--pl-s-6); }
.pl-grid--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .pl-grid--3, .pl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .pl-grid--2, .pl-grid--3, .pl-grid--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   CARDS
   ========================================================= */
.pl-card {
  padding: var(--pl-s-6);
  background: #fff;
  border-radius: var(--pl-r-md);
  box-shadow: var(--pl-shadow-sm);
  border: 1px solid var(--pl-slate-200);
  transition: transform .2s var(--pl-ease), box-shadow .2s var(--pl-ease);
}
.pl-card:hover { transform: translateY(-2px); box-shadow: var(--pl-shadow-md); }
.pl-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pl-bg-light);
  color: var(--pl-navy);
  border-radius: var(--pl-r-md);
  margin-bottom: var(--pl-s-3);
  font-size: var(--pl-fs-xl);
}
.pl-card__title { font-weight: 600; font-size: var(--pl-fs-lg); margin-bottom: var(--pl-s-2); color: var(--pl-slate-900); }

/* Numbered curriculum cards */
.pl-num-card { position: relative; padding-left: 4rem; }
.pl-num-card::before {
  content: attr(data-num);
  position: absolute;
  left: var(--pl-s-6);
  top: var(--pl-s-6);
  width: 2.25rem; height: 2.25rem;
  background: var(--pl-navy);
  color: #fff;
  font-weight: 700;
  font-size: var(--pl-fs-sm);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--pl-r-pill);
}

/* =========================================================
   HERO
   ========================================================= */
.pl-hero { padding-block: clamp(2.5rem, 6vw, 5rem); background: linear-gradient(180deg, var(--pl-bg-light) 0%, #fff 100%); }
.pl-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--pl-s-12);
  align-items: center;
}
@media (max-width: 900px) { .pl-hero__grid { grid-template-columns: 1fr; gap: var(--pl-s-8); } }

.pl-hero__breadcrumb {
  font-size: var(--pl-fs-sm);
  color: var(--pl-slate-500);
  margin-bottom: var(--pl-s-4);
}
.pl-hero__breadcrumb a { color: var(--pl-slate-700); }
.pl-hero__breadcrumb a:hover { color: var(--pl-navy); }

.pl-h1 {
  font-size: clamp(1.875rem, 5vw, var(--pl-fs-5xl));
  font-weight: 700;
  line-height: var(--pl-lh-tight);
  color: var(--pl-slate-900);
  margin-bottom: var(--pl-s-4);
  letter-spacing: -.02em;
}
.pl-hero__sub { font-size: var(--pl-fs-lg); color: var(--pl-slate-700); margin-bottom: var(--pl-s-6); max-width: 56ch; }
.pl-hero__micro { font-size: var(--pl-fs-sm); color: var(--pl-slate-500); margin-top: var(--pl-s-3); }
.pl-hero__media img { width: 100%; border-radius: var(--pl-r-lg); box-shadow: var(--pl-shadow-lg); }

/* =========================================================
   TRUST BAR (logo strip)
   ========================================================= */
.pl-trust__title {
  text-align: center;
  font-size: var(--pl-fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pl-slate-500);
  margin-bottom: var(--pl-s-6);
}
.pl-trust__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--pl-s-6);
  align-items: center;
}
.pl-trust__logos img { max-height: 48px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .7; transition: opacity .15s var(--pl-ease), filter .15s var(--pl-ease); }
.pl-trust__logos img:hover { filter: grayscale(0); opacity: 1; }

/* =========================================================
   METRICS
   ========================================================= */
.pl-metrics { text-align: center; }
.pl-metrics__num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--pl-navy);
  line-height: 1;
  margin-bottom: var(--pl-s-2);
}
.pl-metrics__label { font-size: var(--pl-fs-sm); color: var(--pl-slate-700); }

/* =========================================================
   CHECKLIST (outcomes)
   ========================================================= */
.pl-check {
  display: flex;
  align-items: flex-start;
  gap: var(--pl-s-3);
  padding: var(--pl-s-4);
  background: #fff;
  border-radius: var(--pl-r-md);
  border: 1px solid var(--pl-slate-200);
}
.pl-check__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--pl-success);
  color: #fff;
  border-radius: var(--pl-r-pill);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* =========================================================
   FAQ (vanilla <details>/<summary>)
   ========================================================= */
.pl-faq__item {
  background: #fff;
  border: 1px solid var(--pl-slate-200);
  border-radius: var(--pl-r-md);
  margin-bottom: var(--pl-s-3);
  overflow: hidden;
  transition: box-shadow .15s var(--pl-ease);
}
.pl-faq__item[open] { box-shadow: var(--pl-shadow-md); }
.pl-faq__q {
  list-style: none;
  cursor: pointer;
  padding: var(--pl-s-4) var(--pl-s-5);
  font-weight: 600;
  font-size: var(--pl-fs-base);
  color: var(--pl-slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pl-s-4);
}
.pl-faq__q::-webkit-details-marker { display: none; }
.pl-faq__q::after {
  content: '+';
  font-size: var(--pl-fs-2xl);
  font-weight: 300;
  color: var(--pl-navy);
  transition: transform .2s var(--pl-ease);
  flex-shrink: 0;
}
.pl-faq__item[open] .pl-faq__q::after { transform: rotate(45deg); }
.pl-faq__a { padding: 0 var(--pl-s-5) var(--pl-s-5); color: var(--pl-slate-700); line-height: var(--pl-lh-base); }

/* =========================================================
   CITY LINKS (internal SEO)
   ========================================================= */
.pl-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--pl-s-3);
}
.pl-city-link {
  padding: var(--pl-s-3) var(--pl-s-4);
  background: #fff;
  border: 1px solid var(--pl-slate-200);
  border-radius: var(--pl-r-sm);
  font-size: var(--pl-fs-sm);
  font-weight: 500;
  color: var(--pl-slate-700);
  display: flex;
  align-items: center;
  gap: var(--pl-s-2);
  transition: border-color .15s var(--pl-ease), color .15s var(--pl-ease);
}
.pl-city-link:hover { border-color: var(--pl-navy); color: var(--pl-navy); }
.pl-city-link::before { content: '📍'; font-size: var(--pl-fs-sm); }

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.pl-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--pl-slate-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  padding: var(--pl-s-3) var(--pl-s-4);
  display: none;
  gap: var(--pl-s-2);
  z-index: 1000;
}
.pl-mobile-cta .pl-btn { flex: 1; padding-block: var(--pl-s-3); font-size: var(--pl-fs-sm); }
@media (max-width: 768px) { .pl-mobile-cta { display: flex; } body.pl-has-mobile-cta { padding-bottom: 72px; } }

/* =========================================================
   ACCESSIBILITY HELPERS
   ========================================================= */
.pl-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Smooth scroll anchor offset (Astra has sticky header) */
html { scroll-behavior: smooth; }
.pl-page section[id] { scroll-margin-top: 80px; }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .pl-mobile-cta, .pl-btn { display: none !important; }
}
