/* ============================================================
   Theme: gpinsight — terinspirasi GP Insight (theme.co.id/gpinsight)
   VERSI LIGHT: putih bersih + aksen kuning #ffd64f (GP Insight),
   sekunder biru #0166ff, font Inter.
   Responsive: 960px / 640px.
   ============================================================ */

:root {
    --p-bg: #f4f5f7;
    --p-bg-2: #ffffff;
    --p-bg-3: #eef0f3;
    --p-border: #e2e5ea;
    --p-text: #3a3f47;
    --p-text-soft: #555c66;
    --p-muted: #8a919c;
    --p-heading: #16181d;
    --p-accent: #b8860b;        /* goldenrod tua — link & teks aksen */
    --p-accent-bright: #ffd64f; /* kuning GP Insight — badge/button */
    --p-accent-2: #0166ff;
    --p-radius: 12px;
    --p-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--p-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #8a6400; }

.p-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.p-main { min-height: 55vh; }

/* ---------- Header ---------- */
.p-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--p-border);
}
.p-header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.p-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.5px; color: var(--p-heading); }
.p-logo-dot { color: var(--p-accent-bright); -webkit-text-stroke: 1px var(--p-accent); }
.p-logo:hover { color: var(--p-accent); }
.p-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.p-nav a {
    color: var(--p-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .94rem;
}
.p-nav a:hover { color: var(--p-heading); background: var(--p-bg-3); }
.p-nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--p-border);
    color: var(--p-heading);
    font-size: 1.2rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* ---------- Hero slider ---------- */
.p-hero {
    position: relative;
    margin: 24px 0 8px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--p-bg-2);
    box-shadow: 0 10px 30px rgba(20, 24, 33, .10);
}
.p-hero-track { position: relative; }
.p-hero-slide { display: none; position: relative; }
.p-hero-slide.active { display: block; animation: pFade .6s ease; }
@keyframes pFade { from { opacity: 0; } to { opacity: 1; } }
.p-hero-slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
.p-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.88) 100%);
    display: flex;
    align-items: flex-end;
}
.p-hero-content { padding: 30px; max-width: 820px; }
.p-hero-content h2 {
    margin: 12px 0 8px;
    color: #ffffff;
    font-size: clamp(1.4rem, 3.2vw, 2.3rem);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: -.4px;
}
.p-hero-slide a:hover h2 { color: #ffe48a; }
.p-hero .p-meta { color: #e2e2e6; }
.p-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .40);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.p-hero-arrow.prev { left: 16px; }
.p-hero-arrow.next { right: 16px; }
.p-hero-arrow:hover { background: var(--p-accent-bright); color: #000; border-color: var(--p-accent-bright); }
.p-hero-dots {
    position: absolute;
    right: 24px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.p-hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: all .2s ease;
}
.p-hero-dots button.active { background: var(--p-accent-bright); width: 26px; border-radius: 6px; }

/* ---------- Badge kategori (kuning GP Insight) ---------- */
.p-cat {
    display: inline-block;
    background: var(--p-accent-bright);
    color: #000;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 5px;
}
a.p-cat:hover { background: #ffe48a; color: #000; }

/* ---------- Section head ---------- */
.p-section-head { margin: 38px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.p-section-head-row { margin-bottom: 16px; }
.p-section-title {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--p-heading);
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--p-accent-bright);
}
.p-viewall { font-weight: 700; font-size: .85rem; color: var(--p-accent); }
.p-viewall:hover { color: #8a6400; }
.p-lead { color: var(--p-text); margin-top: -4px; }
.p-empty { color: var(--p-muted); padding: 30px 0; }

/* ---------- Grid kartu ---------- */
.p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.p-card {
    display: flex;
    flex-direction: column;
    background: var(--p-bg-2);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 24, 33, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.p-card:hover {
    border-color: #d4b100;
    box-shadow: 0 10px 26px rgba(180, 134, 11, .12);
    transform: translateY(-3px);
}
.p-card-thumb { display: block; overflow: hidden; }
.p-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.p-card:hover .p-card-thumb img { transform: scale(1.05); }
.p-card-thumb-ph {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7ecbf, #f0f1f4);
    color: var(--p-accent);
    font-size: 3rem;
    font-weight: 900;
}
.p-card-body { padding: 16px 18px 4px; }
.p-card-title { font-size: 1.08rem; line-height: 1.38; font-weight: 700; margin: 8px 0 8px; }
.p-card-title a { color: var(--p-heading); }
.p-card-title a:hover { color: var(--p-accent); }
.p-card-excerpt {
    color: var(--p-text-soft);
    font-size: .92rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 16px;
    margin-top: auto;
    color: var(--p-muted);
}
.p-meta { color: var(--p-muted); font-size: .84rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- Scroll row (per kategori) ---------- */
.p-row-wrap { position: relative; }
.p-row-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--p-border) transparent;
}
.p-row-scroll::-webkit-scrollbar { height: 6px; }
.p-row-scroll::-webkit-scrollbar-thumb { background: var(--p-border); border-radius: 4px; }
.p-row-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--p-bg-2);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    overflow: hidden;
    transition: border-color .15s ease;
}
.p-row-card:hover { border-color: #d4b100; }
.p-row-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.p-row-body { padding: 13px 15px 16px; }
.p-row-title { font-size: .96rem; line-height: 1.4; font-weight: 700; margin: 0 0 8px; }
.p-row-title a { color: var(--p-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row-title a:hover { color: var(--p-accent); }
.p-row-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--p-border);
    background: rgba(255, 255, 255, .92);
    color: var(--p-heading);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 24, 33, .12);
}
.p-row-arrow.prev { left: 0; }
.p-row-arrow.next { right: 0; }
.p-row-arrow:hover { background: var(--p-accent-bright); color: #000; border-color: var(--p-accent-bright); }

/* ---------- Layout 2 kolom (single/category) ---------- */
.p-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    margin-top: 22px;
    align-items: start;
}

/* ---------- Halaman artikel ---------- */
.p-single { background: var(--p-bg-2); border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: 28px 30px; }
.p-post-title {
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    line-height: 1.24;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--p-heading);
    margin: 10px 0 12px;
}
.p-post-meta, .p-single > .p-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--p-muted);
    font-size: .9rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.p-meta-sep { color: var(--p-border); }
