/*
Theme Name:   GP Marketer Child
Theme URI:    https://example.com/gp-marketer-child
Description:  Professional GeneratePress Child Theme. AdSense Auto Ads optimised, Core Web Vitals ready, fully responsive, complete customiser control.
Author:       Your Name
Author URI:   https://example.com
Template:     generatepress
Version:      2.2.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gp-marketer-child
Tags:         blog, news, adsense, custom-colors, custom-logo, responsive, featured-images
*/

/* ==========================================================================
   DESIGN TOKENS — all colours & sizes driven from Customizer via CSS vars
   ========================================================================== */
:root {
  /* Brand */
  --c-primary:        #2ecc71;
  --c-primary-dk:     #27ae60;
  --c-primary-lt:     #eafaf1;
  --c-secondary:      #2c3e50;
  --c-accent:         #e74c3c;

  /* Text */
  --c-txt:            #1a1a1a;
  --c-txt-muted:      #555;
  --c-txt-faint:      #888;
  --c-white:          #fff;

  /* Surfaces */
  --c-bg:             #f4f6f8;
  --c-surface:        #fff;
  --c-border:         #e8e8e8;
  --c-border-lt:      #f0f0f0;

  /* Header */
  --c-header-bg:      #fff;
  --c-nav:            #333;
  --c-nav-hover:      #2ecc71;

  /* Footer */
  --c-foot-bg:        #2c3e50;
  --c-foot-txt:       #b2bec3;
  --c-foot-head:      #2ecc71;
  --c-foot-link:      #dfe6e9;
  --c-foot-bar:       #1a252f;

  /* Social */
  --c-fb:   #1877f2;
  --c-tw:   #000;
  --c-ig:   #e1306c;
  --c-yt:   #ff0000;
  --c-wa:   #25d366;
  --c-tg:   #0088cc;

  /* Typography */
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-base:          16px;
  --lh:               1.75;

  /* Layout */
  --max-w:            1200px;
  --sidebar-w:        320px;
  --gap:              28px;
  --radius:           8px;
  --radius-lg:        12px;

  /* Effects */
  --shadow:           0 2px 12px rgba(0,0,0,.07);
  --shadow-hover:     0 6px 24px rgba(0,0,0,.13);
  --transition:       all .22s ease;

  /* Image ratio — 16:9 */
  --card-ratio:       56.25%;   /* 9/16 * 100 */
}

/* ==========================================================================
   RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family:  var(--font);
  font-size:    var(--fs-base);
  line-height:  var(--lh);
  color:        var(--c-txt);
  background:   var(--c-bg);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--c-primary-dk); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--c-header-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  width: 100%;
}

.gpm-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --- Logo / Site Title --- */
.gpm-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gpm-branding .custom-logo-link img,
.gpm-branding .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary);
  margin: 0;
  line-height: 1.1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--c-primary-dk); }

.site-description {
  font-size: 11px;
  color: var(--c-txt-faint);
  margin: 2px 0 0;
}

/* --- Primary Nav --- */
.gpm-nav-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

#gpm-primary-nav {
  display: flex;
  align-items: center;
}

#gpm-primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

#gpm-primary-nav ul li { position: relative; }

#gpm-primary-nav ul li a {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-nav);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: var(--transition);
}

#gpm-primary-nav ul li a:hover,
#gpm-primary-nav ul li.current-menu-item > a,
#gpm-primary-nav ul li.current-menu-ancestor > a {
  color: var(--c-nav-hover);
  background: var(--c-primary-lt);
}

/* Dropdown */
#gpm-primary-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 180px;
  z-index: 600;
  flex-direction: column;
  gap: 0;
}
#gpm-primary-nav ul li:hover > ul { display: flex; }
#gpm-primary-nav ul li ul li a {
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
}

