/*
Theme Name: DPD KNPI SBB
Theme URI: https://knpisbb.my.id/
Author: DPD KNPI SBB
Description: Tema WordPress responsif untuk DPD KNPI SBB, dengan hero banner, statistik, berita, galeri, halaman organisasi, dan pengaturan melalui Customizer.
Version: 1.3.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: knpi-sbb
Tags: custom-logo, custom-menu, featured-images, full-width-template, news, education
*/
:root{--knpi-navy:#0b2d59;--knpi-blue:#0759c7;--knpi-light:#eaf0f7;--knpi-yellow:#ffcc00;--knpi-text:#172b4d;--knpi-white:#fff;--knpi-footer:#06244a;--knpi-maroon:#7b2338}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--knpi-text);background:#fff;line-height:1.6}img{max-width:100%;height:auto}a{color:var(--knpi-blue);text-decoration:none}a:hover{color:#003c91}button,input,textarea,select{font:inherit}.container{width:min(1200px,calc(100% - 36px));margin-inline:auto}
.site-header{background:var(--knpi-navy);color:#fff;position:relative;z-index:20}.header-inner{min-height:68px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:10px;color:#fff;min-width:225px}.brand:hover{color:#fff}.custom-logo{max-width:48px;max-height:48px;object-fit:contain}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--knpi-blue);font-weight:900;font-size:13px;line-height:1.05;text-align:center;border:2px solid #d8e6ff}.brand-name{font-weight:800;display:block;font-size:16px;line-height:1.2}.brand-sub{font-size:12px;color:#dbe7fa;display:block}.main-navigation{margin-left:auto}.main-navigation ul{display:flex;align-items:center;gap:21px;list-style:none;margin:0;padding:0}.main-navigation a{color:#fff;font-size:12px;font-weight:700;text-transform:uppercase;white-space:nowrap}.main-navigation a:hover,.main-navigation .current-menu-item>a{color:var(--knpi-yellow)}.header-cta,.button-yellow{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--knpi-yellow);color:#12284a;font-weight:800;border-radius:8px;padding:12px 16px;border:0}.header-cta:hover,.button-yellow:hover{color:#12284a;filter:brightness(.96)}.menu-toggle{display:none;background:transparent;color:#fff;border:1px solid #7896bd;border-radius:6px;padding:7px 10px;font-size:22px}
.hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(115deg,#06336e,#0872dc 58%,#0b2d59);min-height:345px;display:flex;align-items:center}.hero.has-bg{background-size:cover;background-position:center}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,26,68,.78),rgba(0,65,154,.42))}.hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:180px 1fr;align-items:center;gap:26px;padding:36px 0}.hero-emblem{width:155px;height:155px;object-fit:contain;filter:drop-shadow(0 8px 10px #001c4b88)}.hero-placeholder-emblem{display:grid;place-items:center;background:#fff;color:var(--knpi-blue);border:5px solid var(--knpi-yellow);border-radius:10px;width:150px;height:150px;font-weight:900;font-size:28px;text-align:center;line-height:1.1}.hero-kicker{text-transform:uppercase;font-weight:800;font-size:clamp(15px,2vw,23px);line-height:1.25}.hero-eyebrow{color:var(--knpi-yellow);font-weight:900;font-size:clamp(16px,2vw,24px);text-transform:uppercase;line-height:1.25}.hero h1{margin:0;font-size:clamp(38px,6vw,72px);font-weight:900;line-height:1.08;letter-spacing:-1.5px;color:#fff}.hero-slogan{display:inline-block;margin:14px 0 20px;background:var(--knpi-yellow);color:var(--knpi-navy);font-size:clamp(20px,3vw,32px);font-weight:800;font-style:italic;padding:4px 24px;clip-path:polygon(3% 0,100% 0,96% 100%,0 100%)}.hero-values{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:6px}.hero-value{display:flex;gap:8px;align-items:center;font-size:12px;color:#fff}.value-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;border:2px solid #fff;font-size:18px}.hero-value strong{display:block;font-size:14px}.hero-value small{display:block;color:#e4edff;font-size:11px}.hero-arrow{position:absolute;z-index:2;top:48%;border:0;border-radius:50%;width:38px;height:38px;background:#fff;color:var(--knpi-navy);font-size:23px;cursor:pointer}.hero-arrow.prev{left:18px}.hero-arrow.next{right:18px}.hero-dots{position:absolute;bottom:13px;left:0;right:0;display:flex;justify-content:center;gap:9px;z-index:2}.hero-dot{width:11px;height:11px;border-radius:50%;border:0;background:#dbe7fa;cursor:pointer}.hero-dot.active{background:var(--knpi-yellow)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:16px 0 10px}.stat-card{display:flex;align-items:center;gap:15px;padding:15px 16px;border:1px solid #edf0f5;border-radius:10px;box-shadow:0 4px 14px #0b2d590d;background:#fff}.stat-icon{width:54px;height:54px;display:grid;place-items:center;background:var(--knpi-light);color:var(--knpi-blue);border-radius:8px;font-size:24px;flex-shrink:0}.stat-card:nth-child(3) .stat-icon{background:#fff2c5;color:#8a6500}.stat-number{display:block;font-size:27px;font-weight:900;line-height:1.1;color:var(--knpi-navy)}.stat-label{font-size:13px;color:#66758a}
.section{padding:18px 0 12px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:12px}.section-title{margin:0;font-size:24px;line-height:1.25;color:var(--knpi-navy);font-weight:900}.section-title:before{content:"";display:block;width:34px;height:5px;background:var(--knpi-yellow);margin-bottom:8px}.section-more{font-size:13px;font-weight:800;white-space:nowrap}.news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.news-card{overflow:hidden;border:1px solid #e1e6ee;border-radius:7px;background:#fff;box-shadow:0 3px 8px #0b2d5908}.news-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--knpi-light)}.news-card .news-placeholder{display:grid;place-items:center;aspect-ratio:16/9;background:linear-gradient(135deg,#dbeaff,#8dbbfa);color:var(--knpi-navy);font-size:26px;font-weight:900}.news-card-body{padding:9px 11px 12px}.news-date{display:block;color:#778397;font-size:12px}.news-card h3{font-size:14px;line-height:1.35;margin:2px 0 5px;color:var(--knpi-navy)}.news-card h3 a{color:inherit}.read-more{font-size:13px;font-weight:800}
.gallery-tabs{display:flex;gap:5px;margin:0 0 12px}.gallery-tab{padding:8px 14px;border:1px solid #dbe2ed;background:#fff;color:var(--knpi-navy);border-radius:6px;font-weight:700;cursor:pointer}.gallery-tab.active{background:var(--knpi-blue);color:#fff;border-color:var(--knpi-blue)}.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.gallery-item{border:1px solid #e3e8f0;border-radius:7px;overflow:hidden;background:#f5f8fc}.gallery-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.gallery-placeholder{display:grid;place-items:center;aspect-ratio:16/9;color:var(--knpi-navy);background:linear-gradient(135deg,#d5e6ff,#8dbbfa);font-weight:800}.gallery-video{aspect-ratio:9/16;max-height:310px;background:#0b2d59;color:#fff;display:grid;place-items:center;text-align:center;padding:16px}.gallery-video a{color:#fff}.site-footer{margin-top:18px;background:linear-gradient(110deg,var(--knpi-navy),var(--knpi-footer));color:#fff}.footer-main{display:grid;grid-template-columns:1.45fr 1fr 1.05fr 1.2fr;gap:30px;padding:28px 0}.footer-brand{display:flex;gap:12px;align-items:flex-start}.footer-brand .brand-mark{flex-shrink:0}.footer-main h3{margin:0 0 9px;color:#fff;font-size:14px}.footer-main p,.footer-main li,.footer-main a{font-size:12px;color:#d9e4f4}.footer-main ul{list-style:none;margin:0;padding:0}.footer-main li{margin:4px 0}.social-links{display:flex;gap:12px;margin-top:10px}.social-links a{font-weight:800}.subscribe-form{display:flex;gap:5px;margin-top:10px}.subscribe-form input{min-width:0;width:100%;padding:10px;border:0;border-radius:5px;font-size:12px}.subscribe-form button{background:var(--knpi-yellow);color:var(--knpi-navy);border:0;border-radius:5px;padding:9px 11px;font-size:12px;font-weight:800}.footer-bottom{border-top:1px solid #ffffff20;background:#041d3d}.footer-bottom-inner{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;font-size:12px;color:#c7d4e6}.footer-bottom a{color:#c7d4e6;margin-left:12px}
.page-header{background:var(--knpi-light);padding:30px 0}.page-header h1{margin:0;color:var(--knpi-navy);font-size:34px}.content-area{padding:30px 0 45px}.entry-content{max-width:900px}.entry-content h2,.entry-content h3{color:var(--knpi-navy)}.entry-content img{border-radius:8px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.entry-card{border:1px solid #e1e6ee;border-radius:8px;overflow:hidden}.entry-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.entry-card .entry-card-body{padding:14px}.entry-card h2{font-size:18px;margin:5px 0;color:var(--knpi-navy)}.pagination{margin-top:25px}.pagination .page-numbers{display:inline-block;padding:7px 11px;border:1px solid #d8e1ee;margin-right:5px;border-radius:4px}.pagination .current{background:var(--knpi-blue);color:#fff}.knpi-form{max-width:800px;padding:24px;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 20px #0b2d590d}.knpi-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.knpi-field label{display:block;font-weight:700;font-size:13px;margin-bottom:5px}.knpi-field input,.knpi-field textarea,.knpi-field select{width:100%;border:1px solid #cbd5e1;border-radius:5px;padding:10px;background:#fff}.knpi-field.full{grid-column:1/-1}.knpi-submit{margin-top:16px;border:0;cursor:pointer}.notice{padding:12px 15px;border-radius:6px;margin:15px 0}.notice.success{background:#e7f8ed;color:#14532d}.notice.error{background:#fff0f0;color:#8a1c1c}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.header-inner{gap:12px}.main-navigation ul{gap:12px}.main-navigation a{font-size:11px}.brand{min-width:190px}.header-cta{padding:10px;font-size:12px}.footer-main{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.container{width:min(100% - 28px,650px)}.header-inner{min-height:66px;flex-wrap:wrap;justify-content:space-between;padding:8px 0}.brand{min-width:0}.brand-name{font-size:14px}.brand-sub{font-size:11px}.custom-logo{max-width:42px;max-height:42px}.menu-toggle{display:block;margin-left:auto}.main-navigation{display:none;order:4;width:100%;margin:0}.main-navigation.is-open{display:block}.main-navigation ul{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 0 12px}.main-navigation li{border-top:1px solid #ffffff20;padding:10px 3px}.main-navigation a{font-size:13px}.header-cta{font-size:11px;padding:9px 11px}.hero{min-height:0}.hero-inner{grid-template-columns:86px 1fr;gap:14px;padding:30px 0 45px}.hero-emblem,.hero-placeholder-emblem{width:82px;height:82px;font-size:18px;border-width:3px}.hero h1{font-size:clamp(30px,8vw,46px);letter-spacing:-.7px}.hero-kicker,.hero-eyebrow{font-size:12px}.hero-slogan{font-size:18px;padding:3px 10px;margin:9px 0 12px}.hero-values{gap:8px 10px}.hero-value{font-size:10px;gap:5px}.value-icon{width:29px;height:29px;font-size:14px}.hero-value strong{font-size:11px}.hero-value small{font-size:9px}.hero-arrow{width:29px;height:29px;font-size:18px;top:auto;bottom:9px}.hero-arrow.prev{left:12px}.hero-arrow.next{right:12px}.hero-dots{bottom:18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:10px;gap:10px}.stat-icon{width:42px;height:42px;font-size:20px}.stat-number{font-size:23px}.stat-label{font-size:11px}.section-title{font-size:21px}.news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.news-card-body{padding:8px}.news-card h3{font-size:13px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-main{gap:20px;padding:24px 0}.footer-bottom-inner{align-items:flex-start;flex-direction:column}.footer-bottom a{margin-left:0;margin-right:12px}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-header h1{font-size:28px}}
@media(max-width:430px){.header-cta{display:none}.hero-inner{grid-template-columns:1fr;text-align:center;padding-top:24px}.hero-emblem,.hero-placeholder-emblem{margin:0 auto;width:72px;height:72px}.hero-values{justify-content:center}.hero-value{text-align:left}.stats{gap:7px}.stat-card{gap:7px;padding:9px 7px}.stat-icon{width:34px;height:34px;font-size:17px}.stat-number{font-size:20px}.stat-label{font-size:10px}.section-heading{align-items:flex-start}.section-more{font-size:11px}.news-grid{grid-template-columns:1fr}.news-card{display:grid;grid-template-columns:38% 1fr}.news-card img,.news-card .news-placeholder{height:100%;aspect-ratio:auto;min-height:100px}.gallery-grid{grid-template-columns:1fr 1fr}.footer-main{grid-template-columns:1fr}.knpi-form-grid{grid-template-columns:1fr}.knpi-field.full{grid-column:auto}.archive-grid{grid-template-columns:1fr}}


/* Interaksi warna khusus untuk empat kartu statistik beranda. */
.stat-card.stat-interactive{cursor:pointer;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;}
.stat-card.stat-interactive:focus-visible{outline:3px solid var(--knpi-stats-active-color,#0759c7);outline-offset:3px;}
.stat-card.stat-interactive.is-selected{background:var(--knpi-stats-active-color,#0759c7)!important;color:var(--knpi-stats-active-text,#fff)!important;border-color:var(--knpi-stats-active-color,#0759c7)!important;box-shadow:0 5px 18px color-mix(in srgb,var(--knpi-stats-active-color,#0759c7) 25%,transparent)!important;}
.stat-card.stat-interactive.is-selected .stat-number,.stat-card.stat-interactive.is-selected .stat-label{color:var(--knpi-stats-active-text,#fff)!important;}
.stat-card.stat-interactive.is-selected .stat-icon{background:rgba(255,255,255,.18)!important;color:var(--knpi-stats-active-text,#fff)!important;}


/* Homepage-only replacement: Mengenal KNPI + Visi, Misi & Tujuan. */
.about-knpi-section{padding-top:28px;padding-bottom:30px;}
.about-knpi-grid{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);gap:34px;align-items:center;}
.about-knpi-emblem{display:flex;justify-content:center;align-items:center;min-width:0;}
.about-knpi-logo-img{display:block;width:min(100%,300px);max-height:320px;object-fit:contain;filter:drop-shadow(0 3px 5px #0002);}
.about-knpi-logo-fallback{display:grid;place-items:center;width:min(100%,280px);aspect-ratio:1;border:7px solid #111;border-radius:8px 8px 42% 42%;background:linear-gradient(#fff 0 38%,#ffdf00 38% 44%,var(--knpi-blue) 44%);color:#ffdf00;font-size:clamp(40px,6vw,76px);font-weight:1000;font-style:italic;text-shadow:3px 3px #082d59,-1px -1px #082d59;box-shadow:0 2px 8px #0003;}
.about-knpi-copy h2{font-size:clamp(26px,3vw,36px);line-height:1.2;color:var(--knpi-blue);margin:0 0 12px;font-weight:900;}
.about-knpi-copy p{font-size:16px;line-height:1.75;margin:0 0 16px;color:var(--knpi-text);}
.vision-section{padding-top:28px;padding-bottom:28px;}
.vision-main-title{text-align:center;color:var(--knpi-blue);font-size:clamp(26px,3vw,36px);line-height:1.2;font-weight:900;margin:0 0 32px;}
.vision-main-title:before{content:none!important;display:none!important;}
.vision-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.vision-card{min-width:0;padding:25px 24px 28px;border:1px solid #e7e7e7;border-radius:17px;background:#fff;box-shadow:0 2px 13px #0002,0 0 5px #0001;}
.vision-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:3px;background:var(--knpi-blue);color:#fff;font-size:37px;line-height:1;margin-bottom:18px;}
.vision-card h3{font-size:27px;color:var(--knpi-blue);margin:0 0 12px;line-height:1.2;}
.vision-card p{white-space:pre-line;font-size:15.5px;line-height:1.65;margin:0;color:var(--knpi-text);}
@media(max-width:780px){.about-knpi-section{padding-top:24px;padding-bottom:18px}.about-knpi-grid{grid-template-columns:minmax(0,1fr);gap:18px}.about-knpi-logo-img{width:min(62%,240px);max-height:250px}.about-knpi-logo-fallback{width:min(60%,220px)}.about-knpi-copy h2{font-size:26px}.about-knpi-copy p{font-size:14px;line-height:1.65}.vision-main-title{font-size:25px;margin-bottom:22px}.vision-cards{grid-template-columns:1fr;gap:14px}.vision-card{padding:20px;border-radius:12px}.vision-icon{width:43px;height:43px;font-size:29px;margin-bottom:13px}.vision-card h3{font-size:22px}.vision-card p{font-size:14px;line-height:1.6}}

/* Program Strategis KNPI — tambahan terisolasi */
.strategic-program-section{padding-top:30px;padding-bottom:30px}
.strategic-program-intro{text-align:center;margin:0 auto 34px}
.strategic-program-intro h2{margin:0 0 12px;color:var(--knpi-blue);font-size:clamp(27px,3vw,38px);line-height:1.2;font-weight:900}
.strategic-program-intro p{margin:0;color:var(--knpi-text);font-size:17px;line-height:1.6}
.strategic-program-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.strategic-program-card{min-width:0;padding:25px 24px 28px;border:1px solid #e7e7e7;border-radius:17px;background:#fff;box-shadow:0 2px 13px #0002,0 0 5px #0001}
.strategic-program-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:3px;background:var(--knpi-blue);color:#fff;font-size:30px;line-height:1;margin-bottom:27px}
.strategic-program-card h3{font-size:24px;line-height:1.25;color:var(--knpi-blue);margin:0 0 13px;font-weight:800}
.strategic-program-card p{margin:0;color:var(--knpi-text);font-size:16px;line-height:1.65}
@media(max-width:780px){.strategic-program-section{padding-top:24px;padding-bottom:24px}.strategic-program-intro{margin-bottom:22px}.strategic-program-intro h2{font-size:25px}.strategic-program-intro p{font-size:14px}.strategic-desktop-break{display:none}.strategic-program-grid{grid-template-columns:1fr;gap:14px}.strategic-program-card{padding:20px;border-radius:12px}.strategic-program-icon{width:43px;height:43px;font-size:25px;margin-bottom:15px}.strategic-program-card h3{font-size:20px;margin-bottom:8px}.strategic-program-card p{font-size:14px;line-height:1.6}}


/* v1.1.5 — Instruksi khusus: hanya enam kartu Program Strategis berwarna biru. */
.strategic-program-card{
  background:linear-gradient(135deg,#0759c7 0%,#0754d8 100%);
  border-color:#0759c7;
  box-shadow:0 3px 12px rgba(7,89,199,.16);
}
.strategic-program-card h3,
.strategic-program-card p{
  color:#fff;
}
.strategic-program-icon{
  background:#fff;
  color:#0759c7;
}

/* v1.1.6 cache-busted styling: only Program Strategis cards. */
.strategic-program-section .strategic-program-card{background:linear-gradient(135deg,#0759c7 0%,#0754d8 100%) !important;border-color:#0759c7 !important;box-shadow:0 3px 12px rgba(7,89,199,.16) !important;}
.strategic-program-section .strategic-program-card h3,.strategic-program-section .strategic-program-card p{color:#fff !important;}
.strategic-program-section .strategic-program-card .strategic-program-icon{background:#fff !important;color:#0759c7 !important;}

/* v1.1.8 — Hanya pembaruan bagian Galeri Foto & Video sesuai instruksi. */
.gallery-video-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.gallery-video-grid .gallery-video{aspect-ratio:9/16;max-height:none;min-height:0;width:100%;padding:12px;background:#0b2d59;color:#fff;display:grid;place-items:center;text-align:center}
.gallery-video-grid .gallery-video a{color:#fff}
.gallery-video-label{font-size:12px;font-weight:800;color:var(--knpi-navy);margin:14px 0 9px}
@media(max-width:780px){.gallery-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-video-grid .gallery-video{padding:10px}}

/* v1.1.9 — Galeri video tepat empat kotak, rasio 9:16. */


/* v1.2.0 — Footer saja: tata letak mengikuti referensi putih 4 kolom dengan bilah biru di bawah. */
.site-footer-reference{margin-top:18px;background:#fff;color:#252b35;border-top:3px solid var(--knpi-blue);}
.site-footer-reference .footer-reference-grid{display:grid;grid-template-columns:1.25fr 1.05fr 1.15fr 1.25fr;gap:30px;padding:34px 0 28px;}
.site-footer-reference .footer-reference-grid h3{margin:0 0 10px;color:var(--knpi-blue);font-size:18px;font-weight:800;}
.site-footer-reference .footer-reference-grid p,.site-footer-reference .footer-reference-grid li,.site-footer-reference .footer-reference-grid a{color:#30343b;font-size:14px;line-height:1.65;}
.site-footer-reference .footer-reference-logo-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:var(--knpi-blue);font-size:24px;font-weight:900;line-height:1.1;}
.site-footer-reference .footer-reference-logo-row .custom-logo-link{display:flex;align-items:center;flex-shrink:0;}
.site-footer-reference .footer-reference-logo-row .custom-logo{max-width:48px;max-height:48px;}
.site-footer-reference .footer-reference-logo-row .brand-mark{width:48px;height:48px;}
.site-footer-reference .footer-reference-brand>p{margin:0;max-width:290px;}
.site-footer-reference .footer-reference-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;}
.site-footer-reference .footer-reference-social a{display:grid;place-items:center;width:34px;height:34px;border-radius:4px;background:var(--knpi-blue);color:#fff;font-weight:900;font-size:18px;text-transform:uppercase;}
.site-footer-reference .footer-reference-social a:hover{background:var(--knpi-navy);color:#fff;}
.site-footer-reference .footer-reference-links ul{list-style:none;margin:0;padding:0;}
.site-footer-reference .footer-reference-links li{margin:3px 0;}
.site-footer-reference .footer-reference-links li a{display:flex;align-items:flex-start;gap:9px;text-decoration:none;}
.site-footer-reference .footer-reference-links li a span{color:var(--knpi-blue);font-size:25px;font-weight:900;line-height:1.1;}
.site-footer-reference .footer-reference-grid a:hover{color:var(--knpi-blue);}
.site-footer-reference .footer-office-line{display:flex;align-items:flex-start;gap:10px;margin:4px 0 8px;overflow-wrap:anywhere;}
.site-footer-reference .footer-office-line>span:first-child{flex:0 0 17px;color:var(--knpi-blue);font-size:18px;font-weight:800;line-height:1.4;}
.site-footer-reference .footer-reference-map{height:125px;margin-top:10px;border:2px solid var(--knpi-blue);border-radius:12px;overflow:hidden;}
.site-footer-reference .footer-reference-map iframe{display:block;width:100%;height:100%;border:0;}
.site-footer-reference .footer-reference-bottom{background:var(--knpi-blue);color:#fff;}
.site-footer-reference .footer-reference-bottom-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:58px;padding:12px 0;color:#fff;font-size:13px;}
.site-footer-reference .footer-reference-bottom nav{display:flex;flex-wrap:wrap;gap:18px;}
.site-footer-reference .footer-reference-bottom a{color:#fff;font-size:13px;}
.site-footer-reference .footer-reference-bottom a:hover{text-decoration:underline;color:#fff;}
@media(max-width:1050px){.site-footer-reference .footer-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;}}
@media(max-width:600px){.site-footer-reference .footer-reference-grid{grid-template-columns:1fr;gap:22px;padding:26px 0;}.site-footer-reference .footer-reference-bottom-inner{align-items:flex-start;flex-direction:column;gap:8px;padding:14px 0;}.site-footer-reference .footer-reference-bottom nav{gap:12px;}.site-footer-reference .footer-reference-map{max-width:100%;}}


/* v1.2.5 — Desktop navigation horizontal; hamburger only on tablet/mobile. */
@media (min-width:1024px){
  .site-header .header-inner{display:grid;grid-template-columns:minmax(190px,230px) minmax(0,1fr);align-items:center;gap:clamp(10px,1.2vw,18px);padding-top:8px;padding-bottom:8px;}
  .site-header .brand{width:100%;min-width:0;gap:9px;}
  .site-header .brand>span{display:block;min-width:0;}
  .site-header .brand-name{font-size:clamp(14px,1.1vw,16px);line-height:1.2;white-space:normal;}
  .site-header .brand-sub{font-size:11px;line-height:1.25;white-space:normal;margin-top:2px;}
  .site-header .menu-toggle{display:none !important;}
  .site-header .main-navigation{display:block !important;visibility:visible !important;opacity:1 !important;position:static !important;transform:none !important;width:auto !important;height:auto !important;order:initial;margin-left:0;background:transparent;}
  .site-header .main-navigation ul{display:flex !important;flex-direction:row !important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:clamp(7px,.8vw,13px);padding:0;margin:0;}
  .site-header .main-navigation li{border:0;padding:4px 0;white-space:nowrap;}
  .site-header .main-navigation a{display:block;font-size:clamp(10px,.75vw,12px);white-space:nowrap;}
  .site-header .header-cta{display:none !important;}
}
@media (max-width:1023px){
  .site-header .header-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-top:9px;padding-bottom:9px;}
  .site-header .brand{min-width:0;max-width:calc(100% - 58px);flex:1 1 auto;gap:8px;}
  .site-header .brand>span{display:block;min-width:0;}
  .site-header .brand-name{font-size:15px;line-height:1.2;}
  .site-header .brand-sub{font-size:11px;line-height:1.3;}
  .site-header .menu-toggle{display:inline-flex !important;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;min-width:44px;min-height:42px;cursor:pointer;}
  .site-header .main-navigation{display:none;order:4;flex:0 0 100%;width:100%;margin:0;background:var(--knpi-navy);}
  .site-header .main-navigation.is-open{display:block !important;}
  .site-header .main-navigation ul{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px 0 10px;}
  .site-header .main-navigation li{border-top:1px solid #ffffff24;padding:11px 4px;white-space:normal;}
  .site-header .main-navigation a{display:block;font-size:13px;white-space:normal;}
  .site-header .header-cta{display:none !important;}
}
@media (max-width:430px){
  .site-header .header-inner{column-gap:8px;}
  .site-header .brand{max-width:calc(100% - 54px);gap:8px;}
  .site-header .custom-logo{max-width:40px;max-height:40px;}
  .site-header .brand-mark{width:40px;height:40px;font-size:11px;}
  .site-header .brand-name{font-size:13px;}
  .site-header .brand-sub{font-size:10px;}
}


/* v1.2.7 — Header desktop mengikuti referensi: identitas kiri, menu horizontal, garis aktif kuning. */
@media (min-width:1024px){
  .site-header{background:#0649ad;color:#fff;}
  .site-header .header-inner{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:clamp(14px,2vw,30px);min-height:82px;padding-top:10px;padding-bottom:10px;}
  .site-header .brand{display:flex;flex:0 0 auto;min-width:280px;max-width:340px;align-items:center;gap:12px;}
  .site-header .custom-logo{max-width:54px;max-height:54px;}
  .site-header .brand-mark{width:54px;height:54px;flex:0 0 54px;}
  .site-header .brand-name{font-size:clamp(16px,1.35vw,22px);line-height:1.15;white-space:nowrap;}
  .site-header .brand-sub{font-size:clamp(11px,.9vw,14px);line-height:1.25;white-space:nowrap;margin-top:3px;}
  .site-header .menu-toggle{display:none!important;}
  .site-header .main-navigation{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;width:auto!important;height:auto!important;flex:1 1 auto;min-width:0;margin-left:auto;background:transparent;}
  .site-header .main-navigation ul{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:clamp(10px,1.35vw,23px);padding:0;margin:0;}
  .site-header .main-navigation li{position:relative;border:0;padding:12px 0;white-space:nowrap;}
  .site-header .main-navigation a{display:block;color:#fff;font-size:clamp(10px,.83vw,14px);font-weight:800;line-height:1.25;text-transform:uppercase;white-space:nowrap;padding:5px 0;}
  .site-header .main-navigation a:hover,.site-header .main-navigation .current-menu-item>a,.site-header .main-navigation .current_page_item>a{color:#fff;}
  .site-header .main-navigation .current-menu-item>a:after,.site-header .main-navigation .current_page_item>a:after{content:"";position:absolute;left:0;right:0;bottom:3px;height:4px;border-radius:3px;background:#ffd400;}
  .site-header .header-cta{display:none!important;}
}


/* v1.2.8 — Galeri Foto & Video: 4 foto 16:9 dan 4 video 9:16. */
.knpi-home-gallery{margin-top:34px;margin-bottom:38px}.knpi-home-gallery-subtitle{font-size:18px;color:var(--knpi-navy);margin:18px 0 12px}.knpi-home-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.knpi-home-photo-card{display:block;aspect-ratio:16/9;overflow:hidden;border:1px solid #dbe5f1;border-radius:8px;background:#dceaff;text-decoration:none}.knpi-home-photo-card img{display:block;width:100%;height:100%;object-fit:cover}.knpi-gallery-empty-photo{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;width:100%;height:100%;padding:10px;color:#12345a;background:linear-gradient(135deg,#d8e8ff,#91bdf4);text-align:center}.knpi-gallery-empty-photo .dashicons{font-size:28px;width:28px;height:28px;color:#0759c7}.knpi-gallery-empty-photo strong{font-size:13px}.knpi-video-subtitle{margin-top:24px}.knpi-home-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}.knpi-home-video-card{display:block;position:relative;aspect-ratio:9/16;max-width:260px;width:100%;overflow:hidden;border-radius:9px;background:#0b2d59;border:1px solid #dbe5f1;text-decoration:none}.knpi-home-video-card img{display:block;width:100%;height:100%;object-fit:cover}.knpi-gallery-empty-video{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;width:100%;height:100%;padding:12px;text-align:center;color:#fff;background:linear-gradient(160deg,#1457a4,#09264b)}.knpi-gallery-empty-video .dashicons{font-size:34px;width:34px;height:34px;color:#fff}.knpi-gallery-empty-video strong{font-size:13px;color:#fff}.knpi-gallery-empty-video small{font-size:10px;color:#d8e7ff;line-height:1.4}.knpi-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#071a2bba;border:2px solid #ffffffd9;color:#fff;font-size:16px;padding-left:3px}.knpi-home-video-card:hover .knpi-video-play{background:#0759c7}
@media(max-width:780px){.knpi-home-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.knpi-home-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.knpi-home-video-card{max-width:none}.knpi-home-gallery-subtitle{font-size:16px}}

/* Dashboard gallery layout tuned to the supplied reference. */
.knpi-gallery-form-grid.knpi-gallery-both-forms{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}.knpi-gallery-both-forms .knpi-gallery-form-card{min-width:0}.knpi-gallery-both-forms .knpi-gallery-form{grid-template-columns:1fr}.knpi-gallery-admin .widefat{min-width:600px}.knpi-gallery-list-card{overflow-x:auto}
@media(max-width:1100px){.knpi-gallery-form-grid.knpi-gallery-both-forms{grid-template-columns:1fr 1fr}.knpi-gallery-lists{grid-template-columns:1fr}.knpi-gallery-list-card{overflow-x:auto}}
@media(max-width:782px){.knpi-gallery-form-grid.knpi-gallery-both-forms{grid-template-columns:1fr}.knpi-gallery-admin .nav-tab{font-size:12px;padding:7px 8px}}

/* v1.3.0 — Galeri admin: edit/hapus, status, dan layout responsif. */
.knpi-gallery-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.knpi-gallery-breadcrumb{font-size:12px;color:#506176;margin-top:12px}.knpi-gallery-status.is-published{background:#17a66a;color:#fff}.knpi-gallery-status.is-draft{background:#d7dee8;color:#25354a}.knpi-gallery-actions{white-space:nowrap}.knpi-gallery-delete{border-color:#d63638!important;color:#d63638!important}.knpi-gallery-list-card img{object-fit:cover}.knpi-gallery-list-card table{table-layout:auto}
@media(max-width:782px){.knpi-gallery-page-heading{display:block}.knpi-gallery-breadcrumb{display:none}.knpi-gallery-list-card{overflow-x:auto}}

/* v1.3.3: Fix admin_head/admin_footer callbacks so gallery admin CSS and live preview load correctly. */


/* v1.3.4 — in-page photo lightbox and vertical social-video player. */
.knpi-gallery-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(3,15,32,.92);display:none;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.knpi-gallery-lightbox.is-open{display:flex}
.knpi-gallery-lightbox-content{max-width:min(94vw,1100px);max-height:90vh;display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.knpi-gallery-lightbox-content>img{display:block;max-width:100%;max-height:88vh;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 8px 40px #0007}
.knpi-gallery-lightbox-close{position:absolute;right:18px;top:14px;width:46px;height:46px;border:1px solid #ffffff80;border-radius:50%;background:#09264b;color:#fff;font-size:32px;line-height:1;cursor:pointer;z-index:2}
.knpi-gallery-modal-video{height:min(86vh,850px);aspect-ratio:9/16;max-width:92vw;background:#061c37;border-radius:12px;overflow:hidden;box-shadow:0 8px 40px #0007}
.knpi-gallery-modal-video iframe{width:100%;height:100%;display:block;border:0}
body.knpi-gallery-modal-open{overflow:hidden}
.knpi-single-video-embed{width:min(100%,430px);aspect-ratio:9/16;margin:0 auto 20px;background:#061c37;overflow:hidden;border-radius:10px}
.knpi-single-video-embed iframe{width:100%;height:100%;border:0}
.knpi-home-photo-card,.knpi-home-video-card,.gallery-item{cursor:zoom-in}
.knpi-public-gallery-section{margin:24px 0 34px}.knpi-public-gallery-section h2{color:var(--knpi-navy);margin:0 0 14px}
@media(max-width:600px){.knpi-gallery-lightbox{padding:12px}.knpi-gallery-modal-video{height:min(78vh,760px);max-width:88vw}.knpi-gallery-lightbox-close{right:10px;top:10px;width:40px;height:40px}}

/* v1.3.6 — article byline and social sharing row; limited to single article pages. */
.single-post .knpi-article-header h1{margin:0 0 16px;line-height:1.2}
.single-post .knpi-article-byline{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:14px;line-height:1.5}
.single-post .knpi-article-author{font-weight:800;color:var(--knpi-blue,#205da8)}
.single-post .knpi-article-date{color:#687589}
.single-post .knpi-article-share,body.single .knpi-article-share,body.single-post .knpi-article-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0 0}
.single-post .knpi-share-label,body.single .knpi-share-label,body.single-post .knpi-share-label{font-size:13px;font-weight:800;color:#28384e;margin-right:4px}
.single-post .knpi-article-share a,.single-post .knpi-article-share button,body.single .knpi-article-share a,body.single .knpi-article-share button,body.single-post .knpi-article-share a,body.single-post .knpi-article-share button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;height:42px;border:0;border-radius:3px;color:#fff;text-decoration:none;font-size:22px;font-weight:800;cursor:pointer}
.single-post .knpi-share-facebook{background:#2166ad}
.single-post .knpi-share-x{background:#111}
.single-post .knpi-share-whatsapp{background:#20c968}
.single-post .knpi-share-telegram{background:#42a8d5}
.single-post .knpi-share-native{background:#159b24}
.single-post .knpi-article-featured img{display:block;width:100%;height:auto}
@media(max-width:600px){.single-post .knpi-article-header{padding:20px!important}.single-post .knpi-article-header h1{font-size:clamp(25px,7vw,36px)}.single-post .knpi-article-share,body.single .knpi-article-share,body.single-post .knpi-article-share{gap:7px}.single-post .knpi-article-share a,.single-post .knpi-article-share button,body.single .knpi-article-share a,body.single .knpi-article-share button,body.single-post .knpi-article-share a,body.single-post .knpi-article-share button{width:40px;height:40px}}


/* v1.3.7 — share row restyled to match the supplied reference; article layout otherwise unchanged. */
.single-post .knpi-article-share,body.single .knpi-article-share,body.single-post .knpi-article-share{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:20px 0 0;padding:0;background:transparent}
.single-post .knpi-share-label,body.single .knpi-share-label,body.single-post .knpi-share-label{font-size:clamp(22px,4vw,34px);font-weight:400;color:#142d50;margin-right:0;line-height:1.2;letter-spacing:-.5px}
.single-post .knpi-article-share a,.single-post .knpi-article-share button,body.single .knpi-article-share a,body.single .knpi-article-share button,body.single-post .knpi-article-share a,body.single-post .knpi-article-share button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-width:0;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#1761b5;text-decoration:none;font-size:clamp(25px,4vw,36px);font-weight:700;line-height:1;cursor:pointer;box-shadow:none}
.single-post .knpi-article-share .knpi-share-facebook,body.single .knpi-article-share .knpi-share-facebook,body.single-post .knpi-article-share .knpi-share-facebook{color:#1761b5;font-family:Arial,sans-serif;font-weight:800}
.single-post .knpi-article-share .knpi-share-x,body.single .knpi-article-share .knpi-share-x,body.single-post .knpi-article-share .knpi-share-x{color:#1761b5;font-size:clamp(27px,4vw,36px)}
.single-post .knpi-article-share .knpi-share-whatsapp,body.single .knpi-article-share .knpi-share-whatsapp,body.single-post .knpi-article-share .knpi-share-whatsapp{color:#1761b5;font-size:clamp(29px,4vw,38px);font-weight:400}
.single-post .knpi-article-share .knpi-share-telegram,body.single .knpi-article-share .knpi-share-telegram,body.single-post .knpi-article-share .knpi-share-telegram{color:#1761b5;font-size:clamp(31px,4.5vw,40px)}
.single-post .knpi-article-share .knpi-share-native,body.single .knpi-article-share .knpi-share-native,body.single-post .knpi-article-share .knpi-share-native{width:66px;height:66px;margin-left:2px;border:3px solid #858585;border-radius:10px;background:#f1f1f1;color:#111;font-size:42px;font-weight:400;line-height:1}
.single-post .knpi-article-share a:focus-visible,.single-post .knpi-article-share button:focus-visible{outline:2px solid #1761b5;outline-offset:4px}
.single-post .knpi-article-featured img{display:block;width:100%;height:auto}
@media(max-width:600px){.single-post .knpi-article-share,body.single .knpi-article-share,body.single-post .knpi-article-share{gap:8px;margin-top:18px}.single-post .knpi-share-label,body.single .knpi-share-label,body.single-post .knpi-share-label{font-size:clamp(21px,5.2vw,30px)}.single-post .knpi-article-share a,.single-post .knpi-article-share button,body.single .knpi-article-share a,body.single .knpi-article-share button,body.single-post .knpi-article-share a,body.single-post .knpi-article-share button{font-size:clamp(25px,6vw,34px)}.single-post .knpi-article-share .knpi-share-native,body.single .knpi-article-share .knpi-share-native,body.single-post .knpi-article-share .knpi-share-native{width:58px;height:58px;border-width:3px;font-size:36px}}

/* v1.3.9 — enforce reference sizing for the article share row, including Customizer previews. */
body.single-post .knpi-article-share,
body.single .knpi-article-share,
.single-post article .knpi-article-share{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:12px!important;margin:20px 0 22px!important;padding:0!important;background:transparent!important;min-height:68px!important;overflow:visible!important
}
body.single-post .knpi-article-share .knpi-share-label,
body.single .knpi-article-share .knpi-share-label,
.single-post article .knpi-article-share .knpi-share-label{
  display:inline-block!important;flex:0 0 auto!important;font-size:34px!important;font-weight:400!important;line-height:1.15!important;letter-spacing:-.6px!important;color:#142d50!important;margin:0!important;white-space:nowrap!important
}
body.single-post .knpi-article-share a,
body.single-post .knpi-article-share button,
body.single .knpi-article-share a,
body.single .knpi-article-share button,
.single-post article .knpi-article-share a,
.single-post article .knpi-article-share button{
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#1761b5!important;text-decoration:none!important;font-size:36px!important;font-weight:700!important;line-height:1!important;cursor:pointer!important
}
body.single-post .knpi-article-share .knpi-share-native,
body.single .knpi-article-share .knpi-share-native,
.single-post article .knpi-article-share .knpi-share-native{
  width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;margin-left:0!important;padding:0!important;border:3px solid #858585!important;border-radius:10px!important;background:#f1f1f1!important;color:#111!important;font-size:44px!important;font-weight:400!important;line-height:1!important
}
@media(max-width:600px){
  body.single-post .knpi-article-share,body.single .knpi-article-share,.single-post article .knpi-article-share{gap:9px!important;min-height:62px!important;margin:16px 0 20px!important}
  body.single-post .knpi-article-share .knpi-share-label,body.single .knpi-article-share .knpi-share-label,.single-post article .knpi-article-share .knpi-share-label{font-size:30px!important;letter-spacing:-.5px!important}
  body.single-post .knpi-article-share a,body.single-post .knpi-article-share button,body.single .knpi-article-share a,body.single .knpi-article-share button,.single-post article .knpi-article-share a,.single-post article .knpi-article-share button{font-size:34px!important}
  body.single-post .knpi-article-share .knpi-share-native,body.single .knpi-article-share .knpi-share-native,.single-post article .knpi-article-share .knpi-share-native{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;font-size:40px!important}
}
