/*
Theme Name: GP Discover
Theme URI: https://example.com
Author: GP Discover
Description: Fast, SEO-optimised news/blog theme. Full-width mobile-first layout. Customizer-driven design with 50+ settings.
Version: 4.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gpd
Tags: news, blog, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root{
  --red:#e63946;--red-d:#c1121f;
  --dark:#111827;--mid:#374151;--muted:#6b7280;
  --bg:#f3f4f6;--border:#e5e7eb;--white:#ffffff;
  --fh:'Merriweather',Georgia,serif;
  --fb:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --radius:8px;--shadow:0 1px 6px rgba(0,0,0,.08);
  --shadow-md:0 6px 24px rgba(0,0,0,.12);
}

/* ============================================================
   RESET & BASE
============================================================ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--fb);color:var(--dark);
  background:var(--bg);line-height:1.6;overflow-x:hidden;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
button,input,textarea,select{font-family:inherit}
button{cursor:pointer;background:none;border:none;padding:0}
h1,h2,h3,h4,h5,h6{line-height:1.3;color:var(--dark)}

/* ============================================================
   LAYOUT
============================================================ */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}
@media(min-width:960px){.container{padding:0 24px}}

/* ============================================================
   READING PROGRESS BAR
============================================================ */
#gpd-progress{
  position:fixed;top:0;left:0;height:3px;width:0%;
  background:var(--red);z-index:9999;
  transition:width .1s linear;border-radius:0 2px 2px 0;
}

/* ============================================================
   TOP BAR
============================================================ */
.gpd-top-bar{
  background:var(--dark);color:rgba(255,255,255,.85);
  font-size:11px;padding:6px 16px;text-align:center;letter-spacing:.3px;
}

/* ============================================================
   BREAKING TICKER
============================================================ */
.gpd-breaking{background:var(--red);overflow:hidden;padding:7px 0}
.gpd-breaking .gpd-inner{display:flex;align-items:center;padding:0 16px}
.brk-badge{
  background:var(--dark);color:#fff;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:1px;padding:3px 10px;
  border-radius:2px;white-space:nowrap;flex-shrink:0;margin-right:12px;
}
.ticker-wrap{overflow:hidden;flex:1;min-width:0}
.ticker{display:flex;gap:40px;white-space:nowrap;width:max-content;animation:tick 35s linear infinite}
.ticker a{font-size:12px;font-weight:500;color:#fff}
.ticker a::before{content:'● ';font-size:8px;opacity:.7}
.ticker:hover{animation-play-state:paused}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ============================================================
   HEADER  (sticky, optimized — no layout shift)
============================================================ */
#masthead{
  background:var(--white);border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  will-change:box-shadow;
}
.hdr-inner{
  display:flex;align-items:center;
  justify-content:space-between;
  gap:10px;padding:10px 0;min-height:54px;
}

/* Logo */
.site-branding .site-title{
  font-family:var(--fh);font-size:20px;font-weight:900;
  letter-spacing:-.5px;line-height:1;
}
.site-branding .site-title a{color:var(--dark)}
.site-branding .site-title span{color:var(--red)}
.site-branding img.custom-logo{max-height:42px;width:auto}
.site-description{font-size:11px;color:var(--muted);margin-top:2px}

/* Header AD (728x90 desktop, hidden mobile) */
.hdr-ad{display:none}
@media(min-width:728px){
  .hdr-ad{display:flex;align-items:center;justify-content:center;flex:1;max-width:728px}
  .hdr-ad .ad-box{width:100%;height:54px;border-radius:4px}
}

/* Hamburger */
.menu-toggle{
  display:flex;flex-direction:column;gap:5px;
  padding:8px;-webkit-tap-highlight-color:transparent;
}
.menu-toggle span{
  display:block;width:22px;height:2px;
  background:var(--dark);border-radius:2px;transition:all .3s;
}
.menu-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.menu-toggle.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.menu-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Search btn */
.btn-search{
  border:1.5px solid var(--border);border-radius:6px;
  padding:7px 10px;font-size:13px;color:var(--mid);
  display:flex;align-items:center;gap:5px;transition:all .2s;
  -webkit-tap-highlight-color:transparent;
}
.btn-search:hover{border-color:var(--red);color:var(--red)}
.btn-search .st{display:none}
@media(min-width:640px){.btn-search .st{display:inline}}

.hdr-right{display:flex;align-items:center;gap:6px;flex-shrink:0}

