/*
Theme Name: VoiceAgents247
Theme URI: https://voiceagents247.io/
Author: VoiceAgents247
Author URI: https://voiceagents247.io/
Description: Custom blog theme for VoiceAgents247 that matches the marketing homepage: white layout, full-bleed wave hero, blue accents, and the same nav, call-to-action and footer.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voiceagent247
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------- Design tokens (same as the homepage) ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #0b0f19;
  --muted: #5a6478;
  --accent: #0a6cff;
  --accent-2: #5b5ff0;
  --grad: linear-gradient(135deg, #0a6cff 0%, #5b5ff0 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 80, 0.05);
  --shadow: 0 18px 50px rgba(15, 30, 80, 0.12);
  --maxw: 1160px;
  --nav-h: 104px; /* header bar height: the hero paddings are measured from it */
  --prose: 720px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 3.75rem); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

::selection { background: rgba(10, 108, 255, 0.2); }

/* ---------- WordPress essentials ---------- */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; margin: 0;
  top: 0.75rem; left: 0.75rem; z-index: 1000;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: #fff; color: var(--accent); font-weight: 600; box-shadow: var(--shadow);
}
.alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; text-align: center; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.6em; }
.sticky, .bypostauthor { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 108, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); background: #005ae6; box-shadow: 0 12px 30px rgba(10, 108, 255, 0.38); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(15, 23, 42, 0.32); background: var(--bg-alt); }

.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(4, 20, 70, 0.25); }

.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.88rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 30px rgba(15, 30, 80, 0.06); }
.admin-bar .nav { top: 32px; }

/* Wider than the page content, so the large logo and the menu fit on one row. */
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1360px, 100% - 2.5rem); height: var(--nav-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 40px; width: auto; }

/* Scoped to .nav: WordPress pagination also uses a .nav-links class. */
.nav .nav-links { display: flex; align-items: center; gap: 2rem; font-size: 19px; color: var(--text); font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { white-space: nowrap; }
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_parent > a { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.nav-cta-mobile { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tighter nav spacing before it collapses into the burger menu */
@media (max-width: 1400px) {
  .nav .nav-links, .nav-menu { gap: 1.4rem; }
}
@media (max-width: 1300px) {
  .nav .nav-links, .nav-menu { gap: 1.1rem; }
}

/* Collapsed nav: drops down below the header (and the announcement bar, if shown) */
@media (max-width: 1260px) {
  .nav .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 30, 80, 0.1);
    padding: 1.4rem 1.6rem 1.8rem; gap: 1.1rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-cta-mobile { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
}

/* --- Customer login button (phones and tablets) --- */
.login-btn { display: none; }
@media (max-width: 1260px) {
  .nav-actions { gap: 0.6rem; }
  .nav .nav-links .nav-login { display: none; } /* shown as its own button instead */
  .login-btn,
  .nav-burger {
    height: 42px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f2f4f7);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  }
  .login-btn {
    display: inline-flex; align-items: center; padding: 0 1rem;
    font-size: 0.92rem; font-weight: 500; color: var(--text); white-space: nowrap;
  }
  .login-btn:hover { color: var(--accent); }
  .nav-burger { width: 42px; padding: 0; align-items: center; justify-content: center; }
}
/* Phones: a smaller logo and a shorter header bar, so the logo, login button and menu button all fit. */
@media (max-width: 600px) {
  :root { --nav-h: 80px; }
  .nav .brand img { width: auto; height: 64px; }
}
@media (max-width: 480px) {
  :root { --nav-h: 72px; }
  .nav .nav-inner { width: calc(100% - 1.5rem); gap: 0.5rem; }
  .nav .brand img { height: 58px; }
  .nav-actions { gap: 0.4rem; }
  .login-btn, .nav-burger { height: 38px; }
  .login-btn { padding: 0 0.7rem; font-size: 0.85rem; }
  .nav-burger { width: 38px; }
}
@media (max-width: 352px) {
  :root { --nav-h: 68px; }
  .nav .brand img { height: 44px; }
}

/* --- Announcement bar (under the nav) --- */
.announce {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0.45rem 3rem;
  background: var(--accent); color: #fff;
  font-size: 0.88rem; font-style: italic; text-align: center;
}
.announce a:hover { text-decoration: underline; }
.announce-close {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 0.85rem; font-style: normal; color: #fff;
}
.announce-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Wave hero (shared by blog and article headers) ---------- */
/* Pushed down so the wave sits under the text on clean white, like the homepage hero. */
.hero-image {
  position: absolute; inset: 35% 0 auto 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  pointer-events: none;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.8rem; }

.blog-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 7rem) 0 7rem; background: #fff; text-align: center; }
.blog-hero-inner { position: relative; }
.blog-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 auto 1.2rem;
}
.blog-hero .hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); font-weight: 500; color: #1f2737; max-width: 38rem; margin-inline: auto; line-height: 1.55; text-wrap: balance; }

