/*
Theme Name: KangRoki Dynamic Magazine
Theme URI: https://kangroki.com/
Author: KangRoki
Description: Tema majalah WordPress independen untuk Wisata, Kuliner, Persib dan Kehutanan. Slider kategori, rekomendasi artikel, profil penulis, serta slot iklan.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kangroki-mag
License: GPL-2.0-or-later
*/
:root{--accent:#c08a28;--ink:#18232c;--muted:#6c7883;--line:#e7ebee;--paper:#fff;--soft:#f5f7f8;--width:1180px}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;height:auto}button,input{font:inherit}button{cursor:pointer}.container{max-width:var(--width);margin:auto;padding:0 22px}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:12px;top:12px;background:#fff;padding:12px;z-index:100}.topline{height:5px;background:linear-gradient(90deg,#182b25,#b8862b)}.masthead{padding:22px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:25px}.branding img{max-height:110px;width:auto;display:block}.branding .site-title{font-size:35px;font-weight:900;letter-spacing:-1px}.branding .tagline{color:var(--muted);font-size:13px}.ad-slot{min-height:80px;display:flex;align-items:center;justify-content:center;background:var(--soft);border:1px dashed #cbd2d7;border-radius:6px;color:#86919b;font-size:12px;text-align:center;padding:10px}.ad-slot:has(.widget){display:block;border:0;background:transparent;padding:0}.header-ad{flex:0 1 600px}.main-nav{border-top:1px solid var(--line);border-bottom:2px solid var(--ink);background:#fff}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.menu-list{display:flex;list-style:none;gap:0;margin:0;padding:0;flex-wrap:wrap}.menu-list li a{display:block;padding:13px 16px;font-size:14px;font-weight:700}.menu-list li:first-child a{padding-left:0}.search-form{display:flex;align-items:center}.search-form input{border:1px solid var(--line);padding:8px 10px;max-width:145px;border-radius:4px}.search-form button{background:var(--ink);color:#fff;border:0;border-radius:4px;padding:9px 12px}.page-content{padding-top:28px}.hero-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-weight:800;color:var(--accent);font-size:11px}.filter-list{display:flex;gap:7px;flex-wrap:wrap}.filter-list button{border:1px solid #d9dee2;background:#fff;border-radius:20px;padding:7px 13px;font-size:12px;font-weight:700}.filter-list button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}.hero{position:relative;border-radius:12px;overflow:hidden;background:#14241f;min-height:440px}.hero-slide{display:none;position:relative;height:440px}.hero-slide.active{display:block}.hero-slide img{width:100%;height:100%;object-fit:cover;display:block}.hero-slide .placeholder{height:100%;background:linear-gradient(130deg,#183a2e,#aa873b)}.hero-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 75%)}.hero-text{position:absolute;z-index:1;left:5%;right:15%;bottom:13%;color:#fff}.hero-text h2{font-size:clamp(26px,3.4vw,44px);line-height:1.16;margin:9px 0}.hero-text p{margin:0;color:#e1e5e7;font-size:14px}.hero-nav{position:absolute;z-index:3;right:18px;bottom:18px;display:flex;gap:8px}.hero-nav button{background:#ffffffd9;border:0;border-radius:50%;height:35px;width:35px;font-size:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;border-bottom:2px solid var(--ink);margin:32px 0 18px;padding-bottom:9px}.section-heading h2{font-size:22px;margin:0}.section-heading a{font-size:13px;color:var(--accent);font-weight:700}.main-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.post-card{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}.post-card .thumb{display:block;aspect-ratio:16/9;background:#e6ecea;overflow:hidden}.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.post-card:hover img{transform:scale(1.03)}.post-card .card-body{padding:15px}.post-card h3{font-size:17px;line-height:1.35;margin:6px 0}.post-card p{font-size:13px;color:var(--muted);margin:6px 0 0}.meta{font-size:12px;color:var(--muted)}.sidebar .widget-box,.author-box{border:1px solid var(--line);border-radius:9px;padding:19px;margin-bottom:20px}.sidebar h3,.widget-title{font-size:17px;margin:0 0 13px}.author-avatar{border-radius:50%;width:84px;height:84px;object-fit:cover}.follow-btn{display:inline-block;background:var(--accent);color:#fff;padding:9px 17px;border-radius:6px;font-weight:800;font-size:13px;margin-top:12px}.follow-btn:hover{color:#fff;background:#9d711e}.sidebar-ad{margin-bottom:20px;min-height:230px}.site-footer{margin-top:48px;background:#16241f;color:#e9f0ec;padding:34px 0 15px}.footer-columns{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.footer-columns h3{font-size:17px}.footer-columns ul{list-style:none;padding:0}.footer-columns li{margin:8px 0}.footer-columns a:hover{color:#d5aa59}.footer-ad{background:#22372e;border-color:#4d6758;min-height:90px;margin-bottom:20px}.copyright{border-top:1px solid #3c5247;margin-top:22px;padding-top:14px;font-size:12px;color:#aabeb2}.article{max-width:100%;min-width:0}.article h1{font-size:clamp(27px,3vw,40px);line-height:1.2;margin:5px 0 12px}.article .featured{width:100%;border-radius:10px;margin:20px 0}.article-body{font-size:17px;line-height:1.9;overflow-wrap:anywhere}.article-body a{color:#976915;text-decoration:underline}.article-body img{height:auto}.article-body iframe{max-width:100%}.article-ad{margin:25px 0;min-height:120px}.related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.related-list a{border-bottom:1px solid var(--line);padding:8px 0;font-weight:700}.archive-title{margin:0 0 20px}.pagination{margin:28px 0}.pagination .page-numbers{padding:8px 12px;border:1px solid var(--line);margin-right:4px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:800px){.masthead{display:block;text-align:center}.branding img{margin:auto;max-height:95px}.header-ad{margin-top:18px}.main-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sidebar .widget-box,.sidebar-ad{margin-bottom:0}.hero,.hero-slide{height:350px;min-height:350px}.hero-text{right:8%;bottom:15%}.footer-columns{grid-template-columns:1fr 1fr}.footer-columns>div:first-child{grid-column:1/-1}}@media(max-width:540px){.container{padding:0 15px}.branding img{max-width:100%;max-height:85px}.branding .site-title{font-size:29px}.menu-list li a{padding:10px 9px;font-size:13px}.search-form input{max-width:90px}.hero-toolbar{align-items:start;flex-direction:column}.hero,.hero-slide{height:310px;min-height:310px}.hero-text{left:6%;right:6%;bottom:17%}.hero-text h2{font-size:25px}.post-grid,.related-list,.sidebar,.footer-columns{grid-template-columns:1fr}.footer-columns>div:first-child{grid-column:auto}.section-heading h2{font-size:19px}.article-body{font-size:16px}}

/* KangRoki Dynamic Magazine v1.1 refinements */
.branding img,.custom-logo{max-width:100%;height:auto;max-height:125px;object-fit:contain}
.hero-text h2{font-size:clamp(1.4rem,3vw,2.45rem);line-height:1.16;max-width:850px;text-wrap:balance}
.hero-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,15,18,.85),rgba(5,15,18,.05) 70%);pointer-events:none}
.hero-text{z-index:2;position:absolute}
.category-feature-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:18px;margin-bottom:32px;align-items:start}
.feature-card{border:1px solid #e4e9ec;border-radius:9px;overflow:hidden;background:#fff;height:100%}
.feature-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:#edf1f2}
.feature-thumb img{width:100%;height:100%;object-fit:cover}
.feature-body{padding:18px}.feature-body h3{font-size:clamp(1.15rem,1.8vw,1.5rem);line-height:1.35;margin:8px 0}.feature-body p{line-height:1.6}.read-more{font-weight:700;color:#b47712}
.compact-list{display:grid;grid-template-columns:1fr;gap:12px}.compact-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;border:1px solid #e4e9ec;border-radius:8px;padding:8px;background:#fff;min-width:0}.compact-thumb{display:block;aspect-ratio:4/3;overflow:hidden;background:#edf1f2;border-radius:5px}.compact-thumb img{width:100%;height:100%;object-fit:cover}.compact-card h3{font-size:.92rem;line-height:1.35;margin:0 0 6px}.compact-card .meta{font-size:.75rem}.compact-card a,.feature-card a{text-decoration:none}.compact-card a:hover,.feature-card a:hover{text-decoration:underline}
.social-follow{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.social-follow a{font-size:.8rem;padding:7px 10px;border:1px solid #d8e1e5;border-radius:5px;text-decoration:none}
@media(max-width:760px){.category-feature-layout{grid-template-columns:1fr}.compact-card{grid-template-columns:105px minmax(0,1fr)}.hero-text h2{font-size:clamp(1.25rem,5vw,1.8rem)}.branding img,.custom-logo{max-height:95px}}

/* V1.1.1: Center author profile only */
.sidebar .author-box{text-align:center}
.sidebar .author-box .author-avatar{display:block;margin:0 auto 14px}
.sidebar .author-box .follow-btn{margin-left:auto;margin-right:auto}
.sidebar .author-box .social-follow{justify-content:center}
.sidebar .author-box p{margin-left:auto;margin-right:auto}