/* ============================================================
   MOBILE NAV DRAWER  →  DESKTOP HORIZONTAL BAR
============================================================ */
#site-nav{
  display:none;
  position:absolute;top:100%;left:0;right:0;
  background:var(--white);border-top:3px solid var(--red);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  z-index:999;max-height:75vh;overflow-y:auto;
}
#site-nav.open{display:block}
#site-nav ul{display:flex;flex-direction:column;padding:6px 0}
#site-nav ul li{border-bottom:1px solid var(--bg)}
#site-nav ul li:last-child{border-bottom:none}
#site-nav ul li a{
  display:block;padding:13px 20px;
  font-size:14px;font-weight:600;color:var(--mid);transition:all .2s;
}
#site-nav ul li a:hover,
#site-nav ul li.current-menu-item>a{color:var(--red);background:var(--bg);padding-left:26px}
#site-nav ul li ul{display:none;background:#f9fafb}
#site-nav ul li:hover>ul,#site-nav ul li.focus>ul{display:block}
#site-nav ul li ul li a{padding:10px 20px 10px 34px;font-size:13px}

/* MOBILE NAV LOGO (shown inside drawer when enabled) */
.mobile-nav-logo{
  display:flex;align-items:center;justify-content:center;
  padding:14px 20px 6px;border-bottom:1px solid var(--border);margin-bottom:6px;
}
.mobile-nav-logo img{max-height:40px;width:auto}

/* ── DESKTOP NAV ── */
@media(min-width:960px){
  .menu-toggle{display:none}
  #site-nav{
    display:block!important;position:static;background:transparent;
    border:none;box-shadow:none;max-height:none;overflow:visible;
  }
  #site-nav ul{flex-direction:row;padding:0;gap:2px}
  #site-nav ul li{border:none;position:relative}
  #site-nav ul li a{padding:7px 12px;font-size:13.5px}
  #site-nav ul li a:hover,
  #site-nav ul li.current-menu-item>a{background:transparent;padding-left:12px}
  #site-nav ul li ul{
    display:none;position:absolute;top:calc(100% + 4px);left:0;
    background:var(--white);border:1px solid var(--border);
    border-radius:var(--radius);box-shadow:var(--shadow-md);
    min-width:200px;z-index:100;flex-direction:column;padding:6px 0;
  }
  #site-nav ul li:hover>ul{display:flex}
  #site-nav ul li ul li a{padding:9px 16px;font-size:13px}
}

/* SEARCH OVERLAY */
.search-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.75);z-index:2000;
  align-items:center;justify-content:center;padding:20px;
}
.search-overlay.on{display:flex}
.srch-box{background:var(--white);border-radius:var(--radius);padding:22px 20px;width:100%;max-width:520px}
.srch-close{display:block;text-align:right;font-size:22px;cursor:pointer;color:var(--muted);margin-bottom:10px;line-height:1}
.srch-close:hover{color:var(--red)}
.search-form{display:flex}
.search-form input[type=search]{
  flex:1;padding:12px 14px;border:2px solid var(--border);
  border-right:none;border-radius:8px 0 0 8px;font-size:15px;outline:none;
}
.search-form input[type=search]:focus{border-color:var(--red)}
.search-form .search-submit{
  background:var(--red);color:#fff;border:none;
  padding:12px 18px;border-radius:0 8px 8px 0;
  font-size:14px;font-weight:700;cursor:pointer;
}

/* ============================================================
   HEADER AD BANNER (full-width below header)
============================================================ */
.gpd-header-ad{
  background:var(--white);border-bottom:1px solid var(--border);
  padding:8px 16px;display:flex;align-items:center;justify-content:center;
}
.gpd-header-ad .ad-box{max-width:728px;width:100%;height:90px}

/* ============================================================
   AD BOXES
============================================================ */
.ad-box{
  display:flex;align-items:center;justify-content:center;
  background:#e9ecef;border:2px dashed #c8d0d8;border-radius:5px;
  color:var(--muted);font-size:9px;font-weight:700;
  text-transform:uppercase;letter-spacing:1.2px;
}
.ad-leaderboard{height:90px}
.ad-medium{height:250px}
.ad-banner{height:70px}
.ad-inline{height:90px;margin:14px 0}
.ad-sidebar{height:250px;margin-bottom:16px}

/* ============================================================
   SHARED COMPONENTS
============================================================ */