/* ---------- Blog grid ---------- */
.blog-main { padding: 4rem 0 5rem; }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; max-width: 52rem; margin: 0 auto; }
.chip {
  padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-chips { margin-bottom: 2.6rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.post-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(10, 108, 255, 0.28); box-shadow: var(--shadow); }

.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }

.thumb-fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%; color: #fff;
  background: radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.35), transparent 55%), var(--grad);
}
.thumb-fallback--1 { background: radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.35), transparent 55%), linear-gradient(135deg, #38bdf8 0%, #0a6cff 100%); }
.thumb-fallback--2 { background: radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.3), transparent 55%), linear-gradient(135deg, #5b5ff0 0%, #8b5cf6 100%); }
.thumb-fallback--3 { background: radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.35), transparent 55%), linear-gradient(135deg, #0ea5e9 0%, #5b5ff0 100%); }
.thumb-fallback svg { width: 26%; max-width: 140px; height: auto; }

.post-body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.post-cat {
  align-self: flex-start;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(10, 108, 255, 0.08); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
.post-cat:hover { background: rgba(10, 108, 255, 0.14); }
.post-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 0.94rem; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.3rem; font-size: 0.84rem; color: var(--muted); }
.meta-avatar { width: 28px; height: 28px; border-radius: 50%; }
.meta-author { color: var(--text); font-weight: 600; }

/* --- Featured (newest) post --- */
.post-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 2.4rem; }
.post-card--featured .post-thumb { aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-body { justify-content: center; gap: 1rem; padding: 2.6rem; }
.post-card--featured .post-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.15; }
.post-card--featured .post-excerpt { font-size: 1.02rem; }
.post-card--featured .post-meta { margin-top: 0.4rem; }

