/* ==========================================================================
   SC Personal — Gaya khusus halaman profil, resume, layanan, kontak, FAQ
   (about, cv, experience, education, certification, services,
    service-detail, contact, faq)
   ========================================================================== */

/* ---------- Editorial profil ---------- */
.ed-photo { position: relative; max-width: 480px; }
.ed-photo img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: 1.75rem; box-shadow: var(--pw-shadow-lg); position: relative; z-index: 1; background: #e9eef5; }
.ed-photo::after { content: ""; position: absolute; inset: 1.5rem -1.25rem -1.25rem 1.5rem; border: 2px solid rgba(var(--pw-accent-rgb), .6); border-radius: 1.75rem; }
.ed-name { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
.ed-statement { font-family: var(--pw-font-head); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; color: var(--pw-primary); line-height: 1.5; border-left: 4px solid var(--pw-accent); padding-left: 1.25rem; margin: 1.5rem 0; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fact { display: flex; gap: .85rem; align-items: flex-start; }
.fact .k { font-size: .78rem; color: var(--pw-muted); }
.fact .v { font-weight: 600; color: var(--pw-primary); font-size: .93rem; word-break: break-word; }
.interest-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.journey { background: var(--pw-bg-light); border-radius: var(--pw-radius); padding: 1.75rem; position: relative; }
.journey .editorial-num { position: absolute; right: 1.5rem; top: .75rem; }

/* ---------- Sub-navigasi in-page ---------- */
.subnav { position: sticky; top: var(--pw-nav-h); z-index: 1020; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pw-border); }
.subnav .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .25rem; padding: .6rem 0; }
.subnav .nav::-webkit-scrollbar { display: none; }
.subnav .nav-link { white-space: nowrap; color: var(--pw-text); font-weight: 500; font-size: .9rem; border-radius: 50rem; padding: .45rem 1rem; }
.subnav .nav-link:hover { color: var(--pw-primary); background: var(--pw-bg-light); }
.subnav .nav-link.active { background: var(--pw-primary); color: #fff; }

/* ---------- Timeline kartu ---------- */
.tl-card { background: #fff; border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 1.5rem 1.6rem; }
.tl > li .tl-card { transition: box-shadow .25s; }
.tl > li .tl-card:hover { box-shadow: var(--pw-shadow); }
.dur { font-size: .78rem; color: var(--pw-muted); }
.award-card { padding: 1.5rem; display: flex; gap: 1rem; }
.award-card .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(var(--pw-accent-rgb), .18); color: #8a5a12; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.pub-item { padding: 1.25rem 0; border-bottom: 1px solid var(--pw-border); display: flex; gap: 1rem; }
.pub-item:last-child { border-bottom: 0; }
.pub-item .yr { font-family: var(--pw-font-head); font-weight: 800; color: var(--pw-secondary); font-size: 1.1rem; min-width: 3.2rem; }

/* ---------- Pendidikan ---------- */
.edu-card { padding: 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.edu-card .yr { font-family: var(--pw-font-head); text-align: center; background: var(--pw-primary); color: #fff; border-radius: 1rem; padding: .9rem .8rem; min-width: 96px; line-height: 1.2; }
.edu-card .yr strong { display: block; font-size: 1.35rem; color: var(--pw-accent); }
.edu-card .yr span { font-size: .78rem; opacity: .8; }
@media (max-width: 575.98px) { .edu-card { grid-template-columns: 1fr; } .edu-card .yr { justify-self: start; } }

/* ---------- Sertifikat ---------- */
.cred { display: flex; align-items: center; gap: .4rem; background: var(--pw-bg-light); border: 1px dashed var(--pw-border); border-radius: .5rem; padding: .3rem .4rem .3rem .65rem; font-size: .8rem; }
.cred code { color: var(--pw-primary); background: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred button { border: 0; background: #fff; width: 30px; height: 30px; border-radius: .4rem; color: var(--pw-primary); flex-shrink: 0; }
.cred button:hover { background: var(--pw-primary); color: #fff; }
.cert-card .thumb { cursor: zoom-in; }

/* ---------- Layanan ---------- */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: st; background: #fff; border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 1.5rem 1.25rem 1.25rem; position: relative; }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--pw-font-head); font-weight: 800; font-size: 1.6rem; color: var(--pw-accent); display: block; margin-bottom: .4rem; }
.steps.vertical { grid-template-columns: 1fr; }
.steps.vertical li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.steps.vertical li::before { margin: 0; min-width: 2.4rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: #16a34a; font-size: 1.05rem; line-height: 1.5; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--pw-border); }
.price-row:last-child { border-bottom: 0; }
.price-row .p { font-weight: 700; color: var(--pw-primary); white-space: nowrap; }
.svc-hero-ic { width: 76px; height: 76px; border-radius: 20px; background: var(--pw-accent); color: #1c1606; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.sticky-aside { position: sticky; top: calc(var(--pw-nav-h) + 1.25rem); }
.price-card { background: var(--pw-primary); color: #fff; border-radius: var(--pw-radius); padding: 1.75rem; }
.price-card .amount { font-family: var(--pw-font-head); font-size: 1.6rem; font-weight: 800; color: var(--pw-accent); }

/* ---------- Kontak ---------- */
.contact-card { padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card a { color: var(--pw-primary); font-weight: 600; word-break: break-word; }
.hours { width: 100%; font-size: .93rem; }
.hours td { padding: .65rem 0; border-bottom: 1px solid var(--pw-border); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--pw-primary); }
.hours tr.today td { color: var(--pw-secondary); }
.map-ph { position: relative; border-radius: var(--pw-radius); overflow: hidden; min-height: 320px; background:
  linear-gradient(rgba(18, 59, 101, .04) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(18, 59, 101, .04) 1px, transparent 1px) 0 0 / 32px 32px, #eaf0f7; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.map-ph::before { content: ""; position: absolute; left: -10%; right: -10%; top: 55%; height: 16px; background: #fff; transform: rotate(-8deg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .5); }
.map-ph::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 38%; width: 12px; background: #fff; transform: rotate(14deg); }
.map-ph .inner { position: relative; z-index: 1; background: rgba(255, 255, 255, .95); border-radius: var(--pw-radius); padding: 1.5rem; box-shadow: var(--pw-shadow); max-width: 360px; }
.map-ph .pin { font-size: 2.4rem; color: #dc2626; line-height: 1; }
.map-embed iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--pw-radius); }

/* ---------- FAQ ---------- */
.faq-search { position: relative; max-width: 560px; }
.faq-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--pw-muted); }
.faq-search input { padding-left: 2.8rem; border-radius: 50rem; height: 54px; box-shadow: var(--pw-shadow); border-color: transparent; }
.faq-group-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pw-secondary); margin: 2rem 0 1rem; }

/* ---------- CV online ---------- */
.cv-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.cv-sheet { background: #fff; border-radius: 1.25rem; box-shadow: var(--pw-shadow-lg); overflow: hidden; max-width: 1000px; margin: 0 auto; }
.cv-head { background: var(--pw-primary); color: #fff; padding: 2.25rem 2.5rem; display: flex; gap: 1.75rem; align-items: center; }
.cv-head img { width: 120px; height: 120px; border-radius: 1.25rem; object-fit: cover; border: 4px solid rgba(255, 255, 255, .25); background: #e9eef5; flex-shrink: 0; }
.cv-head h1 { color: #fff; font-size: 2rem; font-weight: 800; margin: 0; }
.cv-head .role { color: var(--pw-accent); font-weight: 600; margin: .25rem 0 .75rem; }
.cv-head .contact { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .85rem; color: rgba(255, 255, 255, .85); }
.cv-head .contact a { color: rgba(255, 255, 255, .9); }
.cv-body { display: grid; grid-template-columns: 300px 1fr; }
.cv-side { background: var(--pw-bg-light); padding: 2rem 1.75rem; }
.cv-main { padding: 2rem 2.25rem; }
.cv-sec { margin-bottom: 1.75rem; break-inside: avoid; }
.cv-sec:last-child { margin-bottom: 0; }
.cv-sec h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--pw-secondary); border-bottom: 2px solid var(--pw-accent); padding-bottom: .4rem; margin-bottom: 1rem; display: inline-block; }
.cv-item { margin-bottom: 1rem; break-inside: avoid; }
.cv-item h3 { font-size: 1rem; margin: 0 0 .15rem; }
.cv-item .sub { font-size: .85rem; color: var(--pw-muted); }
.cv-item p, .cv-item li { font-size: .88rem; margin: .35rem 0 0; }
.cv-item ul { padding-left: 1.1rem; margin: .25rem 0 0; }
.cv-skill { font-size: .84rem; margin-bottom: .55rem; }
.cv-skill .bar { height: 5px; background: #dde5ef; border-radius: 4px; margin-top: .25rem; overflow: hidden; }
.cv-skill .bar span { display: block; height: 100%; background: var(--pw-secondary); border-radius: 4px; }
.cv-side ul { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.cv-side li { margin-bottom: .45rem; }
@media screen and (max-width: 767.98px) { .cv-body { grid-template-columns: 1fr; } .cv-head { flex-direction: column; text-align: center; padding: 2rem 1.25rem; } .cv-head .contact { justify-content: center; } .cv-main { padding: 1.75rem 1.25rem; } }

@media print {
  @page { size: A4; margin: 10mm; }
  body.cv-page { background: #fff; }
  .cv-page .page-hero, .cv-page .cv-toolbar, .cv-page .skip-link, .cv-page .offcanvas { display: none !important; }
  .cv-page .section { padding: 0 !important; }
  .cv-page .container { max-width: none !important; padding: 0 !important; }
  .cv-sheet { box-shadow: none; border-radius: 0; max-width: none; }
  .cv-head { padding: 7mm 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv-side { -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 6mm 6mm; }
  .cv-main { padding: 6mm 7mm; }
  .cv-body { grid-template-columns: 62mm 1fr; }
  .cv-head img { width: 26mm; height: 26mm; }
  .cv-skill .bar, .cv-skill .bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv-page a { text-decoration: none; }
}

/* Jangkar di bawah navbar + sub-nav lengket */
.subnav ~ section[id], .subnav ~ section [id] { scroll-margin-top: calc(var(--pw-nav-h) + 72px); }
.check-list.row { display: flex; }
@media print { html:has(body.cv-page) { font-size: 11px; } .cv-page .cv-sheet { line-height: 1.5; } .cv-page main, .cv-page #pageContent { margin: 0; } }
