/*
Theme Name: Mantep News Portal
Theme URI: https://mantep.my.id
Author: Mantep News
Description: Modern News & Radio Portal — Card grid, glassmorphism, dark/light, PWA, AMP.
Version: 1.1.3.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: mantep
*/

/* ========== RESET ========== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{line-height:1.5;-webkit-font-smoothing:antialiased}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;border:0;background:none;cursor:pointer}
ul,ol{list-style:none}
input,textarea,select{font:inherit;color:inherit}
table{border-collapse:collapse;width:100%}

/* ========== CSS VARIABLES ========== */
:root{
  --c-primary:#4f46e5;
  --c-primary-hover:#4338ca;
  --c-accent:#f97316;
  --c-bg:#fafbfc;
  --c-surface:#ffffff;
  --c-surface-2:#f1f5f9;
  --c-text:#0f172a;
  --c-text-muted:#64748b;
  --c-border:#e2e8f0;
  --c-header-bg:rgba(255,255,255,.85);
  --c-footer-bg:#0f172a;
  --c-footer-text:#cbd5e1;
  --c-danger:#ef4444;
  --c-success:#10b981;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04);
  --shadow-md:0 4px 12px rgba(15,23,42,.08);
  --shadow-lg:0 12px 32px rgba(15,23,42,.12);
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:20px;
  --radius-full:9999px;
  --font-head:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  --font-serif:'Georgia',serif;
  --max-width:1200px;
  --gap:24px;
  --transition:.25s cubic-bezier(.4,0,.2,1);
}

