/* =====================================================
   TabPress 1.5 — Stylesheet utama (mobile-first)
   ===================================================== */

/* Font  Plus Jakarta Sans */
@font-face{
  font-family:'Plus Jakarta Sans';
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url('../fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --tp-primary:#0a4d2c;
  --tp-accent:#e63946;
  --tp-hot:#d62828;
  --tp-navbg:#0a4d2c;
  --tp-navtext:#ffffff;
  --tp-bg:#f4f5f7;
  --tp-surface:#ffffff;
  --tp-text:#1a1a1a;
  --tp-muted:#6b7280;
  --tp-border:#e5e7eb;
  --tp-radius:10px;
  --tp-shadow:0 1px 3px rgba(0,0,0,.08);
  --tp-shadow-line:0 1px 0 rgba(0,0,0,.06);
  --tp-container:1180px;
  --content-size:1.05rem;
  --tp-font:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}

/*  DARK MODE (toggle via class .tp-dark */
html.tp-dark{
  --tp-bg:#0f1115;--tp-surface:#1a1d23;--tp-text:#e8e8ea;
  --tp-muted:#9aa0aa;--tp-border:#2c2f36;
  --tp-shadow:0 1px 3px rgba(0,0,0,.5);--tp-shadow-line:0 1px 0 rgba(255,255,255,.04);
}
html.tp-dark .ad-box{background:#222630;border-color:#363b45}
html.tp-dark .tp-inline-related{background:#1d2027}
html.tp-dark .tp-tags a,html.tp-dark .tp-fontsize button,html.tp-dark .tp-like{background:#222630}
html.tp-dark .tp-parallax-ad{background:#000}
html.tp-dark .tp-search-bar{background:#16181d}
html.tp-dark .tp-thumb-ph,html.tp-dark .tp-thumb-wrap{background:#23262e}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:130px;}

/*atribut hidden */
[hidden]{display:none!important}
body{
  margin:0;font-family:var(--tp-font);background:var(--tp-bg);color:var(--tp-text);
  line-height:1.6;font-size:16px;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;color:inherit}

.container{width:100%;max-width:var(--tp-container);margin:0 auto;padding:0 14px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:9999}
.tp-icon{width:1em;height:1em;fill:currentColor;vertical-align:-.125em;flex:none}

/* line clamp helper */
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clamp3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* =====================================================
   HEADER
   ===================================================== */
.tp-header-stack{background:var(--tp-surface)!important;box-shadow:var(--tp-shadow);position:relative;z-index:9999!important}
.tp-header-stack.has-sticky-nav{position:sticky!important;top:0!important}
/* Menempel di bawah admin bar WordPress (pada layar <= 600px admin bar ikut tergulir, jadi top:0) */
@media(min-width:601px) and (max-width:782px){body.admin-bar .tp-header-stack.has-sticky-nav{top:46px!important}}
@media(min-width:783px){body.admin-bar .tp-header-stack.has-sticky-nav{top:32px!important}}

/* =====================================================
   IKLAN PARALLAX 
   ===================================================== */
:root{--tp-parallax-h:250px}
.tp-parallax-ad{
  position:fixed;top:0;left:0;right:0;
  z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:#1c1c1c;color:#fff;
  padding:10px 0 24px;
}
.tp-parallax-close{position:absolute;top:8px;right:10px;z-index:3;border:0;background:rgba(255,255,255,.2);color:#fff;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.tp-parallax-close .tp-icon{width:18px;height:18px}
.tp-parallax-content{display:flex;align-items:center;justify-content:center;width:100%;max-width:970px}
.tp-parallax-content img{max-width:100%;height:auto;display:block;margin:0 auto}
.tp-parallax-hint{position:absolute;left:0;right:0;bottom:0;text-align:center;font-size:.7rem;padding:5px 10px;background:rgba(0,0,0,.45);color:rgba(255,255,255,.92);letter-spacing:.3px}
.tp-parallax-placeholder{color:rgba(255,255,255,.85);font-size:.86rem;text-align:center;padding:0 20px;max-width:600px;line-height:1.5}

/* Wrapper situs */
.tp-site{position:relative;z-index:2;background:var(--tp-bg);min-height:100vh}
.tp-site.has-parallax-ad{margin-top:var(--tp-parallax-h)}
.tp-site.parallax-closed{margin-top:0!important}
.tp-parallax-ad.is-closed{display:none}

/* Offset admin bar WordPress */
body.admin-bar .tp-parallax-ad{top:32px}
@media(max-width:782px){body.admin-bar .tp-parallax-ad{top:46px}}

/* Ticker */
.tp-ticker{background:var(--tp-primary);color:#fff;font-size:.8rem}
.tp-ticker-inner{display:flex;align-items:center;gap:10px;height:36px;overflow:hidden}
.tp-ticker-label{background:var(--tp-hot);color:#fff;font-weight:700;padding:3px 9px;border-radius:4px;flex:none;font-size:.66rem;letter-spacing:.5px}
.tp-ticker-viewport{overflow:hidden;flex:1}
.tp-ticker-track{display:flex;gap:36px;white-space:nowrap;animation:tp-marquee 38s linear infinite;width:max-content}
.tp-ticker-track:hover{animation-play-state:paused}
@keyframes tp-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Header utama: burger + logo + actions */
.tp-header-main{border-bottom:1px solid var(--tp-border);position:relative}
.tp-header-main-inner{display:flex;align-items:center;gap:10px;padding:5px 14px;height:65px}
.tp-hamburger{display:inline-flex;align-items:center;justify-content:center;border:0;background:none;font-size:1.6rem;color:var(--tp-primary);padding:4px;width:40px;height:40px;border-radius:8px}
.tp-hamburger:hover{background:rgba(0,0,0,.05)}

/* Logo: <h1> di beranda, <div> di halaman lain*/
.tp-logo{flex:1;min-width:0}
h1.tp-logo,div.tp-logo{margin:0!important;padding:0!important;height:100%!important;max-height:65px!important;line-height:1!important;display:flex!important;align-items:center!important;font-size:inherit!important;font-weight:inherit!important}
h1.tp-logo a,div.tp-logo a{display:flex!important;align-items:center!important;line-height:1!important}
h1.tp-logo img,div.tp-logo img{max-height:46px!important;width:auto!important}
.tp-logo-text{font-size:1.5rem;font-weight:800;color:var(--tp-primary);letter-spacing:-.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-header-actions{display:flex;align-items:center;gap:4px;flex:none}
.tp-search-toggle,.tp-dark-toggle{border:0;background:none;width:40px;height:40px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:var(--tp-text);font-size:1.15rem}
.tp-search-toggle:hover,.tp-dark-toggle:hover{background:rgba(0,0,0,.05)}
html.tp-dark .tp-search-toggle:hover,html.tp-dark .tp-dark-toggle:hover{background:rgba(255,255,255,.08)}
.tp-search-toggle .tp-icon,.tp-dark-toggle .tp-icon{width:22px;height:22px}
/* moon/sun swap */
.tp-icon-sun{display:none}
html.tp-dark .tp-icon-moon{display:none}
html.tp-dark .tp-icon-sun{display:inline-block}

/* Search bar reveal */
.tp-search-bar{background:var(--tp-bg);border-bottom:1px solid var(--tp-border);padding:10px 0}
.tp-search-form{display:flex;gap:8px;align-items:center}
.tp-search-form input{flex:1;border:1px solid var(--tp-border);background:var(--tp-surface);color:var(--tp-text);border-radius:30px;padding:10px 16px;font-size:.92rem;outline:none}
.tp-search-form input:focus{border-color:var(--tp-primary)}
.tp-search-form button{border:0;background:var(--tp-primary);color:#fff;border-radius:30px;padding:10px 18px;font-weight:600;font-size:.88rem;display:inline-flex;align-items:center;gap:5px;flex:none}

/* Nav kategori (below header) */
.tp-nav{background:var(--tp-navbg)}
.tp-nav-inner{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tp-nav-inner::-webkit-scrollbar{display:none}
.menu-link{color:var(--tp-navtext);padding:12px 14px;font-size:.84rem;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;border-bottom:3px solid transparent;opacity:.92}
.menu-link:hover,.menu-link.is-active{background:rgba(0,0,0,.18);border-bottom-color:var(--tp-accent);opacity:1}
.menu-label{font-size:.58rem;font-weight:800;padding:1px 5px;border-radius:3px;color:#fff}
.menu-label.red{background:var(--tp-hot)}.menu-label.green{background:#15803d}
.menu-label.blue{background:#2563eb}.menu-label.purple{background:#7c3aed}

/* Drawer mobile */
.tp-drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:10000 !important}
.tp-drawer{position:fixed;top:0;left:0;bottom:0;width:84%;max-width:340px;background:var(--tp-surface);z-index:10001 !important;padding:54px 18px 24px;overflow-y:auto;box-shadow:2px 0 16px rgba(0,0,0,.2)}
.tp-drawer-close{position:absolute;top:12px;right:12px;border:0;background:none;font-size:1.4rem;color:var(--tp-text)}
.tp-drawer-search{display:flex;gap:8px;align-items:center;margin-bottom:16px;background:var(--tp-bg);border:1px solid var(--tp-border);border-radius:30px;padding:4px 4px 4px 14px}
.tp-drawer-search input{flex:1;border:0;background:none;outline:none;font-size:.9rem;color:var(--tp-text);padding:8px 0}
.tp-drawer-search button{border:0;background:var(--tp-primary);color:#fff;width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none}
.tp-drawer-account{display:flex;gap:8px;margin-bottom:16px}
.tp-drawer-btn{flex:1;text-align:center;padding:11px 14px;border-radius:8px;font-weight:700;font-size:.86rem}
.tp-drawer-btn-primary{background:var(--tp-primary);color:#fff}
.tp-drawer-btn-ghost{background:var(--tp-bg);color:var(--tp-text);border:1px solid var(--tp-border)}
.tp-drawer-menu{list-style:none;margin:0;padding:0}
.tp-drawer-menu a{display:block;padding:13px 6px;border-bottom:1px solid var(--tp-border);font-weight:600;color:var(--tp-text)}
.tp-drawer-menu .menu-label{font-size:.58rem;font-weight:800;padding:1px 5px;border-radius:3px;color:#fff;margin-left:6px}
.tp-drawer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--tp-border)}
.tp-drawer-social a{font-size:.8rem;color:var(--tp-primary);font-weight:600}

/* =====================================================
   LAYOUT
   ===================================================== */
.layout-grid{display:grid;grid-template-columns:1fr;gap:24px;padding-top:16px;padding-bottom:32px}
.tp-sidebar{min-width:0}

/* =====================================================
   STORY
   ===================================================== */
.tp-stories{background:var(--tp-surface);border-bottom:1px solid var(--tp-border);padding:12px 0}
.tp-stories-track{display:flex;gap:14px;overflow-x:auto;padding:0 14px;max-width:var(--tp-container);margin:0 auto;scrollbar-width:none}
.tp-stories-track::-webkit-scrollbar{display:none}
.tp-story-item{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;flex:none;width:66px}
.tp-story-ring{width:60px;height:60px;border-radius:50%;background-size:cover;background-position:center;border:3px solid var(--tp-accent);background-color:var(--tp-border)}
.tp-story-name{font-size:.66rem;color:var(--tp-muted);max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-story-viewer{position:fixed;inset:0;background:#000;z-index:10000 !important;display:flex;align-items:center;justify-content:center}
.tp-story-stage{width:100%;max-width:440px;height:100%;max-height:94vh;position:relative;background:#111;border-radius:8px;overflow:hidden}
.tp-story-stage img,.tp-story-stage video,.tp-story-stage iframe{width:100%;height:100%;object-fit:cover;border:0}
.tp-story-caption{position:absolute;left:0;right:0;bottom:0;z-index:5;padding:28px 18px 24px;background:linear-gradient(transparent,rgba(0,0,0,.88));color:#fff;font-size:.9rem;line-height:1.45}
.tp-story-caption p{margin:6px 0 0;opacity:.92}
.tp-story-more{display:block;width:max-content;max-width:100%;margin:16px auto 0;background:var(--tp-accent);color:#fff;padding:12px 32px;border-radius:30px;font-size:.92rem;font-weight:700;text-align:center;text-decoration:none}
.tp-story-close{position:absolute;top:14px;right:14px;z-index:5;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:1.3rem;border-radius:50%;width:38px;height:38px}
.tp-story-prev,.tp-story-next{position:absolute;top:0;bottom:0;width:30%;border:0;background:none}
.tp-story-prev{left:0}.tp-story-next{right:0}
.tp-story-bars{position:absolute;top:10px;left:10px;right:10px;display:flex;gap:4px;z-index:4}
.tp-story-bar{flex:1;height:3px;background:rgba(255,255,255,.4);border-radius:3px;overflow:hidden}
.tp-story-bar span{display:block;height:100%;width:0;background:#fff}

/* =====================================================
   THUMBNAIL crop universal
   ===================================================== */
.tp-thumb-wrap{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--tp-border);border-radius:8px}
.tp-thumb-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tp-thumb-ph{display:block;aspect-ratio:16/9;background:var(--tp-border);border-radius:8px}
.tp-badge{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.7);color:#fff;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;z-index:2}
.tp-badge .tp-icon{width:15px;height:15px}

/* =====================================================
   SLIDER HEADLINE (1 hero per slide — mobile friendly)
   ===================================================== */
.tp-headline{margin-bottom:22px}
.tp-slider{position:relative;overflow:hidden;border-radius:var(--tp-radius)}
.tp-slider-track{display:flex;transition:transform var(--tp-slide-speed,.45s) ease}
.tp-slide{min-width:100%;flex:0 0 100%}
.tp-slide-card{position:relative;border-radius:var(--tp-radius);overflow:hidden;background:#111}
.tp-slide-card .tp-thumb-wrap{aspect-ratio:16/9;border-radius:0}
.tp-slide-card .tp-thumb-ph{aspect-ratio:16/9;border-radius:0}
.tp-slide-link{display:block;position:relative}
.tp-slide-overlay{position:absolute;left:0;right:0;bottom:0;padding:32px 16px 16px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff;display:flex;flex-direction:column;gap:7px}
.tp-slide-cat{background:var(--tp-accent);color:#fff;font-size:.62rem;font-weight:700;padding:3px 8px;border-radius:3px;align-self:flex-start;text-transform:uppercase;letter-spacing:.5px}
.tp-slide-title{font-size:1.05rem;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tp-slider-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;gap:6px;justify-content:center;z-index:3}
.tp-slider-dot{width:7px;height:7px;border-radius:50%;border:0;background:rgba(255,255,255,.55)}
.tp-slider-dot.is-active{background:#fff;width:20px;border-radius:4px}

/* =====================================================
   SECTION HEAD
   ===================================================== */
.tp-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;border-bottom:2px solid var(--tp-primary)}
.tp-section-title{font-size:1.1rem;font-weight:800;margin:0;padding:0 0 7px;position:relative}
.tp-section-title::after{content:"";position:absolute;left:0;bottom:-2px;width:54px;height:2px;background:var(--tp-accent)}
.tp-section-more{font-size:.78rem;color:var(--tp-primary);font-weight:600;display:inline-flex;align-items:center;gap:2px;flex:none}
.tp-cat-section,.tp-latest{margin-bottom:24px}

/* =====================================================
   LIST: foto kiri + judul kanan
   ===================================================== */
.tp-list,.post-list{display:flex;flex-direction:column}
.tp-list-item{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:13px 0;border-bottom:1px solid var(--tp-border)}
.tp-list-item:first-child{padding-top:0}
.tp-list-thumb{display:block}
.tp-list-thumb .tp-thumb-wrap{aspect-ratio:4/3}
.tp-list-body{min-width:0;display:flex;flex-direction:column;justify-content:center}
.tp-list-cat{display:inline-block;color:var(--tp-accent);font-size:.66rem;font-weight:700;text-transform:uppercase;margin-bottom:4px}
.tp-list-title{font-size:.95rem;font-weight:700;line-height:1.34;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tp-list-meta{display:flex;gap:10px;align-items:center;font-size:.7rem;color:var(--tp-muted)}
.tp-meta-views{display:inline-flex;align-items:center;gap:3px}

/* =====================================================
   CARD GRID
   ===================================================== */
.tp-card-grid,.tp-cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.tp-card{background:var(--tp-surface);border-radius:var(--tp-radius);overflow:hidden;box-shadow:var(--tp-shadow)}
.tp-card-body{padding:9px 11px 13px}
.tp-card-cat{color:var(--tp-accent);font-size:.64rem;font-weight:700;text-transform:uppercase}
.tp-card-title{font-size:.88rem;font-weight:700;line-height:1.34;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* =====================================================
   IKLAN
   ===================================================== */
.ad-box{position:relative;background:#f0f1f4;border:1px dashed #cfd3da;border-radius:8px;padding:18px 12px 12px;margin:18px 0;text-align:center;min-height:56px}
.ad-box.is-closed{display:none}
.ad-label{position:absolute;left:8px;top:5px;font-size:.58rem;color:var(--tp-muted);letter-spacing:1px;font-weight:700}
.ad-close{position:absolute;right:6px;top:4px;border:0;background:none;color:var(--tp-muted);font-size:1rem;display:inline-flex}
.ad-banner-img{margin:0 auto;border-radius:6px}
.ad-in-article{margin:22px 0}.ad-home{margin:22px 0}

/* Sisipan baca juga / populer */
.tp-inline-related{margin:22px 0;border-left:4px solid var(--tp-accent);background:#fafbfc;border-radius:0 8px 8px 0;padding:12px 14px}
.tp-inline-label{display:inline-block;font-size:.72rem;font-weight:800;color:var(--tp-accent);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}
.tp-inline-popular .tp-inline-label{color:var(--tp-primary)}
.tp-inline-list{display:flex;flex-direction:column;gap:10px}
.tp-inline-item{display:grid;grid-template-columns:70px 1fr;gap:10px;align-items:center}
.tp-inline-thumb img{aspect-ratio:1/1;object-fit:cover;border-radius:6px;width:70px;height:70px}
.tp-inline-title{font-size:.84rem;font-weight:600;line-height:1.34}

/* =====================================================
   SINGLE
   ===================================================== */
.breadcrumb{font-size:.72rem;color:var(--tp-muted);margin-bottom:12px}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.breadcrumb li:not(:last-child)::after{content:"/";margin-left:6px;color:var(--tp-border)}
.breadcrumb a{color:var(--tp-primary)}

.tp-single{background:var(--tp-surface);border-radius:var(--tp-radius);padding:16px;box-shadow:var(--tp-shadow)}
.tp-single-cat a{color:var(--tp-accent);font-weight:700;text-transform:uppercase;font-size:.72rem}
.tp-single-title{font-size:1.45rem;font-weight:800;line-height:1.25;margin:8px 0 10px}
.tp-single-lead{font-size:1rem;color:var(--tp-muted);font-weight:500;margin:0 0 14px;line-height:1.5}
.tp-single-meta{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 0;border-top:1px solid var(--tp-border);border-bottom:1px solid var(--tp-border)}
.tp-author{display:flex;align-items:center;gap:8px}
.tp-author-ava{border-radius:50%}
.tp-author-info{display:flex;flex-direction:column;line-height:1.2}
.tp-author-name{font-weight:700;font-size:.84rem}
.tp-author-role{font-size:.66rem;color:var(--tp-muted)}
.tp-meta-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.74rem;color:var(--tp-muted)}
.tp-meta-read,.tp-meta-views{display:inline-flex;align-items:center;gap:3px}
.tp-meta-sep{color:var(--tp-border)}

.tp-single-media{margin:16px 0}
.tp-featured{margin:0}.tp-featured img{width:100%;border-radius:8px}
.tp-featured figcaption{font-size:.72rem;color:var(--tp-muted);margin-top:6px;text-align:center}
.tp-video-frame{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000}
.tp-video-frame iframe,.tp-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0}
.tp-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.tp-gallery-img{border-radius:6px;aspect-ratio:1/1;object-fit:cover;width:100%}

.tp-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--tp-border);margin-bottom:6px}
.tp-fontsize{display:flex;align-items:center;gap:8px}
.tp-fontsize button{border:1px solid var(--tp-border);background:var(--tp-surface);border-radius:6px;padding:4px 9px;font-weight:700}
.tp-fontsize input[type=range]{width:84px;accent-color:var(--tp-primary)}
.tp-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tp-share{display:flex;gap:6px}
.tp-share-btn{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:0;color:#fff;background:var(--tp-muted)}
.tp-share-btn .tp-icon{width:17px;height:17px}
.s-wa{background:#25d366}.s-fb{background:#1877f2}.s-x{background:#000}.s-tg{background:#229ed9}.s-copy{background:var(--tp-primary)}
.s-copy.copied{background:#15803d}
.tp-like{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--tp-border);background:var(--tp-surface);border-radius:30px;padding:5px 12px;font-size:.78rem;font-weight:600}
.tp-like.liked{background:var(--tp-accent);color:#fff;border-color:var(--tp-accent)}
.tp-like .tp-icon{width:15px;height:15px}

.tp-content{font-size:var(--content-size);line-height:1.8;margin-top:16px}
.tp-content p{margin:0 0 1.1em}
.tp-content img{border-radius:8px;margin:1em 0;height:auto}
.tp-content h2{font-size:1.28rem;margin:1.4em 0 .5em}
.tp-content h3{font-size:1.1rem;margin:1.2em 0 .5em}
.tp-content a{color:var(--tp-primary);text-decoration:underline}
.tp-content blockquote{border-left:4px solid var(--tp-accent);margin:1.2em 0;padding:.4em 1em;color:var(--tp-muted);font-style:italic}
.tp-content iframe{max-width:100%}

.tp-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0}
.tp-tags-label{font-weight:700;font-size:.78rem}
.tp-tags a{background:var(--tp-bg);border:1px solid var(--tp-border);border-radius:30px;padding:5px 12px;font-size:.74rem}
.tp-tags a:hover{background:var(--tp-primary);color:#fff;border-color:var(--tp-primary)}

.video-ad{margin:22px 0}.video-ad-title{margin:6px 0 0;font-size:.9rem}

.tp-authorbox{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;background:var(--tp-bg);border-radius:var(--tp-radius);padding:16px;margin:24px 0}
.tp-authorbox-ava{border-radius:50%;grid-row:span 2}
.tp-authorbox-name{font-weight:800;font-size:1rem}
.tp-authorbox-count{display:block;font-size:.72rem;color:var(--tp-muted);margin-top:2px}
.tp-authorbox-bio{font-size:.82rem;margin:8px 0 0}
.tp-authorbox .tp-like{grid-column:2;justify-self:start;margin-top:10px}

.tp-postnav{display:flex;justify-content:space-between;gap:12px;margin:20px 0;font-size:.82rem;font-weight:600}
.tp-postnav a{color:var(--tp-primary)}

.tp-related{margin:26px 0}
.tp-related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.tp-related-title{font-size:.84rem;font-weight:700;line-height:1.34;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* =====================================================
   SIDEBAR WIDGET
   ===================================================== */
.widget{background:var(--tp-surface);border-radius:var(--tp-radius);padding:16px;margin-bottom:18px;box-shadow:var(--tp-shadow)}
.widget-title{font-size:1rem;font-weight:800;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid var(--tp-primary);position:relative}
.widget-title::after{content:"";position:absolute;left:0;bottom:-2px;width:46px;height:2px;background:var(--tp-accent)}

/* Iklan sidebar */
.ad-sidebar{margin:0 0 18px}

/* Rank list (Populer/Terkini) dengan thumbnail */
.tp-rank-list{list-style:none;margin:0;padding:0;counter-reset:rk}
.tp-rank-item{padding:10px 0;border-bottom:1px solid var(--tp-border);position:relative}
.tp-rank-item:first-child{padding-top:0}
.tp-rank-item:last-child{border-bottom:0;padding-bottom:0}
.tp-rank-link{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center}
.tp-rank-thumb{display:block;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:var(--tp-border)}
.tp-rank-thumb img{width:100%;height:100%;object-fit:cover}
.tp-rank-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.tp-rank-title{font-size:.86rem;font-weight:600;line-height:1.34;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tp-rank-meta{font-size:.68rem;color:var(--tp-muted);display:inline-flex;align-items:center;gap:3px}

/* Nomor peringkat hanya untuk daftar bernomor (Populer) */
.tp-rank-list:not(.tp-rank-plain) .tp-rank-num{position:absolute;left:0;top:8px;z-index:2;background:var(--tp-accent);color:#fff;font-size:.7rem;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.tp-rank-list:not(.tp-rank-plain) .tp-rank-thumb{position:relative}
.tp-rank-plain .tp-rank-num{display:none}

/* Styling widget bawaan WordPress */
.widget ul{list-style:none;margin:0;padding:0}
.widget ul li{padding:9px 0;border-bottom:1px solid var(--tp-border);font-size:.86rem;line-height:1.4}
.widget ul li:last-child{border-bottom:0}
.widget ul li a{color:var(--tp-text);font-weight:600}
.widget ul li a:hover{color:var(--tp-primary)}
.widget ul ul{margin-top:8px;padding-left:14px}
.widget ul ul li{border-bottom:0;padding:5px 0}
.widget .post-date,.widget .rss-date,.widget .comment-author-link{color:var(--tp-muted);font-size:.72rem;font-weight:400}
.widget_recent_comments li{color:var(--tp-muted)}
.widget select{width:100%;padding:9px 11px;border:1px solid var(--tp-border);border-radius:8px;background:var(--tp-surface);color:var(--tp-text)}
.widget_search .tp-searchform,.widget_block .wp-block-search__inside-wrapper{display:flex;gap:8px}
.widget_tag_cloud a,.wp-block-tag-cloud a{display:inline-block;background:var(--tp-bg);border:1px solid var(--tp-border);border-radius:30px;padding:4px 11px;margin:3px 3px 0 0;font-size:.74rem!important;color:var(--tp-text)}
.widget_calendar table{width:100%;font-size:.8rem}
.widget img{border-radius:6px}

/* Sidebar sticky di desktop */
@media(min-width:992px){.tp-sidebar{position:sticky;top:120px;align-self:start}}

/* =====================================================
   ARCHIVE / PAGINATION / 404 / PAGE
   ===================================================== */
.archive-header{margin-bottom:14px}
.archive-title{font-size:1.3rem;font-weight:800;margin:0}
.archive-description{color:var(--tp-muted);font-size:.86rem;margin-top:6px}
.tp-author-profile{display:flex;gap:14px;align-items:flex-start;margin-top:14px;background:var(--tp-surface);border-radius:var(--tp-radius);padding:14px;box-shadow:var(--tp-shadow)}
.tp-author-profile-ava{border-radius:50%;flex:none}
.tp-author-profile-count{font-size:.74rem;color:var(--tp-muted)}
.tp-author-profile-bio{font-size:.86rem;margin:6px 0 0;line-height:1.5}
.tp-author-profile-social{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 0;padding:0;font-size:.78rem}
.tp-author-profile-social a{color:var(--tp-primary);font-weight:600}
.pagination{margin-top:22px}
.pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.pagination .page-numbers{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border-radius:8px;background:var(--tp-surface);border:1px solid var(--tp-border);font-weight:600;padding:0 10px}
.pagination .page-numbers.current{background:var(--tp-primary);color:#fff;border-color:var(--tp-primary)}
.no-results{background:var(--tp-surface);padding:24px;border-radius:var(--tp-radius);text-align:center;color:var(--tp-muted)}
.tp-page{background:var(--tp-surface);border-radius:var(--tp-radius);padding:20px;box-shadow:var(--tp-shadow)}
.tp-page-title{font-size:1.5rem;font-weight:800;margin:0 0 16px}
.tp-404{text-align:center;padding:46px 14px;max-width:680px}
.tp-404-num{font-size:5rem;font-weight:800;color:var(--tp-primary);line-height:1}
.tp-404-title{font-size:1.3rem;margin:6px 0}
.tp-404-desc{color:var(--tp-muted);margin-bottom:16px}
.tp-404-home{display:inline-block;background:var(--tp-primary);color:#fff;padding:10px 22px;border-radius:30px;font-weight:700;margin-top:12px}
.tp-404-popular{margin-top:36px;text-align:left}

/* =====================================================
   DASHBOARD AKUN
   ===================================================== */
.tp-account{padding:120px 14px 38px;max-width:960px;margin:0 auto}
.tp-account-header{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.tp-account-ava{border-radius:50%}
.tp-account-title{font-size:1.35rem;margin:0;font-weight:800}
.tp-account-sub{color:var(--tp-muted);font-size:.82rem}
.tp-account-grid{display:grid;grid-template-columns:1fr;gap:16px}
.tp-account-card{background:var(--tp-surface);border-radius:var(--tp-radius);padding:18px;box-shadow:var(--tp-shadow)}
.tp-account-card h2{font-size:1.02rem;margin:0 0 14px}
.tp-account-card label{display:block;font-size:.8rem;font-weight:600;margin-bottom:12px}
.tp-account-card input,.tp-account-card textarea{width:100%;margin-top:5px;padding:9px 11px;border:1px solid var(--tp-border);border-radius:8px;font-family:inherit;font-size:.86rem;background:var(--tp-surface);color:var(--tp-text)}
.tp-btn{display:inline-block;background:var(--tp-primary);color:#fff;border:0;border-radius:8px;padding:10px 20px;font-weight:700;font-size:.86rem}
.tp-hint{font-size:.72rem;color:var(--tp-muted);margin:4px 0 12px}
.tp-notice{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:.84rem;font-weight:600}
.tp-notice-ok{background:#dcfce7;color:#166534}
.tp-notice-err{background:#fee2e2;color:#991b1b}
.tp-account-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tp-account-table{width:100%;border-collapse:collapse;font-size:.82rem;min-width:420px}
.tp-account-table th,.tp-account-table td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--tp-border)}
.tp-account-table th{font-size:.72rem;color:var(--tp-muted);text-transform:uppercase}
.tp-status{font-size:.68rem;padding:2px 8px;border-radius:20px;background:var(--tp-bg);text-transform:capitalize}
.tp-status-publish{background:#dcfce7;color:#166534}
.tp-status-draft{background:#fef3c7;color:#92400e}
.tp-status-pending{background:#dbeafe;color:#1e40af}
.tp-account-logout{margin-top:18px}
.tp-account-logout a{color:var(--tp-hot);font-weight:600}

/* Komentar */
.tp-comments{background:var(--tp-surface);border-radius:var(--tp-radius);padding:16px;margin-top:18px;box-shadow:var(--tp-shadow)}
.tp-comments-title{font-size:1.05rem;margin:0 0 14px}
.tp-commentlist{list-style:none;margin:0;padding:0}
.tp-commentlist .children{list-style:none;margin-left:18px}

/* =====================================================
   FOOTER (gaya media)
   ===================================================== */
.tp-footer{
  --tpf-bg:#0d2818;--tpf-text:#c8d2cc;--tpf-head:#ffffff;--tpf-link:#ffffff;
  background:var(--tpf-bg);color:var(--tpf-text);margin-top:30px;font-size:.86rem;
}
.tp-footer-top{display:grid;grid-template-columns:1fr;gap:28px;padding:36px 14px 30px}
.tp-footer-logo img{max-height:46px;width:auto}
.tp-footer-logo-dark{display:none}
html.tp-dark .tp-footer-logo-light{display:none}
html.tp-dark .tp-footer-logo-dark{display:inline-block}
.tp-footer-name{font-size:1.4rem;font-weight:800;color:var(--tpf-head)}
.tp-footer-about{margin-top:12px;line-height:1.6;opacity:.9}
.tp-footer-about p{margin:0 0 6px}
.tp-footer-contact{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.tp-footer-contact li{display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.tp-footer-contact .tp-icon{width:16px;height:16px;flex:none;margin-top:2px;opacity:.7;fill:var(--tpf-text)}
.tp-footer-contact a{color:var(--tpf-text)}
.tp-footer-verified{display:flex;gap:10px;align-items:center;margin-top:16px;margin-bottom:8px;background:rgba(255,255,255,.07);border-radius:10px;padding:12px 14px}
.tp-footer-cols img,.tp-footer-col img{max-width:100%;height:auto}
.tp-verified-badge svg{width:38px;height:38px;flex:none}
.tp-verified-info{display:flex;flex-direction:column;line-height:1.35;font-size:.78rem}
.tp-verified-info strong{color:var(--tpf-head)}
.tp-verified-info em{opacity:.8;font-style:italic}
.tp-footer-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.tp-footer-col .widget{background:none;box-shadow:none;padding:0;margin:0}
.tp-footer-col .widget-title{color:var(--tpf-head);border-color:rgba(255,255,255,.18);font-size:.92rem}
.tp-footer-col .widget-title::after{display:none}
.tp-footer-col .widget ul li{border-bottom:0;padding:6px 0}
.tp-footer-col a,.tp-footer-col .widget ul li a{color:var(--tpf-link);font-weight:500;opacity:.85}
.tp-footer-col a:hover{opacity:1}
.tp-footer-bottom{border-top:1px solid var(--tpf-b-line,rgba(255,255,255,.14));margin-top:6px;background:var(--tpf-b-bg,transparent);color:var(--tpf-b-text,var(--tpf-text))}
.tp-footer-bottom-inner{display:flex;flex-direction:column;gap:10px;padding:16px 14px;font-size:.78rem}
.tp-footer-menu-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0}
.tp-footer-menu-list a{color:var(--tpf-b-link,var(--tpf-link));opacity:.85}
.tp-footer-menu-list a:hover{opacity:1;text-decoration:underline}
.tp-footer-menu-list li+li::before{content:"|";margin-right:16px;opacity:.45}
.tp-footer-copy{opacity:.7}

/* =====================================================
   RESPONSIVE — TABLET & DESKTOP
   ===================================================== */
@media(min-width:600px){
  .tp-card-grid,.tp-cat-grid{grid-template-columns:repeat(3,1fr)}
  .tp-gallery{grid-template-columns:repeat(3,1fr)}
  .tp-slide-title{font-size:1.3rem}
  .tp-slide-overlay{padding:40px 22px 22px}
  .tp-list-item{grid-template-columns:160px 1fr}
  .tp-list-title{font-size:1.02rem;-webkit-line-clamp:2}
}

@media(min-width:768px){
  .container{padding:0 16px}
  .tp-single{padding:26px}
  .tp-single-title{font-size:1.85rem}
  .tp-related-grid{grid-template-columns:repeat(3,1fr)}
  .tp-footer-top{grid-template-columns:1.4fr 2fr;gap:40px}
  .tp-footer-cols{grid-template-columns:repeat(3,1fr)}
  .tp-footer-bottom-inner{flex-direction:row;justify-content:space-between;align-items:center}
  .tp-footer-copy{order:-1}
  .tp-footer-menu{margin-left:auto}
  .tp-footer-menu-list{justify-content:flex-end}
  .tp-account-grid{grid-template-columns:1fr 1fr}
  .tp-slide-title{font-size:1.5rem;-webkit-line-clamp:2}
}

@media(min-width:992px){
  .layout-grid{grid-template-columns:1fr 320px;gap:28px;padding-top:20px}
  .tp-404{margin:0 auto}
  .tp-logo-text{font-size:1.8rem}
  .tp-header-main-inner{min-height:70px}
  .tp-slide-card .tp-thumb-wrap{aspect-ratio:21/9}
}

/* =====================================================
   HOME 1 — slider, blok sorotan, kartu geser (feed)
   ===================================================== */

/* ---------- Blok Sorotan ---------- */
.tp-feature{display:grid;grid-template-columns:1fr;gap:14px}
.tp-feature-card .tp-thumb-wrap{aspect-ratio:4/3}
.tp-feature-card .tp-thumb-ph{aspect-ratio:4/3}
.tp-feature-card .tp-slide-title{font-size:1.1rem;-webkit-line-clamp:3}
.tp-feature-side .tp-list-item:first-child{padding-top:0}

/* ---------- Slider: kartu geser ---------- */
.tp-slider-peek{overflow:hidden;border-radius:0}
.tp-slider-peek .tp-slide{min-width:88%;flex:0 0 88%;margin-right:12px}
.tp-slider-peek .tp-slide:last-child{margin-right:0}
.tp-slider-peek .tp-slide-card{border-radius:var(--tp-radius)}
.tp-slider-peek .tp-slide-card .tp-thumb-wrap{aspect-ratio:4/3}

/* ---------- Slider: sinematik (fade + zoom halus) ---------- */
.tp-slider-fade .tp-slider-track{display:grid;transform:none!important;transition:none}
.tp-slider-fade .tp-slide{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;transition:opacity var(--tp-slide-speed,.45s) ease,visibility 0s linear var(--tp-slide-speed,.45s)}
.tp-slider-fade .tp-slide.is-active{opacity:1;visibility:visible;transition:opacity var(--tp-slide-speed,.45s) ease,visibility 0s}
.tp-slider-fade .tp-slide-card .tp-thumb-wrap{aspect-ratio:4/3}
.tp-slider-fade .tp-slide.is-active .tp-thumb-wrap img{animation:tp-kenburns 9s ease-out both}
@keyframes tp-kenburns{from{transform:scale(1)}to{transform:scale(1.08)}}
.tp-slider-fade .tp-slide-overlay{padding:56px 18px 38px;background:linear-gradient(transparent,rgba(0,0,0,.88) 70%)}
.tp-slider-fade .tp-slide-title{font-size:1.2rem;line-height:1.28;-webkit-line-clamp:3}
.tp-slider-fade .tp-slider-dots{justify-content:flex-end;padding:0 16px;bottom:12px}

/* ---------- Feed / kartu geser ---------- */
.tp-feed{position:relative}
.tp-feed-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.tp-feed-track::-webkit-scrollbar{display:none}
.tp-feed-card{flex:0 0 46%;min-width:0;scroll-snap-align:start}
.tp-feed-wide .tp-feed-card{flex-basis:80%}
.tp-feed-link{position:relative;display:block;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#111;color:#fff}
.tp-feed-wide .tp-feed-link{aspect-ratio:16/10}
.tp-feed-link .tp-thumb-wrap{position:absolute;inset:0;aspect-ratio:auto;border-radius:0}
.tp-feed-badge{position:absolute;top:10px;right:10px;z-index:2;background:var(--tp-primary);color:#fff;font-size:.68rem;font-weight:700;padding:5px 10px;border-radius:8px}
.tp-feed-info{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:46px 12px 12px;background:linear-gradient(transparent,rgba(0,0,0,.88))}
.tp-feed-cat{display:flex;align-items:center;gap:6px;margin-bottom:5px;font-size:.72rem;font-weight:700}
.tp-feed-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--tp-accent)}
.tp-feed-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:.92rem;font-weight:700;line-height:1.3}
.tp-feed-prev,.tp-feed-next{position:absolute;top:42%;z-index:3;display:none;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#111;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.tp-feed-prev{left:6px}
.tp-feed-next{right:6px}
.tp-feed-prev .tp-icon{transform:rotate(180deg)}

/* ---------- Layar >= 700px (semua aturan responsif Home 1 digabung di sini) ---------- */
@media(min-width:700px){
  .tp-feature{grid-template-columns:1.1fr 1fr;align-items:start;gap:18px}
  .tp-feature-side .tp-list-item{grid-template-columns:110px 1fr}
  .tp-slider-peek .tp-slide{min-width:74%;flex-basis:74%}
  .tp-slider-peek .tp-slide-card .tp-thumb-wrap{aspect-ratio:16/9}
  .tp-slider-fade .tp-slide-card .tp-thumb-wrap{aspect-ratio:16/9}
  .tp-slider-fade .tp-slide-title{font-size:1.7rem}
  .tp-slider-fade .tp-slide-overlay{padding:80px 28px 42px}
  .tp-feed-card{flex-basis:calc((100% - 24px) / 3)}
  .tp-feed-wide .tp-feed-card{flex-basis:calc((100% - 12px) / 2)}
  .tp-feed-prev,.tp-feed-next{display:flex}
}
@media(prefers-reduced-motion:reduce){
  .tp-slider-fade .tp-slide.is-active .tp-thumb-wrap img{animation:none}
}