/* --- Pagination --- */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 600; font-size: 0.92rem;
}
.pagination a.page-numbers:hover { border-color: var(--line-strong); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

.no-results { text-align: center; padding: 2rem 0; }
.no-results h2 { font-size: 1.6rem; letter-spacing: -0.025em; }
.no-results p { color: var(--muted); margin: 0.6rem 0 1.6rem; }

/* ---------- Single article ---------- */
.article-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 6rem) 0 3.5rem; background: #fff; text-align: center; }
.article-hero .hero-image { opacity: 0.5; }
.article-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.article-hero .post-cat { align-self: center; }
.article-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.04em; max-width: 20ch; text-wrap: balance; }
.article-dek { max-width: 40rem; font-size: 1.15rem; color: #1f2737; text-wrap: balance; }
.article-hero .post-meta { justify-content: center; margin-top: 0.2rem; font-size: 0.92rem; }
.article-hero .meta-avatar { width: 32px; height: 32px; }

.article-figure { width: min(1000px, 100% - 2.5rem); margin: 0 auto 3.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-figure img { width: 100%; }
.article-hero + .entry-content { margin-top: 1rem; }

/* --- Post content typography --- */
.entry-content { width: min(var(--prose), 100% - 2.5rem); margin-inline: auto; font-size: 1.09rem; line-height: 1.75; color: #1f2737; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); letter-spacing: -0.025em; line-height: 1.25; }
.entry-content h2 { font-size: 1.75rem; font-weight: 750; margin-top: 2.2em; }
.entry-content h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.9em; }
.entry-content h4 { font-size: 1.12rem; font-weight: 700; margin-top: 1.7em; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: 0.7em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content strong { color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 0.2em 0 0.2em 1.3em; font-size: 1.22rem; font-weight: 500; line-height: 1.55; color: var(--text); }
.entry-content blockquote cite { display: block; margin-top: 0.7em; font-size: 0.9rem; font-style: normal; color: var(--muted); }
.entry-content img { border-radius: 14px; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.6em; }
.entry-content code { background: var(--bg-alt); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.88em; }
.entry-content pre { background: #0b1020; color: #e6e9f5; padding: 1.2rem 1.4rem; border-radius: 14px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; }
.entry-content pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--text); }
.entry-content .alignwide { width: min(1000px, 100vw - 2.5rem); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content .wp-block-button__link { background: var(--accent); color: #fff; border-radius: 10px; padding: 0.8rem 1.4rem; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: #005ae6; }
.page-links { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; }

/* --- Article footer: tags, author, prev/next --- */
.article-footer { display: flex; flex-direction: column; gap: 2rem; width: min(var(--prose), 100% - 2.5rem); margin: 3rem auto 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags a {
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.article-tags a:hover { color: var(--accent); border-color: rgba(10, 108, 255, 0.35); }

.author-box { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-alt); }
.author-box .avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.author-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.author-name { font-size: 1.05rem; font-weight: 700; }
.author-name a:hover { color: var(--accent); }
.author-bio { margin-top: 0.3rem; font-size: 0.93rem; color: var(--muted); }

.post-navigation { width: min(var(--prose), 100% - 2.5rem); margin: 2.5rem auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a {
  display: flex; flex-direction: column; gap: 0.3rem; height: 100%;
  padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-navigation a:hover { border-color: rgba(10, 108, 255, 0.3); box-shadow: var(--shadow); }
.post-nav-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.post-nav-title { font-weight: 700; line-height: 1.35; }

/* --- Related posts --- */
.related { padding: 5rem 0 1rem; }
/* Center the cards when a post has fewer than three related posts. */
.related .post-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 370px)); justify-content: center; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }

/* --- Comments --- */
.comments-area { width: min(var(--prose), 100% - 2.5rem); margin: 4rem auto 0; }
.comments-title, .comment-reply-title { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 1.3rem; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.comment-reply-title small a { color: var(--accent); }
.comment-list, .comment-list .children { list-style: none; }
.comment-list .children { margin-left: 2rem; }
.comment-body { margin-bottom: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin-bottom: 0.6rem; font-size: 0.86rem; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.comment-author .avatar { width: 36px; height: 36px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a:hover { color: var(--accent); }
.comment-content { font-size: 0.97rem; }
.comment-content p + p { margin-top: 0.8em; }
.reply { margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; }
.reply a { color: var(--accent); }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-notes, .logged-in-as { font-size: 0.88rem; color: var(--muted); }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: rgba(10, 108, 255, 0.55); box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.12); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; margin-bottom: 1rem; font-weight: 600; color: var(--accent); }

/* ---------- Final CTA ---------- */
.cta { padding: 5.5rem 0 6.5rem; }
.cta-box {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(255, 255, 255, 0.28), transparent 70%),
    var(--grad);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  box-shadow: 0 24px 60px rgba(10, 108, 255, 0.28);
}
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.cta-box > p { color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; max-width: 30rem; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 20rem; }
.footer-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem !important; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b886; box-shadow: 0 0 10px rgba(18, 184, 134, 0.6); animation: statusBlink 2.4s infinite; }
@keyframes statusBlink { 50% { opacity: 0.5; } }

.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text); margin-bottom: 0.35rem; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card--featured .post-body { padding: 1.6rem; }
}

@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: calc(var(--nav-h) + 5.5rem) 0 5rem; }
  .blog-main { padding-top: 2.5rem; }
  .hero-image { object-position: 30% 50%; }
  .hero-fade { height: 12%; }
  .article-hero { padding-top: calc(var(--nav-h) + 5rem); }
  .entry-content { font-size: 1.03rem; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
  .comment-list .children { margin-left: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