/* ========== BASE ========== */
body{
  font-family:var(--font-body);
  font-size:16px;
  color:var(--c-text);
  background:var(--c-bg);
  min-height:100vh;
}
h1,h2,h3,h4,h5,h6{font-family:var(--font-head);font-weight:700;line-height:1.25;color:var(--c-text)}
h1{font-size:2rem}
h2{font-size:1.5rem}
h3{font-size:1.25rem}
p{margin-bottom:1rem}
strong,b{font-weight:700}
small{font-size:.875rem}
hr{border:none;border-top:1px solid var(--c-border);margin:2rem 0}
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}
.clr{clear:both}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* ========== SKIP LINK ========== */
.skip-link{position:absolute;top:-100px;left:8px;padding:12px 20px;background:var(--c-primary);color:#fff;border-radius:var(--radius-sm);z-index:9999;transition:top var(--transition)}
.skip-link:focus{top:8px}

/* ========== HEADER ========== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--c-header-bg);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--c-border);
  transition:box-shadow var(--transition);
}
.site-header.scrolled{box-shadow:var(--shadow-md)}
.header-inner{
  display:flex;
  align-items:center;
  gap:20px;
  height:70px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}
.header-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.header-logo img{max-height:44px;width:auto}
.header-logo .logo-dark{display:none}
body.dark-mode .header-logo .logo-light{display:none}
body.dark-mode .header-logo .logo-dark{display:block}

.main-nav{display:flex;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}
.main-nav::-webkit-scrollbar{display:none}
.main-nav a{
  padding:8px 14px;
  border-radius:var(--radius-full);
  font-weight:600;
  font-size:.9rem;
  white-space:nowrap;
  color:var(--c-text);
  transition:all var(--transition);
}
.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--c-primary);color:#fff}

.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.header-btn{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--radius-full);
  background:var(--c-surface-2);
  color:var(--c-text);
  transition:all var(--transition);
}
.header-btn:hover{background:var(--c-primary);color:#fff}
.header-btn svg{width:20px;height:20px;fill:currentColor}

/* ========== HERO FEATURED ========== */
.hero-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:var(--gap);
  margin:32px 0;
}
.hero-main{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:16/10;
  background:var(--c-surface-2);
}
.hero-main img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.hero-main:hover img{transform:scale(1.05)}
.hero-main::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(15,23,42,.9) 0%,rgba(15,23,42,0) 60%);
}
.hero-main .hero-text{
  position:absolute;bottom:0;left:0;right:0;
  padding:32px;
  color:#fff;
  z-index:2;
}
.hero-main .hero-cat{
  display:inline-block;
  padding:6px 14px;
  background:var(--c-accent);
  color:#fff;
  border-radius:var(--radius-full);
  font-size:.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  margin-bottom:12px;
}
.hero-main h2{font-size:clamp(1.3rem,3vw,2rem);color:#fff;line-height:1.2}
.hero-main .hero-meta{color:rgba(255,255,255,.85);font-size:.85rem;margin-top:10px}

.hero-side{display:flex;flex-direction:column;gap:16px}
.hero-small{
  display:flex;gap:14px;
  padding:14px;
  border-radius:var(--radius-md);
  background:var(--c-surface);
  box-shadow:var(--shadow-sm);
  transition:all var(--transition);
}
.hero-small:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.hero-small img{width:110px;height:80px;object-fit:cover;border-radius:var(--radius-sm);flex-shrink:0}
.hero-small .hero-small-text h3{font-size:.95rem;line-height:1.3}
.hero-small .hero-small-text .hero-meta{color:var(--c-text-muted);font-size:.75rem;margin-top:6px}

/* ========== SECTION HEADER ========== */
.section-header{
  display:flex;align-items:center;justify-content:space-between;
  margin:40px 0 20px;
  padding-bottom:12px;
  border-bottom:2px solid var(--c-border);
}
.section-title{
  font-size:1.4rem;
  position:relative;
  padding-bottom:12px;
}
.section-title::after{
  content:'';
  position:absolute;bottom:-14px;left:0;
  width:60px;height:3px;
  background:var(--c-primary);
  border-radius:2px;
}

/* ========== POST CARD GRID ========== */
.post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:var(--gap);
  margin-bottom:32px;
}
.post-card{
  background:var(--c-surface);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:all var(--transition);
  box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;
}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.post-card-thumb{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--c-surface-2);
}
.post-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.post-card:hover .post-card-thumb img{transform:scale(1.08)}
.post-card-cat{
  position:absolute;top:12px;left:12px;
  padding:4px 12px;
  background:var(--c-primary);
  color:#fff;
  border-radius:var(--radius-full);
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.post-card-body{padding:18px;flex:1;display:flex;flex-direction:column}
.post-card-title{
  font-size:1.05rem;
  line-height:1.35;
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-card-title a:hover{color:var(--c-primary)}
.post-card-meta{
  font-size:.8rem;
  color:var(--c-text-muted);
  margin-top:auto;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.post-card-meta img{max-height:16px;width:auto}

/* ========== SINGLE POST ========== */
.single-wrap{max-width:820px;margin:40px auto;padding:0 20px}
.single-cat-breadcrumb{
  font-size:.85rem;
  color:var(--c-text-muted);
  margin-bottom:16px;
}
.single-cat-breadcrumb a{color:var(--c-primary);font-weight:600}
.single-title{
  font-size:clamp(1.6rem,4vw,2.5rem);
  line-height:1.2;
  margin-bottom:20px;
}
.single-meta{
  display:flex;align-items:center;gap:16px;
  padding:16px 0;
  border-top:1px solid var(--c-border);
  border-bottom:1px solid var(--c-border);
  margin-bottom:24px;
  flex-wrap:wrap;
}
.single-meta .avatar-wrap img{border-radius:var(--radius-full);width:36px;height:36px}
.single-meta .author-name{font-weight:700;color:var(--c-text)}
.single-meta .meta-date{font-size:.85rem;color:var(--c-text-muted)}

.single-hero{margin-bottom:24px;border-radius:var(--radius-lg);overflow:hidden}
.single-hero img{width:100%;height:auto}
.single-caption{font-size:.8rem;color:var(--c-text-muted);text-align:center;padding:10px 0}

.single-content{
  font-family:var(--font-serif);
  font-size:1.15rem;
  line-height:1.75;
  color:var(--c-text);
}
.single-content p{margin-bottom:1.5rem}
.single-content h2,.single-content h3{margin:2rem 0 1rem;font-family:var(--font-head)}
.single-content img,.single-content figure{margin:1.5rem 0;border-radius:var(--radius-md);max-width:100%;height:auto}
.single-content blockquote{
  border-left:4px solid var(--c-primary);
  padding:12px 20px;margin:1.5rem 0;
  background:var(--c-surface-2);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-style:italic;
  color:var(--c-text-muted);
}
.single-content a{color:var(--c-primary);text-decoration:underline}
.single-content ul,.single-content ol{padding-left:1.5rem;margin-bottom:1.5rem}
.single-content ul{list-style:disc}
.single-content ol{list-style:decimal}
.single-content ul li,.single-content ol li{margin-bottom:.5rem}
.single-content figure figcaption,.wp-caption-text{font-size:.85rem;color:var(--c-text-muted);text-align:center;margin-top:8px;font-family:var(--font-body)}

/* Share buttons */
.share-row{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.share-row a{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;
  background:var(--c-surface-2);
  border-radius:var(--radius-full);
  color:var(--c-text);
  transition:all var(--transition);
}
.share-row a:hover{background:var(--c-primary);color:#fff;transform:translateY(-2px)}
.share-row svg{width:20px;height:20px}

/* Kru meta */
.kru-meta{
  background:var(--c-surface-2);
  padding:16px 20px;
  border-radius:var(--radius-md);
  margin:32px 0;
  font-size:.9rem;
  line-height:1.7;
}
.kru-meta strong{color:var(--c-text)}
.kru-meta a{color:var(--c-primary)}

/* Tags */
.tag-cloud{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.tag-cloud a{
  padding:6px 14px;
  background:var(--c-surface-2);
  border-radius:var(--radius-full);
  font-size:.8rem;
  font-weight:600;
  transition:all var(--transition);
}
.tag-cloud a:hover{background:var(--c-primary);color:#fff}

/* ========== SIDEBAR ========== */
.with-sidebar{display:grid;grid-template-columns:1fr 320px;gap:var(--gap);max-width:var(--max-width);margin:0 auto;padding:0 20px}
.sidebar{position:sticky;top:90px;height:fit-content}
.sidebar .widget{
  background:var(--c-surface);
  border-radius:var(--radius-md);
  padding:20px;
  margin-bottom:20px;
  box-shadow:var(--shadow-sm);
}
.sidebar .widget-title{
  font-size:1rem;
  font-weight:700;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:2px solid var(--c-border);
  position:relative;
}
.sidebar .widget-title::after{
  content:'';position:absolute;bottom:-2px;left:0;
  width:40px;height:2px;background:var(--c-primary);
}

/* ========== FOOTER ========== */
.site-footer{
  background:var(--c-footer-bg);
  color:var(--c-footer-text);
  margin-top:60px;
  padding:48px 0 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  margin-bottom:32px;
}
.footer-brand img{max-height:50px;margin-bottom:16px}
.footer-brand p{font-size:.9rem;line-height:1.7;margin-bottom:16px}
.footer-brand h4{color:#fff;margin-bottom:12px;font-size:.95rem}
.footer-social{display:flex;gap:10px;margin-top:12px}
.footer-social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;
  background:rgba(255,255,255,.1);
  border-radius:var(--radius-full);
  transition:all var(--transition);
}
.footer-social a:hover{background:var(--c-primary)}
.footer-social svg{width:18px;height:18px;fill:currentColor}

.footer-col h4{color:#fff;margin-bottom:16px;font-size:.95rem}
.footer-col ul li{margin-bottom:10px}
.footer-col a{color:var(--c-footer-text);font-size:.9rem;transition:color var(--transition)}
.footer-col a:hover{color:var(--c-primary)}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:24px;
  text-align:center;
  font-size:.85rem;
  color:var(--c-text-muted);
  max-width:var(--max-width);
  margin:0 auto;
  padding:24px 20px 0;
}

/* ========== PARALLAX HEADER MOBILE ========== */
.parallax-header-mobile{
  display:none;
  position:relative;
  height:400px;
  overflow:hidden;
  margin-bottom:20px;
}
.parallax-header-mobile .parallax-bg{
  position:absolute;
  top:0;left:0;right:0;
  height:150%;
  background-size:cover;
  background-position:center;
  will-change:transform;
}
.parallax-header-mobile .parallax-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(15,23,42,.3),rgba(15,23,42,.85));
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:24px;color:#fff;
}
.parallax-header-mobile .parallax-overlay h2{color:#fff;font-size:1.4rem;line-height:1.3}
.parallax-header-mobile .parallax-close{
  position:absolute;top:16px;right:16px;
  width:36px;height:36px;
  background:rgba(0,0,0,.4);
  color:#fff;
  border-radius:var(--radius-full);
  display:flex;align-items:center;justify-content:center;
  z-index:2;
}

/* ========== ADS (generic) ========== */
.ad-slot{margin:24px 0;text-align:center}
.ad-slot .ad-label{font-size:.7rem;color:var(--c-text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
.ad-slot img{max-width:100%;height:auto;display:inline-block}

/* ========== SEARCH FORM ========== */
.search-form{display:flex;gap:6px;margin:0;max-width:280px}
.search-field{
  flex:1;padding:10px 14px;
  background:var(--c-surface-2);
  border:1px solid var(--c-border);
  border-radius:var(--radius-full);
  font-size:.9rem;
}
.search-field:focus{outline:none;border-color:var(--c-primary)}
.search-submit{
  width:40px;height:40px;flex-shrink:0;
  background:var(--c-primary);color:#fff;
  border-radius:var(--radius-full);
  display:flex;align-items:center;justify-content:center;
}
.search-submit svg{width:18px;height:18px;fill:currentColor}

/* ========== PAGINATION ========== */
.pagination{
  display:flex;justify-content:center;gap:6px;
  margin:40px 0;flex-wrap:wrap;
}
.pagination .page-numbers{
  padding:10px 16px;
  background:var(--c-surface);
  border:1px solid var(--c-border);
  border-radius:var(--radius-sm);
  font-weight:600;font-size:.9rem;
  transition:all var(--transition);
}
.pagination .page-numbers:hover,.pagination .page-numbers.current{background:var(--c-primary);border-color:var(--c-primary);color:#fff}

/* ========== LOAD MORE ========== */
.load-more-wrap{text-align:center;margin:32px 0}
.load-more-btn{
  padding:12px 32px;
  background:var(--c-primary);color:#fff;
  border-radius:var(--radius-full);
  font-weight:700;font-size:.95rem;
  transition:all var(--transition);
}
.load-more-btn:hover{background:var(--c-primary-hover);transform:translateY(-2px)}
.load-more-btn:disabled{background:var(--c-text-muted);cursor:not-allowed;transform:none}

/* ========== 404 ========== */
.error404-wrap{text-align:center;padding:80px 20px}
.error404-wrap h1{font-size:5rem;color:var(--c-primary);line-height:1;margin-bottom:16px}
.error404-wrap p{color:var(--c-text-muted);margin-bottom:24px}
.btn{
  display:inline-block;
  padding:12px 28px;
  background:var(--c-primary);color:#fff;
  border-radius:var(--radius-full);
  font-weight:700;
  transition:all var(--transition);
}
.btn:hover{background:var(--c-primary-hover);transform:translateY(-2px)}

/* ========== AUTHOR BOX ========== */
.author-box{
  display:flex;gap:16px;
  padding:24px;
  background:var(--c-surface);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  margin:32px 0;
}
.author-box .avatar{width:64px;height:64px;border-radius:var(--radius-full);flex-shrink:0;object-fit:cover}
.author-box h4{font-size:1.1rem;margin-bottom:6px}
.author-box p{font-size:.9rem;color:var(--c-text-muted);line-height:1.6;margin:0}

/* ========== MOBILE ========== */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr}
  .hero-side{flex-direction:row;overflow-x:auto;gap:12px}
  .hero-side .hero-small{flex-shrink:0;width:280px}
  .with-sidebar{grid-template-columns:1fr}
  .sidebar{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .parallax-header-mobile{display:block}
  .parallax-inline{display:block}
  .header-inner{height:60px;gap:12px}
  .header-logo img{max-height:36px}
  .main-nav{position:fixed;top:60px;left:0;right:0;background:var(--c-surface);flex-direction:column;padding:16px;box-shadow:var(--shadow-lg);display:none;max-height:calc(100vh - 60px);overflow-y:auto;z-index:99}
  .main-nav.open{display:flex}
  .main-nav a{border-radius:var(--radius-sm);padding:14px 16px;font-size:1rem}
  .single-wrap{margin-top:20px}
  .hero-main .hero-text{padding:20px}
  .single-content{font-size:1.05rem}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .post-grid{grid-template-columns:1fr}
  .sidebar{margin-top:24px}
}
@media (max-width:480px){
  .hero-main h2{font-size:1.1rem}
  .hero-main .hero-text{padding:14px}
  .header-btn{width:36px;height:36px}
}

/* ========== PRINT ========== */
@media print{
  .site-header,.site-footer,.sidebar,.share-row,.main-nav,.header-actions,.load-more-wrap,.ad-slot,.parallax-inline,.parallax-header-mobile{display:none!important}
  body{background:#fff;color:#000}
  .single-wrap{max-width:none;margin:0}
}

/* ========== UTILS ========== */
.text-center{text-align:center}
.text-muted{color:var(--c-text-muted)}
.mt-4{margin-top:1rem}
.mb-4{margin-bottom:1rem}
.hidden{display:none}

/* ============================================================
 * v1.1.3.1 — OFFCANVAS MENU, SIDEBAR FIX, FOOTER AD, PARALLAX FIX
 * ============================================================ */

/* --- Offcanvas menu (mobile slide-in dari kiri) --- */
.menu-toggle-btn{display:none}
.main-nav{display:flex}
@media (max-width: 768px){
    .menu-toggle-btn{display:inline-flex}
    .main-nav{
        position:fixed;
        top:0;
        left:-320px;
        width:300px;
        max-width:85vw;
        height:100vh;
        background:var(--c-surface);
        display:flex;
        flex-direction:column;
        padding:0;
        gap:0;
        z-index:9999;
        transition:left .3s cubic-bezier(.4,0,.2,1);
        box-shadow:4px 0 24px rgba(0,0,0,.2);
        overflow-y:auto;
        border-radius:0;
    }
    .main-nav.open{left:0}
    .main-nav > ul{display:flex;flex-direction:column;padding:8px}
    .main-nav a{border-radius:var(--radius-sm);padding:14px 16px;font-size:1rem;color:var(--c-text)}
    .main-nav a:hover{background:var(--c-primary);color:#fff}
    .offcanvas-head{
        display:flex;align-items:center;justify-content:space-between;
        padding:16px 20px;
        border-bottom:1px solid var(--c-border);
        background:var(--c-surface-2);
        position:sticky;top:0;z-index:2;
    }
    .offcanvas-title{font-weight:700;font-size:1rem}
    .offcanvas-close{
        width:36px;height:36px;border-radius:50%;
        display:flex;align-items:center;justify-content:center;
        background:var(--c-surface);color:var(--c-text);
        font-size:1rem;
    }
    .offcanvas-body{padding:8px}
    .offcanvas-body .search-form{margin:16px 8px;max-width:none;width:auto}
    .offcanvas-overlay{
        position:fixed;inset:0;
        background:rgba(0,0,0,.5);
        z-index:9998;
        opacity:0;visibility:hidden;
        transition:opacity .3s,visibility .3s;
    }
    .offcanvas-overlay.open{opacity:1;visibility:visible}
    body.menu-open{overflow:hidden}
}
@media (min-width: 769px){
    .offcanvas-head,.offcanvas-close,.offcanvas-overlay{display:none}
    .offcanvas-body{padding:0;display:contents}
    .offcanvas-body .search-form{display:none}
}

/* --- FIX: Sidebar layout (grid) --- */
.with-sidebar{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:var(--gap);
    margin-bottom:40px;
    align-items:start;
}
.with-sidebar > .sidebar{position:sticky;top:90px}
@media (max-width: 1024px){
    .with-sidebar{grid-template-columns:1fr}
    .with-sidebar > .sidebar{position:static}
}

/* --- FIX: single-wrap when inside with-sidebar --- */
.with-sidebar .single-wrap{padding:0}

/* --- FIX: Floating footer ad --- */
.floating-footer-ad{
    position:fixed;
    bottom:0;left:0;right:0;
    z-index:9998;
    background:rgba(0,0,0,.85);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    padding:8px 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 -4px 20px rgba(0,0,0,.3);
}
.floating-footer-inner{
    max-width:728px;
    width:100%;
    text-align:center;
}
.floating-footer-inner .ad-slot{margin:0}
.floating-footer-inner .ad-label{display:none}
.floating-footer-inner img{max-height:80px;width:auto}
.floating-footer-close{
    position:absolute;
    top:-32px;right:8px;
    width:28px;height:28px;
    background:#000;color:#fff;
    border:0;border-radius:50%;
    cursor:pointer;font-size:14px;
    display:flex;align-items:center;justify-content:center;
}
body.has-footer-ad{padding-bottom:100px}

/* --- FIX: Parallax header mobile --- */
.parallax-header-mobile{
    display:none;
    position:relative;
    height:420px;
    overflow:hidden;
    margin-bottom:20px;
}
.parallax-header-mobile .parallax-bg{
    position:absolute;
    top:0;left:0;right:0;
    height:150%;
    background-size:cover;
    background-position:center;
    will-change:transform;
}
.parallax-header-mobile .parallax-overlay{
    position:absolute;inset:0;
    background:linear-gradient(to bottom,rgba(15,23,42,.3),rgba(15,23,42,.85));
    display:flex;flex-direction:column;justify-content:flex-end;
    padding:24px;color:#fff;
    z-index:2;
}
.parallax-header-mobile .parallax-close{
    position:absolute;top:16px;right:16px;
    width:36px;height:36px;
    background:rgba(0,0,0,.4);
    color:#fff;
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    z-index:5;
    font-size:1rem;
}
@media (max-width: 768px){
    .parallax-header-mobile{display:block}
}

/* --- FIX: Footer logo dark/light --- */
.footer-logo-wrap{position:relative;margin-bottom:16px;min-height:50px}
.footer-logo-wrap img{max-height:50px;width:auto;margin-bottom:0}
.footer-logo-wrap .footer-logo-dark{display:none}
body.dark-mode .footer-logo-wrap .footer-logo-light{display:none}
body.dark-mode .footer-logo-wrap .footer-logo-dark{display:block}

/* --- Author page --- */
.author-hero{
    display:flex;gap:24px;align-items:center;
    background:var(--c-surface);
    padding:24px;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
    margin:32px 0;
    flex-wrap:wrap;
}
.author-hero-logo{flex-shrink:0}
.author-hero-logo img{
    max-height:120px;width:auto;
    border-radius:var(--radius-md);
    background:var(--c-surface-2);
    padding:8px;
}
.author-hero-logo .author-logo-dark{display:none}
body.dark-mode .author-hero-logo .author-logo-light{display:none}
body.dark-mode .author-hero-logo .author-logo-dark{display:block}
.author-hero-logo .avatar{border-radius:50%}
.author-hero-info h1{font-size:1.8rem;margin-bottom:8px}
.author-hero-info .author-bio{color:var(--c-text-muted);margin-bottom:8px;line-height:1.6}
.author-hero-info .author-address,.author-hero-info .author-contact{font-size:.9rem;color:var(--c-text-muted);margin-bottom:4px}
.author-hero-info .author-count{font-size:.9rem;color:var(--c-text);margin-top:8px}
@media (max-width: 640px){
    .author-hero{text-align:center;flex-direction:column}
    .author-hero-info h1{font-size:1.4rem}
}

/* ============================================================
 * v1.1.3.2 — FIX ADS, PARALLAX, AUTHOR
 * ============================================================ */

/* FIX #1: Floating ads KIRI/KANAN — HANYA desktop */
@media (max-width: 1280px) {
    .ad-float-left,
    .ad-float-right {
        display: none !important;
    }
}

/* FIX #2: Header parallax mobile — tinggi dinamis */
.parallax-header-mobile {
    display: none;
    position: relative;
    height: auto;
    min-height: 280px;
    max-height: 70vh;
    overflow: hidden;
    margin-bottom: 16px;
    background: #111;
}
.parallax-header-mobile .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    will-change: transform;
}
.parallax-header-mobile .parallax-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(15,23,42,.2) 0%, rgba(15,23,42,.85) 100%);
    color: #fff;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.parallax-header-mobile .parallax-overlay img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}
.parallax-header-mobile .parallax-overlay .ad-slot {
    margin: 0;
    text-align: center;
}
.parallax-header-mobile .parallax-overlay .ad-label {
    display: none;
}
.parallax-header-mobile .parallax-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .parallax-header-mobile { display: block; }
}

/* Fallback: if browser supports background-attachment fixed nicely */
@supports (-webkit-overflow-scrolling: touch) {
    /* iOS-specific keep JS-based parallax */
}

/* Author page simplified */
.author-page-simple .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.author-page-simple .with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--gap);
    margin-bottom: 40px;
}
@media (max-width: 1024px) {
    .author-page-simple .with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Avatar uploader preview */
#custom-avatar-preview img {
    border-radius: 50%;
    border: 2px solid var(--c-border);
    max-width: 100px;
    height: auto;
}

/* ============================================================
 * v1.1.3.3 — FIX PARALLAX (STATIS & TIDAK TERPOTONG)
 * ============================================================ */

/* 1. Header Mobile Parallax (Agar gambar iklan tidak terpotong) */
.parallax-header-mobile {
    display: none;
    position: relative;
    width: 100%;
    background: #111;
    overflow: hidden;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .parallax-header-mobile { display: block; }
}

.parallax-header-mobile .parallax-overlay {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Memastikan gambar di dalam iklan tidak terpotong */
.parallax-header-mobile .parallax-overlay img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* 2. Inline Parallax (Tengah Artikel) */
.parallax-inline {
    display: block;
    position: relative;
    width: 100%;
    min-height: 250px;
    max-height: 500px;
    margin: 32px 0;
    border-radius: var(--radius-md);
    background-color: #111;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect width="40" height="40" fill="%23111"/><path d="M0 0h40v40H0z" fill="none" stroke="%23333" stroke-width="1"/></svg>');
    overflow: hidden;
    /* Efek Parallax CSS Native (Gambar Diam saat Scroll) */
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-inline .parallax-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4); /* Overlay gelap tipis agar teks/gambar iklan kontras */
}

.parallax-inline .parallax-content img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.parallax-inline .parallax-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--c-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .5px;
    z-index: 4;
}

/* Sembunyikan parallax di desktop jika tidak diinginkan (opsional) */
/* @media (min-width: 769px) { .parallax-inline { background-attachment: scroll; } } */

/* ============================================================
 * v1.1.3.7 — CUSTOM AUTH PAGE (Login, Register, Forgot Pass)
 * ============================================================ */

.mantep-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: #f8fafc;
    padding: 40px 20px;
}
.mantep-auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    border: 1px solid #e2e8f0;
}
.mantep-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.mantep-auth-logo img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
}
.mantep-auth-box h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 24px;
    color: #0f172a;
}
.mantep-auth-box label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.mantep-auth-box input[type="text"],
.mantep-auth-box input[type="password"],
.mantep-auth-box input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.mantep-auth-box input[type="text"]:focus,
.mantep-auth-box input[type="password"]:focus,
.mantep-auth-box input[type="email"]:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.mantep-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #475569;
}
.mantep-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.mantep-btn:hover {
    background: #4338ca;
}
.mantep-auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}
.mantep-auth-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.mantep-auth-links a:hover {
    text-decoration: underline;
}
.mantep-auth-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================================
 * v1.1.3.7 — RESPONSIVE VIDEO EMBED
 * ============================================================ */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
}
.video-responsive iframe, 
.video-responsive object, 
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}