/* Category tag/badge */
.cat-tag{
  display:inline-block;background:var(--red);color:#fff;
  font-size:10px;font-weight:700;padding:2px 8px;border-radius:2px;
  text-transform:uppercase;letter-spacing:.8px;white-space:nowrap;line-height:1.7;
}
.cat-tag:hover{background:var(--red-d);color:#fff}

/* Post meta row */
.meta{
  display:flex;align-items:center;gap:5px;
  font-size:11px;color:var(--muted);flex-wrap:wrap;margin-top:4px;
}
.meta .av{
  width:20px;height:20px;border-radius:50%;
  overflow:hidden;background:#ccc;flex-shrink:0;
}
.meta .av img{width:100%;height:100%;object-fit:cover}
.meta a{color:var(--muted)}
.meta a:hover{color:var(--red)}
.meta .dot{opacity:.4}

/* Section header bar */
.sec-bar{
  display:flex;align-items:center;gap:10px;
  border-bottom:3px solid var(--dark);
  padding-bottom:10px;
}
.sec-bar h2{font-family:var(--fh);font-size:16px;font-weight:900;white-space:nowrap}
.sec-bar .divline{flex:1;height:1px;background:var(--border)}
.sec-bar .more{
  font-size:11px;font-weight:700;color:var(--red);
  white-space:nowrap;text-transform:uppercase;letter-spacing:.5px;
}
.sec-bar .more:hover{text-decoration:underline}
.sec-head-row{padding:14px 0 0}

/* Breadcrumb */
.gpd-breadcrumb{
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;
  font-size:11.5px;color:var(--muted);
  padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--border);
}
.gpd-breadcrumb a{color:var(--red)}
.gpd-breadcrumb a:hover{text-decoration:underline}
.gpd-breadcrumb .sep{opacity:.45}

