/*
Theme Name: LawLeaf
Theme URI: https://lawleaf.in
Author: LawLeaf Media Pvt. Ltd.
Author URI: https://lawleaf.in
Description: India's Trusted Legal News Portal theme — inspired by LiveLaw.in. A clean, professional news portal layout for legal journalism featuring a breaking news ticker, sticky navigation, hero grid, judgments section, and full sidebar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lawleaf
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, sticky-post, threaded-comments
*/

/* ─────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────────── */
:root {
  --green:      #1a6b3c;
  --green-dark: #124d2b;
  --green-light:#e8f5ee;
  --green-mid:  #2d8a52;
  --gold:       #c8922a;
  --gold-light: #fdf3e2;
  --red:        #c0392b;
  --text:       #1a1a1a;
  --text-mid:   #444;
  --text-muted: #777;
  --border:     #e0e0e0;
  --bg:         #f5f5f0;
  --white:      #fff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, sans-serif;
}

/* ─────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ─────────────────────────────────────────────────────────
   TOP TICKER
───────────────────────────────────────────────────────── */
.ticker-bar {
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  padding: 5px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 14px;
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; padding-left: 16px; }
.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-inner span { opacity: 0.9; }
.ticker-inner span::before { content: "⚖ "; color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────────────────
   SITE HEADER
───────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; fill: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
}
.logo-name span { color: var(--gold); }
.logo-tagline {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-date { font-size: 12px; color: var(--text-muted); }

/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-subscribe {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-subscribe:hover { background: var(--green-dark); color: #fff; }
.btn-login {
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-login:hover { background: var(--green-light); }

/* ─────────────────────────────────────────────────────────
   PRIMARY NAVIGATION
───────────────────────────────────────────────────────── */
.primary-nav {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
}
.nav-inner::-webkit-scrollbar { display: none; }

/* WP nav menu items */
#primary-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
#primary-menu > li > a {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 15px;
  display: block;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
  color: #fff;
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.07);
}
/* Dropdowns */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  list-style: none;
  padding: 6px 0;
}
#primary-menu li { position: relative; }
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
#primary-menu .sub-menu li:last-child a { border-bottom: none; }
#primary-menu .sub-menu a:hover { background: var(--green-light); color: var(--green); }

/* Search in nav */
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  flex-shrink: 0;
}
.nav-search-form { display: flex; gap: 6px; }
.nav-search-form input[type="search"] {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: #fff;
  font-size: 12.5px;
  padding: 5px 10px;
  width: 180px;
  outline: none;
}
.nav-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.55); }
.nav-search-form button {
  background: var(--gold);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────
   BREAKING NEWS BANNER
───────────────────────────────────────────────────────── */
.breaking-banner {
  background: var(--red);
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breaking-label {
  background: #fff;
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  text-transform: uppercase;
}
.breaking-text { line-height: 1.4; }

/* ─────────────────────────────────────────────────────────
   LAYOUT CONTAINERS
───────────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────── */
.hero-section { padding: 24px 0 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.hero-main:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.hero-img-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(160deg, #0d4a28 0%, #1a6b3c 45%, #2d8a52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-img-placeholder::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 40px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -60px;
  right: -40px;
}
.hero-featured-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.hero-main-content { padding: 18px; }
.hero-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--green); }
.hero-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Side cards */
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.side-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.side-card-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.side-card-img img { width: 100%; height: 100%; object-fit: cover; }
.side-card-img.no-img { background: linear-gradient(135deg, #1a3a6b 0%, #2d5a8a 100%); }
.side-card-img.no-img.gold { background: linear-gradient(135deg, #6b3a1a 0%, #c8922a 100%); }
.side-card-img.no-img.red  { background: linear-gradient(135deg, #6b1a1a 0%, #c0392b 100%); }
.side-card-content { padding: 12px 14px; flex: 1; }
.side-card-title {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.side-card-title a { color: inherit; }
.side-card-title a:hover { color: var(--green); }

/* ─────────────────────────────────────────────────────────
   TAGS & META
───────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.tag-sc         { background: var(--green-light); color: var(--green-dark); }
.tag-hc         { background: #e8f0fe; color: #1a56a0; }
.tag-criminal   { background: #fde8e8; color: #9b1c1c; }
.tag-civil      { background: #fef3e2; color: #92400e; }
.tag-commercial { background: #f0e8fe; color: #5b21b6; }

/* Auto-tag by WP category class */
.category-supreme-court .tag-auto { background: var(--green-light); color: var(--green-dark); }
.category-high-courts   .tag-auto { background: #e8f0fe; color: #1a56a0; }
.category-criminal      .tag-auto { background: #fde8e8; color: #9b1c1c; }

.meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta a { color: var(--green); font-weight: 500; }
.meta-dot::before { content: "·"; }
.meta-author { color: var(--green); font-weight: 500; }

/* ─────────────────────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--green-dark);
}
.section-title span { color: var(--gold); }
.see-all { font-size: 12px; color: var(--green); font-weight: 600; letter-spacing: 0.5px; }
.see-all:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────
   CONTENT LAYOUT (main + sidebar)
───────────────────────────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding-bottom: 40px;
}

/* ─────────────────────────────────────────────────────────
   NEWS LIST
───────────────────────────────────────────────────────── */
.news-section { margin-bottom: 32px; }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.news-item:hover {
  background: var(--green-light);
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: 4px;
  border-bottom-color: transparent;
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
  width: 90px;
  height: 68px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a6b3c, #2d8a52);
}
.news-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 6px;
  color: var(--text);
}
.news-title a { color: inherit; }
.news-title a:hover { color: var(--green); }
.news-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────
   ARTICLE CARDS GRID
───────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.art-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.art-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.art-card-img {
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-card-img img { width: 100%; height: 100%; object-fit: cover; }
.art-card-img.no-img { background: linear-gradient(135deg, #1a6b3c, #2d8a52); }
.art-card-content { padding: 12px; }
.art-card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.art-card-title a { color: inherit; }
.art-card-title a:hover { color: var(--green); }

/* ─────────────────────────────────────────────────────────
   JUDGMENT CARDS
───────────────────────────────────────────────────────── */
.judgment-card {
  background: var(--white);
  border-left: 4px solid var(--green);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 4px 4px 0;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.judgment-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.jc-court {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.jc-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.jc-title a { color: inherit; }
.jc-title a:hover { color: var(--green); }
.jc-bench { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.jc-citation {
  font-size: 11.5px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────────────────────── */
.single-post-wrap { padding: 24px 0 40px; }
.post-featured-img { border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.post-featured-img img { width: 100%; max-height: 420px; object-fit: cover; }
.post-header { margin-bottom: 20px; }
.post-header .tag { margin-bottom: 12px; }
.post-header h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
}
.post-header .meta { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
}
.post-content p { margin-bottom: 1.2em; }
.post-content h2 { font-family: var(--serif); font-size: 22px; margin: 1.5em 0 0.6em; color: var(--text); }
.post-content h3 { font-family: var(--serif); font-size: 18px; margin: 1.3em 0 0.5em; color: var(--text); }
.post-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-light);
  padding: 14px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--green-dark);
  border-radius: 0 4px 4px 0;
}
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 1.2em; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4em; }
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-tags a { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 3px; margin: 3px 4px 3px 0; }
.post-tags a:hover { background: var(--green); color: #fff; }

/* Page navigation */
.posts-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}
.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.2s;
}
.posts-pagination a:hover { background: var(--green-light); color: var(--green); border-color: var(--green); }
.posts-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ─────────────────────────────────────────────────────────
   SIDEBAR WIDGETS
───────────────────────────────────────────────────────── */
.sidebar { }
.sidebar .widget { margin-bottom: 20px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-header {
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  letter-spacing: 0.3px;
}
.widget-header.gold-header { background: var(--gold); }
.widget-body { padding: 14px; }

.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--text-mid); }
.widget-list li:hover a, .widget-list li:hover { color: var(--green); }
.wi-num { font-weight: 700; color: var(--green); font-size: 12px; flex-shrink: 0; width: 18px; }

.court-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.court-tag.hc { background: #e8f0fe; color: #1a56a0; }

/* Subscribe box */
.subscribe-box {
  background: var(--green);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}
.subscribe-box h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 8px; }
.subscribe-box p { font-size: 12.5px; opacity: 0.85; line-height: 1.6; margin-bottom: 14px; }
.subscribe-box input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border-radius: 3px;
  border: none;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}
.subscribe-box button {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* Category pills */
.category-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: inline-block;
}
.pill:hover { background: var(--green); color: #fff; }

/* ─────────────────────────────────────────────────────────
   WP DEFAULT WIDGET OVERRIDES
───────────────────────────────────────────────────────── */
.widget_recent_entries ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a { color: var(--text-mid); }
.widget_recent_entries ul li a:hover { color: var(--green); }
.widget_categories ul li { padding: 5px 0; font-size: 13px; }
.widget_categories ul li a { color: var(--text-mid); }
.widget_categories ul li a:hover { color: var(--green); }
.widget_search .search-form { display: flex; gap: 6px; }
.widget_search .search-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }
.widget_search .search-submit { background: var(--green); color: #fff; border: none; border-radius: 4px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

/* ─────────────────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────────────────── */
.comments-area { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--green); }
.comments-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.comment-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-mid); }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.submit {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.submit:hover { background: var(--green-dark); }

/* ─────────────────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.8); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-about { font-size: 13px; line-height: 1.7; opacity: 0.75; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col ul li a { opacity: 0.75; transition: opacity 0.15s; color: rgba(255,255,255,0.8); }
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }

/* Footer WP nav menu */
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.footer-nav ul li a { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-nav ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
  max-width: 1240px;
  margin: 0 auto;
}
.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: background 0.15s;
  display: inline-block;
}
.social-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ─────────────────────────────────────────────────────────
   404 & SEARCH RESULTS
───────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-family: var(--serif); font-size: 80px; color: var(--green); margin-bottom: 0; }
.error-page h2 { font-family: var(--serif); font-size: 28px; color: var(--text); margin-bottom: 16px; }
.error-page p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.error-page a.btn-subscribe { display: inline-block; }

.search-results-header { margin-bottom: 20px; }
.search-results-header h1 { font-family: var(--serif); font-size: 22px; color: var(--text); }
.search-results-header span { color: var(--green); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / 3; grid-row: 1; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-column: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .header-actions .btn-login { display: none; }
  .header-date { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-search-form input[type="search"] { width: 120px; }
}