/* --- Search Button --- */
.gpm-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--c-txt-muted);
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: var(--transition);
  flex-shrink: 0;
}
.gpm-search-btn:hover { color: var(--c-primary); background: var(--c-primary-lt); }
.gpm-search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Hamburger --- */
.gpm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.gpm-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-nav);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Search Overlay --- */
.gpm-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9000;
  align-items: flex-start;
  padding-top: 80px;
}
.gpm-search-overlay.open { display: flex; }
.gpm-search-overlay-inner {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.gpm-search-overlay-inner .search-form {
  display: flex;
  border-radius: var(--radius);
  overflow: visible;          /* AdSense-safe: no overflow:hidden on wrappers */
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.gpm-search-overlay-inner input[type="search"] {
  flex: 1;
  border: none;
  padding: 15px 18px;
  font-size: 16px;
  font-family: var(--font);
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.gpm-search-overlay-inner input[type="submit"] {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font);
  font-size: 14px;
  transition: var(--transition);
}
.gpm-search-overlay-inner input[type="submit"]:hover { background: var(--c-primary-dk); }
.gpm-search-close {
  position: absolute;
  top: -52px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.gpm-search-close svg { stroke: #fff; width: 18px; height: 18px; fill: none; stroke-width: 2; }
.gpm-search-close:hover { background: rgba(255,255,255,.25); }

/* Mobile nav panel */
.gpm-mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 490;
  padding: 12px 0 16px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.gpm-mobile-nav.open { display: block; }
.gpm-mobile-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
.gpm-mobile-nav ul li a {
  display: block;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-nav);
  border-bottom: 1px solid var(--c-border-lt);
  transition: var(--transition);
}
.gpm-mobile-nav ul li a:hover,
.gpm-mobile-nav ul li.current-menu-item > a {
  color: var(--c-primary);
  background: var(--c-primary-lt);
}
.gpm-mobile-nav ul li ul { padding-left: 16px; }

/* ==========================================================================
   LAYOUT WRAPPER
   ========================================================================== */
/* AdSense note: .gpm-content-area uses display:grid NOT overflow:hidden
   so Auto Ads can expand into any column freely */
.gpm-content-area {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap) 20px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

.gpm-content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ==========================================================================
   POST CARD — 16:9 thumbnail ratio
   ========================================================================== */
.post-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-lt);
  box-shadow: var(--shadow);
  display: flex;
  align-items: stretch;
  margin-bottom: 20px;
  transition: var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Thumbnail — enforced 16:9 via aspect-ratio */
.post-card-thumb {
  flex-shrink: 0;
  width: 240px;
  position: relative;
}
.post-card-thumb a {
  display: block;
  width: 100%;
  /* 16:9 ratio via padding trick */
  padding-top: var(--card-ratio);
  position: relative;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: visible;         /* let Auto Ads breathe */
}
/* The actual img sits absolute inside the ratio box */
.post-card-thumb a::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--c-bg);
}
.post-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

/* No thumbnail fallback */
.post-card.no-thumb .post-card-thumb { display: none; }

/* Content area */
.post-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

/* Category badge */
.gpm-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.gpm-cat-badge::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--c-primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}
.gpm-cat-badge.cat-facebook  { color: var(--c-fb); }
.gpm-cat-badge.cat-facebook::before  { background: var(--c-fb); }
.gpm-cat-badge.cat-instagram { color: var(--c-ig); }
.gpm-cat-badge.cat-instagram::before { background: var(--c-ig); }
.gpm-cat-badge.cat-youtube   { color: var(--c-yt); }
.gpm-cat-badge.cat-youtube::before   { background: var(--c-yt); }

/* Entry title on card */
.post-card .entry-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-txt);
  margin: 0 0 9px;
}
.post-card .entry-title a { color: inherit; }
.post-card .entry-title a:hover { color: var(--c-primary); }

/* Excerpt */
.post-card .entry-excerpt {
  font-size: 13.5px;
  color: var(--c-txt-muted);
  line-height: 1.65;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;           /* excerpt clip — safe, not a main container */
}

