/* Editorial Calm — merah bata untuk aksen identitas; slot iklan tetap netral, berlabel, dan tanpa tinggi minimum saat kosong. */
:root{--primary:#ae211d;--dark:#171717;--bg:#f4f1ec;--surface:#fff;--muted:#6b6b6b;--border:#ded9d1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#171717;font:15px Arial,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}.container{width:min(1180px,92%);margin:auto}.topbar{background:var(--dark);color:#fff;font-size:12px;padding:8px 0}.site-header{background:#fff;border-bottom:1px solid var(--border)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:25px}.logo{font-size:28px;font-weight:900;color:var(--primary)}.logo span{color:var(--dark)}.header-search{display:flex;flex:1;max-width:460px}.header-search input{width:100%;padding:11px;border:1px solid var(--border);border-radius:7px 0 0 7px}.header-search button,.btn{border:0;background:var(--primary);color:#fff;padding:11px 18px;border-radius:0 7px 7px 0;cursor:pointer}.navbar{background:#fff;border-bottom:1px solid var(--border)}.navbar ul{display:flex;gap:24px;list-style:none;margin:0;padding:12px 0;overflow:auto}.navbar a{font-weight:700;white-space:nowrap}.navbar a:hover,.category{color:var(--primary)}.breaking{background:var(--primary);color:#fff;padding:10px 0}.hero{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin:30px 0}.hero-main{position:relative;min-height:430px;overflow:hidden;border-radius:10px;background:#222}.hero-main img{width:100%;height:100%;object-fit:cover;position:absolute}.hero-content{position:absolute;inset:auto 0 0;padding:28px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.9))}.hero-title{font-size:42px;line-height:1.1;margin:8px 0}.news-card{background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:18px}.news-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.news-card-content{padding:16px}.news-title{font-size:20px;line-height:1.3;margin:6px 0}.meta{font-size:13px;color:var(--muted)}.main-layout{display:grid;grid-template-columns:1fr 320px;gap:30px}.news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.section-title{border-left:5px solid var(--primary);padding-left:12px}.sidebar-box,.newsletter{background:#fff;padding:20px;border-radius:10px;margin-bottom:20px}.popular-item{display:flex;gap:12px;border-bottom:1px solid var(--border);padding:12px 0}.popular-number{font-size:24px;font-weight:900;color:var(--primary)}.tag{display:inline-block;border:1px solid var(--border);padding:6px 12px;border-radius:20px;margin:3px}.newsletter{background:var(--dark);color:#fff;margin:45px 0;padding:32px}.newsletter input{padding:12px;border:0;border-radius:5px}.site-footer{background:var(--dark);color:#fff;padding:45px 0;margin-top:60px}.admin-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.admin-side{background:var(--dark);color:#fff;padding:25px}.admin-side a{display:block;padding:12px 0;color:#ccc}.admin-main{padding:35px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat,.panel{background:#fff;border:1px solid var(--border);padding:20px;border-radius:8px}.stat strong{font-size:30px;display:block}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:13px;border-bottom:1px solid var(--border);text-align:left}.form-control{width:100%;padding:12px;border:1px solid var(--border);border-radius:6px;margin:6px 0 16px}.btn{border-radius:6px}.notice{padding:12px;background:#fff3cd;border-radius:6px}@media(max-width:800px){.hero,.main-layout,.admin-shell{display:block}.hero-main{margin-bottom:18px}.news-grid,.stats{grid-template-columns:1fr 1fr}.admin-side{position:static}}@media(max-width:520px){.news-grid,.stats{grid-template-columns:1fr}.hero-title{font-size:30px}}

/* RBAC admin UI */
.admin-side{display:flex;flex-direction:column}.admin-side .logo{font-size:26px}.admin-side .logo span,.admin-login-logo span{color:#fff}.admin-user{border-top:1px solid #444;border-bottom:1px solid #444;padding:16px 0;margin:22px 0 10px}.admin-user strong,.admin-user small{display:block}.admin-user small{color:#aaa;margin-top:3px}.admin-nav a{border-radius:6px;padding:10px 12px;margin:2px 0}.admin-nav a:hover,.admin-nav a.active{background:#2c2c2c;color:#fff}.logout-link{margin-top:auto!important;color:#ffb3ae!important}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-heading h1,.page-heading h2{margin-top:0;margin-bottom:4px}.table-wrap{overflow:auto}.actions{display:flex;flex-wrap:wrap;gap:6px;min-width:190px}.actions form{display:inline;margin:0}.btn-small{font-size:12px;padding:7px 10px;white-space:nowrap}.btn-secondary{background:#5f6368}.btn-danger{background:#8f1b18}.notice-success{background:#dff4e5;color:#1e6131}.notice-error{background:#fbe2e0;color:#7c1d1a}.status,.override{display:inline-block;padding:3px 8px;border-radius:99px;font-size:12px;font-weight:700;text-transform:capitalize}.status-active,.status-published,.override-allow{background:#dff4e5;color:#1e6131}.status-draft,.status-review,.override-default{background:#fff3cd;color:#765b00}.status-inactive,.status-archived,.override-deny{background:#fbe2e0;color:#7c1d1a}.effective-yes{color:#1e6131}.effective-no{color:#8f1b18}.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.inline-form .form-control{flex:1;min-width:150px;margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.form-grid label:nth-last-of-type(-n+2),.form-grid button{grid-column:1/-1}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}.permission-item{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--border);padding:10px;border-radius:7px;background:#faf9f6}.permission-item small{display:block;color:var(--muted);font-size:11px}.member-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:20px}.member-summary strong,.member-summary .meta{display:block}.member-summary strong{font-size:17px}.override-form{min-width:230px;padding-top:12px}.override-form .form-control{margin-bottom:8px}.log-json{font-size:11px;white-space:pre-wrap;max-width:300px}.admin-login-logo h1{color:var(--primary)}
@media(max-width:800px){.form-grid,.permission-grid{grid-template-columns:1fr}.member-summary{grid-template-columns:repeat(2,1fr)}.page-heading{display:block}.page-heading .btn{display:inline-block;margin-top:10px}.actions{min-width:150px}}
@media(max-width:520px){.member-summary{grid-template-columns:1fr}.admin-main{padding:22px 15px}.admin-side{padding:18px}.inline-form{display:block}.inline-form .form-control{margin-bottom:10px}.inline-form .btn{display:inline-block}}


/* Centered admin login */
.admin-login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.admin-login-box{width:100%;max-width:420px;margin:0 auto}
@media(max-width:520px){.admin-login-page{padding:18px}.admin-login-box{max-width:100%}}


/* Exclusive article media choice */
.media-choice{grid-column:1/-1;border:1px solid var(--border);border-radius:6px;padding:12px 16px;margin:0 0 4px}
.media-choice legend{font-weight:700;padding:0 6px}
.media-choice label{display:inline-flex;align-items:center;gap:6px;margin-right:18px}
.media-choice input{margin:0}
.media-option{grid-column:1/-1}
.media-option-video{display:none}
.media-option.is-visible{display:block}


/* Mobile overflow protection */
*,*::before,*::after{box-sizing:border-box}
html,body{width:100%;max-width:100%;overflow-x:hidden}
.admin-shell,.admin-main,.container,.panel,form{min-width:0;max-width:100%}
input,textarea,select,button{max-width:100%;font:inherit}
input,textarea,select{box-sizing:border-box}
img,video{max-width:100%}
textarea{resize:vertical}
@media(max-width:800px){.container{width:calc(100% - 24px)}.header-inner{flex-wrap:wrap;gap:8px}.header-search{display:flex;order:3;flex:0 0 100%;width:100%;max-width:none;margin:2px 0 4px}.main-layout,.hero{grid-template-columns:1fr}.hero-title{font-size:32px}.admin-main{overflow-x:hidden}.page-heading{gap:10px}.page-heading h1{overflow-wrap:anywhere}.table-wrap{max-width:100%;overflow-x:auto}}
@media(max-width:520px){body{font-size:14px}.container{width:calc(100% - 20px)}.panel{padding:14px}.form-grid{display:block}.form-grid>label,.form-grid>fieldset,.form-grid>.media-option{display:block;width:100%}.form-grid .btn{width:100%;border-radius:6px}.header-inner>a{font-size:13px}.site-header{padding:12px 0}.hero-title{font-size:26px}.news-title{font-size:18px}.table{min-width:620px}.page-heading{display:block}.page-heading .btn{margin-top:8px}}


/* Registration page card */
.registration-box{padding:24px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.registration-box .admin-login-logo{margin-bottom:18px}
.registration-box form{display:block;width:100%}
.registration-box label{display:block;width:100%;margin:0}
.registration-box .form-control{display:block;width:100%;margin:6px 0 16px}
.registration-box .btn{border-radius:6px}
@media(max-width:520px){.registration-box{padding:18px 14px}.registration-box .admin-login-logo h1{font-size:25px}}


/* Separate settings groups */
.settings-group{margin-bottom:18px}
.settings-group h2{margin-bottom:8px}
.app-password-copy{font-family:monospace;letter-spacing:1px}


/* Editorial Calm — public ad slots stay in normal flow, are clearly labeled, and collapse completely when no unit is rendered. */
.ad-slot{width:min(1180px,92%);margin:28px auto 32px;padding:0;text-align:center}
.ad-slot-header{margin-top:24px;margin-bottom:24px}
.ad-slot-homepage-sidebar{width:100%;margin:28px 0 30px;text-align:left}
.ad-slot-footer{margin-top:34px;margin-bottom:34px}
.ad-label{display:inline-block;margin-bottom:12px;padding:3px 9px;border:1px solid var(--border);border-radius:3px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em;line-height:1.35;text-transform:uppercase}
.ad-content{display:flex;justify-content:center;align-items:flex-start;min-width:0;max-width:100%;overflow:hidden}
.ad-slot-homepage-sidebar .ad-content{justify-content:flex-start}
.ad-content ins,.ad-content iframe,.ad-content img{max-width:100%}
.ad-content ins{margin:0 auto}
.ad-slot-homepage-sidebar .ad-content ins{margin-left:0;margin-right:0}
.empty-state{padding:24px 0;color:var(--muted)}
.ad-admin-guide{border-left:4px solid var(--primary);background:#fffdf9}
.ad-admin-guide h2{margin:0 0 8px}
.ad-admin-guide p{margin:6px 0}
.form-full{grid-column:1/-1}
.field-help{display:block;margin-top:-10px;margin-bottom:16px;color:var(--muted);font-size:12px}
@media(max-width:800px){.ad-slot{width:calc(100% - 24px);margin-top:22px;margin-bottom:26px}.ad-slot-homepage-sidebar{width:100%;margin-top:24px}}
@media(max-width:520px){.ad-slot{width:calc(100% - 20px)}.ad-label{margin-bottom:10px}}


/* Editorial Calm — registration form uses a calm two-column desktop rhythm and a single-column touch-friendly mobile flow. */
.registration-page{align-items:flex-start;min-height:100dvh;padding:clamp(18px,5vw,56px) 14px}
.registration-box{max-width:680px;margin:0 auto}
.registration-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-items:start}
.registration-form>label{min-width:0}
.registration-form .form-full,.registration-form .registration-submit{grid-column:1/-1}
.registration-form .form-control{min-height:44px}
.registration-form textarea.form-control{min-height:112px}
.registration-form .field-help{margin-top:-10px}
.registration-submit{width:100%;margin-top:4px}
.registration-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px}
.registration-login-link{margin:18px 0 0}
#wilayah-status{grid-column:1/-1;margin:-4px 0 12px;padding:8px 10px;border-radius:6px}
#wilayah-status.notice-error{background:#fbe2e0;color:#7c1d1a}
@media(max-width:700px){.registration-form{grid-template-columns:1fr;column-gap:0}.registration-form .form-full,.registration-form .registration-submit,#wilayah-status{grid-column:auto}.registration-box{max-width:560px}}
@media(max-width:520px){.registration-page{padding:12px 10px}.registration-box{padding:18px 14px;border-radius:10px}.registration-box .admin-login-logo h1{font-size:clamp(22px,7vw,28px);overflow-wrap:anywhere}.registration-form .form-control{font-size:16px}.registration-submit{min-height:48px}.registration-back{width:100%}}

/* Final public/article polish */
.site-logo{display:block;width:auto;max-width:220px;max-height:58px;object-fit:contain}
.hero-main video,.news-card video{width:100%;height:100%;object-fit:cover;background:#111}
.news-card video{aspect-ratio:16/9;height:auto}
.article{max-width:860px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:12px;padding:clamp(20px,4vw,42px)}
.article-title{font-size:clamp(30px,5vw,48px);line-height:1.12;margin:8px 0 12px}
.article-featured{display:block;width:100%;max-height:620px;object-fit:cover;border-radius:10px;margin:20px 0}
.article-content{max-width:100%;font-size:18px;line-height:1.85;text-align:left;overflow-wrap:anywhere;word-break:normal}
.article-content>*:first-child{margin-top:0}
.article-content p{margin:0 0 1.1em}
.article-content p:last-child{margin-bottom:0}
.article-content h2,.article-content h3,.article-content h4{line-height:1.3;margin:1.5em 0 .6em}
.article-content ul,.article-content ol{padding-left:1.5em}
.article-content blockquote{margin:1.2em 0;padding:12px 18px;border-left:4px solid var(--primary);background:#faf8f4}
.article-content a{text-decoration:underline;color:var(--primary)}
.footer-redaksi-title{font-size:16px;line-height:1.3;margin:.2em 0 .5em;color:#fff}.footer-redaksi-content{display:block!important;color:#fff!important;font-size:14px;line-height:1.55;overflow-wrap:anywhere;visibility:visible!important;opacity:1!important}.footer-redaksi-content p{display:block;margin:0 0 .7em;color:#fff}.footer-redaksi-content p:last-child{margin-bottom:0}.footer-redaksi-content h2,.footer-redaksi-content h3,.footer-redaksi-content h4{font-size:16px;line-height:1.3;margin:.8em 0 .35em;color:#fff}.footer-redaksi-content ul,.footer-redaksi-content ol{padding-left:1.2em;margin:.4em 0 .7em}
.article-featured+ p{font-size:17px;line-height:1.7}
button,.btn,input,select,textarea{min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(174,33,29,.25);outline-offset:2px}
@media(max-width:800px){.site-logo{max-width:170px;max-height:48px}.article-content{font-size:16px}.article{padding:20px 16px}.admin-side{border-bottom:1px solid #333}}

/* Reader features */
.article-tools{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.article-tools button,.article-tools a{border:1px solid #ddd;background:#fff;padding:9px 13px;border-radius:8px;text-decoration:none;cursor:pointer}.article-tools button:hover,.article-tools a:hover{background:#f5f5f5}.reading-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:9999}.comments-box{margin-top:30px;padding-top:20px;border-top:1px solid #eee}.comment-form{display:grid;gap:10px}.comment-form input,.comment-form textarea{width:100%;padding:11px;border:1px solid #ddd;border-radius:7px;box-sizing:border-box}.comment-item{padding:14px 0;border-bottom:1px solid #eee}.comment-item strong{display:block}.comment-item small{color:#777}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:15px}.related-card{border:1px solid #eee;border-radius:10px;overflow:hidden}.related-card img{width:100%;height:120px;object-fit:cover}.related-card div{padding:10px}.related-card a{font-weight:700;text-decoration:none}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}.status-actions{display:flex;gap:6px;flex-wrap:wrap}.status-actions form{display:inline}.status-actions button{border:1px solid #ddd;background:#fff;border-radius:6px;padding:6px 9px;cursor:pointer}@media(max-width:700px){.related-grid{grid-template-columns:1fr}.article-tools{gap:6px}.article-tools button,.article-tools a{padding:8px 10px}}

/* Admin mobile navigation: hamburger + slide-out menu */
.admin-menu-toggle{display:none;position:fixed;top:12px;left:12px;z-index:1100;width:46px;height:46px;padding:10px;border:1px solid #444;border-radius:10px;background:#171717;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.admin-menu-toggle span{display:block;height:3px;margin:5px 2px;background:#fff;border-radius:3px}
.admin-overlay{display:none}
.admin-mobile-head{display:none}
.admin-close{border:0;background:transparent;color:#fff;font-size:34px;line-height:1;cursor:pointer;padding:0 4px}
@media(max-width:800px){
  body.admin-menu-open{overflow:hidden}
  .admin-menu-toggle{display:block}
  .admin-side{position:fixed;left:0;top:0;bottom:0;width:min(310px,86vw);z-index:1200;transform:translateX(-105%);transition:transform .25s ease;overflow-y:auto;box-shadow:8px 0 28px rgba(0,0,0,.35);padding:20px 18px 24px}
  .admin-side.is-open{transform:translateX(0)}
  .admin-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .admin-desktop-logo{display:none!important}
  .admin-user{margin-top:18px}
  .admin-nav a{padding:12px 13px;margin:3px 0;font-size:15px}
  .admin-overlay{position:fixed;inset:0;z-index:1150;background:rgba(0,0,0,.58);backdrop-filter:blur(1px)}
  .admin-overlay.is-open{display:block}
  .admin-main{padding:72px 15px 25px}
  .admin-main .page-heading{padding-left:0}
}
@media(min-width:801px){.admin-close{display:none!important}}
.admin-nav-group{margin:3px 0}.admin-nav-parent{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;background:transparent;color:#ccc;text-align:left;border-radius:6px;padding:10px 12px;font-size:15px;cursor:pointer}.admin-nav-parent:hover,.admin-nav-group.open>.admin-nav-parent{background:#2c2c2c;color:#fff}.admin-nav-parent span{font-size:22px;transition:transform .2s}.admin-nav-group.open>.admin-nav-parent span{transform:rotate(90deg)}.admin-subnav{display:none;padding-left:12px}.admin-nav-group.open .admin-subnav{display:block}.admin-subnav a{font-size:14px;padding:8px 10px!important}.admin-subnav a.active{background:#2c2c2c;color:#fff}.admin-mobile-head{display:none}@media(max-width:800px){.admin-mobile-head{display:flex;align-items:center;justify-content:space-between}.admin-desktop-logo{display:none}.admin-close{border:0;background:transparent;color:#fff;font-size:30px}.admin-nav-group.open .admin-subnav{display:block}}
.article-editor{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:9px;border-bottom:1px solid var(--border);background:#f7f7f7}.editor-toolbar button{padding:7px 10px;border:1px solid var(--border);background:#fff;border-radius:4px;cursor:pointer}.editor-body{min-height:330px;padding:15px;outline:none}.editor-body:empty:before{content:'Tulis berita di sini...';color:#999}.publish-box{background:#fff;border:1px solid var(--border);padding:18px;border-radius:8px}.two-col-admin{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}@media(max-width:900px){.two-col-admin{grid-template-columns:1fr}}


/* WordPress-like appearance modules */
.header-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;padding:10px 14px;border-radius:6px;font-weight:700;white-space:nowrap}.site-header-sticky{position:sticky;top:0;z-index:500;box-shadow:0 4px 14px rgba(0,0,0,.08)}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}.footer-grid h3{margin-top:0;color:#fff}.footer-contact{line-height:1.8}.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checkbox-grid label{display:flex;align-items:center;gap:8px;padding:12px;background:#faf9f6;border:1px solid var(--border);border-radius:7px}.checkbox-grid input{width:auto;margin:0}.appearance-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0}.appearance-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:18px;transition:transform .16s ease,box-shadow .16s ease}.appearance-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.08)}.appearance-card strong{font-size:18px;color:var(--primary)}.appearance-card span{color:var(--muted);font-size:13px;line-height:1.5}.appearance-card small{margin-top:auto;color:var(--primary);font-weight:700}.feature-status{display:grid;gap:9px}.feature-status span{display:block;padding:8px 0}.appearance-preview{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#f4f1ec}.preview-topbar{background:#171717;color:#fff;padding:8px 14px;font-size:11px}.preview-header{display:flex;align-items:center;gap:16px;padding:18px;background:#fff}.preview-header strong{font-size:22px;color:var(--primary)}.preview-search{flex:1;border:1px solid var(--border);border-radius:5px;color:var(--muted);padding:8px 12px}.preview-cta{background:var(--primary);color:#fff;border-radius:5px;padding:8px 12px;font-size:12px}.background-preview{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border-radius:8px;color:#171717;background-repeat:no-repeat;background-position:center}.background-preview strong{font-size:28px;color:var(--primary)}.font-preview-body{font-size:18px}.font-preview-heading{font-size:30px;color:var(--primary)}.pattern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pattern-card{display:flex;flex-direction:column;gap:12px;border:1px solid var(--border);border-radius:8px;padding:16px;background:#fff}.pattern-card h3{margin:0}.pattern-content{padding:12px;background:#faf9f6;border-radius:6px;min-height:80px}.pattern-content>*:first-child{margin-top:0}.pattern-content>*:last-child{margin-bottom:0}.widget-preview{margin-top:8px;padding:8px 10px;border-left:3px solid var(--primary);background:#faf9f6;max-width:420px}.widget-preview>*:first-child{margin-top:0}.widget-preview>*:last-child{margin-bottom:0}.code-editor{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.55}.form-full{grid-column:1/-1}@media(max-width:800px){.appearance-card-grid,.pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:1fr 1fr}.checkbox-grid{grid-template-columns:1fr}.preview-header{flex-wrap:wrap}.preview-search{flex-basis:100%;order:3}}@media(max-width:520px){.appearance-card-grid,.pattern-grid,.footer-grid{grid-template-columns:1fr}.header-cta{padding:8px 10px;font-size:12px}.preview-header strong{font-size:18px}.font-preview-heading{font-size:24px}}


/* Elegant header controls and admin preview */
.topbar{letter-spacing:.08em;text-transform:uppercase;background:linear-gradient(110deg,#171717 0%,#2b2521 100%);font-size:11px}
.site-header{box-shadow:0 8px 24px rgba(34,25,18,.06);position:relative;z-index:5}
.site-header-sticky{position:sticky;top:0}
.header-inner{min-height:84px}
.header-inner .logo{letter-spacing:-.04em;transition:color .18s ease,transform .18s ease}
.header-inner .logo:hover{color:#8d1815;transform:translateY(-1px)}
.header-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border-radius:999px;background:var(--primary);color:#fff;font-weight:800;letter-spacing:.01em;box-shadow:0 7px 16px rgba(174,33,29,.18);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.header-cta:hover{background:#8d1815;box-shadow:0 10px 22px rgba(174,33,29,.26);transform:translateY(-1px)}
.header-search input{background:#fff;transition:border-color .18s ease,box-shadow .18s ease}
.header-search input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(174,33,29,.12);outline:0}
.header-search button{font-weight:700}
.appearance-preview{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg);box-shadow:0 10px 26px rgba(34,25,18,.07)}
.appearance-preview .preview-topbar{padding:9px 16px;background:var(--dark);color:#fff;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.appearance-preview .preview-header{display:flex;align-items:center;gap:16px;min-height:76px;padding:16px 20px;background:#fff}
.appearance-preview .preview-header strong{margin-right:auto;color:var(--primary);font-size:22px;letter-spacing:-.03em}
.appearance-preview .preview-search{padding:9px 13px;border:1px solid var(--border);border-radius:7px;color:var(--muted);font-size:13px}
.appearance-preview .preview-cta{padding:9px 14px;border-radius:999px;background:var(--primary);color:#fff;font-size:12px;font-weight:800}
.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--border);border-radius:10px;background:#faf9f6}
.checkbox-grid label{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border-radius:8px;line-height:1.45;transition:background .18s ease}
.checkbox-grid label:hover{background:#fff}
.checkbox-grid input{accent-color:var(--primary);margin-top:4px}
@media(max-width:700px){.appearance-preview .preview-header{align-items:flex-start;flex-wrap:wrap}.appearance-preview .preview-header strong{flex-basis:100%}.checkbox-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.header-inner .logo,.header-cta{transition:none}}

/* =========================================================
   RESPONSIVE LAYOUT FIX — widgets/footer/no-overlap
   Prevents footer widgets from covering or pushing other content
   on mobile and narrow screens.
   ========================================================= */
.dynamic-widgets,
.dynamic-widget,
.dynamic-widget-content,
.footer-grid,
.footer-grid > div { min-width: 0; max-width: 100%; }
.dynamic-widget { overflow: hidden; }
.dynamic-widget-content { overflow-wrap: anywhere; word-break: break-word; }
.dynamic-widget-content img,
.dynamic-widget-content video,
.dynamic-widget-content iframe,
.dynamic-widget-content table { max-width: 100%; }
.dynamic-widget-content iframe { width: 100%; }
.widgets-footer { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.widgets-footer .dynamic-widget { width: 100%; }
.site-footer { overflow: hidden; }
.site-footer .container { min-width: 0; }

@media (max-width: 800px) {
  .widgets-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dynamic-widget-content { font-size: 15px; }
}

@media (max-width: 520px) {
  .widgets-footer { grid-template-columns: 1fr; gap: 14px; }
  .widgets-footer .dynamic-widget { margin: 0; padding: 16px; }
  .dynamic-widget-content { font-size: 14px; line-height: 1.6; }
  .dynamic-widget-content p,
  .dynamic-widget-content ul,
  .dynamic-widget-content ol { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { padding: 32px 0; }
}


/* Mobile admin menu polish */
.admin-menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:48px;height:48px;min-height:48px;padding:10px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:#171717;color:#fff;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.24);transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.admin-menu-toggle span{display:block;width:24px;height:2px;margin:0;background:#fff;border-radius:99px;transition:transform .18s ease,opacity .18s ease}
.admin-menu-toggle:hover{background:#2c2c2c;box-shadow:0 8px 22px rgba(0,0,0,.3);transform:translateY(-1px)}
.admin-menu-toggle:focus-visible{outline:3px solid rgba(174,33,29,.45);outline-offset:3px}
.admin-close{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.admin-close:hover{background:#2c2c2c;border-color:rgba(255,255,255,.35)}
.admin-nav{padding-top:4px}
.admin-nav-parent{min-height:44px}
.admin-nav-parent:focus-visible,.admin-nav a:focus-visible,.admin-close:focus-visible{outline:3px solid rgba(255,255,255,.32);outline-offset:2px}
@media(max-width:800px){
  .admin-menu-toggle{top:14px;left:14px}
  .admin-side{width:min(320px,86vw);padding:18px 16px 24px}
  .admin-mobile-head{min-height:48px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.14)}
  .admin-nav{padding-top:12px}
  .admin-nav a,.admin-nav-parent{display:flex;align-items:center;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.admin-menu-toggle,.admin-menu-toggle span,.admin-close{transition:none}}


/* FINAL FIX — tombol menu 3 garis admin */
@media (max-width: 1024px) {
  .admin-menu-toggle {
    display: flex !important;
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 99999 !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .admin-menu-toggle span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 99px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .admin-side {
    z-index: 100000 !important;
  }

  .admin-overlay {
    z-index: 99998 !important;
  }

  .admin-main {
    padding-top: 78px !important;
  }
}

@media (min-width: 1025px) {
  .admin-menu-toggle {
    display: none !important;
  }
}

/* FINAL FIX 2 — Group menu Pos/Tampilan: clearly separate expanded submenu */
.admin-nav-group{margin:8px 0}
.admin-nav-parent{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:#2b2b2b;color:#d8d8d8;border-radius:9px;padding:14px 16px;font:inherit;font-size:17px;text-align:left;cursor:pointer;transition:background .18s ease,color .18s ease}
.admin-nav-parent span{display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:26px;line-height:1;transition:transform .18s ease,color .18s ease}
.admin-nav-group.open .admin-nav-parent{background:#ae211d;color:#fff;font-weight:700}
.admin-nav-group.open .admin-nav-parent span{color:#fff;transform:rotate(90deg)}
.admin-subnav{display:none;margin:0 4px 8px;padding:7px 0 7px 12px;border-left:3px solid #fff;background:#222;border-radius:0 0 8px 8px}
.admin-nav-group.open .admin-subnav{display:block}
.admin-subnav a{display:block!important;color:#d8d8d8!important;padding:11px 14px!important;margin:2px 0;border-radius:6px;font-size:16px}
.admin-subnav a:hover{background:#333;color:#fff!important}
.admin-subnav a.active{background:#3a3a3a;color:#fff!important;font-weight:700}
@media(max-width:800px){
  .admin-nav-parent{padding:15px 18px;font-size:18px}
  .admin-nav-parent span{font-size:28px}
  .admin-subnav{margin-left:8px;margin-right:8px;padding-left:10px;border-left-width:3px}
  .admin-subnav a{padding:12px 16px!important;font-size:17px}
}


/* FINAL ADMIN MENU THEME — default white, automatic text contrast */
.admin-side{
  background:var(--admin-menu-bg,#fff)!important;
  color:var(--admin-menu-text,#171717)!important;
  border-right:1px solid var(--admin-menu-border,rgba(0,0,0,.12));
}
.admin-side a,
.admin-side .admin-nav a{
  color:var(--admin-menu-text,#171717)!important;
}
.admin-side .logo span{color:var(--admin-menu-text,#171717)!important}
.admin-user{border-top-color:var(--admin-menu-border,rgba(0,0,0,.12))!important;border-bottom-color:var(--admin-menu-border,rgba(0,0,0,.12))!important}
.admin-user small{color:color-mix(in srgb,var(--admin-menu-text,#171717) 65%,transparent)!important}
.admin-nav a:hover,.admin-nav a.active{
  background:color-mix(in srgb,var(--admin-menu-text,#171717) 9%,var(--admin-menu-bg,#fff))!important;
  color:var(--admin-menu-text,#171717)!important;
}
.admin-nav-parent{
  color:var(--admin-menu-text,#171717)!important;
  background:color-mix(in srgb,var(--admin-menu-text,#171717) 6%,var(--admin-menu-bg,#fff))!important;
}
.admin-nav-parent:hover,.admin-nav-group.open .admin-nav-parent{
  background:var(--primary,#ae211d)!important;
  color:#fff!important;
}
.admin-nav-parent span{color:inherit!important}
.admin-subnav{
  background:color-mix(in srgb,var(--admin-menu-text,#171717) 4%,var(--admin-menu-bg,#fff))!important;
  border-left-color:var(--primary,#ae211d)!important;
}
.admin-subnav a{color:var(--admin-menu-text,#171717)!important}
.admin-subnav a:hover,.admin-subnav a.active{
  background:color-mix(in srgb,var(--admin-menu-text,#171717) 10%,var(--admin-menu-bg,#fff))!important;
  color:var(--admin-menu-text,#171717)!important;
}
.logout-link{color:var(--primary,#ae211d)!important}
.admin-mobile-head{border-bottom-color:var(--admin-menu-border,rgba(0,0,0,.12))!important}
.admin-mobile-head .admin-close{color:var(--admin-menu-text,#171717)!important;border-color:var(--admin-menu-border,rgba(0,0,0,.12))!important;background:transparent!important}


/* Professional "Baca Juga" recommendation inside article */
.article-read-also{
  margin:34px 0;
  padding:18px 20px;
  background:#fff;
  border:1px solid var(--border);
  border-left:5px solid var(--primary);
  border-radius:10px;
  box-shadow:0 5px 18px rgba(0,0,0,.05);
}
.article-read-also-label{
  display:block;
  margin:0 0 8px;
  color:var(--primary);
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.article-read-also a{
  display:block;
  color:var(--text,#171717);
  font-size:20px;
  line-height:1.35;
  font-weight:800;
}
.article-read-also a:hover{color:var(--primary)}
@media(max-width:520px){
  .article-read-also{margin:26px 0;padding:15px 16px}
  .article-read-also a{font-size:18px}
}


/* Pengaturan: semua fitur dikumpulkan dan submenu hanya tampil saat tombol ditekan */
.admin-nav-group .admin-nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.admin-nav-group .admin-nav-parent span {
  transition: transform .2s ease;
  font-size: 18px;
  line-height: 1;
}
.admin-nav-group.open .admin-nav-parent span { transform: rotate(90deg); }
.admin-nav-group .admin-subnav { display: none; }
.admin-nav-group.open .admin-subnav { display: block; }
.admin-nav-group .admin-subnav a { padding-left: 34px; }
\n\n/* FINAL V5 — sidebar admin bersih, putih, submenu hanya muncul saat induk ditekan */\n:root{--admin-menu-bg:#fff;--admin-menu-text:#171717;--admin-menu-border:rgba(0,0,0,.12)}\n.admin-side{background:var(--admin-menu-bg)!important;color:var(--admin-menu-text)!important}\n.admin-nav a,.admin-nav-parent{color:var(--admin-menu-text)!important}\n.admin-nav a:hover{background:rgba(174,33,29,.08)!important;color:var(--admin-menu-text)!important}\n.admin-nav-group{margin:6px 0!important}\n.admin-nav-parent{background:transparent!important;color:var(--admin-menu-text)!important;border:1px solid transparent!important}\n.admin-nav-parent:hover{background:rgba(174,33,29,.08)!important}\n.admin-nav-group.open>.admin-nav-parent{background:#ae211d!important;color:#fff!important}\n.admin-nav-parent span{color:inherit!important}\n.admin-subnav{display:none!important;margin:2px 0 7px 10px!important;padding:5px 0 5px 10px!important;border-left:2px solid rgba(174,33,29,.35)!important}\n.admin-nav-group.open>.admin-subnav{display:block!important}\n.admin-subnav a{color:var(--admin-menu-text)!important;border-radius:6px!important}\n.admin-subnav a:hover,.admin-subnav a.active{background:rgba(174,33,29,.10)!important;color:#ae211d!important}\n.logout-link{color:var(--admin-menu-text)!important}\n.admin-mobile-head .logo,.admin-desktop-logo{color:var(--admin-menu-text)!important}\n.admin-close{color:var(--admin-menu-text)!important}\n\n/* Panel aksi cepat setelah berita diterbitkan */\n.publish-actions{margin:18px 0;padding:18px;border:1px solid rgba(0,0,0,.10);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.05)}\n.publish-actions h2{margin:0 0 6px;font-size:19px}\n.publish-actions .publish-title{margin:0 0 14px;font-weight:700;line-height:1.45}\n.publish-actions .action-row{display:flex;flex-wrap:wrap;gap:8px}\n.publish-actions .btn{display:inline-flex;align-items:center;gap:6px}\n.publish-actions .btn-success{background:#198754;color:#fff}\n.publish-actions .copy-note{margin-top:10px;font-size:13px;color:#666}\n@media(max-width:600px){.publish-actions .action-row{display:grid;grid-template-columns:1fr 1fr}.publish-actions .action-row .btn{justify-content:center}}\n\n.public-admin-bar{position:sticky;top:0;z-index:9999;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:7px 14px;background:#171717;color:#fff;font-size:13px}.public-admin-bar a{color:#fff;text-decoration:none;font-weight:600}.public-admin-bar a:hover{text-decoration:underline}.public-admin-bar span{margin-right:auto;opacity:.8}@media(max-width:600px){.public-admin-bar{gap:8px;font-size:12px}}\n
/* Public article author profile */
.article-author-card{display:flex;align-items:center;gap:13px;margin:8px 0 18px;padding:11px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.article-author-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden;background:#eee;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#555}
.article-author-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.article-author-info{min-width:0}
.article-author-kicker{font-size:10px;letter-spacing:.12em;font-weight:800;color:#777;margin-bottom:1px}
.article-author-name{font-weight:800;font-size:16px;line-height:1.25}
.article-author-role{font-size:12px;color:#666;margin:2px 0 2px}
.article-author-info .meta{font-size:12px}


/* V10 BRAND + MOBILE POLISH */
.site-brand{display:inline-flex;align-items:center;min-width:0;line-height:0}.site-logo{display:block;width:auto;max-width:390px;height:auto;max-height:68px;object-fit:contain}.footer-brand{display:flex;align-items:center;min-height:52px;margin-bottom:10px}.footer-logo{display:block;width:auto;max-width:300px;max-height:58px;height:auto;object-fit:contain}.admin-brand{display:flex;align-items:center;min-height:48px;max-width:100%;line-height:0}.admin-logo{display:block;width:auto;max-width:195px;max-height:58px;height:auto;object-fit:contain}.admin-login-site-logo{display:block;width:auto;max-width:330px;max-height:100px;height:auto;object-fit:contain;margin:0 auto 8px}.admin-login-logo{text-align:center}.media-library-toolbar{margin-bottom:14px}.media-library-toolbar .inline-form{align-items:center}.media-library-toolbar .form-control{margin:0}.media-caption{font-size:12px;color:var(--muted);margin-top:4px}.media-table td{vertical-align:top}.pagination{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:18px 0 30px}.pagination a{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:7px;background:#fff;font-weight:700}.pagination a.active,.pagination a:hover{background:var(--primary);color:#fff;border-color:var(--primary)}.ad-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.ad-stats .stat span{color:var(--muted)}.ad-slot-mobile{display:none}
@media(max-width:800px){.site-logo{max-width:310px;max-height:58px}.header-inner{justify-content:flex-start}.site-brand{flex:1;min-width:0}.header-inner .header-cta{margin-left:auto}.ad-stats{grid-template-columns:repeat(2,1fr)}.ad-slot-mobile{display:block;width:min(100% - 20px,680px);margin:18px auto}.ad-slot-mobile .ad-content{overflow:hidden}.media-library-toolbar .inline-form{display:grid;grid-template-columns:1fr 120px auto;gap:8px}.media-library-toolbar .inline-form .form-control{min-width:0}.media-library-toolbar .inline-form .btn{width:auto}}
@media(max-width:520px){.site-logo{max-width:min(235px,72vw);max-height:48px}.header-inner{min-height:64px;padding:8px 0;gap:8px}.header-cta{font-size:11px;min-height:38px;padding:8px 10px}.footer-logo{max-width:240px;max-height:52px}.admin-logo{max-width:170px;max-height:50px}.admin-login-site-logo{max-width:280px;max-height:86px}.ad-stats{grid-template-columns:1fr 1fr;gap:10px}.ad-stats .stat{padding:14px}.media-library-toolbar .inline-form{grid-template-columns:1fr;display:grid}.media-library-toolbar .inline-form .btn{width:100%}.media-table{min-width:760px}.admin-brand{min-width:0}.admin-desktop-logo{display:none!important}}

/* Core Web Vitals hardening — reserve image space and reduce rendering shifts. */
.hero-main img{aspect-ratio:16/9;object-fit:cover}.article-featured{aspect-ratio:16/9;height:auto;min-height:180px}.related-card img{aspect-ratio:16/9;height:auto;display:block;object-fit:cover}.news-card img{display:block}.ad-slot{contain:layout paint}.ad-content img,.ad-content iframe{max-width:100%;}

/* BeritaKita: metadata dan tools ditempatkan setelah isi berita */
.article-subtitle{font-size:clamp(18px,2.2vw,23px);line-height:1.55;color:#666;margin:0 0 22px;max-width:900px}.article-after-meta{margin-top:30px;padding:20px 0;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;display:grid;gap:10px}.article-after-meta-row{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;font-size:14px}.article-after-label{font-weight:700;min-width:68px;color:#555}.article-after-role{color:#777}.article-after-date{color:#777;font-size:13px}.article-tools-bottom{margin:16px 0 28px}.article-tools-bottom .meta{display:inline-flex;align-items:center;padding:9px 2px}

/* FINAL article layout */
.article-image-caption{font-size:13px;line-height:1.5;color:#777;margin:-2px 0 24px}
.article-bottom-separator{border-top:1px solid #ddd;margin:30px 0 0}
.article-tools-bottom{margin:14px 0 12px;align-items:center}
.article-tools-bottom .article-views{margin-left:auto}
.article-after-meta{margin:0;padding:14px 0 0;border-top:0;border-bottom:0;display:grid;gap:6px}
.article-after-meta-row{font-size:14px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.article-after-label{font-weight:700;min-width:74px;color:#555}
@media(max-width:600px){.article-tools-bottom .article-views{margin-left:0}.article-tools-bottom{margin-bottom:10px}.article-after-meta{padding-top:10px}}

/* Final article layout + smart PWA prompt */
.article-bottom-separator{height:1px;background:#dedede;margin:30px 0 0}.article-tools-bottom{border-bottom:0;margin:0;padding:14px 0 8px;align-items:center}.article-tools-bottom .article-views{margin-left:auto}.article-after-meta{margin:0;padding:12px 0 0;border-top:1px solid #eee;display:grid;gap:7px}.article-after-meta-row{font-size:14px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.pwa-install-prompt{position:fixed;right:22px;bottom:22px;z-index:10000;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #ddd;border-radius:12px;padding:9px;box-shadow:0 8px 28px rgba(0,0,0,.18)}.pwa-install-prompt[hidden]{display:none}.pwa-install-btn{border:0;border-radius:9px;background:#ae211d;color:#fff;padding:11px 15px;font-weight:700;cursor:pointer}.pwa-install-close{width:32px;height:32px;border:0;border-radius:50%;background:#f1f1f1;color:#333;font-size:21px;line-height:1;cursor:pointer}.article-after-meta:empty{display:none}@media(max-width:700px){.article-tools-bottom .article-views{margin-left:0}.article-tools-bottom{margin-bottom:0}.pwa-install-prompt{left:12px;right:12px;bottom:12px;justify-content:space-between}}

/* Footer redaksi: each editorial page is a separate row. Prevent titles/links from running together. */
.footer-pages{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:0 0 10px;padding:0;}
.footer-pages a{display:block;width:100%;margin:0;padding:0;color:#fff;line-height:1.55;overflow-wrap:anywhere;word-break:normal;}
.footer-pages a:hover,.footer-pages a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:3px;}
.footer-contact{display:block;margin-top:10px;overflow-wrap:anywhere;word-break:normal;}
@media(max-width:520px){.footer-pages{gap:6px}.footer-pages a{line-height:1.6}.footer-logo{max-width:240px;max-height:52px;object-fit:contain;}}

/* FINAL FOOTER REDAKSI — 5 ITEM PER KOLOM + ICON */
.footer-redaksi{min-width:0}
.footer-pages-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px;align-items:start}
.footer-pages-column{display:flex;flex-direction:column;gap:8px;min-width:0}
.footer-page-link{display:flex;align-items:center;gap:10px;color:#fff;min-height:34px;line-height:1.35;overflow-wrap:anywhere;transition:opacity .15s ease}
.footer-page-link:hover,.footer-page-link:focus-visible{opacity:.78;text-decoration:none}
.footer-page-icon{width:28px;height:28px;min-width:28px;display:inline-flex;align-items:center;justify-content:center}
.footer-page-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer-social-icons{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.footer-social-icon{width:46px;height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#171717;border:1px solid rgba(255,255,255,.15);transition:transform .15s ease,opacity .15s ease}
.footer-social-icon:hover,.footer-social-icon:focus-visible{transform:translateY(-2px);opacity:.9}
.footer-social-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer-social-facebook{background:#1877f2;color:#fff}.footer-social-instagram{background:#e1306c;color:#fff}.footer-social-youtube{background:#f00;color:#fff}.footer-social-x-twitter{background:#000;color:#fff}
@media(max-width:800px){.footer-pages-grid{gap:8px 18px}.footer-page-link{font-size:14px}.footer-page-icon{width:25px;min-width:25px}.footer-page-icon svg{width:22px;height:22px}}
@media(max-width:520px){.footer-pages-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.footer-pages-column{gap:8px}.footer-page-link{font-size:13px;min-height:32px;gap:7px}.footer-page-icon{width:23px;min-width:23px}.footer-page-icon svg{width:20px;height:20px}.footer-social-icon{width:42px;height:42px;border-radius:10px}.footer-social-icon svg{width:23px;height:23px}}

/* HARD FINAL FOOTER REDAKSI MOBILE FIX */
 .site-footer .footer-pages-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 28px!important;align-items:start!important;}
.site-footer .footer-pages-column{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;}
.site-footer .footer-page-link{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:32px!important;font-size:14px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;}
.site-footer .footer-page-link>span:last-child{min-width:0!important;overflow-wrap:anywhere!important;word-break:normal!important;}
.site-footer .footer-page-icon{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px!important;color:#fff!important;overflow:hidden!important;}
.site-footer .footer-page-icon svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8!important;}
@media(max-width:520px){.site-footer .footer-pages-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 18px!important;}.site-footer .footer-pages-column{gap:7px!important;}.site-footer .footer-page-link{font-size:13px!important;min-height:31px!important;gap:6px!important;}.site-footer .footer-page-icon{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;flex-basis:19px!important;}.site-footer .footer-page-icon svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;}}


/* V4 author avatar: compact, isolated from article/news image sizing. */
.article-author-meta{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:0;
  margin-top:10px;
  line-height:1.2;
}
.article-author-avatar{
  display:block!important;
  flex:0 0 34px;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border:1px solid rgba(0,0,0,.12);
}
.news-card .article-author-avatar{flex-basis:30px;width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;}
.article-author-avatar-fallback{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  background:#a92727;
  color:#fff;
  font-size:14px;
  font-weight:700;
}
.article-author-meta>span:last-child{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.article-author-meta strong{
  display:block;
  max-width:100%;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.article-author-meta small{
  display:block;
  margin-top:2px;
  color:#777;
  font-size:11px;
  line-height:1.2;
}
.hero .article-author-meta strong{font-size:13px;}
@media(max-width:700px){
  .hero .article-author-avatar{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;}
  .article-author-meta{max-width:100%;}
}

/* Mobile header/search fix: search remains visible and fits one row on small screens. */
@media(max-width:800px){
.site-header .header-inner{align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;min-height:64px;padding:7px 0}
.site-brand{min-width:0;flex:1 1 auto;max-width:calc(100% - 150px);overflow:hidden}
.site-logo{display:block;width:auto;max-width:100%;height:auto;max-height:52px;object-fit:contain}
.header-search{order:2;box-sizing:border-box;display:flex!important;flex:0 0 145px!important;width:145px;max-width:145px;min-width:145px;margin:0!important}
.header-search input{display:block;box-sizing:border-box;min-width:0;flex:1;width:100%;height:38px;padding:8px 9px;border-radius:7px 0 0 7px;font-size:13px}
.header-search button{flex:0 0 42px;width:42px;height:38px;padding:0!important;border-radius:0 7px 7px 0;font-size:0;position:relative}
.header-search button:after{content:"⌕";font-size:22px;line-height:1;position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.site-header .header-inner > .btn{order:3;flex:0 0 auto}
}
@media(max-width:420px){
.site-brand{max-width:calc(100% - 132px)}
.header-search{flex-basis:128px!important;width:128px;max-width:128px;min-width:128px}
.header-search button{flex-basis:38px;width:38px}
.header-search input{font-size:12px;padding-left:8px;padding-right:6px}
.header-search input::placeholder{font-size:12px}
}

/* FINAL MOBILE SEARCH - always visible at top-right */
@media (max-width:800px){
  .site-header .header-inner{
    position:relative!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    min-height:66px!important;
    padding:7px 0!important;
    padding-right:156px!important;
    gap:0!important;
  }
  .site-header .site-brand{
    display:block!important;
    flex:0 1 auto!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .site-header .site-logo{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    max-height:52px!important;
    height:auto!important;
    object-fit:contain!important;
  }
  .site-header .header-search{
    position:absolute!important;
    top:50%!important;
    right:0!important;
    transform:translateY(-50%)!important;
    z-index:20!important;
    display:flex!important;
    flex:none!important;
    width:148px!important;
    min-width:148px!important;
    max-width:148px!important;
    margin:0!important;
    order:initial!important;
  }
  .site-header .header-search input{
    display:block!important;
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    padding:7px 8px!important;
    font-size:12px!important;
    border-radius:7px 0 0 7px!important;
  }
  .site-header .header-search button{
    display:flex!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    border-radius:0 7px 7px 0!important;
    font-size:0!important;
  }
  .site-header .header-search button:after{
    content:'🔍'!important;
    font-size:16px!important;
    line-height:1!important;
    position:static!important;
  }
  .site-header .header-inner > .btn{
    order:5!important;
    flex:0 0 100%!important;
    width:100%!important;
    margin-top:7px!important;
    text-align:center!important;
  }
}
@media (max-width:420px){
  .site-header .header-inner{
    padding-right:124px!important;
  }
  .site-header .header-search{
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
  }
  .site-header .header-search input{
    height:36px!important;
    font-size:11px!important;
    padding:6px!important;
  }
  .site-header .header-search button{
    flex-basis:34px!important;
    width:34px!important;
    height:36px!important;
  }
  .site-header .header-search button:after{font-size:14px!important}
}

/* Article-only floating install-app control. */
.pwa-install-prompt{position:fixed!important;right:18px!important;bottom:18px!important;z-index:100000!important;display:flex!important;align-items:center!important;gap:8px!important;background:#fff!important;border:1px solid #d8d8d8!important;border-radius:12px!important;padding:9px!important;box-shadow:0 8px 28px rgba(0,0,0,.20)!important}
.pwa-install-prompt[hidden]{display:none!important}
.pwa-install-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;border:0!important;border-radius:9px!important;background:#ae211d!important;color:#fff!important;padding:10px 15px!important;font-weight:700!important;cursor:pointer!important}
.pwa-install-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:#f1f1f1!important;color:#333!important;font-size:21px!important;line-height:1!important;cursor:pointer!important}
@media(max-width:700px){.pwa-install-prompt{left:auto!important;right:12px!important;bottom:12px!important;width:auto!important;max-width:calc(100% - 24px)!important}.pwa-install-btn{font-size:13px!important;padding:9px 12px!important}}

/* =========================================================
   HOMEPAGE DESKTOP — clean Indonesian news portal layout
   Inspired by modern detik-style editorial hierarchy.
   ========================================================= */
:root{--primary:#b4231f;--primary-dark:#8f1714;--bg:#f7f7f7;--surface:#fff;--border:#e5e5e5;--muted:#707070}
body{background:#f7f7f7;color:#202020;font-family:Arial,Helvetica,sans-serif}
.container{width:min(1200px,calc(100% - 40px))}
.topbar{background:#171717;padding:7px 0;font-size:10px;letter-spacing:.08em}
.site-header{background:#fff;border-bottom:1px solid #e6e6e6;box-shadow:none}
.header-inner{min-height:72px;gap:28px}
.site-brand{display:flex;align-items:center;flex:0 0 auto}
.site-logo{display:block;width:auto;height:44px;max-width:220px;object-fit:contain}
.header-search{max-width:520px;margin-left:auto}
.header-search input{height:42px;border:1px solid #d7d7d7;border-radius:5px 0 0 5px;padding:0 14px;font-size:14px}
.header-search button{height:42px;border-radius:0 5px 5px 0;padding:0 20px;background:var(--primary);font-weight:700}
.header-cta,.site-header .btn{min-height:42px;border-radius:5px;background:var(--primary);box-shadow:none;font-size:13px;white-space:nowrap}
.navbar{background:#fff;border-bottom:1px solid #dedede}
.navbar ul{gap:0;padding:0;overflow-x:auto;scrollbar-width:none}
.navbar ul::-webkit-scrollbar{display:none}
.navbar li{margin:0}
.navbar a{display:block;padding:14px 18px;font-size:14px;font-weight:700;position:relative}
.navbar a:hover{color:var(--primary)}
.navbar a:hover:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;background:var(--primary);border-radius:3px 3px 0 0}
.breaking{background:#fff;color:#222;border-bottom:1px solid #e3e3e3;padding:9px 0}
.breaking b{color:var(--primary);font-size:12px}
.breaking a{font-weight:600}
main.container{padding-top:20px}
.hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;margin:8px 0 28px}
.hero-main{height:440px;min-height:0;border-radius:8px;background:#222;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.hero-main img,.hero-main video{width:100%;height:100%;object-fit:cover}
.hero-content{padding:30px 28px 24px;background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.9) 100%)}
.hero-title{font-size:34px;line-height:1.14;margin:7px 0 12px;font-weight:800;letter-spacing:-.02em}
.hero-content .category,.category{font-size:13px;font-weight:700;color:#d52b25}
.article-author-meta{gap:9px}
.article-author-meta small{display:block;color:#aaa}
.hero-placeholder,.media-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2c2c2c,#161616);color:#777;min-height:100%;position:relative;overflow:hidden}
.hero-placeholder:before,.media-placeholder:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0 35%,rgba(255,255,255,.035) 35% 50%,transparent 50% 100%)}
.hero-placeholder span,.media-placeholder span{position:relative;font-size:13px;font-weight:800;letter-spacing:.12em;color:#858585}
.hero>div:last-child{display:grid;grid-template-rows:1fr 1fr;gap:18px;min-width:0}
.hero>div:last-child .news-card{margin:0;display:flex;flex-direction:column;min-height:0}
.hero>div:last-child .news-card img,.hero>div:last-child .news-card .media-placeholder{height:190px;aspect-ratio:auto;flex:0 0 190px;object-fit:cover}
.hero>div:last-child .news-card-content{padding:13px 15px}
.hero>div:last-child .news-title{font-size:18px;line-height:1.3;margin:4px 0 8px}
.hero>div:last-child .article-author-meta{font-size:12px}
.news-card{border:1px solid #e2e2e2;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.04);transition:transform .15s ease,box-shadow .15s ease}
.news-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(0,0,0,.08)}
.news-card img,.news-card .media-placeholder{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#ededed}
.news-card .media-placeholder{min-height:0}
.news-card-content{padding:14px 16px 16px}
.news-title{font-size:19px;line-height:1.32;font-weight:750;margin:5px 0 8px}
.main-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px}
.section-title{border-left:4px solid var(--primary);font-size:24px;line-height:1.2;padding:4px 0 4px 11px;margin:0 0 16px}
.news-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.news-grid .news-card{margin:0}
.news-grid .news-title{font-size:17px}
.meta{font-size:12px;color:#777}
.sidebar-box{border:1px solid #e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.04);border-radius:8px;padding:18px;margin-bottom:18px}
.sidebar-box h3{font-size:19px;margin:0 0 10px;padding-bottom:10px;border-bottom:2px solid #efefef}
.popular-item{gap:11px;padding:12px 0}
.popular-number{font-size:24px;line-height:1;color:var(--primary);min-width:24px}
.popular-item a{font-size:14px;line-height:1.4;font-weight:600}
.ad-slot{width:min(1200px,calc(100% - 40px));margin:18px auto 22px}
.site-footer{background:#171717;margin-top:50px;padding:45px 0}

@media(max-width:1024px){
  .container{width:min(100% - 30px,1100px)}
  .header-inner{gap:16px}
  .header-search{max-width:420px}
  .hero{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}
  .hero-main{height:400px}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .main-layout{grid-template-columns:minmax(0,1fr) 280px}
}
@media(max-width:800px){
  .container{width:calc(100% - 24px)}
  .header-inner{min-height:70px}
  .site-logo{height:40px;max-width:180px}
  .hero,.main-layout{grid-template-columns:1fr}
  .hero-main{height:380px}
  .hero>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}
  .hero>div:last-child .news-card img,.hero>div:last-child .news-card .media-placeholder{height:auto;aspect-ratio:16/9;flex-basis:auto}
  .main-layout aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
  .sidebar-box{margin-bottom:0}
}
@media(max-width:520px){
  .container{width:calc(100% - 20px)}
  main.container{padding-top:12px}
  .site-logo{height:36px;max-width:155px}
  .header-inner{align-items:center}
  .navbar a{padding:12px 14px;font-size:13px}
  .hero{margin-top:5px}
  .hero-main{height:330px}
  .hero-title{font-size:26px}
  .hero>div:last-child{grid-template-columns:1fr}
  .main-layout aside{display:block}
  .sidebar-box{margin-bottom:16px}
  .news-grid{grid-template-columns:1fr}
  .section-title{font-size:22px}
}


/* =========================================================
   HOMEPAGE POLISH — berita tanpa foto tidak menyisakan ruang kosong
   ========================================================= */
.hero>div:last-child{align-content:start;grid-template-rows:auto auto}
.hero>div:last-child .news-card{height:auto}

/* Placeholder media pada kartu berita tidak ditampilkan.
   Kartu tanpa foto langsung dimulai dari informasi berita. */
.news-card:has(.media-placeholder) .media-placeholder{display:none!important}
.news-card:has(.media-placeholder){min-height:0}

/* Jika URL foto gagal dimuat, kartu otomatis menjadi kartu tanpa foto. */
.news-card.no-media img{display:none!important}
.news-card.no-media{min-height:0}
.news-card.no-media .news-card-content{padding-top:15px}

/* Kartu headline pendamping: foto tetap 16:9, tanpa foto menjadi compact. */
.hero>div:last-child .news-card:has(.media-placeholder) img,
.hero>div:last-child .news-card.no-media img{display:none!important}
.hero>div:last-child .news-card:has(.media-placeholder) .news-card-content,
.hero>div:last-child .news-card.no-media .news-card-content{padding:16px}

/* Headline utama tanpa foto tetap terlihat premium, tanpa kotak kosong. */
.hero-main:has(.hero-placeholder){background:linear-gradient(145deg,#242424 0%,#111 100%)}
.hero-main:has(.hero-placeholder) .hero-placeholder{min-height:100%;background:transparent}

/* Grid desktop: tinggi kartu mengikuti isi, bukan dipaksa sama tinggi. */
.news-grid{align-items:start}
.news-grid .news-card{height:auto;align-self:start}

/* Foto kartu: rasio konsisten dan tidak gepeng. */
.news-grid .news-card img,
.hero>div:last-child .news-card img{aspect-ratio:16/9;height:auto;object-fit:cover}

/* Sentuhan editorial */
.news-card-content .category{letter-spacing:.01em}
.news-title a:hover,.hero-title a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}

@media (min-width: 801px){
  .hero>div:last-child .news-card{margin-bottom:0}
  .news-grid .news-card-content{min-height:120px}
}

@media (max-width: 800px){
  .hero>div:last-child{display:grid;grid-template-rows:auto auto;gap:14px}
  .hero>div:last-child .news-card:has(.media-placeholder),
  .hero>div:last-child .news-card.no-media{margin-bottom:0}
}


/* DESKTOP HERO BALANCE — fill the lower-left space with two secondary stories */
@media (min-width: 801px) {
  .hero {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: start;
  }
  .hero-more-news {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
  }
  .hero-more-card { margin: 0; }
  .hero-more-card img,
  .hero-more-card .media-placeholder,
  .hero-more-card video {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    display: block;
  }
  .hero-more-card .news-card-content { padding: 12px 14px 14px; }
  .hero-more-card .news-title { font-size: 16px; }
}
@media (max-width: 800px) {
  .hero-more-news {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
  }
}
@media (max-width: 520px) {
  .hero-more-news { grid-template-columns: 1fr; }
}

/* FINAL RESPONSIVE NEWS DESKTOP LAYOUT
   Hero utama + 2 berita samping + 2 berita bawah tanpa ruang kosong. */
@media (min-width: 801px){
  .hero{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(300px,1fr);
    grid-template-areas:
      "main side"
      "more side";
    grid-template-rows:auto auto;
    align-items:start;
    gap:18px;
    margin:22px 0 28px;
  }
  .hero-main{grid-area:main;height:440px;min-height:0}
  .hero>div:not(.hero-more-news){grid-area:side;display:grid;grid-template-rows:auto auto;gap:18px;align-content:start}
  .hero>div:not(.hero-more-news) .news-card{height:auto;margin:0;display:flex;flex-direction:column}
  .hero>div:not(.hero-more-news) .news-card img,
  .hero>div:not(.hero-more-news) .news-card video{width:100%;height:190px;aspect-ratio:auto;object-fit:cover;flex:0 0 190px}
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder) .media-placeholder,
  .hero>div:not(.hero-more-news) .news-card.no-media img{display:none!important}
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder),
  .hero>div:not(.hero-more-news) .news-card.no-media{display:block}
  .hero-more-news{
    grid-area:more;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin:0;
    min-width:0;
    align-items:start;
  }
  .hero-more-card{margin:0;height:auto;display:flex;flex-direction:column}
  .hero-more-card img,.hero-more-card video{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;display:block}
  .hero-more-card .news-card-content{padding:12px 14px 14px}
  .hero-more-card .news-title{font-size:16px;line-height:1.3}
  .hero-more-card .meta{font-size:12px}
}

@media (max-width:800px){
  .hero{display:grid;grid-template-columns:1fr;grid-template-areas:none;gap:14px;margin:18px 0 24px}
  .hero-main{height:380px}
  .hero-more-news{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
  .hero-more-card{margin:0}
}
@media (max-width:520px){
  .hero-main{height:330px}
  .hero-more-news{grid-template-columns:1fr}
  .hero-title{font-size:26px}
}

/* =========================================================
   DETIKKUANSING24 — DESKTOP EDITORIAL LAYOUT
   Hero besar + kartu samping horizontal + kartu bawah horizontal
   ========================================================= */
@media (min-width: 801px){
  .hero{
    grid-template-columns:minmax(0,1.9fr) minmax(360px,1fr);
    grid-template-areas:
      "main side"
      "more side";
    gap:16px;
    margin:22px 0 30px;
  }
  .hero-main{
    height:430px;
    border-radius:9px;
  }
  .hero-content{padding:32px 26px 24px}
  .hero-title{font-size:34px;max-width:92%}

  .hero>div:not(.hero-more-news){
    grid-area:side;
    display:grid;
    grid-template-rows:auto auto;
    gap:14px;
    align-content:start;
  }
  .hero>div:not(.hero-more-news) .news-card{
    display:grid;
    grid-template-columns:42% 58%;
    height:auto;
    min-height:174px;
    margin:0;
  }
  .hero>div:not(.hero-more-news) .news-card img,
  .hero>div:not(.hero-more-news) .news-card video{
    width:100%;
    height:100%;
    min-height:174px;
    aspect-ratio:auto;
    object-fit:cover;
    grid-column:1;
    grid-row:1;
  }
  .hero>div:not(.hero-more-news) .news-card .news-card-content{
    grid-column:2;
    grid-row:1;
    padding:15px 16px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .hero>div:not(.hero-more-news) .news-title{font-size:16px;line-height:1.32}
  .hero>div:not(.hero-more-news) .article-author-meta{font-size:11px}
  .hero>div:not(.hero-more-news) .article-author-avatar{width:28px!important;height:28px!important;min-width:28px!important}

  .hero-more-news{
    grid-area:more;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin:0;
  }
  .hero-more-card{
    display:grid;
    grid-template-columns:40% 60%;
    min-height:112px;
    height:auto;
    margin:0;
  }
  .hero-more-card img,
  .hero-more-card video{
    grid-column:1;
    grid-row:1;
    width:100%;
    height:100%;
    min-height:112px;
    aspect-ratio:auto;
    object-fit:cover;
  }
  .hero-more-card .news-card-content{
    grid-column:2;
    grid-row:1;
    padding:12px 14px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .hero-more-card .news-title{font-size:15px;line-height:1.3;margin:4px 0 7px}

  /* Bila tidak ada foto, kartu otomatis memakai seluruh lebar konten. */
  .hero>div:not(.hero-more-news) .news-card.no-media,
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder),
  .hero-more-card.no-media,
  .hero-more-card:has(.media-placeholder){display:block;min-height:0}
  .hero>div:not(.hero-more-news) .news-card.no-media .news-card-content,
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder) .news-card-content,
  .hero-more-card.no-media .news-card-content,
  .hero-more-card:has(.media-placeholder) .news-card-content{grid-column:auto;padding:16px}
}

@media (max-width: 1100px) and (min-width: 801px){
  .hero{grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr)}
  .hero-main{height:410px}
  .hero>div:not(.hero-more-news) .news-card{grid-template-columns:38% 62%;min-height:160px}
  .hero>div:not(.hero-more-news) .news-card img{min-height:160px}
  .hero-title{font-size:31px}
}

@media (max-width: 800px){
  .hero{display:grid;grid-template-columns:1fr;grid-template-areas:none;gap:14px}
  .hero-main{height:380px}
  .hero>div:not(.hero-more-news){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .hero>div:not(.hero-more-news) .news-card{display:flex;flex-direction:column;min-height:0}
  .hero>div:not(.hero-more-news) .news-card img,
  .hero>div:not(.hero-more-news) .news-card video{height:auto;min-height:0;aspect-ratio:16/9;flex:0 0 auto}
  .hero>div:not(.hero-more-news) .news-card .news-card-content{padding:13px 14px}
  .hero-more-news{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .hero-more-card{display:flex;flex-direction:column;min-height:0}
  .hero-more-card img,.hero-more-card video{height:auto;min-height:0;aspect-ratio:16/9}
}

@media (max-width: 520px){
  .hero-main{height:330px}
  .hero>div:not(.hero-more-news){grid-template-columns:1fr}
  .hero-more-news{grid-template-columns:1fr}
  .hero-title{font-size:26px;max-width:100%}
}

/* =========================================================
   FINAL HOMEPAGE LAYOUT — DESKTOP RESPONSIVE
   Struktur: hero besar | 2 kartu kanan, lalu 2 kartu bawah hero.
   Berita tanpa foto tidak membuat slot foto kosong.
   ========================================================= */
@media (min-width:801px){
  main.container{max-width:1180px}
  .hero{
    display:grid!important;
    grid-template-columns:minmax(0,2fr) minmax(320px,1fr)!important;
    grid-template-areas:"main side" "more side"!important;
    grid-template-rows:auto auto!important;
    gap:16px!important;
    align-items:start!important;
    margin:22px 0 30px!important;
  }
  .hero-main{
    grid-area:main!important;
    height:430px!important;
    min-height:430px!important;
    position:relative!important;
    overflow:hidden!important;
    border-radius:9px!important;
  }
  .hero-main>img,.hero-main>video{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    object-fit:cover!important;
  }
  .hero-content{position:absolute!important;left:0;right:0;bottom:0;padding:34px 26px 24px!important}
  .hero-title{font-size:34px!important;line-height:1.12!important;max-width:94%!important}

  .hero>div:not(.hero-more-news){
    grid-area:side!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto!important;
    gap:14px!important;
    align-content:start!important;
  }
  .hero>div:not(.hero-more-news) .news-card{
    display:grid!important;
    grid-template-columns:42% 58%!important;
    min-height:170px!important;
    margin:0!important;
    height:auto!important;
    overflow:hidden!important;
  }
  .hero>div:not(.hero-more-news) .news-card img,
  .hero>div:not(.hero-more-news) .news-card video{
    grid-column:1!important;grid-row:1!important;width:100%!important;height:100%!important;
    min-height:170px!important;aspect-ratio:auto!important;object-fit:cover!important;
  }
  .hero>div:not(.hero-more-news) .news-card .news-card-content{
    grid-column:2!important;grid-row:1!important;padding:14px 15px!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
  }
  .hero>div:not(.hero-more-news) .news-title{font-size:16px!important;line-height:1.3!important}

  /* Tanpa foto: jangan sisakan kolom kiri kosong. */
  .hero>div:not(.hero-more-news) .news-card.no-media,
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder){
    display:block!important;min-height:0!important;
  }
  .hero>div:not(.hero-more-news) .news-card.no-media .news-card-content,
  .hero>div:not(.hero-more-news) .news-card:has(.media-placeholder) .news-card-content{
    display:block!important;padding:18px!important;
  }

  .hero-more-news{
    grid-area:more!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    margin:0!important;
    align-items:start!important;
  }
  .hero-more-card{
    display:grid!important;
    grid-template-columns:40% 60%!important;
    min-height:112px!important;
    height:auto!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .hero-more-card img,.hero-more-card video{
    grid-column:1!important;grid-row:1!important;width:100%!important;height:100%!important;
    min-height:112px!important;aspect-ratio:auto!important;object-fit:cover!important;
  }
  .hero-more-card .news-card-content{
    grid-column:2!important;grid-row:1!important;padding:12px 14px!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
  }
  .hero-more-card .news-title{font-size:15px!important;line-height:1.3!important;margin:4px 0 7px!important}
  .hero-more-card.no-media,.hero-more-card:has(.media-placeholder){display:block!important;min-height:0!important}
  .hero-more-card.no-media .news-card-content,.hero-more-card:has(.media-placeholder) .news-card-content{display:block!important;padding:16px!important}

  .main-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:28px!important}
  .news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
  .news-grid .news-card{height:auto!important;margin:0!important}
  .news-grid .news-card img{width:100%!important;aspect-ratio:16/9!important;height:auto!important;object-fit:cover!important}
  .news-grid .news-card.no-media,.news-grid .news-card:has(.media-placeholder){min-height:0!important}
  .news-grid .news-card:has(.media-placeholder) .media-placeholder{display:none!important}
}

@media (max-width:800px){
  .hero{display:grid!important;grid-template-columns:1fr!important;grid-template-areas:none!important;gap:14px!important;margin:18px 0 24px!important}
  .hero-main{height:380px!important;min-height:380px!important}
  .hero>div:not(.hero-more-news){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .hero>div:not(.hero-more-news) .news-card{display:flex!important;flex-direction:column!important;min-height:0!important;margin:0!important}
  .hero>div:not(.hero-more-news) .news-card img,.hero>div:not(.hero-more-news) .news-card video{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;object-fit:cover!important}
  .hero>div:not(.hero-more-news) .news-card.no-media,.hero>div:not(.hero-more-news) .news-card:has(.media-placeholder){display:block!important}
  .hero-more-news{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .hero-more-card{display:flex!important;flex-direction:column!important;min-height:0!important;margin:0!important}
  .hero-more-card img,.hero-more-card video{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important}
  .main-layout{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}
  .news-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
}
@media (max-width:520px){
  .hero-main{height:330px!important;min-height:330px!important}
  .hero-title{font-size:27px!important}
  .hero>div:not(.hero-more-news),.hero-more-news,.news-grid{grid-template-columns:1fr!important}
  .main-layout aside{display:block!important}
}

/* HOMEPAGE LAYOUT POLISH — sidebar stays alongside content, no dead column */
.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.home-primary{min-width:0}
.home-sidebar{min-width:0}
.home-sidebar>aside{display:block}
.home-sidebar .sidebar-box{margin-bottom:18px}
.home-primary .hero{margin-top:30px;margin-bottom:22px}
.home-primary>section:not(.hero){margin-top:0}
.home-primary .section-title{margin-top:28px}
@media (min-width:801px){
  .home-primary .hero{grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}
  .home-primary .hero-more-news{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .home-primary .hero-more-card{min-width:0}
  .home-sidebar{padding-top:30px}
}
@media (max-width:1000px) and (min-width:801px){
  .home-columns{grid-template-columns:minmax(0,1fr) 270px;gap:20px}
  .home-primary .hero{grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr)}
  .home-primary .hero-title{font-size:30px}
}
@media (max-width:800px){
  .home-columns{display:block}
  .home-sidebar{margin-top:24px;padding-top:0}
  .home-primary .hero{margin-top:16px}
  .home-primary .hero-more-news{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media (max-width:520px){
  .home-primary .hero-more-news{grid-template-columns:1fr}
  .home-primary .section-title{margin-top:24px}
}

/* FINAL HERO STRUCTURE FIX v20260903-hero-clean
   hero-left owns the main story + two supporting stories below it.
   hero-right is an independent sidebar. This prevents overlap/blank columns. */
@media (min-width:801px){
  .home-primary .hero{
    display:grid!important;
    grid-template-columns:minmax(0,2fr) minmax(300px,1fr)!important;
    grid-template-areas:"left right"!important;
    gap:16px!important;
    align-items:start!important;
    margin:22px 0 28px!important;
  }
  .home-primary .hero-left{
    grid-area:left!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    min-width:0!important;
  }
  .home-primary .hero-right{
    grid-area:right!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
    gap:16px!important;
    min-width:0!important;
    align-content:start!important;
  }
  .home-primary .hero-main{
    width:100%!important;
    height:430px!important;
    min-height:430px!important;
    margin:0!important;
    position:relative!important;
    overflow:hidden!important;
  }
  .home-primary .hero-main>img,
  .home-primary .hero-main>video{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .home-primary .hero-more-news{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    margin:0!important;
    min-width:0!important;
  }
  .home-primary .hero-more-card{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .home-primary .hero-more-card img,
  .home-primary .hero-more-card video{
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
    flex:0 0 auto!important;
  }
  .home-primary .hero-more-card .news-card-content{
    padding:13px 14px!important;
    display:block!important;
  }
  .home-primary .hero-right .news-card{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:40% 60%!important;
    min-height:150px!important;
    height:auto!important;
    overflow:hidden!important;
  }
  .home-primary .hero-right .news-card img,
  .home-primary .hero-right .news-card video{
    width:100%!important;
    height:100%!important;
    min-height:150px!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
    grid-column:1!important;
    grid-row:1!important;
  }
  .home-primary .hero-right .news-card .media-placeholder{
    min-height:150px!important;
    grid-column:1!important;
    grid-row:1!important;
  }
  .home-primary .hero-right .news-card .news-card-content{
    grid-column:2!important;
    grid-row:1!important;
    padding:14px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0!important;
  }
  .home-primary .hero-right .news-card.no-media,
  .home-primary .hero-right .news-card:has(.media-placeholder){
    display:block!important;
    min-height:0!important;
  }
  .home-primary .hero-right .news-card.no-media .news-card-content,
  .home-primary .hero-right .news-card:has(.media-placeholder) .news-card-content{
    display:block!important;
    padding:16px!important;
  }
}

/* Clean mobile/tablet flow: no overlap, no forced empty image boxes. */
@media (max-width:800px){
  .home-primary .hero{
    display:block!important;
    margin:16px 0 24px!important;
  }
  .home-primary .hero-left,
  .home-primary .hero-right{
    display:block!important;
    width:100%!important;
  }
  .home-primary .hero-main{
    width:100%!important;
    height:360px!important;
    min-height:360px!important;
    margin:0 0 14px!important;
    position:relative!important;
    overflow:hidden!important;
  }
  .home-primary .hero-main>img,
  .home-primary .hero-main>video{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .home-primary .hero-more-news{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    margin:0 0 14px!important;
  }
  .home-primary .hero-more-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    margin:0!important;
  }
  .home-primary .hero-more-card img,
  .home-primary .hero-more-card video{
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
  }
  .home-primary .hero-right{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .home-primary .hero-right .news-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    margin:0!important;
  }
  .home-primary .hero-right .news-card img,
  .home-primary .hero-right .news-card video{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
  }
  .home-primary .hero-right .news-card.no-media,
  .home-primary .hero-right .news-card:has(.media-placeholder){display:block!important}
  .home-primary .hero-right .news-card:has(.media-placeholder) .media-placeholder{display:none!important}
  .home-primary .hero-right .news-card.no-media .news-card-content,
  .home-primary .hero-right .news-card:has(.media-placeholder) .news-card-content{padding:14px!important}
}
@media (max-width:520px){
  .home-primary .hero-main{height:320px!important;min-height:320px!important}
  .home-primary .hero-more-news,
  .home-primary .hero-right{grid-template-columns:1fr!important}
}

/* FINAL RESPONSIVE HOMEPAGE OVERRIDE v8
   Fix: nested hero overflow/overlap caused by fixed minimum sidebar widths.
   Layout adapts to the actual width available to .home-primary. */
.home-primary{container-type:inline-size;container-name:homepage-primary}
@media (min-width:801px){
  .home-primary .hero{
    display:grid!important;
    grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;
    grid-template-areas:"left right"!important;
    gap:16px!important;
    width:100%!important;
    overflow:visible!important;
  }
  .home-primary .hero-left{grid-area:left!important;min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .home-primary .hero-right{grid-area:right!important;min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important;align-content:start!important}
  .home-primary .hero-main{width:100%!important;height:390px!important;min-height:0!important;margin:0!important}
  .home-primary .hero-more-news{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
  .home-primary .hero-more-card{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;margin:0!important}
  .home-primary .hero-more-card img,.home-primary .hero-more-card video{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important}
  .home-primary .hero-right .news-card{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;display:grid!important;grid-template-columns:38% 62%!important;overflow:hidden!important}
  .home-primary .hero-right .news-card img,.home-primary .hero-right .news-card video{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;object-fit:cover!important;grid-column:1!important;grid-row:1!important}
  .home-primary .hero-right .news-card .news-card-content{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  .home-primary .hero-right .news-card.no-media,.home-primary .hero-right .news-card:has(.media-placeholder){display:block!important}
  .home-primary .hero-right .news-card:has(.media-placeholder) .media-placeholder{display:none!important}
  .home-primary .hero-right .news-card.no-media .news-card-content,.home-primary .hero-right .news-card:has(.media-placeholder) .news-card-content{display:block!important;padding:14px!important}
}

/* When the main content area is narrow, stack the hero internally even if
   the browser is showing the site in desktop mode. */
@container homepage-primary (max-width:700px){
  .home-primary .hero{display:block!important;width:100%!important;margin:18px 0 24px!important}
  .home-primary .hero-left,.home-primary .hero-right{display:block!important;width:100%!important}
  .home-primary .hero-main{width:100%!important;height:330px!important;min-height:0!important;margin:0 0 14px!important}
  .home-primary .hero-more-news{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important}
  .home-primary .hero-more-card{display:flex!important;width:100%!important;min-width:0!important;height:auto!important}
  .home-primary .hero-right{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .home-primary .hero-right .news-card{display:flex!important;width:100%!important;min-width:0!important;height:auto!important}
  .home-primary .hero-right .news-card img,.home-primary .hero-right .news-card video{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important}
  .home-primary .hero-right .news-card.no-media,.home-primary .hero-right .news-card:has(.media-placeholder){display:block!important}
  .home-primary .hero-right .news-card:has(.media-placeholder) .media-placeholder{display:none!important}
}
@container homepage-primary (max-width:520px){
  .home-primary .hero-main{height:300px!important}
  .home-primary .hero-more-news,.home-primary .hero-right{grid-template-columns:1fr!important}
  .home-primary .hero-title{font-size:27px!important}
}

/* Keep the outer desktop/sidebar layout from squeezing the primary column. */
@media (min-width:801px) and (max-width:1100px){
  .home-columns{grid-template-columns:minmax(0,1fr) minmax(250px,280px)!important;gap:18px!important}
}
@media (max-width:800px){
  .home-columns{display:block!important}
  .home-primary,.home-sidebar{width:100%!important}
  .home-sidebar{margin-top:24px!important;padding-top:0!important}
}

/* FINAL DESKTOP LOCK — jangan ubah layout desktop secara otomatis.
   Desain desktop dikunci mulai 801px; responsif hanya bekerja pada layar <=800px. */
@media (min-width:801px){
  .container{width:min(1180px,92%)!important;margin-left:auto!important;margin-right:auto!important}
  .home-columns{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:28px!important;align-items:start!important}
  .home-primary{min-width:0!important;width:auto!important}
  .home-sidebar{min-width:0!important;width:auto!important}
  .home-primary .hero{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;grid-template-areas:"left right"!important;gap:16px!important;width:100%!important;overflow:visible!important;margin:22px 0 28px!important}
  .home-primary .hero-left{grid-area:left!important;min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .home-primary .hero-right{grid-area:right!important;min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important;align-content:start!important}
  .home-primary .hero-main{width:100%!important;height:390px!important;min-height:0!important;margin:0!important}
  .home-primary .hero-more-news{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
  .home-primary .hero-more-card{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;margin:0!important}
  .home-primary .hero-more-card img,.home-primary .hero-more-card video{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important}
  .home-primary .hero-right .news-card{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;display:grid!important;grid-template-columns:38% 62%!important;overflow:hidden!important}
  .home-primary .hero-right .news-card img,.home-primary .hero-right .news-card video{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;object-fit:cover!important;grid-column:1!important;grid-row:1!important}
  .home-primary .hero-right .news-card .news-card-content{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  .home-primary .hero-right .news-card.no-media,.home-primary .hero-right .news-card:has(.media-placeholder){display:block!important}
  .home-primary .hero-right .news-card:has(.media-placeholder) .media-placeholder{display:none!important}
  .home-primary .hero-right .news-card.no-media .news-card-content,.home-primary .hero-right .news-card:has(.media-placeholder) .news-card-content{display:block!important;padding:14px!important}
  .main-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:28px!important}
  .news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
  .news-grid .news-card{height:auto!important;margin:0!important}
  .news-grid .news-card img{width:100%!important;aspect-ratio:16/9!important;height:auto!important;object-fit:cover!important}
  .home-primary{container-type:normal!important}
}

/* Mobile/tablet tetap responsif; desktop di atas tidak ikut berubah. */
@media (max-width:800px){
  .home-columns{display:block!important}
  .home-primary,.home-sidebar{width:100%!important}
  .home-sidebar{margin-top:24px!important}
}
@media (min-width:801px){
  .home-primary .hero{container-type:normal!important}
}
/* Sidebar berita populer bergambar: isi memanjang tanpa ruang kosong */
.home-sidebar .popular-box{padding:16px 18px}
.popular-card{display:grid;grid-template-columns:26px 92px minmax(0,1fr);gap:9px;align-items:start;padding:12px 0;border-bottom:1px solid var(--border)}
.popular-card:last-child{border-bottom:0}
.popular-card .popular-number{font-size:21px;line-height:1.2;padding-top:2px}
.popular-thumb{display:block;width:92px;height:60px;border-radius:7px;overflow:hidden;background:#eee}
.popular-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.popular-card-body{min-width:0;display:flex;flex-direction:column;gap:4px}
.popular-title{font-size:13px;line-height:1.35;font-weight:700;display:block}
.popular-title:hover{color:var(--primary)}
.popular-meta{font-size:11px;color:var(--muted)}
.popular-more{margin-top:18px}
@media(max-width:520px){.popular-card{grid-template-columns:25px 90px minmax(0,1fr)}.popular-thumb{width:90px;height:58px}.popular-title{font-size:13px}}


/* RESPONSIVE MOBILE PATCH 2026-09-03 */
@media (max-width:1150px){
  .container{width:calc(100% - 32px);max-width:1100px}
  .main-layout{grid-template-columns:1fr;gap:20px}
  .main-layout aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .sidebar-box{margin-bottom:0;min-width:0}
  .hero{grid-template-columns:1fr;gap:16px}
  .hero-main{height:min(56vw,440px);min-height:300px}
  .hero>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:16px}
  .hero>div:last-child .news-card img,.hero>div:last-child .news-card .media-placeholder{height:auto;aspect-ratio:16/9;flex-basis:auto}
}
@media (max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}
  .container{width:calc(100% - 24px);max-width:none}
  .site-header .header-inner{display:flex;flex-wrap:wrap;gap:10px;padding:10px 0}
  .site-logo{height:36px;max-width:150px}
  .header-search{order:3;width:100%;max-width:none;flex:1 0 100%}
  .header-search input{min-width:0;width:100%}
  .navbar{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .navbar .container{width:max-content;min-width:100%;display:flex}
  .navbar a{padding:11px 13px;font-size:12px}
  main.container{padding-top:10px}
  .hero{margin:4px 0 22px}
  .hero-main{height:min(82vw,360px);min-height:260px}
  .hero-content{padding:20px 18px 18px}
  .hero-title{font-size:clamp(22px,6vw,30px);line-height:1.15}
  .hero>div:last-child{grid-template-columns:1fr;gap:12px}
  .hero>div:last-child .news-card{display:grid;grid-template-columns:38% 1fr;align-items:stretch}
  .hero>div:last-child .news-card img,.hero>div:last-child .news-card .media-placeholder{height:100%;min-height:110px;aspect-ratio:auto}
  .hero>div:last-child .news-card-content{padding:12px}
  .hero>div:last-child .news-title{font-size:15px;line-height:1.25}
  .main-layout aside{display:block}
  .sidebar-box{margin-bottom:14px;padding:14px}
  .sidebar-box h3{font-size:17px}
  .popular-item{gap:8px;padding:10px 0}
  .popular-number{font-size:20px;min-width:20px}
  .popular-item a{font-size:13px;line-height:1.3}
  .news-grid{grid-template-columns:1fr;gap:12px}
  .news-grid .news-title{font-size:16px}
  .section-title{font-size:20px;margin-bottom:12px}
  .news-card-content{padding:12px 13px 13px}
}
@media (max-width:380px){
  .container{width:calc(100% - 18px)}
  .hero-main{min-height:240px}
  .hero-title{font-size:22px}
  .hero>div:last-child .news-card{grid-template-columns:1fr}
  .hero>div:last-child .news-card img,.hero>div:last-child .news-card .media-placeholder{height:auto;min-height:0;aspect-ratio:16/9}
}


/* Desktop news portal refinement — inspired by the supplied reference */
@media (min-width: 992px){
  :root{--primary:#b2171d;--dark:#191919;--bg:#fff;--surface:#fff;--border:#e5e5e5}
  body{background:#fff;color:#171717;font-family:Arial,Helvetica,sans-serif}
  .container{width:min(1180px,92%)}
  .topbar{background:#fff;color:#555;border-bottom:1px solid #eee;padding:6px 0;font-size:12px}
  .site-header{background:#fff;border-bottom:1px solid #eee}
  .header-inner{min-height:82px;gap:28px}
  .logo{font-size:30px;letter-spacing:-1px;color:var(--dark)}
  .logo span{color:var(--primary)}
  .header-search{max-width:470px}
  .header-search input{border:1px solid #ddd;border-radius:3px 0 0 3px;padding:12px 14px}
  .header-search button,.btn{background:var(--primary);border-radius:0 3px 3px 0;font-weight:700}
  .navbar{background:var(--primary);color:#fff;box-shadow:0 2px 0 rgba(0,0,0,.08)}
  .navbar .container{display:flex;align-items:center}
  .navbar a{color:#fff;font-weight:700;padding:13px 16px}
  .navbar a:hover{background:#8f1117}
  main.container{padding-top:20px}
  .home-columns{grid-template-columns:minmax(0,2.6fr) minmax(280px,1fr);gap:28px}
  .hero{gap:14px;margin-bottom:24px}
  .hero-left,.hero-right{min-width:0}
  .hero-main{border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.12);overflow:hidden}
  .hero-content{padding:18px 20px;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.8))}
  .hero-title{font-size:27px;line-height:1.16}
  .hero-more-card,.news-card{border:1px solid #e3e3e3;border-radius:3px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06)}
  .hero-more-card{margin-bottom:12px}
  .section-title{color:var(--primary);border-bottom:2px solid var(--primary);padding-bottom:8px;margin:18px 0 14px;font-size:18px}
  .news-grid{gap:14px}
  .news-card:hover,.popular-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.12);transform:translateY(-1px);transition:.2s}
  .news-title{font-size:16px;line-height:1.3}
  .home-sidebar{border-left:1px solid #eee;padding-left:18px}
  .sidebar-box{border:1px solid #ddd;border-radius:3px;background:#fff;margin-bottom:18px;padding:12px}
  .sidebar-box h3{background:var(--primary);color:#fff;margin:-12px -12px 12px;padding:10px 12px;font-size:16px}
  .popular-card{display:grid;grid-template-columns:24px 82px 1fr;gap:8px;align-items:start;padding:9px 0;border-bottom:1px solid #eee}
  .popular-number{color:var(--primary);font-size:18px;font-weight:800}
  .popular-thumb{width:82px;height:58px;object-fit:cover;border-radius:2px}
  .popular-title{font-size:13px;font-weight:700;line-height:1.25}
  .site-footer{background:var(--dark);color:#eee;margin-top:36px;padding:34px 0}
}


/* Final color calibration */
@media (min-width: 992px){.navbar,.navbar .container{background-color:#b2171d!important}.navbar a{color:#fff!important}.sidebar-box h3{background-color:#b2171d!important}.header-search button,.btn{background-color:#b2171d!important}}

/* Anti-overlap responsive patch — keep hero blocks in normal document flow */
@media (max-width:1150px){
  .hero{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .hero-left{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;height:auto!important;min-height:0!important;position:static!important}
  .hero-main{position:relative!important;display:block!important;width:100%!important;height:min(56vw,440px)!important;min-height:300px!important;margin:0 0 18px!important;overflow:hidden!important}
  .hero-more-news{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;gap:16px!important;width:100%!important;height:auto!important;position:static!important}
  .hero-more-news .hero-more-card{position:static!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important}
  .hero-right{display:grid!important;position:static!important;width:100%!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important}
}
@media (max-width:700px){
  .hero-main{height:min(82vw,360px)!important;min-height:260px!important}
  .hero-more-news,.hero-right{grid-template-columns:1fr!important;gap:12px!important}
  .hero-more-news .hero-more-card,.hero-right .news-card{width:100%!important}
}


/* Breaking News ticker fix — 10 headlines, continuous horizontal animation */
.breaking{overflow:hidden!important;white-space:nowrap!important}
.breaking .container{display:flex!important;align-items:center!important;gap:18px!important;overflow:hidden!important;white-space:nowrap!important}
.breaking b{flex:0 0 auto!important;position:relative!important;z-index:2!important;background:inherit!important;padding-right:12px!important}
.breaking .breaking-track,.breaking .ticker-track,.breaking ul,.breaking .breaking-news-list{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;gap:44px!important;width:max-content!important;min-width:max-content!important;white-space:nowrap!important;animation:breakingTicker 38s linear infinite!important;will-change:transform!important}
.breaking a{display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important}
.breaking:hover .breaking-track,.breaking:hover .ticker-track,.breaking:hover ul,.breaking:hover .breaking-news-list{animation-play-state:paused!important}
@keyframes breakingTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.breaking .breaking-track,.breaking .ticker-track,.breaking ul,.breaking .breaking-news-list{animation-duration:80s!important}}


/* Actual public markup fix: .breaking-ticker > .breaking-ticker-inner > .ticker-viewport > .ticker-track */
.breaking-ticker{overflow:hidden!important;white-space:nowrap!important}
.breaking-ticker-inner{display:flex!important;align-items:center!important;gap:18px!important;overflow:hidden!important;white-space:nowrap!important}
.breaking-label{flex:0 0 auto!important;position:relative!important;z-index:3!important;white-space:nowrap!important}
.breaking-ticker .ticker-viewport{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;position:relative!important}
.breaking-ticker .ticker-track{display:inline-flex!important;align-items:center!important;gap:44px!important;width:max-content!important;min-width:max-content!important;white-space:nowrap!important;animation:breakingTicker 70s linear infinite!important;will-change:transform!important}
.breaking-ticker .ticker-track a,.breaking-ticker .ticker-track .ticker-separator{display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important}
.breaking-ticker:hover .ticker-track{animation-play-state:paused!important}


/* Sticky Breaking News and near-edge layout */
.breaking-ticker{position:sticky!important;top:169.6px!important;z-index:1200!important}
.breaking-ticker-inner{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:8px!important;padding-right:8px!important}
@media(max-width:600px){.breaking-ticker-inner{padding-left:4px!important;padding-right:4px!important}.breaking-label{padding-left:9px!important;padding-right:9px!important}}


/* Keep active Breaking News visibly present below the navigation bar. */
.breaking-ticker:not([style*="display:none"]){display:block!important;min-height:46px!important;visibility:visible!important;opacity:1!important}
.breaking-ticker:not([style*="display:none"]) .breaking-ticker-inner{min-height:46px!important;height:46px!important;display:flex!important;align-items:center!important}
.breaking-ticker:not([style*="display:none"]) .ticker-viewport{min-height:46px!important;display:flex!important;align-items:center!important}
.breaking-ticker:not([style*="display:none"]) .ticker-track{line-height:46px!important}


/* Perbaikan footer desktop: kolom melebar, teks tidak turun sempit, mobile tetap mengikuti aturan responsif */
@media (min-width: 801px) {
  .site-footer > .container { display: block !important; }
  .site-footer .dynamic-widgets { width: 100% !important; margin-bottom: 28px !important; }
  .site-footer .dynamic-widget { max-width: 360px !important; }
  .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 1fr) minmax(180px, .8fr) !important;
    gap: 36px !important;
    align-items: start !important;
    width: 100% !important;
  }
  .site-footer .footer-grid > div { min-width: 0 !important; }
  .site-footer .footer-grid p {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .site-footer .footer-follow .footer-social-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .site-footer .footer-redaksi h3,
  .site-footer .footer-follow h3 { margin-top: 0 !important; }
}

/* FOOTER HORIZONTAL CLEANUP — scoped to footer only */
.site-footer > .container {
  display: block !important;
  width: min(1120px, calc(100% - 40px)) !important;
  margin-inline: auto !important;
}
.site-footer .dynamic-widgets {
  display: block !important;
  width: 100% !important;
  margin: 0 0 28px !important;
}
.site-footer .dynamic-widget {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: 100% !important;
}
.site-footer .footer-grid > div {
  min-width: 0 !important;
  width: auto !important;
}
.site-footer .footer-grid p {
  max-width: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.site-footer .footer-follow .footer-social-icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
@media (max-width: 800px) {
  .site-footer > .container { width: min(100% - 32px, 760px) !important; }
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.9fr) !important;
    gap: 24px !important;
  }
}
@media (max-width: 520px) {
  .site-footer > .container { width: calc(100% - 24px) !important; }
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
    gap: 24px 18px !important;
  }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1 !important; }
  .site-footer .footer-grid > div:nth-child(2),
  .site-footer .footer-grid > div:nth-child(3) { width: 100% !important; }
}


/* BREAKING NEWS MAIN OVERRIDE */
@media (max-width:767px){.breaking-ticker{top:150px !important;}}


/* BREAKING NEWS MOBILE FINAL POSITION */
@media (max-width:767px){body:not(.admin-body) .navbar{position:sticky;top:0;z-index:1300;}body:not(.admin-body) .breaking-ticker{position:sticky!important;top:52px!important;z-index:1200!important;}}


/* BREAKING NEWS MOBILE FIXED STACK */
@media (max-width:767px){body:not(.admin-body) .navbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:1300!important;}body:not(.admin-body) .breaking-ticker{position:fixed!important;top:47px!important;left:0!important;right:0!important;width:100%!important;z-index:1200!important;}body:not(.admin-body) main.container{padding-top:94px!important;}}


/* FINAL HEADER SAFETY FIX — keep logo/search visible; navigation stays below header. */
body:not(.admin-body) .site-header { position: relative !important; z-index: 1400 !important; }
body:not(.admin-body) .site-header .header-inner { position: relative; z-index: 1401; }
body:not(.admin-body) .site-brand { position: relative; z-index: 1402; flex-shrink: 0; }
body:not(.admin-body) .site-logo { position: relative; z-index: 1403; display: block !important; visibility: visible !important; opacity: 1 !important; }
@media (max-width: 767px) {
  body:not(.admin-body) .site-header { position: relative !important; top: auto !important; }
  body:not(.admin-body) .site-header .header-inner { min-height: 68px !important; }
  body:not(.admin-body) .navbar { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; z-index: 1300 !important; }
  body:not(.admin-body) .breaking-ticker { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; z-index: 1200 !important; }
  body:not(.admin-body) main.container { padding-top: 16px !important; }
  body:not(.admin-body) .header-inner { flex-wrap: wrap !important; align-items: center !important; }
  body:not(.admin-body) .site-brand { flex: 0 1 auto !important; max-width: 48% !important; }
  body:not(.admin-body) .site-logo { max-width: 100% !important; max-height: 52px !important; }
  body:not(.admin-body) .header-search { flex: 1 1 45% !important; min-width: 0 !important; max-width: none !important; }
}
@media (max-width: 520px) {
  body:not(.admin-body) .site-brand { max-width: 44% !important; }
  body:not(.admin-body) .site-logo { max-width: 100% !important; max-height: 46px !important; }
  body:not(.admin-body) .header-search { flex: 1 1 50% !important; }
}
