/*
Theme Name: Pool Owner Guide
Theme URI: https://poolownerguide.com
Author: Apexxal Digital Solutions
Author URI: https://apexxal.com
Description: Conversion-focused custom theme for PoolOwnerGuide.com - the honest guide for first-time pool owners. Fully Elementor Pro compatible with all theme builder locations registered.
Version: 1.0.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poolownerguide
Tags: blog, custom-menu, featured-images, one-column, two-columns
*/

/* ==========================================================================
   1. CSS VARIABLES + RESET
   ========================================================================== */
:root {
  --pog-blue: #0B4F7A;
  --pog-blue-light: #1A6FA0;
  --pog-teal: #00B4D8;
  --pog-orange: #F97316;
  --pog-orange-dark: #EA580C;
  --pog-sand: #F5F0E8;
  --pog-dark: #0F172A;
  --pog-text: #1E293B;
  --pog-text-light: #64748B;
  --pog-white: #FFFFFF;
  --pog-gray-bg: #F1F5F9;
  --pog-border: #E2E8F0;
  --pog-radius: 14px;
  --pog-shadow: 0 4px 20px rgba(11, 79, 122, 0.08);
  --pog-shadow-lg: 0 16px 40px rgba(11, 79, 122, 0.16);
  --pog-font-display: 'Fraunces', Georgia, serif;
  --pog-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--pog-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--pog-text);
  background: var(--pog-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pog-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pog-teal); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pog-font-display);
  color: var(--pog-dark);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
:focus-visible { outline: 3px solid var(--pog-teal); outline-offset: 2px; }

.pog-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pog-section { padding: 80px 0; }

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

/* ==========================================================================
   3. HEADER + NAVIGATION
   ========================================================================== */
.pog-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pog-border);
}
.pog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.pog-logo {
  font-family: var(--pog-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pog-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.pog-logo:hover { color: var(--pog-blue); }
.pog-logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pog-blue), var(--pog-teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.pog-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.pog-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--pog-text);
  padding: 6px 0;
  position: relative;
}
.pog-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--pog-teal);
  transition: width .25s ease;
}
.pog-nav a:hover::after, .pog-nav .current-menu-item a::after { width: 100%; }
.pog-header-cta {
  background: var(--pog-orange);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.pog-header-cta:hover { background: var(--pog-orange-dark); transform: translateY(-1px); }
.pog-hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.pog-hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--pog-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.pog-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pog-hamburger.is-open span:nth-child(2) { opacity: 0; }
.pog-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   4. HERO + WATER RIPPLES
   ========================================================================== */
.pog-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B4F7A 0%, #1A6FA0 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0;
}
.pog-ripple {
  position: absolute;
  border: 2px solid rgba(0, 180, 216, 0.2);
  border-radius: 50%;
  animation: pog-ripple 6s ease-out infinite;
  pointer-events: none;
}
.pog-ripple:nth-child(1) { width: 300px; height: 300px; top: 12%; left: 55%; animation-delay: 0s; }
.pog-ripple:nth-child(2) { width: 200px; height: 200px; top: 60%; left: 8%; animation-delay: 2s; }
.pog-ripple:nth-child(3) { width: 420px; height: 420px; top: 40%; left: 70%; animation-delay: 4s; }
.pog-ripple:nth-child(4) { width: 150px; height: 150px; top: 20%; left: 20%; animation-delay: 3s; }
@keyframes pog-ripple {
  0%   { transform: scale(0.4); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pog-ripple { animation: none; opacity: .25; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
.pog-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.pog-eyebrow {
  display: inline-block;
  background: rgba(0, 180, 216, 0.18);
  border: 1px solid rgba(0, 180, 216, 0.45);
  color: #7DE3F7;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pog-hero h1 { color: #fff; margin-bottom: 20px; }
.pog-hero h1 .pog-teal-line { display: block; color: var(--pog-teal); }
.pog-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 34px;
}
.pog-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.pog-btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: 0;
  text-align: center;
}
.pog-btn-primary {
  background: var(--pog-orange);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.pog-btn-primary:hover { background: var(--pog-orange-dark); transform: translateY(-2px); }
.pog-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.pog-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.pog-hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 26px;
  flex-wrap: wrap;
}
.pog-stat-num {
  font-family: var(--pog-font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pog-teal);
  display: block;
}
.pog-stat-label { font-size: .82rem; color: rgba(255, 255, 255, 0.7); }

/* Hero checklist card */
.pog-checklist-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(3, 20, 35, 0.45);
  color: var(--pog-text);
  position: relative;
  overflow: hidden;
}
.pog-checklist-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(0, 180, 216, 0.12), transparent);
  transform: rotate(20deg) translateX(-120%);
  transition: transform .9s ease;
  pointer-events: none;
}
.pog-checklist-card:hover::before { transform: rotate(20deg) translateX(380%); }
.pog-checklist-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.pog-checklist-card ul { list-style: none; margin: 0; padding: 0; }
.pog-checklist-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--pog-border);
  font-size: .93rem;
}
.pog-checklist-card li:last-child { border-bottom: 0; }
.pog-check-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.14);
  color: var(--pog-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pog-check-freq {
  margin-left: auto;
  font-size: .74rem;
  font-weight: 600;
  color: var(--pog-text-light);
  background: var(--pog-gray-bg);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   5. PANIC QUICK-HELP GRID
   ========================================================================== */
.pog-panic { background: var(--pog-blue); color: #fff; }
.pog-panic-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pog-panic-head h2 { color: #fff; }
.pog-panic-head p { color: rgba(255, 255, 255, 0.75); }
.pog-panic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pog-panic-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pog-radius);
  padding: 26px 24px;
  position: relative;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
  display: block;
  color: #fff;
}
.pog-panic-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 180, 216, 0.5);
  color: #fff;
}
.pog-panic-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.pog-panic-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.pog-panic-card p { color: rgba(255, 255, 255, 0.72); font-size: .9rem; margin-bottom: 14px; }
.pog-fix-time {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--pog-teal);
  background: rgba(0, 180, 216, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
}
.pog-urgent-dot {
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pog-pulse 1.8s infinite;
}
@keyframes pog-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   6. CATEGORY CARDS
   ========================================================================== */