/* Meta row */
.gpm-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12.5px;
  color: var(--c-txt-faint);
}
.gpm-meta .meta-author { font-weight: 600; color: var(--c-txt-muted); }
.gpm-meta .meta-sep { color: var(--c-border); }
.gpm-verified {
  display: inline-flex;
  width: 14px; height: 14px;
  background: var(--c-primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gpm-verified::after {
  content: '';
  width: 4px; height: 7px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Pagination */
.gpm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 28px 0 10px;
  flex-wrap: wrap;
}
.gpm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-txt-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.gpm-pagination .page-numbers:hover,
.gpm-pagination .page-numbers.current {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
/* Sticky sidebar — position:sticky is AdSense-safe */
.gpm-sidebar {
  position: sticky;
  top: 80px;
}

.gpm-widget {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-lt);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.gpm-widget-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--c-txt);
  padding: 13px 18px;
  margin: 0;
  border-bottom: 2px solid var(--c-primary);
  background: #fafafa;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* Constrain ALL SVG icons inside widget titles to 16×16 */
.gpm-widget-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 2;
}
.gpm-widget-body  { padding: 16px 18px; }
.gpm-follow-body  { padding: 12px 14px; }

/* Follow Us */
.gpm-follow-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: var(--transition);
}
.gpm-follow-btn:last-child { margin-bottom: 0; }
.gpm-follow-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.gpm-follow-btn:hover { color: #fff; opacity: .87; transform: translateX(3px); }
.gpm-follow-btn.fb  { background: var(--c-fb); }
.gpm-follow-btn.tw  { background: var(--c-tw); }
.gpm-follow-btn.ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.gpm-follow-btn.yt  { background: var(--c-yt); }

/* Recent Posts Widget */
.gpm-recent-item {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--c-border-lt);
  align-items: flex-start;
}
.gpm-recent-item:first-child { padding-top: 0; }
.gpm-recent-item:last-child  { border-bottom: none; padding-bottom: 0; }

.gpm-recent-thumb {
  flex-shrink: 0;
  width: 72px;
  border-radius: var(--radius);
  /* 16:9 ratio for sidebar thumbnails too */
  position: relative;
  padding-top: calc(72px * 9 / 16);
}
.gpm-recent-thumb a {
  display: block;
  position: absolute;
  inset: 0;
}
.gpm-recent-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: absolute;
  inset: 0;
  transition: transform .3s ease;
}
.gpm-recent-item:hover .gpm-recent-thumb img { transform: scale(1.06); }

.gpm-recent-info { flex: 1; min-width: 0; }
.gpm-recent-info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-txt);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;           /* text clamp — safe */
  margin-bottom: 4px;
  display: block;
}
.gpm-recent-info a:hover { color: var(--c-primary); }
.gpm-recent-date { font-size: 11px; color: var(--c-txt-faint); }

/* ==========================================================================
   SINGLE / ARTICLE PAGE
   ========================================================================== */
/* AdSense note: .gpm-article uses NO overflow:hidden so Auto Ads can insert
   in-content, anchor, vignette ads without obstruction */
.gpm-article {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-lt);
  box-shadow: var(--shadow);
}

/* Article header */
.gpm-article-header { padding: 28px 32px 0; }

.gpm-article-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.gpm-article-cat::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--c-primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.gpm-article-cat a { color: inherit; }

.gpm-article-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-txt);
  margin: 0 0 18px;
}

/* Author bar */
.gpm-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border-lt);
  flex-wrap: wrap;
  gap: 12px;
}
.gpm-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gpm-author-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
  overflow: visible;         /* allow avatar ring to show */
}
.gpm-author-av img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.gpm-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-txt);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.gpm-author-name a { color: inherit; }
.gpm-author-name a:hover { color: var(--c-primary); }
.gpm-pub-date { font-size: 11.5px; color: var(--c-txt-faint); margin-top: 2px; }

