/*
Theme Name: NegaWatt
Theme URI: https://negawatt.com/blog
Author: NegaWatt Energy Solutions
Description: Official NegaWatt blog theme — matches the main negawatt.com brand.
Version: 1.0.0
License: Private
Text Domain: negawatt
*/

/* ─────────────────────────────────────────────────────────────────────
   DESIGN SYSTEM  (mirrors css/style.css on the main site)
───────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #252D3D;
  --navy-mid: #2E3B4E;
  --navy-deep: #1A2130;
  --green: #6BBF40;
  --green-dark: #4E9B2E;
  --green-muted: rgba(107, 191, 64, 0.12);
  --green-border: rgba(107, 191, 64, 0.28);
  --white: #FFFFFF;
  --light: #F4F6F8;
  --gray: #4B5563;
  --gray-light: #9CA3AF;
  --border: #E5E7EB;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1280px;
  --nav-h: 100px;
  --radius: 6px;
  --ease: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(14px, 4vw, 16px);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── CONTAINER ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-title.light {
  color: var(--white);
}

.section-intro {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: var(--gray);
  max-width: 620px;
  margin-top: 0.9rem;
  line-height: 1.72;
}

.section-intro.light {
  color: rgba(255, 255, 255, 0.90);
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn .arrow {
  transition: transform var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow var(--ease);
  overflow: visible;
}

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  background: var(--white);
  border-radius: 6px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  transition: opacity var(--ease);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav__logo:hover {
  opacity: 0.88;
}

.nav__logo img {
  height: 120px;
  width: auto;
  margin: 30px 0 0 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  transition: color var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links .nav__cta {
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.nav__links .nav__cta::after {
  display: none;
}

.nav__links .nav__cta:hover {
  background: var(--green-dark);
  color: var(--white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1.5rem 2rem 2rem;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color var(--ease);
}

.nav__mobile a:hover {
  color: var(--green);
}

.nav__mobile a:last-child {
  border-bottom: none;
  color: var(--green);
  margin-top: 0.5rem;
}

/* ── PAGE HERO ───────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: var(--nav-h);
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 191, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 191, 64, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.page-hero__content .section-title {
  color: var(--white);
  font-size: clamp(1.5rem, 6vw, 4rem);
}

.page-hero__content .section-intro {
  color: rgba(255, 255, 255, 0.90);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer__logo-wrap {
  background: var(--white);
  display: inline-flex;
  border-radius: 6px;
  padding: 10px 20px;
  margin-bottom: 1.25rem;
}

.footer__logo-wrap img {
  height: 120px;
  width: auto;
}

.footer__brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 270px;
}

.footer__col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1.2rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--ease);
}

.footer__links a:hover {
  color: var(--green);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-bottom: 1rem;
}

.footer__contact-item .lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer__contact-item .val,
.footer__contact-item a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--ease);
}

.footer__contact-item a:hover {
  color: var(--green);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer__tagline {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ─────────────────────────────────────────────────────────────────
   BLOG LAYOUT
───────────────────────────────────────────────────────────────── */

.blog-wrap {
  padding: 5rem 0;
  background: var(--light);
  overflow-x: hidden;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── POST CARDS (archive / index) ────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(37, 45, 61, 0.07);
  transition: all var(--ease);
  display: grid;
  grid-template-columns: 340px 1fr;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(37, 45, 61, 0.13);
}

.post-card__img {
  overflow: hidden;
  position: relative;
  background: var(--navy-mid);
  min-height: 240px;
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.post-card:hover .post-card__img img {
  transform: scale(1.05);
}

.post-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__img-placeholder svg {
  width: 48px;
  height: 48px;
  fill: rgba(107, 191, 64, 0.4);
}

.post-card__body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.post-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

.post-card__cat a {
  color: inherit;
}

.post-card__cat a:hover {
  color: var(--green-dark);
}

.post-card__date {
  font-size: 0.75rem;
  color: var(--gray-light);
}

.post-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  transition: color var(--ease);
}

.post-card:hover .post-card__title {
  color: var(--green);
}

.post-card__title a {
  color: inherit;
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: auto;
  transition: gap var(--ease);
}

.post-card__read-more:hover {
  gap: 0.8rem;
}

/* ── PAGINATION ──────────────────────────────────────────────────── */
.blog-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--ease);
  margin: 0;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.blog-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  width: auto;
  padding: 0 0.25rem;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 1.1rem;
  white-space: nowrap;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.widget {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 16px rgba(37, 45, 61, 0.06);
}

.widget__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}

.widget_recent_entries ul,
.widget_categories ul,
.widget_archive ul,
.widget_pages ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.widget_recent_entries li,
.widget_categories li,
.widget_archive li,
.widget_pages li {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.widget_recent_entries li:last-child,
.widget_categories li:last-child,
.widget_archive li:last-child,
.widget_pages li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget_recent_entries a,
.widget_categories a,
.widget_archive a,
.widget_pages a {
  font-size: 0.88rem;
  color: var(--navy);
  transition: color var(--ease);
  line-height: 1.45;
}

.widget_recent_entries a:hover,
.widget_categories a:hover,
.widget_archive a:hover,
.widget_pages a:hover {
  color: var(--green);
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: 0;
}

.widget_search .search-field {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--ease);
}