.p-featured { width: 100%; border-radius: 10px; margin-bottom: 24px; }

.p-post-content { font-size: 1.06rem; line-height: 1.85; overflow-wrap: break-word; word-break: break-word; }
.p-post-content h2, .p-post-content h3, .p-post-content h4 {
    color: var(--p-heading);
    margin: 1.6em 0 .6em;
    line-height: 1.3;
}
.p-post-content h2 { font-size: 1.45rem; }
.p-post-content h3 { font-size: 1.22rem; }
.p-post-content p { margin: 0 0 1.1em; }
.p-post-content img, .p-post-content iframe, .p-post-content video { border-radius: 8px; margin: 8px 0; max-width: 100%; }
.p-post-content figure { margin: 1.3em 0; }
.p-post-content figure img { margin: 0; display: block; }
.p-post-content a { color: var(--p-accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: break-word; }
.p-post-content a:hover { color: #8a6400; }
.p-post-content ul, .p-post-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.p-post-content blockquote {
    border-left: 4px solid var(--p-accent-bright);
    background: var(--p-bg-3);
    margin: 1.2em 0;
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    color: var(--p-text);
}
.p-post-content code {
    background: var(--p-bg-3);
    border: 1px solid var(--p-border);
    color: #9a6b00;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: .9em;
    overflow-wrap: break-word;
}
.p-post-content pre {
    background: #1e222b;
    border: 1px solid #2c313c;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    color: #e8e8e8;
    max-width: 100%;
}
.p-post-content pre code { background: none; border: none; color: inherit; padding: 0; }
.p-post-content table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; white-space: nowrap; }
.p-post-content th, .p-post-content td { border: 1px solid var(--p-border); padding: 9px 12px; text-align: left; }
.p-post-content th { background: var(--p-bg-3); color: var(--p-heading); }

/* ---------- Sidebar ---------- */
.p-sidebar { position: sticky; top: 84px; }
.p-widget {
    background: var(--p-bg-2);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 18px;
    margin-bottom: 22px;
}
.p-widget-title {
    margin: 0 0 12px;
    font-size: .82rem;
    font-weight: 800;
    color: var(--p-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.p-widget-list { list-style: none; margin: 0; padding: 0; }
.p-widget-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--p-border);
}
.p-widget-list li:last-child { border-bottom: none; }
.p-widget-list a { color: var(--p-text); font-weight: 600; font-size: .92rem; }
.p-widget-list a:hover { color: var(--p-accent); }
.p-count {
    background: var(--p-bg-3);
    border: 1px solid var(--p-border);
    color: var(--p-text-soft);
    font-size: .75rem;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.p-widget-mini li { display: block; }
.p-widget-mini a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Breadcrumbs ---------- */
.p-breadcrumbs { font-size: .84rem; color: var(--p-muted); margin-bottom: 8px; }
.p-breadcrumbs a { color: var(--p-muted); }
.p-breadcrumbs a:hover { color: var(--p-accent); }
.p-bc-sep { margin: 0 6px; color: var(--p-border); }

/* ---------- Related ---------- */
.p-related { margin-top: 40px; border-top: 1px solid var(--p-border); padding-top: 4px; }

/* ---------- Pagination ---------- */
.p-pagination { display: flex; gap: 8px; margin: 30px 0 10px; flex-wrap: wrap; }
.p-page {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--p-bg-2);
    border: 1px solid var(--p-border);
    color: var(--p-text);
    font-weight: 700;
    font-size: .92rem;
}
.p-page:hover { border-color: var(--p-accent); color: var(--p-accent); }
.p-page.current { background: var(--p-accent-bright); border-color: var(--p-accent-bright); color: #000; }

/* ---------- Tombol / 404 ---------- */
.p-btn {
    display: inline-block;
    background: var(--p-accent-bright);
    color: #000;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 800;
}
.p-btn:hover { background: #ffe48a; color: #000; }
.p-404 { text-align: center; padding: 70px 30px; }
.p-404 .p-post-title { font-size: 4rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.p-footer { margin-top: 54px; background: #eceef2; border-top: 1px solid var(--p-border); }
.p-footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 32px;
    padding: 40px 0 28px;
}
.p-footer-col h4 {
    color: var(--p-heading);
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 14px;
}
.p-footer-col h4::after { content: ''; display: block; width: 26px; height: 3px; background: var(--p-accent-bright); margin-top: 8px; }
.p-footer-col p { color: var(--p-text); font-size: .92rem; }
.p-footer-col ul { list-style: none; margin: 0; padding: 0; }
.p-footer-col li { margin-bottom: 8px; }
.p-footer-col a { color: var(--p-text); font-size: .92rem; }
.p-footer-col a:hover { color: var(--p-accent); }
.p-footer-bottom {
    border-top: 1px solid var(--p-border);
    padding: 16px 0;
    color: var(--p-muted);
    font-size: .85rem;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .p-layout { grid-template-columns: 1fr; }
    .p-sidebar { position: static; }
    .p-grid { grid-template-columns: repeat(2, 1fr); }
    .p-hero-slide img { height: 340px; }
    .p-footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .p-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--p-bg-2);
        border-bottom: 1px solid var(--p-border);
        flex-direction: column;
        padding: 10px 20px 16px;
        gap: 2px;
    }
    body.p-nav-open .p-nav { display: flex; }
    .p-nav-toggle { display: block; }
    .p-grid { grid-template-columns: 1fr; gap: 18px; }
    .p-hero { border-radius: 10px; margin-top: 14px; }
    .p-hero-slide img { height: 260px; }
    .p-hero-content { padding: 18px; }
    .p-hero-arrow { display: none; }
    .p-hero-dots { right: 14px; bottom: 14px; }
    .p-row-card { flex: 0 0 230px; }
    .p-single { padding: 20px 18px; }
    .p-container { padding: 0 14px; }
    .p-footer-cols { grid-template-columns: 1fr; }
}