.pog-cats { background: var(--pog-sand); }
.pog-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.pog-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pog-cat-card {
  background: #fff;
  border-radius: var(--pog-radius);
  padding: 30px 28px;
  box-shadow: var(--pog-shadow);
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--pog-text);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pog-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--cat-accent, var(--pog-teal));
  transition: width .35s ease;
}
.pog-cat-card:hover { transform: translateY(-5px); box-shadow: var(--pog-shadow-lg); color: var(--pog-text); }
.pog-cat-card:hover::before { width: 100%; }
.pog-cat-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.pog-cat-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.pog-cat-card p { color: var(--pog-text-light); font-size: .92rem; margin-bottom: 16px; }
.pog-cat-count {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--pog-blue);
  background: rgba(11, 79, 122, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   7. BLOG POST CARDS
   ========================================================================== */
.pog-posts { background: var(--pog-gray-bg); }
.pog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pog-post-card {
  background: #fff;
  border-radius: var(--pog-radius);
  overflow: hidden;
  box-shadow: var(--pog-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.pog-post-card:hover { transform: translateY(-5px); box-shadow: var(--pog-shadow-lg); }
.pog-post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pog-blue), var(--pog-teal));
  overflow: hidden;
}
.pog-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pog-post-card:hover .pog-post-thumb img { transform: scale(1.05); }
.pog-post-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pog-blue);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.pog-post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pog-post-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pog-post-body h3 a { color: var(--pog-dark); }
.pog-post-body h3 a:hover { color: var(--pog-blue); }
.pog-post-excerpt { color: var(--pog-text-light); font-size: .92rem; flex: 1; }
.pog-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: var(--pog-text-light);
  margin: 14px 0;
}
.pog-readmore { font-weight: 600; font-size: .92rem; color: var(--pog-orange); }
.pog-readmore:hover { color: var(--pog-orange-dark); }
.pog-posts-cta { text-align: center; margin-top: 48px; }
.pog-empty-posts {
  background: #fff;
  border: 2px dashed var(--pog-border);
  border-radius: var(--pog-radius);
  padding: 60px 30px;
  text-align: center;
  color: var(--pog-text-light);
}

/* ==========================================================================
   8. NEWSLETTER
   ========================================================================== */
