/*
Theme Name:  The Ark Trust
Theme URI:   https://thearktrust.org
Author:      The Ark Trust Foundation
Author URI:  https://thearktrust.org
Description: Official WordPress theme for The Ark Trust Foundation & Napastaa Children's Home. Clean, minimal, SEO-optimised blog theme using brand colours.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ark-trust
Tags:        blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* ═══════════════════════════════════════════════
   BRAND TOKENS
═══════════════════════════════════════════════ */
:root {
  --forest:        #1B3A2D;
  --forest-mid:    #2A5C44;
  --forest-light:  #E6F2EB;
  --gold:          #C8921F;
  --gold-light:    #F6EDD8;
  --gold-dark:     #8B6114;
  --cream:         #FAF8F3;
  --charcoal:      #1C1C1C;
  --muted:         #5A5A5A;
  --white:         #FFFFFF;
  --border:        rgba(0,0,0,0.07);
  --radius:        10px;
  --radius-sm:     6px;
  --max-w:         1200px;
  --content-w:     740px;
  --sidebar-w:     300px;
  --transition:    0.22s ease;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul, ol { padding-left: 1.5em; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 900;
  color: var(--forest);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.35em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  background: var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--forest);
  margin: 1.8em 0;
}
blockquote cite { display: block; font-size: 0.82rem; font-style: normal; color: var(--gold-dark); margin-top: 8px; font-family: 'DM Sans', sans-serif; }

pre {
  background: var(--forest);
  color: #e8f4ed;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.6em 0;
  line-height: 1.6;
}
code { font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.88em; }
p code, li code {
  background: var(--forest-light);
  color: var(--forest);
  padding: 2px 7px;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ═══════════════════════════════════════════════
   SITE HEADER / NAV
═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 58, 45, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 146, 31, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-logo a { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-logo .custom-logo { height: 48px; width: auto; }

/* fallback text logo if no image set */
.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-decoration: none;
}
.site-description {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 300;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--gold);
  background: rgba(200,146,31,0.1);
}
.primary-nav .menu-support-us > a {
  background: var(--gold);
  color: var(--forest);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
}
.primary-nav .menu-support-us > a:hover {
  background: #dcA030;
  color: var(--forest);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════
   HERO / BANNER SECTION (home & archive)
═══════════════════════════════════════════════ */
.archive-hero {
  background: var(--forest);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200,146,31,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.archive-hero .container { position: relative; z-index: 1; }
.archive-badge {
  display: inline-block;
  background: rgba(200,146,31,0.16);
  border: 1px solid rgba(200,146,31,0.4);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-weight: 400;
}
.archive-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.archive-hero h1 em { font-style: italic; color: var(--gold); }
.archive-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  font-weight: 300;
  max-width: 540px;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   BLOG LOOP — CARD GRID
═══════════════════════════════════════════════ */
.blog-section { padding: 64px 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Featured first post — full width */
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.posts-grid .post-card:first-child .post-thumbnail {
  height: 100%;
  min-height: 340px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.09);
}
.post-thumbnail {
  height: 210px;
  overflow: hidden;
  background: var(--forest-light);
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-card:hover .post-thumbnail img { transform: scale(1.04); }

.post-no-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.6;
}

.post-body {
  padding: 24px 26px;
}

.post-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.post-cat-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.post-cat-tag:hover { background: var(--gold); color: var(--white); }

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--forest);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--gold-dark); }

.post-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.post-meta-left { display: flex; align-items: center; gap: 14px; }
.post-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--forest-light);
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-weight: 600; color: var(--forest); }
.post-date { color: var(--muted); }
.post-read-time { color: var(--muted); }

.read-more-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  white-space: nowrap;
}
.read-more-link:hover { gap: 8px; color: var(--gold-dark); }

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}

.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--forest-light);
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  border: 1.5px solid #DDD9D1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.widget_search .search-field {
  flex: 1;
  padding: 9px 13px;
  border: none;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  outline: none;
}
.widget_search .search-submit {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.widget_search .search-submit:hover { background: var(--forest-mid); }

/* Category list widget */
.widget_categories ul,
.widget_recent_entries ul,
.widget_pages ul,
.widget_nav_menu ul,
.widget_tag_cloud ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget_categories a,
.widget_recent_entries a,
.widget_pages a,
.widget_nav_menu a {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition);
}
.widget_categories a::before { content: '›'; color: var(--gold); font-size: 14px; font-weight: 700; }
.widget_categories a:hover,
.widget_recent_entries a:hover,
.widget_pages a:hover { color: var(--forest); }
.widget_categories .post-count {
  margin-left: auto;
  background: var(--forest-light);
  color: var(--forest-mid);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

/* Tag cloud */
.tag-cloud-link,
.widget_tag_cloud a {
  display: inline-block;
  background: var(--forest-light);
  color: var(--forest-mid);
  font-size: 12px !important;
  padding: 4px 11px;
  border-radius: 50px;
  margin: 3px 3px 3px 0;
  font-weight: 600;
  transition: all var(--transition);
}
.tag-cloud-link:hover, .widget_tag_cloud a:hover {
  background: var(--forest);
  color: var(--white);
}
.widget_tag_cloud { display: block; }

/* Recent posts widget */
.widget_recent_entries li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget_recent_entries li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_recent_entries .post-date { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ═══════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════ */
.single-hero {
  background: var(--forest);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.single-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.single-hero .container { position: relative; z-index: 1; max-width: 860px; }

.single-categories { margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-cat-tag {
  display: inline-block;
  background: rgba(200,146,31,0.2);
  border: 1px solid rgba(200,146,31,0.45);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 50px;
  font-weight: 400;
  text-decoration: none;
}

.single-title {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 800px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.single-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.single-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--forest-light);
  border: 2px solid rgba(255,255,255,0.2);
}
.single-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-author-name { font-size: 14px; font-weight: 600; color: var(--white); }
.single-post-date,
.single-read-time { font-size: 13px; color: rgba(255,255,255,0.6); }
.meta-dot { color: rgba(255,255,255,0.3); }

/* Post content area */
.single-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.post-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  max-height: 520px;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 520px;
}

/* Post content typography */
.entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
}
.entry-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 2em 0 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--forest-light);
}
.entry-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 1.7em 0 0.5em;
}
.entry-content h4 { font-size: 1.1rem; margin: 1.5em 0 0.4em; }
.entry-content p { margin-bottom: 1.45em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.4em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content a { color: var(--forest-mid); border-bottom: 1px solid var(--forest-light); }
.entry-content a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
}
.entry-content .wp-caption { font-size: 13px; color: var(--muted); text-align: center; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.5em 0;
}
.entry-content th {
  background: var(--forest);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--cream); }