.widget_search .search-field:focus {
  border-color: var(--green);
}

.widget_search .search-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background var(--ease);
}

.widget_search .search-submit:hover {
  background: var(--green-dark);
}

/* ── SINGLE POST ─────────────────────────────────────────────────── */
.post-hero {
  position: relative;
  padding-top: var(--nav-h);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(37, 45, 61, 0.95) 0%,
      rgba(37, 45, 61, 0.55) 60%,
      transparent 100%);
}

.post-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 191, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 191, 64, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.post-hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  max-width: 860px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.post-hero__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(107, 191, 64, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.post-hero__cat a {
  color: inherit;
}

.post-hero__date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.post-hero__read-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.post-hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.post-hero__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-hero__author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* ── ARTICLE CONTENT ─────────────────────────────────────────────── */
.post-wrap {
  padding: 5rem 0;
  background: var(--light);
  overflow-x: hidden;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.post-content-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 2px 20px rgba(37, 45, 61, 0.07);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 2rem 0 0.9rem;
}

.post-content h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
}

.post-content h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
}

.post-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.post-content p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

.post-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(107, 191, 64, 0.4);
  transition: text-decoration-color var(--ease), color var(--ease);
}

.post-content a:hover {
  color: var(--green-dark);
  text-decoration-color: var(--green-dark);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-content ul {
  list-style: none;
  margin-left: 0;
}

.post-content ul li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--gray);
  line-height: 1.7;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.post-content ol li {
  color: var(--gray);
  line-height: 1.7;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--green);
  background: var(--green-muted);
  border-radius: 0 6px 6px 0;
}

.post-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 0;
}

.post-content img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content pre {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.post-content code {
  font-size: 0.88em;
  background: rgba(37, 45, 61, 0.07);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  color: var(--navy);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content tr:nth-child(even) td {
  background: var(--light);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Post tags */
.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tags__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  transition: all var(--ease);
}

.post-tag:hover {
  background: var(--green-muted);
  border-color: var(--green-border);
  color: var(--green);
}

/* Post nav (prev / next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--light);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.post-nav__item:hover {
  background: var(--green-muted);
  border-color: var(--green-border);
  transform: translateY(-2px);
}

.post-nav__item.next {
  align-items: flex-end;
  text-align: right;
}

.post-nav__dir {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.post-nav__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* ── RELATED POSTS ───────────────────────────────────────────────── */
.related-posts {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 3rem 3rem;
  margin-top: 2rem;
  box-shadow: 0 2px 20px rgba(37, 45, 61, 0.07);
}

.related-posts__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

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

.related-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--ease);
}

.related-card:hover {
  border-color: var(--green-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(37, 45, 61, 0.1);
}

.related-card__img {
  height: 150px;
  overflow: hidden;
  background: var(--navy-mid);
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card__img img {
  transform: scale(1.06);
}

.related-card__body {
  padding: 1.25rem;
}

.related-card__cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.related-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  transition: color var(--ease);
}

.related-card:hover .related-card__title {
  color: var(--green);
}

/* ── COMMENTS ────────────────────────────────────────────────────── */
.comments-section {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 3rem 3rem;
  margin-top: 2rem;
  box-shadow: 0 2px 20px rgba(37, 45, 61, 0.07);
}

.comments-section .comments-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.comment-list {
  list-style: none;
}

.comment-list .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: 1rem;
}

.comment-author-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-border);
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.comment-meta-date {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-left: 0.5rem;
}

.comment-text p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 0.4rem;
}

/* Comment form */
.comment-respond {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comment-respond .comment-reply-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--green);
}

.comment-form textarea {
  resize: vertical;
  min-height: 130px;
}

.comment-form .form-submit input[type="submit"] {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}

.comment-form .form-submit input[type="submit"]:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

/* ── SEARCH RESULTS ──────────────────────────────────────────────── */
.search-wrap {
  padding: 5rem 0;
  background: var(--light);
}

.search-header {
  margin-bottom: 2.5rem;
}

.search-info {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.search-info strong {
  color: var(--navy);
}

/* ── 404 PAGE ────────────────────────────────────────────────────── */
.not-found-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: var(--nav-h);
}

.not-found-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 191, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 191, 64, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.not-found {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 0;
}

.not-found__code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  opacity: 0.25;
  margin-bottom: -2rem;
}

.not-found__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.not-found__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── NO POSTS ────────────────────────────────────────────────────── */
.no-posts {
  background: var(--white);
  border-radius: 10px;
  padding: 4rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(37, 45, 61, 0.07);
}

.no-posts h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.no-posts p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  .blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .post-card {
    grid-template-columns: 280px 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__logo img {
    height: 108px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__img {
    min-height: 200px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-content-wrap {
    padding: 1.75rem;
  }

  .comments-section,
  .related-posts {
    padding: 1.75rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .not-found__code {
    font-size: clamp(5rem, 18vw, 8rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .post-card__body {
    padding: 1.5rem;
  }

  .blog-pagination .page-numbers {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }
}