.pog-newsletter { background: linear-gradient(135deg, #0B4F7A, #106089); color: #fff; }
.pog-newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pog-newsletter h2 { color: #fff; }
.pog-newsletter-benefits { list-style: none; margin: 24px 0 0; padding: 0; }
.pog-newsletter-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: .96rem;
}
.pog-newsletter-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 34px;
  color: var(--pog-text);
  box-shadow: 0 24px 60px rgba(3, 20, 35, 0.35);
}
.pog-newsletter-form-card h3 { font-size: 1.2rem; }
.pog-field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--pog-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--pog-font-body);
  margin-bottom: 14px;
  transition: border-color .2s ease;
}
.pog-field:focus { border-color: var(--pog-teal); outline: none; }
.pog-form-note { font-size: .78rem; color: var(--pog-text-light); margin: 12px 0 0; }
.pog-form-msg { font-size: .9rem; font-weight: 600; margin-top: 12px; display: none; }
.pog-form-msg.is-success { display: block; color: #059669; }
.pog-form-msg.is-error { display: block; color: #DC2626; }

/* ==========================================================================
   9. TRUST BAR
   ========================================================================== */
.pog-trust { background: var(--pog-dark); color: #fff; padding: 44px 0; }
.pog-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.pog-trust-item { font-size: .9rem; color: rgba(255, 255, 255, 0.8); }
.pog-trust-item strong { display: block; color: var(--pog-teal); font-size: 1.05rem; margin-bottom: 4px; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.pog-footer { background: var(--pog-dark); color: rgba(255, 255, 255, 0.72); padding: 70px 0 0; }
.pog-footer a { color: rgba(255, 255, 255, 0.72); }
.pog-footer a:hover { color: var(--pog-teal); }
.pog-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pog-footer h4 { color: #fff; font-size: 1rem; font-family: var(--pog-font-body); font-weight: 700; margin-bottom: 18px; }
.pog-footer ul { list-style: none; margin: 0; padding: 0; }
.pog-footer li { margin-bottom: 10px; font-size: .92rem; }
.pog-footer-tagline { font-size: .95rem; max-width: 300px; }
.pog-footer-disclosure {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pog-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .84rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   11. SINGLE POST + PAGE
   ========================================================================== */
.pog-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  padding: 60px 0;
}
.pog-breadcrumbs { font-size: .82rem; color: var(--pog-text-light); margin-bottom: 20px; }
.pog-breadcrumbs a { color: var(--pog-text-light); }
.pog-breadcrumbs a:hover { color: var(--pog-blue); }
.pog-entry-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--pog-text-light);
  font-size: .88rem;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.pog-entry-cat {
  background: rgba(0, 180, 216, 0.12);
  color: var(--pog-blue);
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 13px;
  border-radius: 999px;
}
.pog-disclosure-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.07), rgba(11, 79, 122, 0.05));
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 32px;
  font-size: .86rem;
  color: var(--pog-text-light);
}
.pog-disclosure-seal {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pog-blue), var(--pog-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pog-disclosure-badge strong { color: var(--pog-blue); display: block; margin-bottom: 2px; font-size: .9rem; }
.pog-entry-content h2 { margin-top: 1.6em; }
.pog-entry-content h3 { margin-top: 1.3em; }
.pog-entry-content img { border-radius: var(--pog-radius); margin: 1.5em 0; }
.pog-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .92rem;
}
.pog-entry-content th {
  background: var(--pog-blue);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
}
.pog-entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--pog-border); }
.pog-entry-content tr:nth-child(even) td { background: var(--pog-gray-bg); }
.pog-entry-content blockquote {
  border-left: 4px solid var(--pog-teal);
  background: var(--pog-sand);
  margin: 1.5em 0;
  padding: 18px 24px;
  border-radius: 0 var(--pog-radius) var(--pog-radius) 0;
  font-style: italic;
}
.pog-entry-featured { border-radius: var(--pog-radius); overflow: hidden; margin-bottom: 32px; }