/* Pull quote shortcode style */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  background: var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--forest);
  margin: 2em 0;
}

/* Tags below content */
.post-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tags .tag-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  align-self: center;
}

/* Author bio box */
.author-bio-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 48px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--forest-light);
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 4px;
  font-weight: 700;
}
.author-bio-role { font-size: 12px; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.author-bio-text { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.nav-previous, .nav-next {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
}
.nav-previous:hover, .nav-next:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.nav-next { text-align: right; }
.nav-label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; }
.nav-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--forest); font-weight: 700; line-height: 1.3; }

/* Related posts */
.related-posts {
  padding: 48px 0 0;
  border-top: 1px solid var(--border);
}
.related-posts h3 {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ═══════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════ */
.comments-area {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 28px;
}
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 14px; color: var(--forest); font-style: normal; }
.comment-meta { font-size: 12px; color: var(--muted); }
.comment-content { font-size: 14.5px; color: var(--charcoal); line-height: 1.72; }
.comment-reply-link {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}
.children { padding-left: 32px; list-style: none; }

/* Comment form */
.comment-respond {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}
.comment-reply-title {
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 20px;
}
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #DDD9D1;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 14px;
  resize: vertical;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--forest-mid); }
.comment-form .form-submit input {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
  width: auto;
}
.comment-form .form-submit input:hover { background: var(--forest-mid); }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 0;
}
.page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  border: 1.5px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers:hover { background: var(--forest-light); border-color: var(--forest-light); }
.page-numbers.current { background: var(--forest); color: var(--white); border-color: var(--forest); }
.page-numbers.dots { border: none; background: none; cursor: default; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: #0D1F16; color: rgba(255,255,255,0.6); padding: 60px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.footer-logo-img { height: 42px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 9px; }
.footer-brand a { color: var(--gold); text-decoration: none; font-size: 13px; }
.footer-brand a:hover { color: #dcA030; }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(255,255,255,0.54); text-decoration: none; font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.38); text-decoration: none; margin-left: 14px; }
.footer-bottom a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════ */
.error-404 { text-align: center; padding: 120px 24px; }
.error-404 .error-code { font-family: 'Playfair Display', serif; font-size: 120px; color: var(--forest-light); line-height: 1; font-weight: 900; }
.error-404 h2 { color: var(--forest); margin: 8px 0 16px; }
.error-404 p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

/* ═══════════════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════════════ */
.search-no-results { text-align: center; padding: 80px 24px; }
.search-no-results h2 { color: var(--forest); margin-bottom: 12px; }
.search-no-results p { color: var(--muted); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #dcA030; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,146,31,0.3); color: var(--forest); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-mid); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { animation: fadeUp 0.6s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }

/* ═══════════════════════════════════════════════
   GUTENBERG / BLOCK EDITOR COMPATIBILITY
═══════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-quote { border-left: 4px solid var(--gold); background: var(--gold-light); border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-pullquote { border-top: 4px solid var(--forest); border-bottom: 4px solid var(--forest); }
.wp-block-pullquote blockquote { background: transparent; border: none; }
.wp-block-separator { border-color: var(--border); }
.wp-block-button__link { background: var(--forest); border-radius: 50px; padding: 12px 24px; }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--forest); color: var(--forest); }
.wp-block-code { background: var(--forest); color: #e8f4ed; border-radius: var(--radius); }
.wp-block-table td, .wp-block-table th { border-color: var(--border); }
.wp-block-table thead { background: var(--forest); color: var(--white); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .primary-nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(27,58,45,0.98); padding: 24px; gap: 4px; border-bottom: 1px solid rgba(200,146,31,0.18); }
  .primary-nav ul.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .posts-grid .post-card:first-child { grid-column: auto; display: block; }
  .posts-grid .post-card:first-child .post-thumbnail { height: 210px; }
  .single-hero { padding: 64px 0 52px; }
  .single-layout { padding: 40px 24px 60px; }
  .post-navigation { grid-template-columns: 1fr; }
  .author-bio-box { flex-direction: column; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .posts-grid { grid-template-columns: 1fr; }
  .archive-hero { padding: 56px 0 40px; }
}

/* ═══════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .sidebar, .comments-area, .post-navigation { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
}
