/* =====================================================================
   Portal Klien — komponen halaman menu (2026-11-09)
   Layanan & Biaya, Psikolog, Artikel, Webinar, Sertifikat.
   Warna mengikuti token Maknai UI (--mk-teal, --mk-teal2), sehingga
   portal kampus white-label ikut menyesuaikan.
   ===================================================================== */
.kp { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.kp-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,219,170,.20) 0%, rgba(255,219,170,0) 45%),
              linear-gradient(135deg, var(--mk-teal, #10595E) 0%, var(--mk-teal2, #074347) 100%);
  box-shadow: 0 18px 40px -24px rgba(7,67,71,.8); isolation: isolate; }
.kp-hero::before, .kp-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.kp-hero::before { width: 260px; height: 260px; right: -70px; top: -110px; border: 36px solid rgba(255,255,255,.06); animation: kpSpin 30s linear infinite; }
.kp-hero::after { width: 140px; height: 140px; right: 150px; bottom: -80px; background: rgba(255,219,170,.14); filter: blur(2px); animation: kpFloat 7s ease-in-out infinite; }
.kp-hero-row { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.kp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FFDBAA; }
.kp-hero h2 { margin: 6px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.kp-hero p { margin: 0; font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 620px; }
.kp-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.kp-stat { min-width: 104px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.kp-stat b { display: block; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.2; }
.kp-stat span { font-size: 11px; color: rgba(255,255,255,.75); }

/* ── Toolbar: pencarian & chip ────────────────────────────────────── */
.kp-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kp-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.kp-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--mk-line, #e5e7eb); background: #fff; font: inherit; font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.kp-search input:focus { border-color: var(--mk-teal, #10595E); box-shadow: 0 0 0 4px rgba(16,89,94,.10); }
.kp-search svg, .kp-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #9ca3af; pointer-events: none; }
.kp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mk-line, #e5e7eb); background: #fff; color: #4b5563; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s; white-space: nowrap; }
.kp-chip:hover { border-color: var(--mk-teal, #10595E); color: var(--mk-teal, #10595E); }
.kp-chip.on { background: var(--mk-teal, #10595E); border-color: var(--mk-teal, #10595E); color: #fff; box-shadow: 0 6px 14px -8px rgba(16,89,94,.8); }
.kp-count { font-size: 12.5px; color: #6b7280; margin-left: auto; }
.kp-count b { color: #111827; }

/* ── Grid & kartu ─────────────────────────────────────────────────── */
.kp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kp-grid.lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.kp-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mk-line, #e9ecef); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s; }
.kp-card:hover { transform: translateY(-3px); border-color: rgba(16,89,94,.25); box-shadow: 0 18px 36px -22px rgba(7,67,71,.45); }
.kp-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kp-title { font-size: 15.5px; font-weight: 700; color: #111827; line-height: 1.35; margin: 0; }
.kp-sub { font-size: 12.5px; color: #6b7280; margin: 0; line-height: 1.5; }
.kp-desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f3f4f6; color: #4b5563; }
.kp-tag svg { width: 12px; height: 12px; }
.kp-tag.teal { background: rgba(16,89,94,.08); color: var(--mk-teal, #10595E); }
.kp-tag.gold { background: #fff4e0; color: #b45309; }
.kp-tag.green { background: #e8f7ee; color: #15803d; }
.kp-tag.red { background: #fdecec; color: #b91c1c; }
.kp-tag.blue { background: #e8f0fe; color: #1d4ed8; }
.kp-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(16,89,94,.08); color: var(--mk-teal, #10595E); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s; }
.kp-ic svg { width: 22px; height: 22px; }
.kp-card:hover .kp-ic { background: var(--mk-teal, #10595E); color: #fff; transform: rotate(-6deg) scale(1.06); }
.kp-price { font-size: 17px; font-weight: 700; color: var(--mk-teal, #10595E); line-height: 1.2; }
.kp-price small { display: block; font-size: 10.5px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.kp-price s { font-size: 12px; color: #9ca3af; font-weight: 500; margin-left: 4px; }
.kp-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--mk-teal, #10595E); text-decoration: none; white-space: nowrap; }
.kp-link svg { width: 15px; height: 15px; transition: transform .2s; }
.kp-card:hover .kp-link svg, .kp-link:hover svg { transform: translateX(3px); }
.kp-actions { display: flex; gap: 8px; }
.kp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 12.5px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: all .18s; white-space: nowrap; cursor: pointer; }
.kp-btn svg { width: 15px; height: 15px; }
.kp-btn.pri { background: linear-gradient(135deg, var(--mk-teal, #10595E), var(--mk-teal2, #074347)); color: #fff; box-shadow: 0 8px 18px -10px rgba(16,89,94,.8); }
.kp-btn.pri:hover { filter: brightness(1.08); transform: translateY(-1px); }
.kp-btn.sec { background: #fff; color: var(--mk-teal, #10595E); border-color: rgba(16,89,94,.25); }
.kp-btn.sec:hover { background: rgba(16,89,94,.06); }
.kp-btn.gold { background: #FFDBAA; color: #3b2603; }

/* Media (gambar kartu) */
.kp-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--mk-teal, #10595E), var(--mk-teal2, #074347)); overflow: hidden; }
.kp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.kp-card:hover .kp-media img { transform: scale(1.05); }
.kp-media .kp-badge { position: absolute; top: 12px; left: 12px; }
.kp-media-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); }
.kp-media-ph svg { width: 40px; height: 40px; }
.kp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.94); color: #111827; box-shadow: 0 4px 10px -4px rgba(0,0,0,.25); }
.kp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kp-badge.live { color: #dc2626; } .kp-badge.live .dot { animation: kpPulse 1.4s infinite; }
.kp-badge.soon { color: var(--mk-teal, #10595E); }
.kp-badge.done { color: #6b7280; }

/* Avatar psikolog */
.kp-person { display: flex; gap: 14px; align-items: flex-start; }
.kp-ava { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg, var(--mk-teal, #10595E), var(--mk-teal2, #074347)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; box-shadow: 0 8px 18px -10px rgba(7,67,71,.6); }
.kp-verified { display: inline-flex; align-items: center; gap: 3px; color: #15803d; font-size: 11px; font-weight: 700; }
.kp-verified svg { width: 13px; height: 13px; }
.kp-days { display: flex; gap: 4px; }
.kp-day { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; background: #f3f4f6; color: #c0c4cc; }
.kp-day.on { background: rgba(16,89,94,.10); color: var(--mk-teal, #10595E); }

/* Panel & tabel ringkas */
.kp-panel { background: #fff; border: 1px solid var(--mk-line, #e9ecef); border-radius: 18px; padding: 18px 20px; }
.kp-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kp-panel-h h3 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; }
.kp-panel-h h3 svg { width: 18px; height: 18px; color: var(--mk-teal, #10595E); }
.kp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.kp-tbl th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid #eef0f2; }
.kp-tbl td { padding: 11px 10px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.kp-tbl tr:last-child td { border-bottom: 0; }
.kp-tbl tr { transition: background .15s; }
.kp-tbl tbody tr:hover { background: #fafbfb; }
.kp-tbl .num { text-align: right; font-weight: 700; color: var(--mk-teal, #10595E); white-space: nowrap; }

/* Info strip */
.kp-info { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kp-info > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--mk-line, #e9ecef); }
.kp-info .kp-ic { width: 38px; height: 38px; border-radius: 12px; }
.kp-info .kp-ic svg { width: 18px; height: 18px; }
.kp-info b { display: block; font-size: 13px; color: #111827; margin-bottom: 2px; }
.kp-info span { font-size: 12px; color: #6b7280; line-height: 1.5; }

/* Artikel unggulan */
.kp-feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.kp-feature .kp-media { aspect-ratio: auto; min-height: 240px; }
.kp-feature .kp-body { padding: 24px; justify-content: center; }
.kp-feature .kp-title { font-size: 20px; }
@media (max-width: 760px) { .kp-feature { grid-template-columns: 1fr; } .kp-feature .kp-media { min-height: 180px; } }

/* Kosong */
.kp-empty { text-align: center; padding: 46px 20px; background: #fff; border: 1px dashed #d1d5db; border-radius: 18px; color: #6b7280; font-size: 13.5px; }
.kp-empty .kp-ic { margin: 0 auto 12px; width: 56px; height: 56px; border-radius: 18px; }
.kp-empty b { display: block; color: #111827; font-size: 15px; margin-bottom: 4px; }
.kp-hidden { display: none !important; }

/* Animasi masuk bertahap */
.kp-in { opacity: 0; transform: translateY(12px); animation: kpIn .55s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes kpIn { to { opacity: 1; transform: none; } }
@keyframes kpSpin { to { transform: rotate(360deg); } }
@keyframes kpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes kpPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .kp-in, .kp-hero::before, .kp-hero::after, .kp-badge.live .dot { animation: none !important; opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .kp-hero { padding: 20px; border-radius: 18px; } .kp-hero h2 { font-size: 20px; }
  .kp-stat { min-width: 0; flex: 1; } .kp-count { margin-left: 0; width: 100%; }
  .kp-grid, .kp-grid.lg { grid-template-columns: 1fr; }
  .kp-tbl .hide-sm { display: none; }
}

/* ── Halaman detail ───────────────────────────────────────────────── */
.kp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #6b7280; text-decoration: none; align-self: flex-start; padding: 6px 10px 6px 6px; border-radius: 10px; transition: background .15s, color .15s; }
.kp-back:hover { background: #fff; color: var(--mk-teal, #10595E); }
.kp-back svg { width: 16px; height: 16px; }
.kp-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.kp-aside { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .kp-split { grid-template-columns: 1fr; } .kp-aside { position: static; } }
.kp-prose { font-size: 14px; line-height: 1.8; color: #374151; }
.kp-prose p { margin: 0 0 12px; } .kp-prose p:last-child { margin-bottom: 0; }
.kp-prose h2, .kp-prose h3, .kp-prose h4 { color: #111827; font-weight: 700; margin: 20px 0 8px; line-height: 1.35; }
.kp-prose h2 { font-size: 18px; } .kp-prose h3 { font-size: 16px; } .kp-prose h4 { font-size: 14.5px; }
.kp-prose ul, .kp-prose ol { margin: 0 0 12px; padding-left: 20px; } .kp-prose li { margin: 4px 0; }
.kp-prose ul li::marker { color: var(--mk-teal, #10595E); }
.kp-prose a { color: var(--mk-teal, #10595E); font-weight: 600; }
.kp-prose blockquote { margin: 14px 0; padding: 12px 16px; border-left: 4px solid #FFDBAA; background: #fffaf1; border-radius: 0 12px 12px 0; color: #4b5563; }
.kp-prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0; }
.kp-prose strong { color: #111827; }
.kp-hero-person { display: flex; gap: 18px; align-items: center; }
.kp-hero-person .kp-ava { width: 92px; height: 92px; border-radius: 24px; font-size: 32px; border: 3px solid rgba(255,255,255,.25); }
.kp-list { display: flex; flex-direction: column; gap: 8px; }
.kp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #eef0f2; background: #fcfcfd; text-decoration: none; color: inherit; transition: border-color .18s, background .18s, transform .18s; }
.kp-row:hover { border-color: rgba(16,89,94,.3); background: #fff; transform: translateX(2px); }
.kp-row b { font-size: 13.5px; color: #111827; display: block; }
.kp-row span.kp-sub { display: block; }
.kp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kp-week div { text-align: center; padding: 10px 4px; border-radius: 12px; background: #f6f7f8; color: #b0b5bd; font-size: 11px; font-weight: 700; }
.kp-week div.on { background: rgba(16,89,94,.08); color: var(--mk-teal, #10595E); }
.kp-week div small { display: block; font-weight: 600; font-size: 10px; margin-top: 3px; color: inherit; opacity: .85; }
.kp-cta { background: linear-gradient(160deg, #fff 0%, #f3faf9 100%); border: 1px solid rgba(16,89,94,.18); }
.kp-cta .kp-btn { width: 100%; height: 44px; font-size: 13.5px; }
.kp-cover { border-radius: 20px; overflow: hidden; aspect-ratio: 21/9; background: linear-gradient(135deg, var(--mk-teal, #10595E), var(--mk-teal2, #074347)); }
.kp-cover img { width: 100%; height: 100%; object-fit: cover; }
.kp-share { display: flex; gap: 8px; flex-wrap: wrap; }