/* Top share icons */
.gpm-share-icons {
  display: flex;
  gap: 8px;
}
.gpm-share-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.gpm-share-icon svg { width: 15px; height: 15px; fill: #fff; }
.gpm-share-icon:hover { transform: scale(1.12); opacity: .88; }
.gpm-share-icon.wa { background: var(--c-wa); }
.gpm-share-icon.native { background: var(--c-txt-faint); }

/* Featured image — 16:9 */
.gpm-featured-img {
  margin: 22px 32px;
  border-radius: var(--radius-lg);
  /* 16:9 ratio via padding */
  position: relative;
  padding-top: 56.25%;
}
.gpm-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Article content
   AdSense note: paragraph gaps (margin-bottom: 1.5em) create natural
   insertion points for in-content Auto Ads */
.gpm-article-content {
  padding: 0 32px 32px;
}
.gpm-article-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-txt-muted);
  margin-bottom: 1.5em;
}
.gpm-article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-txt);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-primary-lt);
}
.gpm-article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-txt);
  margin: 28px 0 12px;
}
.gpm-article-content ul,
.gpm-article-content ol {
  margin: 0 0 1.5em 22px;
  color: var(--c-txt-muted);
  font-size: 15.5px;
  line-height: 1.8;
}
.gpm-article-content li { margin-bottom: .4em; }
.gpm-article-content blockquote {
  border-left: 4px solid var(--c-primary);
  background: var(--c-primary-lt);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-txt-muted);
}
.gpm-article-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}
.gpm-article-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}
.gpm-article-content a:hover {
  text-decoration-color: var(--c-primary);
}

/* ==========================================================================
   SHARE BAR (below article)
   AdSense note: no overflow:hidden, no z-index conflict
   ========================================================================== */
.gpm-share-bar {
  display: flex;
  border-radius: var(--radius);
  overflow: visible;           /* AdSense-safe */
  gap: 2px;
  margin: 6px 0;
}
.gpm-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.gpm-share-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.gpm-share-btn:hover { color: #fff; opacity: .87; }
.gpm-share-btn.fb  { background: var(--c-fb); }
.gpm-share-btn.tw  { background: var(--c-tw); }
.gpm-share-btn.wa  { background: var(--c-wa); }
.gpm-share-btn.tg  { background: var(--c-tg); }
.gpm-share-btn.ns  { background: var(--c-txt-faint); }

/* ==========================================================================
   AUTHOR BIO BOX
   ========================================================================== */
.gpm-author-bio {
  margin: 22px 0;
  padding: 20px;
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.gpm-author-bio-av {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--c-primary);
  flex-shrink: 0;
}
.gpm-author-bio-av img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.gpm-author-bio-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-txt);
  margin-bottom: 6px;
}
.gpm-author-bio-name a { color: inherit; }
.gpm-author-bio-name a:hover { color: var(--c-primary); }
.gpm-author-bio-desc {
  font-size: 13.5px;
  color: var(--c-txt-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.gpm-related { margin: 22px 0; }
.gpm-related-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--c-primary);
  padding: 10px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0;
}
.gpm-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border-lt);
  border: 1px solid var(--c-border-lt);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.gpm-related-card {
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: var(--transition);
}
.gpm-related-card:hover { background: var(--c-bg); }

/* 16:9 related thumbnail */
.gpm-related-thumb {
  position: relative;
  padding-top: 56.25%;          /* 16:9 */
}
.gpm-related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gpm-related-card:hover .gpm-related-thumb img { transform: scale(1.05); }

.gpm-related-info { padding: 12px; }
.gpm-related-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.gpm-related-cat::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--c-primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.gpm-related-info h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-txt);
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gpm-related-meta { font-size: 11px; color: var(--c-txt-faint); }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.gpm-comments { margin-top: 28px; }

.comment-respond {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-lt);
}
.comment-reply-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-txt);
  padding: 18px 24px;
  margin: 0;
  background: #fafafa;
  border-bottom: 1px solid var(--c-border-lt);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.comment-form { padding: 20px 24px; }
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-txt);
  margin-bottom: 5px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-txt);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.comment-form textarea { min-height: 130px; margin-bottom: 14px; }
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url { margin-bottom: 12px; }
.comment-form .comment-form-cookies-consent {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: var(--c-txt-faint);
  margin-bottom: 14px;
}
.form-submit input[type="submit"] {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .3px;
}
.form-submit input[type="submit"]:hover { background: var(--c-primary-dk); transform: translateY(-1px); }

/* ==========================================================================
   FOOTER
   AdSense note: footer uses no overflow:hidden so anchor ads appear above it
   ========================================================================== */