/* Sidebar */
.pog-sidebar { position: relative; }
.pog-widget {
  background: #fff;
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius);
  padding: 26px;
  margin-bottom: 28px;
}
.pog-widget h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--pog-font-body);
  font-weight: 700;
  color: var(--pog-text-light);
  margin-bottom: 16px;
}
.pog-widget ul { list-style: none; margin: 0; padding: 0; }
.pog-widget li { margin-bottom: 10px; font-size: .92rem; }
.pog-toc-widget { position: sticky; top: 96px; }
.pog-toc a { display: block; padding: 5px 0; color: var(--pog-text-light); font-size: .9rem; }
.pog-toc a:hover, .pog-toc a.is-active { color: var(--pog-blue); font-weight: 600; }
.pog-toc .pog-toc-h3 { padding-left: 18px; font-size: .84rem; }
.pog-sidebar-newsletter { background: var(--pog-blue); color: #fff; border: 0; }
.pog-sidebar-newsletter h4 { color: var(--pog-teal); }
.pog-sidebar-newsletter p { font-size: .88rem; color: rgba(255, 255, 255, 0.85); }

/* Author box */
.pog-author-box {
  display: flex;
  gap: 20px;
  background: var(--pog-sand);
  border-radius: var(--pog-radius);
  padding: 28px;
  margin: 48px 0 0;
  align-items: flex-start;
}
.pog-author-avatar img { border-radius: 50%; width: 72px; height: 72px; }
.pog-author-box h4 { margin-bottom: 6px; font-size: 1.05rem; }
.pog-author-box p { font-size: .9rem; color: var(--pog-text-light); margin: 0; }

/* ==========================================================================
   12. ARCHIVES, BLOG, SEARCH, 404
   ========================================================================== */
.pog-archive-hero {
  background: linear-gradient(135deg, var(--pog-blue), var(--pog-blue-light));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.pog-archive-hero h1 { color: #fff; margin-bottom: 10px; }
.pog-archive-hero p { color: rgba(255, 255, 255, 0.8); max-width: 560px; margin: 0 auto; }
.pog-archive-body { padding: 60px 0 80px; background: var(--pog-gray-bg); }
.pog-searchbar { max-width: 560px; margin: -28px auto 48px; position: relative; z-index: 3; }
.pog-searchbar form { display: flex; box-shadow: var(--pog-shadow-lg); border-radius: 999px; overflow: hidden; background: #fff; }
.pog-searchbar input[type="search"] {
  flex: 1;
  border: 0;
  padding: 17px 26px;
  font-size: 1rem;
  font-family: var(--pog-font-body);
}
.pog-searchbar input[type="search"]:focus { outline: none; }
.pog-searchbar button {
  background: var(--pog-orange);
  color: #fff;
  border: 0;
  padding: 0 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
}
.pog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pog-border);
  font-weight: 600;
  font-size: .9rem;
}
.pog-pagination .current { background: var(--pog-blue); color: #fff; border-color: var(--pog-blue); }
.pog-404 { text-align: center; padding: 110px 24px; }
.pog-404 .pog-404-code {
  font-family: var(--pog-font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--pog-teal);
  line-height: 1;
}

/* ==========================================================================
   13. FORMS (contact page)
   ========================================================================== */
.pog-contact-form { max-width: 640px; }
.pog-contact-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
textarea.pog-field { min-height: 160px; resize: vertical; }

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .pog-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .pog-panic-grid, .pog-cat-grid, .pog-post-grid { grid-template-columns: repeat(2, 1fr); }
  .pog-single-layout { grid-template-columns: 1fr; }
  .pog-toc-widget { position: static; }
  .pog-footer-grid { grid-template-columns: 1fr 1fr; }
  .pog-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pog-newsletter-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .pog-section { padding: 56px 0; }
  .pog-hero { min-height: 0; padding: 70px 0; }
  .pog-checklist-card { display: none; }
  .pog-panic-grid, .pog-cat-grid, .pog-post-grid { grid-template-columns: 1fr; }
  .pog-hero-stats { gap: 24px; }
  .pog-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--pog-border);
    box-shadow: var(--pog-shadow-lg);
    padding: 18px 24px 26px;
  }
  .pog-nav.is-open { display: block; }
  .pog-nav ul { flex-direction: column; gap: 4px; }
  .pog-nav a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .pog-hamburger { display: block; }
  .pog-header-cta { display: none; }
  .pog-footer-grid { grid-template-columns: 1fr; }
  .pog-footer-bottom { flex-direction: column; text-align: center; }
  .pog-trust-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. UX ADDITIONS (v1.0.1): skip link, post nav, back-to-top
   ========================================================================== */
.pog-skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto;
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  background: var(--pog-orange); color: #fff;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}

.pog-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.pog-post-nav a {
  display: block; padding: 18px 20px;
  border: 1px solid #E2E8F0; border-radius: 12px;
  color: #1E293B; font-weight: 600; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pog-post-nav a:hover {
  border-color: var(--pog-teal);
  box-shadow: 0 6px 20px rgba(11, 79, 122, .12);
  transform: translateY(-2px);
}
.pog-nav-label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #64748B; margin-bottom: 6px;
}
.pog-nav-next { text-align: right; }

.pog-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 998;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--pog-blue); color: #fff;
  font-size: 1.2rem; line-height: 1;
  box-shadow: 0 6px 20px rgba(11, 79, 122, .35);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.pog-totop.is-visible { opacity: 1; transform: translateY(0); }
.pog-totop:hover { background: var(--pog-teal); }
@media (prefers-reduced-motion: reduce) {
  .pog-totop { transition: none; }
}
@media (max-width: 600px) {
  .pog-post-nav { grid-template-columns: 1fr; }
  .pog-nav-next { text-align: left; }
  .pog-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
