/*
Theme Name: PanduanTech Premium V1.8
Theme URI: https://panduantech.com/
Author: PanduanTech
Author URI: https://panduantech.com/
Description: Tema WordPress ringan dan premium untuk portal teknologi, komputer, laptop, gaming dan tutorial. Responsive, SEO-friendly, accessible dan kompatibel dengan Rank Math.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: panduantech
*/

:root{
  --pt-bg:#f5f7fb;--pt-surface:#fff;--pt-text:#172033;--pt-muted:#667085;
  --pt-border:#e7ebf2;--pt-primary:#0b63f6;--pt-primary2:#16b8ff;
  --pt-dark:#081426;--pt-radius:18px;--pt-shadow:0 10px 35px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--pt-bg);color:var(--pt-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.7}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--pt-primary)}
button,input{font:inherit}
.site{min-height:100vh}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.topbar{background:var(--pt-dark);color:#cbd5e1;font-size:13px}
.topbar .container{display:flex;justify-content:space-between;gap:20px;padding:7px 0}
.header{background:#fff;border-bottom:1px solid var(--pt-border);position:sticky;top:0;z-index:50}
.header-main{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:76px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:-.5px}
.custom-logo{max-height:48px;width:auto}
.brand-mark{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#081426,#0b63f6 60%,#16b8ff);color:#fff;font-weight:900;font-size:22px;box-shadow:0 8px 22px rgba(11,99,246,.25)}
.brand-name{font-size:22px}
.brand-name span{color:var(--pt-primary)}
.nav{display:flex;align-items:center;gap:4px}
.nav a{padding:10px 12px;border-radius:10px;font-size:14px;font-weight:700}
.nav a:hover{background:#eef5ff}
.menu-toggle{display:none;border:1px solid var(--pt-border);background:#fff;border-radius:10px;padding:8px 11px}
.search-form{display:flex;align-items:center;border:1px solid var(--pt-border);border-radius:12px;background:#fff;overflow:hidden}
.search-form input{width:150px;border:0;outline:0;padding:9px 11px}
.search-form button{border:0;background:transparent;padding:9px 11px;cursor:pointer}
.hero{padding:30px 0 12px}
.hero-grid{display:grid;grid-template-columns:1.55fr .95fr;gap:20px}
.feature-card{position:relative;min-height:390px;border-radius:24px;overflow:hidden;background:#0b1830;color:#fff;box-shadow:var(--pt-shadow)}
.feature-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feature-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,10,22,.92),rgba(3,10,22,.08) 70%)}
.feature-content{position:absolute;left:28px;right:28px;bottom:25px;z-index:1}
.eyebrow{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf3ff;color:var(--pt-primary);font-size:12px;font-weight:800;margin-bottom:9px}
.feature-card .eyebrow{background:rgba(255,255,255,.13);color:#fff}
.feature-title{font-size:clamp(26px,4vw,42px);line-height:1.1;margin:4px 0 12px;letter-spacing:-1px}
.meta{font-size:12px;color:var(--pt-muted);display:flex;gap:12px;flex-wrap:wrap}
.feature-card .meta{color:#dbe7f8}
.side-feature{display:grid;grid-template-columns:130px 1fr;gap:14px;background:#fff;border:1px solid var(--pt-border);border-radius:18px;padding:12px;margin-bottom:12px;box-shadow:0 5px 20px rgba(15,23,42,.04)}
.side-feature img{width:130px;height:100px;object-fit:cover;border-radius:12px}
.side-feature h3{font-size:16px;line-height:1.35;margin:3px 0 8px}
.section{padding:25px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.section-title{font-size:25px;line-height:1.2;margin:0;letter-spacing:-.5px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px}
.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.post-card{background:#fff;border:1px solid var(--pt-border);border-radius:18px;overflow:hidden;box-shadow:0 5px 20px rgba(15,23,42,.04)}
.post-thumb{display:block;aspect-ratio:16/9;background:#e9eef6;overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.post-card:hover .post-thumb img{transform:scale(1.035)}
.post-body{padding:16px}
.post-title{font-size:19px;line-height:1.35;margin:5px 0 9px}
.post-excerpt{color:var(--pt-muted);font-size:14px;margin:0 0 10px}
.sidebar-card{background:#fff;border:1px solid var(--pt-border);border-radius:18px;padding:18px;margin-bottom:18px}
.sidebar-card h3{margin:0 0 13px;font-size:17px}
.cat-list{list-style:none;padding:0;margin:0}
.cat-list li{border-bottom:1px solid var(--pt-border)}
.cat-list li:last-child{border:0}
.cat-list a{display:flex;justify-content:space-between;padding:9px 0;font-size:14px;font-weight:700}
.newsletter{background:linear-gradient(135deg,#081426,#0b63f6);color:#fff}
.newsletter p{color:#dce9ff;font-size:14px}
.newsletter .email{width:100%;padding:11px;border:0;border-radius:10px;margin-bottom:8px}
.newsletter .submit{width:100%;padding:11px;border:0;border-radius:10px;background:#fff;color:#0b63f6;font-weight:800;cursor:pointer}
.article-wrap{padding:34px 0}
.article{background:#fff;border:1px solid var(--pt-border);border-radius:22px;padding:clamp(20px,4vw,45px);box-shadow:var(--pt-shadow)}
.article-header{max-width:850px;margin:0 auto 22px}
.article-title{font-size:clamp(30px,5vw,52px);line-height:1.08;letter-spacing:-1.5px;margin:8px 0 14px}
.article-featured{width:100%;border-radius:16px;margin:12px 0 25px}
.entry-content{max-width:850px;margin:auto;font-size:17px}
.entry-content h2{font-size:29px;line-height:1.25;margin-top:36px}
.entry-content h3{font-size:23px;margin-top:28px}
.entry-content p{margin:0 0 18px}
.entry-content ul,.entry-content ol{padding-left:25px}
.entry-content blockquote{margin:25px 0;padding:18px 22px;border-left:4px solid var(--pt-primary);background:#f5f8ff;border-radius:0 12px 12px 0}
.entry-content pre{overflow:auto;background:#071222;color:#dbeafe;padding:18px;border-radius:12px}
.entry-content code{background:#eef3f9;padding:2px 5px;border-radius:5px}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}
.tags a{padding:6px 10px;border:1px solid var(--pt-border);border-radius:999px;font-size:12px;font-weight:700}
.related{margin-top:35px;padding-top:25px;border-top:1px solid var(--pt-border)}
.pagination{display:flex;justify-content:center;gap:7px;margin:28px 0}
.pagination a,.pagination span{padding:9px 13px;border:1px solid var(--pt-border);background:#fff;border-radius:9px;font-weight:700}
.pagination .current{background:var(--pt-primary);color:#fff;border-color:var(--pt-primary)}
.breadcrumb{font-size:12px;color:var(--pt-muted);margin-bottom:14px}
.site-footer{margin-top:40px;background:#071222;color:#aebdd2;padding:45px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}
.footer-title{color:#fff;font-weight:900;font-size:20px}
.site-footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:18px;font-size:12px;display:flex;justify-content:space-between;gap:20px}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
@media(max-width:950px){.nav{display:none}.menu-toggle{display:block}.header-main{min-height:66px}.nav.open{display:flex;position:absolute;left:16px;right:16px;top:66px;background:#fff;border:1px solid var(--pt-border);border-radius:14px;padding:8px;box-shadow:var(--pt-shadow);flex-direction:column;align-items:stretch}.nav.open a{padding:11px}.hero-grid,.content-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.search-form{display:none}}
@media(max-width:650px){.container{width:min(100% - 22px,1180px)}.topbar{display:none}.hero{padding-top:16px}.feature-card{min-height:330px}.posts-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.side-feature{grid-template-columns:105px 1fr}.side-feature img{width:105px;height:85px}.article{border-radius:15px;padding:18px}.article-title{font-size:32px}.entry-content{font-size:16px}}

/* PanduanTech V1.3 - footer hard reset */
.site-footer .pt-footer-nav,
.site-footer .pt-footer-nav ul,
.site-footer .pt-footer-nav li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
.site-footer .pt-footer-nav li{
  display:block !important;
  width:100% !important;
}
.site-footer .pt-footer-nav li a{
  display:block !important;
  padding:5px 0 !important;
  line-height:1.5 !important;
  white-space:normal !important;
  font-size:14px !important;
}
.site-footer .pt-footer-nav li a:hover{color:#fff !important}
.site-footer .footer-grid{align-items:start}
@media(max-width:650px){
  .site-footer .pt-footer-nav li a{padding:6px 0 !important}
}

/* V1.4 homepage/header reset */
.header-tools{display:flex;align-items:center;gap:10px}
.header-nav{background:#fff;border-top:1px solid var(--pt-border)}
.header-nav .container{display:block}
.nav{min-width:0}
.nav a{flex:0 0 auto}
.hero{padding-top:28px}
.hero-grid{align-items:stretch}
.feature-card{min-height:430px}
.side-feature{min-height:122px}
.home-intro{margin:0 0 18px;color:var(--pt-muted);font-size:14px}
.home-empty{padding:45px 25px;background:#fff;border:1px solid var(--pt-border);border-radius:18px;text-align:center}
@media(max-width:950px){
  .header-tools{margin-left:auto}
  .header-nav .container{position:relative}
  .nav{display:flex}
  .menu-toggle{display:none}
}
@media(max-width:650px){
  .header-main{grid-template-columns:1fr auto}
  .brand-name{font-size:20px}
  .custom-logo{max-width:175px}
  .header-nav .container{width:100%}
  .nav{padding:5px 11px;gap:2px}
  .nav a{font-size:13px;padding:8px 10px}
  .feature-card{min-height:360px}
}

/* V1.5 article images + pagination */
.post-thumb img,.side-feature .post-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.feature-card > img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.pt-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:30px 0 10px;
}
.pt-pagination a,.pt-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:7px 12px;
  border:1px solid var(--pt-border);
  border-radius:10px;
  background:#fff;
  color:var(--pt-text);
  font-size:13px;
  font-weight:800;
}
.pt-pagination a:hover{background:#eef5ff;color:var(--pt-primary);border-color:#cfe1ff}
.pt-pagination .current{background:var(--pt-primary);color:#fff;border-color:var(--pt-primary)}
@media(max-width:650px){
  .pt-pagination a,.pt-pagination span{min-width:36px;min-height:36px;padding:6px 9px}
}

/* V1.6 logo/media migration */
.brand .custom-logo-link{display:flex;align-items:center}
.brand .custom-logo{object-fit:contain}


/* V1.7 responsive overhaul: tablet + mobile */
html,body{max-width:100%;overflow-x:hidden}
.header-main{min-width:0}
.brand{min-width:0;flex:1}
.brand .custom-logo-link{max-width:100%;min-width:0}
.brand .custom-logo{max-width:min(240px,100%);max-height:52px;width:auto;height:auto;display:block}
.header-tools{flex:0 0 auto}

@media (max-width: 950px){
  .header-main{min-height:68px}
  .header-tools{margin-left:auto}
  .search-form{display:none}
  .menu-toggle{display:block;cursor:pointer;line-height:1}
  .header-nav .container{position:relative;width:min(100% - 22px,1180px)}
  .nav{display:none;position:absolute;z-index:100;left:0;right:0;top:8px;background:#fff;border:1px solid var(--pt-border);border-radius:14px;padding:8px;box-shadow:var(--pt-shadow);flex-direction:column;align-items:stretch;gap:2px}
  .nav.open{display:flex}
  .nav a{display:block;width:100%;padding:11px 12px;font-size:14px}
  .header-nav{border-top:0;min-height:0}
  .hero-grid,.content-grid{grid-template-columns:1fr}
  .hero-grid{gap:16px}
  .feature-card{min-height:360px}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 700px){
  .container{width:calc(100% - 22px)}
  .header-main{gap:10px;min-height:62px}
  .brand .custom-logo{max-width:190px;max-height:46px}
  .brand-name{font-size:19px}
  .brand-mark{width:40px;height:40px}
  .header-nav .container{width:calc(100% - 22px)}
  .nav{top:7px}
  .hero{padding-top:14px}
  .feature-card{min-height:300px;border-radius:18px}
  .feature-content{left:18px;right:18px;bottom:18px}
  .feature-title{font-size:clamp(24px,7vw,34px)}
  .side-feature{grid-template-columns:105px minmax(0,1fr);gap:11px;padding:10px;margin-bottom:10px}
  .side-feature img{width:105px;height:82px}
  .side-feature h3{font-size:15px;overflow-wrap:anywhere}
  .posts-grid{grid-template-columns:1fr}
  .post-title{font-size:18px}
  .section{padding:18px 0}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
  .article{padding:17px}
  .article-title{font-size:30px}
}

@media (max-width: 480px){
  .brand .custom-logo{max-width:165px;max-height:42px}
  .menu-toggle{padding:8px 10px}
  .feature-card{min-height:270px}
  .side-feature{grid-template-columns:92px minmax(0,1fr)}
  .side-feature img{width:92px;height:74px}
  .side-feature .eyebrow{font-size:10px;padding:4px 7px}
  .side-feature h3{font-size:14px;line-height:1.3;margin:2px 0 4px}
  .meta{font-size:11px;gap:7px}
}

/* V1.8 search, sharing, breadcrumbs and ad slots */
.breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--pt-muted);font-size:12px;margin-bottom:12px;line-height:1.5}
.breadcrumb a{color:var(--pt-primary);font-weight:700}
.breadcrumb span{color:#98a2b3}
.search-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.search-query{margin:5px 0 0;color:var(--pt-muted);font-size:14px}
.search-page-form{min-width:280px}
.search-page-form input{width:220px}
.empty-search{background:#fff;border:1px solid var(--pt-border);border-radius:18px;padding:34px;text-align:center}
.empty-search h2{margin:0 0 7px}
.empty-search p{color:var(--pt-muted);margin:0}
.share-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0;padding:14px 16px;border:1px solid var(--pt-border);border-radius:14px;background:#f8fafc}
.share-box strong{font-size:14px}
.share-links{display:flex;gap:7px;flex-wrap:wrap}
.share-links a{display:inline-flex;padding:7px 11px;border-radius:9px;background:#fff;border:1px solid var(--pt-border);font-size:12px;font-weight:800}
.share-links a:hover{border-color:#cfe1ff;background:#eef5ff;color:var(--pt-primary)}
.pt-ad-slot{display:flex;align-items:center;justify-content:center;min-height:70px;margin:22px 0;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#98a2b3;font-size:11px;letter-spacing:.5px;text-transform:uppercase}
.related{margin-top:26px}
.related .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:950px){
  .search-heading{align-items:stretch;flex-direction:column}
  .search-page-form{min-width:0;width:100%}
  .search-page-form input{width:100%}
}
@media(max-width:700px){
  .related .posts-grid{grid-template-columns:1fr}
  .share-box{align-items:flex-start;flex-direction:column}
  .article-wrap{padding:20px 0}
}
.thumb-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:120px;background:linear-gradient(135deg,#081426,#0b63f6 65%,#16b8ff);color:#fff;font-size:42px;font-weight:900}


/* V1.9 centered brand/logo */
.header-main{position:relative;justify-content:center;}
.brand{position:absolute;left:50%;transform:translateX(-50%);z-index:2;max-width:calc(100% - 120px);}
.header-tools{position:relative;margin-left:auto;z-index:3;}
.brand .custom-logo-link{justify-content:center;}
.brand .custom-logo{margin:0 auto;}
@media(max-width:600px){
  .header-main{min-height:62px;}
  .brand{max-width:calc(100% - 90px);}
  .brand .custom-logo{max-width:165px;max-height:42px;}
  .header-tools{margin-left:auto;}
}


/* Ad layout: keeps the 320x50 banner centered without changing content width. */
.pt-banner-ad {
  width: 100%;
  margin: 24px auto 20px;
  text-align: center;
  clear: both;
}
.pt-banner-ad-inner {
  width: 320px;
  max-width: 100%;
  min-height: 50px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-ad-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1;
  color: #9aa3af;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@media (max-width: 480px) {
  .pt-banner-ad { margin: 18px auto 16px; }
}
