/* ============================================================
   KURSUS PINTAR — ai.css
   Gaya khusus halaman Pelatihan AI.
   Dimuat hanya di halaman ber-slug "pelatihan-ai*" (lihat
   render_head di includes/layout.php).

   Berkas terpisah dari main.css supaya halaman les privat
   yang sudah berjalan tidak terpengaruh sama sekali.
   Semua kelas diawali .ai- agar tidak bentrok.
   Token warna mengikuti main.css: --navy --blue --gold dst.
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.ai-hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 76px 8% 84px;
  position: relative;
  overflow: hidden;
}
.ai-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.ai-hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,66,196,.35) 0%, transparent 65%);
  pointer-events: none;
}
/* min-width:0 mencegah kolom grid melebar mengikuti isi terpanjang,
   yang di layar ponsel membuat halaman bisa digeser ke samping. */
.ai-hero-content { position: relative; z-index: 2; min-width: 0; }
.ai-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 18px;
}
.ai-hero-sub {
  color: rgba(255,255,255,.66);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 30px;
}
.ai-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.ai-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.ai-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ai-hero-meta b { color: var(--gold); font-weight: 700; }

/* Kartu kelas percobaan di sisi kanan hero */
.ai-hero-visual { position: relative; z-index: 2; min-width: 0; }
.ai-trialcard {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  backdrop-filter: blur(10px);
}
.ai-trialcard-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.35);
  color: var(--gold);
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.ai-trialcard h3 {
  font-family: var(--serif);
  font-size: 1.5rem; color: #fff; line-height: 1.25;
  margin-bottom: 8px;
}
.ai-trialcard-dur { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.ai-trialcard-list { margin-bottom: 22px; }
.ai-trialcard-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .87rem; color: rgba(255,255,255,.72);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  line-height: 1.55;
}
.ai-trialcard-list li:last-child { border-bottom: none; }
.ai-trialcard-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.ai-trialcard-note {
  font-size: .76rem; color: rgba(255,255,255,.42);
  line-height: 1.6; margin-top: 14px; text-align: center;
}

/* ── Bar penegas kelas percobaan ─────────────────────────── */
.ai-hookbar {
  background: var(--gold);
  padding: 22px 8%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px 28px; flex-wrap: wrap; text-align: center;
}
.ai-hookbar-q {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--navy); line-height: 1.3;
}
.ai-hookbar-a {
  font-size: .88rem; color: rgba(10,22,40,.75);
  max-width: 620px; line-height: 1.6;
}