.gpm-footer {
  background: var(--c-foot-bg);
  margin-top: 0;
  position: relative;
}
.gpm-footer::before {
  content: '';
  display: block;
  height: 36px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
}
.gpm-footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.gpm-footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-foot-head);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(46,204,113,.25);
}
.gpm-footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}
.gpm-footer-logo img { max-height: 38px; width: auto; }
.gpm-footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-foot-head);
}
.gpm-footer-about {
  font-size: 13.5px;
  color: var(--c-foot-txt);
  line-height: 1.7;
  margin: 0;
}
.gpm-footer-links { list-style: none; margin: 0; padding: 0; }
.gpm-footer-links li { margin-bottom: 8px; }
.gpm-footer-links li a {
  font-size: 13.5px;
  color: var(--c-foot-link);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.gpm-footer-links li a::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--c-foot-head);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
  transition: var(--transition);
}
.gpm-footer-links li a:hover { color: var(--c-foot-head); padding-left: 4px; }
.gpm-footer-links li a:hover::before { opacity: 1; }

/* Footer Social Box */
.gpm-footer-social-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.gpm-footer-social-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.gpm-footer-social-head svg {
  width: 22px; height: 22px;
  stroke: var(--c-foot-head);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.gpm-footer-social-hl { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.gpm-footer-social-sub { font-size: 11px; color: var(--c-foot-txt); }
.gpm-footer-social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.gpm-fsocial-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.gpm-fsocial-icon svg { width: 16px; height: 16px; fill: #fff; }
.gpm-fsocial-icon:hover { transform: translateY(-3px); opacity: .87; }
.gpm-fsocial-icon.fb  { background: var(--c-fb); }
.gpm-fsocial-icon.tw  { background: var(--c-tw); }
.gpm-fsocial-icon.wa  { background: var(--c-wa); }
.gpm-fsocial-icon.ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.gpm-fsocial-icon.yt  { background: var(--c-yt); }
.gpm-fsocial-icon.tg  { background: var(--c-tg); }

.gpm-footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0 20px;
}
.gpm-footer-bar {
  background: var(--c-foot-bar);
  padding: 14px 20px;
  text-align: center;
}
.gpm-footer-bar p { font-size: 12.5px; color: var(--c-foot-txt); margin: 0; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 280px; }
}

@media (max-width: 900px) {
  .gpm-content-area {
    grid-template-columns: 1fr;
  }
  .gpm-sidebar { position: static; }
  .gpm-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  /* Header */
  .gpm-header-inner { height: 56px; }
  #gpm-primary-nav { display: none !important; } /* hidden — mobile nav used */
  .gpm-hamburger { display: flex; }
  .gpm-mobile-nav { top: 56px; max-height: calc(100vh - 56px); }

  /* Cards */
  .post-card-thumb { width: 150px; }
  .post-card-body { padding: 14px 16px; }
  .post-card .entry-title { font-size: 15px; }

  /* Article */
  .gpm-article-title { font-size: 22px; }
  .gpm-article-header,
  .gpm-article-content { padding-left: 18px; padding-right: 18px; }
  .gpm-featured-img { margin: 16px 18px; }

  /* Share bar — icons only on small screens */
  .gpm-share-btn span.btn-label { display: none; }

  /* Footer */
  .gpm-footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }

  /* Related */
  .gpm-related-grid { grid-template-columns: 1fr; }

  /* Author bio */
  .gpm-author-bio { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 500px) {
  .post-card { flex-direction: column; }
  .post-card-thumb {
    width: 100%;
    padding-top: 0;
  }
  /* Force 16:9 when stacked */
  .post-card-thumb a { padding-top: 56.25%; }
  .post-card-thumb img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .post-card-thumb a::before { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

  .gpm-related-grid { grid-template-columns: 1fr 1fr; }
  .gpm-share-bar { gap: 4px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .gpm-sidebar, .gpm-footer,
  .gpm-share-bar, .gpm-related, .gpm-comments { display: none !important; }
  .gpm-content-area { display: block; }
  body { background: #fff; font-size: 12pt; }
}