/* ============================================================
   ★ MOBILE FULL-WIDTH POST CARD
   NO side padding, image edge-to-edge
============================================================ */
.post-card{
  display:block;background:var(--white);
  border-bottom:8px solid var(--bg);
  -webkit-tap-highlight-color:transparent;
}
.post-card:active{background:#f5f5f5}

/* FULL-BLEED IMAGE — zero radius, zero margin on mobile */
.post-card .pc-img{
  display:block;width:100%;
  /* LCP optimized: explicit aspect ratio prevents layout shift */
  aspect-ratio:16/9;
  overflow:hidden;background:#c9d0da;position:relative;
}
.post-card .pc-img img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.post-card .pc-img.no-img{
  background:linear-gradient(135deg,#b5c5d8,#8fa5be);
  display:flex;align-items:center;justify-content:center;
  font-size:44px;opacity:.35;
}

/* Card body */
.post-card .pc-body{padding:11px 16px 14px}
.post-card .pc-body h2,
.post-card .pc-body h3{
  font-family:var(--fh);font-size:15px;font-weight:700;
  line-height:1.45;color:var(--dark);margin:4px 0 4px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.post-card .pc-body h2 a:hover,
.post-card .pc-body h3 a:hover{color:var(--red)}

/* ============================================================
   HERO SECTION — Mobile: Stacked, Desktop: 2-col overlay
============================================================ */
.hero-section{background:var(--bg)}

/* Mobile: hero-main = full-width card */
.hero-main{
  display:block;background:var(--white);
  border-bottom:8px solid var(--bg);
  -webkit-tap-highlight-color:transparent;
}
.hero-main .hm-img{
  display:block;width:100%;aspect-ratio:16/9;
  overflow:hidden;background:#b5c5d8;
}
.hero-main .hm-img img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.hm-img.no-img{
  background:linear-gradient(135deg,#b5c5d8,#8fa5be);
  display:flex;align-items:center;justify-content:center;
  font-size:50px;opacity:.35;
}
.hero-main .hm-body{padding:12px 16px 14px;background:var(--white)}
.hero-main .hm-body h2{
  font-family:var(--fh);font-size:17px;font-weight:700;
  line-height:1.4;color:var(--dark);margin:5px 0 5px;
}
.hero-main .hm-body h2 a:hover{color:var(--red)}

/* Hero side posts — horizontal (img left, text right) */
.hero-side-post{
  display:flex;gap:12px;padding:12px 16px;
  background:var(--white);border-bottom:1px solid var(--border);
  -webkit-tap-highlight-color:transparent;
}
.hero-side-post:hover{background:#fafafa}
.hero-side-post:last-child{border-bottom:8px solid var(--bg)}
.hs-img{
  width:104px;height:70px;border-radius:6px;
  overflow:hidden;background:#c9d0da;flex-shrink:0;
}
.hs-img img{width:100%;height:100%;object-fit:cover;display:block}
.hs-img.no-img{
  background:linear-gradient(135deg,#c9d0da,#9fb3c2);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;opacity:.4;
}
.hs-body{flex:1;min-width:0}
.hs-body h3{
  font-family:var(--fh);font-size:13.5px;font-weight:700;
  line-height:1.4;color:var(--dark);margin:3px 0 4px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.hs-body h3 a:hover{color:var(--red)}

/* ============================================================
   MAIN LAYOUT
============================================================ */
#content{background:var(--bg)}
.site-layout{display:flex;flex-direction:column;padding:8px 0}
#primary{min-width:0}
#secondary{padding-top:8px}

/* Posts list */
.posts-list{display:flex;flex-direction:column}

/* Category list posts (horizontal cards) */
.cat-list-posts{display:flex;flex-direction:column}
.cat-list-post{
  display:flex;gap:12px;padding:12px 16px;
  background:var(--white);border-bottom:1px solid var(--border);
  -webkit-tap-highlight-color:transparent;
}
.cat-list-post:hover{background:#fafafa}
.cat-list-post:last-child{border-bottom:none}
.clp-img{
  width:104px;height:70px;border-radius:6px;
  overflow:hidden;background:#c9d0da;flex-shrink:0;
}
.clp-img img{width:100%;height:100%;object-fit:cover;display:block}
.clp-img.no-img{
  background:linear-gradient(135deg,#c9d0da,#9fb3c2);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;opacity:.4;
}
.clp-body{flex:1;min-width:0}
.clp-body h3{
  font-family:var(--fh);font-size:14px;font-weight:700;
  line-height:1.4;color:var(--dark);margin:3px 0 4px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.clp-body h3 a:hover{color:var(--red)}

/* Category section block */
.cat-section{margin-top:8px;background:var(--white)}
.cat-section-inner{border-bottom:8px solid var(--bg)}
.cat-sec-head{padding:14px 16px 0}

/* Pagination */
.pagination-wrap{
  display:flex;align-items:center;gap:5px;
  padding:14px 16px;flex-wrap:wrap;
  background:var(--white);border-top:1px solid var(--border);
  border-bottom:8px solid var(--bg);
}
.pagination-wrap .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:36px;height:36px;border-radius:6px;
  font-size:13px;font-weight:600;color:var(--mid);
  border:1.5px solid var(--border);background:var(--white);
  padding:0 8px;transition:all .2s;
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red)}
.pagination-wrap .page-numbers.dots{border:none;background:none}

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.widget{
  background:var(--white);padding:14px 16px;
  border-bottom:8px solid var(--bg);
}
.widget-title{
  font-family:var(--fh);font-size:15px;font-weight:900;
  padding-bottom:10px;border-bottom:2px solid var(--dark);margin-bottom:12px;
}
.sb-post{
  display:flex;gap:10px;padding:10px 0;
  border-bottom:1px solid var(--border);
}
.sb-post:last-child{border-bottom:none}
.sb-img{
  width:72px;height:50px;border-radius:5px;
  overflow:hidden;background:#c9d0da;flex-shrink:0;
}
.sb-img img{width:100%;height:100%;object-fit:cover;display:block}
.sb-img.no-img{
  background:linear-gradient(135deg,#c9d0da,#9fb3c2);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;opacity:.4;
}
.sb-body h4{
  font-family:var(--fh);font-size:12.5px;font-weight:700;
  line-height:1.4;margin-bottom:3px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.sb-body h4 a:hover{color:var(--red)}
.sb-date{font-size:10.5px;color:var(--muted);margin-top:2px}

.widget_categories ul li a{
  display:flex;justify-content:space-between;align-items:center;
  padding:8px 8px;font-size:13.5px;font-weight:600;
  color:var(--mid);border-radius:6px;transition:all .2s;
}
.widget_categories ul li a:hover{color:var(--red);background:var(--bg)}

.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.soc-btn{
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 6px;border-radius:6px;
  font-size:12.5px;font-weight:700;color:#fff;
  transition:opacity .2s;-webkit-tap-highlight-color:transparent;
}
.soc-btn:hover{opacity:.88;color:#fff}
.soc-btn.fb{background:#1877f2}.soc-btn.tg{background:#0088cc}
.soc-btn.wa{background:#25d366}.soc-btn.tw{background:#1da1f2}

/* ============================================================
   FLOATING SOCIAL SHARE
============================================================ */
.gpd-float-share{
  position:fixed;bottom:80px;right:14px;
  display:flex;flex-direction:column;gap:8px;
  z-index:800;
}
.gpd-float-share .fs-btn{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:17px;box-shadow:0 3px 10px rgba(0,0,0,.2);
  transition:transform .2s;-webkit-tap-highlight-color:transparent;
  text-decoration:none;
}
.gpd-float-share .fs-btn:hover{transform:scale(1.12);color:#fff}
.gpd-float-share .fs-btn.fb{background:#1877f2}
.gpd-float-share .fs-btn.wa{background:#25d366}
.gpd-float-share .fs-btn.tg{background:#0088cc}
.gpd-float-share .fs-btn.tw{background:#1da1f2}
.gpd-float-share .fs-btn.cp{background:var(--mid)}

/* ============================================================
   SINGLE POST
============================================================ */
.single-wrap{background:var(--white)}
.art-header{padding:14px 16px 0}
.art-title{
  font-family:var(--fh);font-size:20px;font-weight:900;
  line-height:1.35;color:var(--dark);margin-bottom:12px;
}
.art-meta-row{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding-bottom:12px;border-bottom:1px solid var(--border);
}
.art-author{display:flex;align-items:center;gap:9px}
.art-av{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#ccc;flex-shrink:0}
.art-av img{width:100%;height:100%;object-fit:cover}
.art-byline .name{font-size:13px;font-weight:700}
.art-byline .name a:hover{color:var(--red)}
.art-byline .dt{font-size:11px;color:var(--muted)}

/* Share bar */
.share-bar{
  display:flex;align-items:center;gap:6px;overflow-x:auto;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--border);
}
.share-bar::-webkit-scrollbar{display:none}
.share-lbl{font-size:12px;font-weight:700;color:var(--mid);white-space:nowrap;flex-shrink:0}
.sh-btn{
  display:inline-flex;align-items:center;gap:4px;
  padding:6px 10px;border-radius:5px;font-size:12px;
  font-weight:600;color:#fff;white-space:nowrap;flex-shrink:0;
  transition:opacity .2s;-webkit-tap-highlight-color:transparent;
}
.sh-btn:hover{opacity:.85;color:#fff}
.sh-btn.fb{background:#1877f2}.sh-btn.tg{background:#0088cc}
.sh-btn.wa{background:#25d366}.sh-btn.tw{background:#1da1f2}
.sh-btn.cp{background:var(--mid)}

/* Featured image */
.feat-img{width:100%;aspect-ratio:16/9;overflow:hidden;background:#c9d0da}
.feat-img img{width:100%;height:100%;object-fit:cover;display:block}

/* Post content */
.entry-content{
  padding:14px 16px 18px;font-size:15.5px;
  line-height:1.82;color:var(--mid);
}
.entry-content p{margin-bottom:16px}
.entry-content h2{font-family:var(--fh);font-size:19px;font-weight:700;margin:24px 0 10px;color:var(--dark)}
.entry-content h3{font-family:var(--fh);font-size:16px;font-weight:700;margin:18px 0 8px;color:var(--dark)}
.entry-content ul{list-style:disc;margin:0 0 16px 20px}
.entry-content ol{list-style:decimal;margin:0 0 16px 20px}
.entry-content li{margin-bottom:6px}
.entry-content blockquote{
  border-left:4px solid var(--red);padding:12px 16px;
  background:var(--bg);border-radius:0 6px 6px 0;
  font-style:italic;margin:18px 0;
}
.entry-content a{color:var(--red);text-decoration:underline}
.entry-content img{border-radius:6px;margin:12px 0;height:auto}
.entry-content table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14px;display:block;overflow-x:auto}
.entry-content table th{background:var(--dark);color:#fff;padding:8px 12px;white-space:nowrap;text-align:left}
.entry-content table td{padding:8px 12px;border-bottom:1px solid var(--border)}
.entry-content table tr:nth-child(even) td{background:var(--bg)}

/* Post footer tags */
.art-footer{
  padding:12px 16px;border-top:1px solid var(--border);
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.tag-lbl{font-size:12px;font-weight:700;color:var(--mid)}
.post-tag{
  padding:3px 10px;background:var(--bg);border-radius:20px;
  font-size:11.5px;font-weight:600;color:var(--red);
  border:1.5px solid #fcd5d8;transition:all .2s;
}
.post-tag:hover{background:var(--red);color:#fff;border-color:var(--red)}

/* Author box */
.author-box{
  padding:14px 16px;background:var(--bg);
  border-top:1px solid var(--border);
  display:flex;gap:12px;align-items:flex-start;
}
.ab-av{width:54px;height:54px;border-radius:50%;overflow:hidden;background:#ccc;flex-shrink:0}
.ab-av img{width:100%;height:100%;object-fit:cover}
.ab-name{font-size:15px;font-weight:700;margin-bottom:4px}
.ab-name a:hover{color:var(--red)}
.ab-bio{font-size:13px;color:var(--muted);line-height:1.6}

/* Join / Community buttons */
.gpd-join-section{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding:14px 16px;border-top:1px solid var(--border);
}
.gpd-join-card{border-radius:8px;padding:14px 10px;text-align:center;color:#fff}
.gpd-join-card.wa{background:linear-gradient(135deg,#25d366,#128c7e)}
.gpd-join-card.tg{background:linear-gradient(135deg,#0088cc,#005f8f)}
.gpd-join-card h4{font-size:13px;font-weight:700;margin-bottom:5px}
.gpd-join-card p{font-size:11px;opacity:.85;margin-bottom:9px}
.join-btn{
  display:inline-block;background:#fff;padding:5px 14px;
  border-radius:20px;font-size:12px;font-weight:700;
  transition:transform .2s;-webkit-tap-highlight-color:transparent;
}
.gpd-join-card.wa .join-btn{color:#128c7e}
.gpd-join-card.tg .join-btn{color:#005f8f}
.join-btn:hover{transform:scale(1.06)}

/* Related Posts */
.related-section{padding:14px 16px 18px;border-top:1px solid var(--border)}
.related-title{
  font-family:var(--fh);font-size:16px;font-weight:900;
  padding-bottom:10px;border-bottom:2px solid var(--dark);margin-bottom:12px;
}
.related-list{display:flex;flex-direction:column;gap:0}
.rel-post{
  display:flex;gap:10px;padding:10px 0;
  border-bottom:1px solid var(--border);
}
.rel-post:last-child{border-bottom:none}
.rel-img{
  width:88px;height:60px;border-radius:6px;
  overflow:hidden;background:#c9d0da;flex-shrink:0;
}
.rel-img img{width:100%;height:100%;object-fit:cover;display:block}
.rel-img.no-img{
  background:linear-gradient(135deg,#c9d0da,#9fb3c2);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;opacity:.4;
}
.rel-body h4{
  font-family:var(--fh);font-size:13px;font-weight:700;
  line-height:1.4;margin-bottom:3px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.rel-body h4 a:hover{color:var(--red)}
.rel-body .dt{font-size:11px;color:var(--muted)}

/* Comments */
.comments-area{padding:14px 16px 20px;border-top:1px solid var(--border)}
.comments-title,.comment-reply-title{
  font-family:var(--fh);font-size:16px;font-weight:900;
  padding-bottom:10px;border-bottom:2px solid var(--dark);margin-bottom:14px;
}
.comment-list li{padding:12px 0;border-bottom:1px solid var(--border);overflow:hidden}
.comment-body{font-size:14px;color:var(--mid);line-height:1.7;margin-top:6px}
.comment-reply-link{font-size:12px;font-weight:700;color:var(--red);display:inline-block;margin-top:5px}
.comment-form{display:flex;flex-direction:column;gap:12px}
.comment-form label{display:block;font-size:12.5px;font-weight:600;color:var(--mid);margin-bottom:4px}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea{
  width:100%;padding:10px 12px;border:1.5px solid var(--border);
  border-radius:6px;font-size:14px;color:var(--dark);
  resize:vertical;-webkit-appearance:none;transition:border-color .2s;
}
.comment-form input:focus,.comment-form textarea:focus{outline:none;border-color:var(--red)}
.comment-form textarea{min-height:100px}
.comment-form input[type=submit]{
  background:var(--red);color:#fff;border:none;
  padding:12px 24px;border-radius:6px;font-size:14px;font-weight:700;
  width:100%;cursor:pointer;transition:background .2s;
}
.comment-form input[type=submit]:hover{background:var(--red-d)}

/* ============================================================
   FOOTER
============================================================ */
#colophon{background:var(--dark);color:rgba(255,255,255,.8);padding:28px 0 0;margin-top:8px}
.ft-cols{display:flex;flex-direction:column;gap:22px;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.1)}
.ft-logo{font-family:var(--fh);font-size:20px;font-weight:900;color:#fff;margin-bottom:9px}
.ft-logo span{color:var(--red)}
.ft-logo img{max-height:38px;width:auto}
.ft-desc{font-size:13px;line-height:1.7;color:rgba(255,255,255,.55);margin-bottom:14px}
.ft-title{
  font-size:12px;font-weight:800;color:#fff;text-transform:uppercase;
  letter-spacing:1px;margin-bottom:12px;padding-bottom:8px;position:relative;
}
.ft-title::after{content:'';position:absolute;bottom:0;left:0;width:22px;height:2px;background:var(--red)}
.ft-links{display:flex;flex-direction:column;gap:6px}
.ft-links a{font-size:13px;color:rgba(255,255,255,.55);padding:1px 0;transition:color .2s}
.ft-links a:hover{color:var(--red)}
.ft-soc{display:flex;flex-direction:column;gap:8px}
.ft-soc-btn{
  display:flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:6px;
  font-size:13px;font-weight:600;color:#fff;
  transition:opacity .2s;-webkit-tap-highlight-color:transparent;
}
.ft-soc-btn:hover{opacity:.85;color:#fff}
.ft-soc-btn.fb{background:#1877f2}.ft-soc-btn.tg{background:#0088cc}.ft-soc-btn.wa{background:#25d366}
.ft-btm{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 0;font-size:12px;color:rgba(255,255,255,.4);text-align:center;
}
.ft-btm-links{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.ft-btm-links a{color:rgba(255,255,255,.4)}
.ft-btm-links a:hover{color:#fff}

/* 404 */
.err-wrap{text-align:center;padding:50px 20px}
.err-wrap .n404{font-family:var(--fh);font-size:80px;font-weight:900;color:var(--red);line-height:1}
.err-wrap h1{font-size:22px;margin:8px 0 10px}
.err-wrap p{color:var(--muted);font-size:14px;margin-bottom:18px}
.btn-home{display:inline-block;background:var(--red);color:#fff;padding:11px 22px;border-radius:6px;font-weight:700}
.btn-home:hover{background:var(--red-d);color:#fff}

/* Archive */
.archive-hdr{padding:0 16px 14px}
.archive-hdr h1{font-size:20px;font-weight:900;font-family:var(--fh)}
.archive-hdr p{font-size:13px;color:var(--muted);margin-top:4px}

/* Back to top */
#btt{
  position:fixed;bottom:18px;right:14px;
  width:40px;height:40px;background:var(--red);color:#fff;
  border-radius:50%;font-size:18px;font-weight:700;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
  display:none;align-items:center;justify-content:center;
  transition:background .2s;-webkit-tap-highlight-color:transparent;
  z-index:999;
}
#btt:hover{background:var(--red-d)}
#btt.show{display:flex}

/* Author Archive page */
.author-archive-header{
  display:flex;gap:16px;align-items:center;
  padding:18px 16px;background:var(--white);
  border-bottom:8px solid var(--bg);
}
.aar-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#ccc;flex-shrink:0}
.aar-avatar img{width:100%;height:100%;object-fit:cover}
.aar-name{font-family:var(--fh);font-size:18px;font-weight:900;margin-bottom:4px}
.aar-bio{font-size:13px;color:var(--muted);line-height:1.6}
.aar-count{font-size:11px;color:var(--red);font-weight:700;margin-top:3px}

.screen-reader-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.no-display{display:none}

/* ============================================================
   TABLET  ≥ 600px
============================================================ */
@media(min-width:600px){
  .hs-img,.clp-img{width:120px;height:80px}
  .social-grid{grid-template-columns:repeat(2,1fr)}
  .ft-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}
  .ft-btm{flex-direction:row;justify-content:space-between;text-align:left}
}

/* ============================================================
   DESKTOP  ≥ 960px
============================================================ */
@media(min-width:960px){
  /* Header */
  .menu-toggle{display:none}
  #site-nav{
    display:block!important;position:static;background:transparent;
    border:none;box-shadow:none;max-height:none;overflow:visible;
  }
  #site-nav ul{flex-direction:row;padding:0;gap:2px}
  #site-nav ul li{border:none;position:relative}
  #site-nav ul li a{padding:7px 12px;font-size:13.5px}
  #site-nav ul li a:hover,
  #site-nav ul li.current-menu-item>a{background:transparent;padding-left:12px}
  #site-nav ul li ul{
    display:none;position:absolute;top:calc(100% + 4px);left:0;
    background:var(--white);border:1px solid var(--border);
    border-radius:var(--radius);box-shadow:var(--shadow-md);
    min-width:200px;z-index:100;flex-direction:column;padding:6px 0;
  }
  #site-nav ul li:hover>ul{display:flex}
  #site-nav ul li ul li a{padding:9px 16px;font-size:13px}
  .site-branding .site-title{font-size:26px}
  .site-branding img.custom-logo{max-height:50px}
  .hdr-inner{padding:13px 0}

  /* Hero 2-col */
  .hero-section{padding:24px 0 20px}
  .hero-inner{
    display:grid;grid-template-columns:1fr 1fr;gap:20px;
    max-width:1200px;margin:0 auto;padding:0 24px;
  }
  .hero-main{
    position:relative;border-radius:var(--radius);overflow:hidden;
    min-height:360px;border-bottom:none;display:flex;flex-direction:column;
  }
  .hero-main .hm-img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:unset}
  .hero-main .hm-img img{width:100%;height:100%;object-fit:cover}
  .hero-main .hm-body{
    position:absolute;bottom:0;left:0;right:0;
    background:linear-gradient(transparent,rgba(0,0,0,.88));
    padding:36px 18px 18px;color:#fff;
  }
  .hero-main .hm-body h2{font-size:20px;color:#fff}
  .hero-main .hm-body h2 a{color:#fff}
  .hero-main .hm-body h2 a:hover{color:#ffc9cc}
  .hero-main .hm-body .meta{color:rgba(255,255,255,.8)}
  .hero-main .hm-body .meta a{color:rgba(255,255,255,.8)}
  .hero-side-col{
    background:var(--white);border-radius:var(--radius);overflow:hidden;
    box-shadow:0 1px 6px rgba(0,0,0,.07);
  }
  .hero-side-post{padding:13px 16px;border-bottom:1px solid var(--border)}
  .hero-side-post:last-child{border-bottom:none}
  .hero-side-post:last-child{border-bottom:none!important}
  .hs-img{width:110px;height:74px}

  /* Main layout */
  .site-layout{
    display:grid;grid-template-columns:1fr 300px;
    gap:24px;padding:20px 24px;
    max-width:1200px;margin:0 auto;
    flex-direction:unset;align-items:start;
  }
  .site-layout.no-sidebar{grid-template-columns:1fr}

  /* Post cards grid */
  .posts-list{
    display:grid;grid-template-columns:1fr 1fr;gap:18px;
  }
  .post-card{
    border-bottom:none;border-radius:var(--radius);overflow:hidden;
    border:1px solid var(--border);box-shadow:var(--shadow);
    display:flex;flex-direction:column;
    transition:transform .3s,box-shadow .3s;
  }
  .post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
  .post-card .pc-img{width:100%;aspect-ratio:16/9;border-radius:0}
  .post-card .pc-body{padding:14px;flex:1}
  .post-card .pc-body h3,.post-card .pc-body h2{font-size:15px}

  /* Section header */
  .sec-head-row{padding:14px 0 0}
  .sec-bar h2{font-size:18px}

  /* Cat list */
  .cat-list-post{padding:14px 0}
  .clp-img{width:130px;height:88px}
  .cat-section{background:transparent}
  .cat-section-inner{border-bottom:none;margin-bottom:28px}
  .cat-list-posts{
    background:var(--white);border-radius:var(--radius);
    overflow:hidden;box-shadow:var(--shadow);
  }
  .cat-sec-head{padding:14px 16px 0}

  /* Pagination */
  .pagination-wrap{padding:14px 0;background:transparent;border:none}

  /* Sidebar sticky */
  #secondary{position:sticky;top:76px;padding:0}
  .widget{
    border-radius:var(--radius);border:1px solid var(--border);
    box-shadow:var(--shadow);padding:16px 18px;margin-bottom:18px;
    border-bottom:1px solid var(--border);
  }
  .social-grid{grid-template-columns:1fr}
  .soc-btn{justify-content:flex-start}

  /* Footer */
  .ft-cols{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:28px}
  .ft-btm{flex-direction:row;justify-content:space-between;text-align:left}

  /* Single */
  .art-header{padding:22px 24px 0}
  .art-title{font-size:26px}
  .share-bar{padding:11px 24px}
  .entry-content{padding:22px 24px 22px;font-size:16.5px}
  .art-footer{padding:13px 24px}
  .author-box{padding:18px 24px}
  .gpd-join-section{padding:16px 24px;gap:14px}
  .related-section{padding:16px 24px 22px}
  .related-list{
    display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
  }
  .rel-post{
    flex-direction:column;gap:0;padding:0;
    border-radius:var(--radius);overflow:hidden;
    border:1px solid var(--border);box-shadow:var(--shadow);
    transition:all .2s;
  }
  .rel-post:last-child{border-bottom:1px solid var(--border)}
  .rel-post:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
  .rel-img{width:100%;height:auto;aspect-ratio:16/9;border-radius:0}
  .rel-body{padding:10px}
  .comments-area{padding:16px 24px 22px}
  .gpd-breadcrumb{padding:12px 24px}
  .archive-hdr{padding:0 0 14px}
  .author-archive-header{padding:22px 24px;border-bottom:none;background:transparent;margin-bottom:20px}
}
@media(min-width:1200px){
  .site-layout{padding-left:28px;padding-right:28px;gap:28px}
  .hero-inner{padding:0 28px}
}