/* ── Kartu segmen di halaman induk ───────────────────────── */
.ai-seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.ai-seg-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  transition: all var(--trans);
}
.ai-seg-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ai-seg-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ai-seg-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.ai-seg-ico.blue { background: #EEF4FF; }
.ai-seg-ico.orange { background: #FFF3DC; }
.ai-seg-num { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ai-seg-card h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--text); line-height: 1.25; }
.ai-seg-for { font-size: .8rem; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.ai-seg-card > p { font-size: .88rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.ai-seg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-seg-trial {
  font-size: .76rem; font-weight: 700; color: #7c4f00;
  background: #FFF3DC; border-radius: 8px; padding: 5px 12px;
}
.ai-seg-more { font-size: .84rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.ai-seg-more::after { content: '→'; transition: transform var(--trans); }
.ai-seg-card:hover .ai-seg-more::after { transform: translateX(4px); }

/* ── Daftar modul ────────────────────────────────────────── */
.ai-modul {
  max-width: 880px; margin: 40px auto 0;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.ai-modul-row {
  display: grid; grid-template-columns: 56px 1fr 1fr;
  gap: 18px; align-items: start;
  padding: 20px 26px; border-bottom: 1px solid var(--border);
}
.ai-modul-row:last-child { border-bottom: none; }
.ai-modul-row:nth-child(even) { background: var(--off); }
.ai-modul-no {
  width: 40px; height: 40px; border-radius: 11px;
  background: #EEF4FF; color: var(--blue);
  font-family: var(--serif); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.ai-modul-row.is-plus .ai-modul-no { background: #FFF3DC; color: #7c4f00; }
.ai-modul-nama { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.ai-modul-hasil { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.ai-modul-hasil::before {
  content: 'Hasil praktik'; display: block;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9aabbd; margin-bottom: 3px;
}

/* ── Jalur (khusus perusahaan) ───────────────────────────── */
.ai-jalur { display: grid; gap: 16px; margin-top: 40px; max-width: 920px; margin-left: auto; margin-right: auto; }
.ai-jalur-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ai-jalur-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 26px; border-bottom: 1px solid var(--border);
}
.ai-jalur-kode {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.ai-jalur-kode.blue { background: #EEF4FF; color: var(--blue); }
.ai-jalur-kode.orange { background: #FFF3DC; color: #7c4f00; }
.ai-jalur-head h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.ai-jalur-ket { font-size: .8rem; color: var(--muted); margin-left: auto; }
.ai-jalur-row { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 16px; padding: 14px 26px; border-bottom: 1px solid var(--border); }
.ai-jalur-row:last-child { border-bottom: none; }
.ai-jalur-row span:first-child { font-size: .78rem; font-weight: 800; color: var(--blue); padding-top: 2px; }
.ai-jalur-row b { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.ai-jalur-row i { font-style: normal; font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ── Agenda kelas percobaan ──────────────────────────────── */
.ai-agenda { max-width: 720px; margin: 0 auto; }
.ai-agenda-row {
  display: grid; grid-template-columns: 108px 1fr;
  gap: 18px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ai-agenda-row:last-child { border-bottom: none; }
.ai-agenda-jam { font-size: .82rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.ai-agenda-isi { font-size: .92rem; color: rgba(255,255,255,.8); line-height: 1.55; }
.ai-agenda-row.is-praktik .ai-agenda-isi { color: #fff; font-weight: 700; }
.ai-agenda-row.is-praktik { background: rgba(245,166,35,.09); margin: 0 -14px; padding: 14px; border-radius: 10px; border-bottom-color: transparent; }

/* ── Daftar "dibawa pulang" ──────────────────────────────── */
.ai-bawa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; margin: 28px auto 0; }
.ai-bawa li {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 14px 16px;
  font-size: .88rem; color: rgba(255,255,255,.82); line-height: 1.55;
}
.ai-bawa li::before { content: '🎁'; flex-shrink: 0; }

/* ── Tabel format ────────────────────────────────────────── */
.ai-format { max-width: 780px; margin: 40px auto 0; background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ai-format-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 26px; border-bottom: 1px solid var(--border); }
.ai-format-row:last-child { border-bottom: none; }
.ai-format-row:nth-child(even) { background: var(--off); }
.ai-format-row dt { font-size: .86rem; font-weight: 700; color: var(--text); }
.ai-format-row dd { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── Daftar berpasangan (jadwal, data, bukti) ────────────── */
.ai-pairs { max-width: 820px; margin: 40px auto 0; display: grid; gap: 10px; }
.ai-pair {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: baseline;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 16px 22px;
}
.ai-pair-k { font-size: .82rem; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.ai-pair-v { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.ai-pair-v b { color: var(--text); font-weight: 700; }

/* ── Tiga tingkat data ───────────────────────────────────── */
.ai-tingkat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ai-tingkat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 24px; border-top: 5px solid var(--blue); }
.ai-tingkat-card:nth-child(2) { border-top-color: var(--gold); }
.ai-tingkat-card:nth-child(3) { border-top-color: #E05A00; }
.ai-tingkat-card h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.ai-tingkat-ex { font-size: .84rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.ai-tingkat-rule { font-size: .85rem; font-weight: 700; color: var(--navy); background: var(--off); border-radius: 8px; padding: 10px 13px; line-height: 1.5; }
.ai-tingkat-card:nth-child(3) .ai-tingkat-rule { color: #b54000; background: #FFF1E8; }

/* ── Joki vs Tutor ───────────────────────────────────────── */
.ai-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 840px; margin: 40px auto 0; }
.ai-vs-col { border-radius: var(--r-lg); padding: 26px; border: 1.5px solid var(--border); background: #fff; }
.ai-vs-col.is-joki { background: #FFF1E8; border-color: #F3C6A8; }
.ai-vs-col.is-tutor { background: #EEF6FF; border-color: #B9D4F6; }
.ai-vs-col h4 { font-family: var(--font); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.ai-vs-col.is-joki h4 { color: #b54000; }
.ai-vs-col.is-tutor h4 { color: var(--blue); }
.ai-vs-col li { font-size: .9rem; color: var(--text); padding: 9px 0; border-bottom: 1px dashed rgba(10,22,40,.12); display: flex; gap: 9px; line-height: 1.5; }
.ai-vs-col li:last-child { border-bottom: none; font-weight: 700; }
.ai-vs-col.is-joki li::before { content: '✕'; color: #c2410c; font-weight: 700; flex-shrink: 0; }
.ai-vs-col.is-tutor li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── Kotak kutipan besar ─────────────────────────────────── */
.ai-quote {
  max-width: 780px; margin: 40px auto 0;
  background: var(--navy); border-radius: var(--r-lg);
  padding: 38px 40px; position: relative; overflow: hidden;
}
.ai-quote-label { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ai-quote p { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); color: #fff; line-height: 1.6; }
.ai-quote-sub { font-size: .86rem; color: rgba(255,255,255,.55); margin-top: 16px; line-height: 1.7; }

/* ── Urutan langkah bernomor ─────────────────────────────── */
.ai-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 840px; margin: 28px auto 0; }
.ai-step { background: #fff; border: 1.5px solid var(--border); border-radius: var(--r); padding: 18px; text-align: center; }
.ai-step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.ai-step b { display: block; font-size: .86rem; color: var(--text); margin-bottom: 5px; letter-spacing: .04em; }
.ai-step span { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ── Daftar centang sederhana ────────────────────────────── */
.ai-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 840px; margin: 36px auto 0; }
.ai-checks li {
  display: flex; gap: 11px; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; font-size: .89rem; color: var(--muted); line-height: 1.6;
}
.ai-checks li::before { content: '✓'; color: var(--blue); font-weight: 800; flex-shrink: 0; }

/* ── Chip daftar contoh ──────────────────────────────────── */
.ai-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 32px auto 0; }
.ai-chip {
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: .86rem; color: var(--text); font-weight: 500;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.ai-faq { max-width: 780px; margin: 40px auto 0; }
.ai-faq details {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r); margin-bottom: 10px; overflow: hidden;
}
.ai-faq details[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.ai-faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 22px; position: relative;
  font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.5;
}
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 1.3rem; color: var(--blue); font-weight: 400;
}
.ai-faq details[open] summary::after { content: '−'; }
.ai-faq-body { padding: 0 22px 20px; font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* ── Gerbang unduh proposal ──────────────────────────────── */
.ai-prop { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.ai-prop-info h2 { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin-bottom: 14px; line-height: 1.25; }
.ai-prop-info p { font-size: .93rem; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 18px; }
.ai-prop-info li { font-size: .87rem; color: rgba(255,255,255,.72); padding: 7px 0; display: flex; gap: 9px; }
.ai-prop-info li::before { content: '📄'; flex-shrink: 0; }
.ai-prop-form { background: #fff; border-radius: var(--r-lg); padding: 28px; }
.ai-prop-form h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ai-prop-form > p { font-size: .82rem; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.ai-field { margin-bottom: 13px; }
.ai-field label { display: block; font-size: .78rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.ai-field input, .ai-field select {
  width: 100%; font-family: var(--font); font-size: .9rem; color: var(--text);
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; transition: border-color var(--trans);
}
.ai-field input:focus, .ai-field select:focus { outline: none; border-color: var(--blue); }
.ai-field-hp { position: absolute; left: -9999px; }
.ai-prop-note { font-size: .74rem; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.ai-prop-msg { font-size: .85rem; line-height: 1.6; margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: none; }
.ai-prop-msg.err { display: block; background: #FFF1E8; color: #b54000; }
.ai-prop-ok { display: none; text-align: center; padding: 10px 0; }
.ai-prop-ok.show { display: block; }
.ai-prop-ok h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.ai-prop-ok p { font-size: .87rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }

/* ── Bagian komunitas ────────────────────────────────────── */
.ai-komunitas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }

/* ── Penutup halaman induk ───────────────────────────────── */
.ai-pilar-note {
  max-width: 720px; margin: 32px auto 0; text-align: center;
  font-size: .88rem; color: var(--muted); line-height: 1.75;
}

/* ── Responsif ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ai-hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 5% 68px; }
  .ai-seg-grid { grid-template-columns: 1fr; }
  .ai-tingkat { grid-template-columns: 1fr; }
  .ai-vs { grid-template-columns: 1fr; }
  .ai-steps { grid-template-columns: repeat(2, 1fr); }
  .ai-prop { grid-template-columns: 1fr; gap: 28px; }
  .ai-komunitas { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ai-hero h1 { font-size: 1.75rem; }
  .ai-hero-sub { font-size: .96rem; }
  .ai-hero-btns .btn-lg { width: 100%; justify-content: center; }
  /* main.css memberi tombol white-space:nowrap. Di ponsel, tombol
     berteks panjang jadi lebih lebar dari layar, jadi di halaman AI
     teksnya dibiarkan turun baris. */
  .btn-primary, .btn-ghost { white-space: normal; text-align: center; max-width: 100%; }
  .ai-trialcard { padding: 22px 20px; }
  .ai-hookbar { padding: 18px 5%; }
  .ai-modul-row { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 18px; }
  .ai-modul-no { width: 34px; height: 34px; font-size: .92rem; border-radius: 9px; }
  .ai-modul-hasil { grid-column: 2; }
  .ai-jalur-row { grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 18px; }
  .ai-jalur-row i { grid-column: 2; }
  .ai-jalur-ket { margin-left: 0; width: 100%; }
  .ai-format-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .ai-pair { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .ai-agenda-row { grid-template-columns: 88px 1fr; gap: 12px; }
  .ai-bawa, .ai-checks { grid-template-columns: 1fr; }
  .ai-quote { padding: 28px 24px; }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-prop-form { padding: 22px 18px; }
}
