/* =============================================
   AFROQ CONNECT - Qatar News & Lifestyle
   Custom Stylesheet
   Brand Colors: #01a85a | #5b0717 | #ffffff
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;600;700&family=Oswald:wght@500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --green:        #01a85a;
  --green-dark:   #018a4a;
  --green-light:  #e6f7ef;
  --maroon:       #5b0717;
  --maroon-dark:  #3e0510;
  --maroon-light: #f5e6e9;
  --white:        #ffffff;
  --off-white:    #f8f8f6;
  --light-gray:   #f0f0ee;
  --border:       #e2e2de;
  --text-dark:    #1a1a1a;
  --text-mid:     #444444;
  --text-light:   #777777;
  --gold:         #c9a227;
  --dark:         #1a1a1a;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.16);
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --transition:   0.25s ease;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Source Sans 3', Arial, sans-serif;
  --font-display: 'Oswald', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--off-white);
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-gap { margin-bottom: 48px; }

@media (max-width: 768px) {
  .section-gap { margin-bottom: 32px; }
}
.text-green  { color: var(--green); }
.text-maroon { color: var(--maroon); }
.text-gold   { color: var(--gold); }
.bg-green    { background: var(--green); }
.bg-maroon   { background: var(--maroon); }
.bg-light    { background: var(--light-gray); }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
}
.badge-maroon { background: var(--maroon); }
.badge-gold   { background: var(--gold); color: var(--white); }
.badge-outline {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--maroon);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-family: var(--font-sans);
  padding: 7px 0;
  border-bottom: 2px solid var(--green);
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-date {
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.top-bar-ticker {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.ticker-label {
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 10px;
  white-space: nowrap;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-inner {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-inner a {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  transition: color var(--transition);
}
.ticker-inner a:hover { color: var(--green); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.top-bar-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.top-bar-social a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: color var(--transition);
}
.top-bar-social a:hover { color: var(--green); }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .afroq {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
}
.logo-text .afroq span { color: var(--green); }
.logo-text .connect {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Main Nav */
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: block;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: var(--green-light);
  color: var(--green);
}
/* Dropdown — shown on hover (desktop) OR .open class (JS click) */
.main-nav ul li.has-dropdown:hover .dropdown,
.main-nav ul li.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Chevron rotates when open */
.main-nav ul li.has-dropdown:hover > a .fa-chevron-down,
.main-nav ul li.has-dropdown.open > a .fa-chevron-down {
  transform: rotate(180deg);
}
.main-nav ul li.has-dropdown > a .fa-chevron-down {
  transition: transform 0.25s ease;
  display: inline-block;
}
.dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--white);
  min-width: 210px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  box-shadow: var(--shadow-md);
  z-index: 100;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.dropdown li a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 11px 18px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--green-light); color: var(--green); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-btn, .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-mid);
  font-size: 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.search-btn:hover, .menu-toggle:hover {
  background: var(--green-light);
  color: var(--green);
}
.menu-toggle { display: none; }

/* Search Panel */
.search-panel {
  display: none;
  background: var(--maroon);
  padding: 20px 0;
}
.search-panel.open { display: block; }
.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}
.search-form input:focus { border-color: var(--green); }
.search-form button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--green-dark); }

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Featured Card (large) */
.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.hero-featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hero-featured:hover .hero-featured-img { transform: scale(1.04); }
.hero-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.hero-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}
.hero-featured-content .badge { margin-bottom: 10px; }
.hero-featured-content h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero-featured-content h1:hover { color: #c8f0da; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.hero-meta .author { font-weight: 600; }
.hero-meta .dot { opacity: 0.5; }

/* Side Cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.hero-side-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hero-side-card img {
  width: 120px;
  height: 100%;
  object-fit: cover;
  min-height: 110px;
}
.hero-side-card-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hero-side-card-body .badge { align-self: flex-start; }
.hero-side-card-body h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
.hero-side-card-body h3:hover { color: var(--green); }
.hero-side-card-body .meta-small {
  font-size: 11px;
  color: var(--text-light);
}

/* ---------- CATEGORY NAV STRIP ---------- */
.cat-strip {
  background: var(--maroon);
  padding: 0;
  overflow: hidden;
}
.cat-strip ul {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip ul::-webkit-scrollbar { display: none; }
.cat-strip ul li a {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 13px 18px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.cat-strip ul li a:hover,
.cat-strip ul li a.active {
  color: var(--white);
  background: rgba(1,168,90,0.25);
}

/* ---------- SECTION HEADINGS ---------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
}
.section-heading h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.section-heading .view-all {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  padding: 5px 14px;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.section-heading .view-all:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------- MAIN CONTENT AREA ---------- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .main-layout { padding: 24px 0; gap: 24px; }
}

/* ---------- ARTICLE CARDS (Standard Grid) ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img { transform: scale(1.05); }
.article-card-img-wrap { overflow: hidden; position: relative; }
.article-card-img-wrap .badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
}
.article-card-body {
  padding: 16px;
}
.article-card-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.article-card-body h3:hover { color: var(--green); }
.article-card-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.article-meta .author { color: var(--green); font-weight: 600; }
.article-meta .dot { color: var(--border); }

/* 2-col articles */
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.articles-grid-2 .article-card-img { height: 220px; }

/* 4-col articles */
.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.articles-grid-4 .article-card-img { height: 150px; }
.articles-grid-4 .article-card-body { padding: 12px; }
.articles-grid-4 .article-card-body h3 { font-size: 14px; }

/* ---------- LIST ARTICLES (Sidebar / Latest) ---------- */
.article-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  cursor: pointer;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.article-list-item:hover img { opacity: 0.88; }
.article-list-body {}
.article-list-body .badge { margin-bottom: 5px; }
.article-list-body h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.article-list-body h4:hover { color: var(--green); }
.article-list-body .meta-small {
  font-size: 11px;
  color: var(--text-light);
}

/* ---------- FEATURED STRIP (Full Width Green BG) ---------- */
.featured-strip {
  background: var(--green);
  padding: 40px 0;
  margin-bottom: 40px;
}
.featured-strip .section-heading h2 { color: var(--white); }
.featured-strip .section-heading h2::before { background: var(--white); }
.featured-strip .section-heading .view-all {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.featured-strip .section-heading .view-all:hover {
  background: rgba(255,255,255,0.2);
}
.featured-strip .article-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.featured-strip .article-card:hover { background: rgba(255,255,255,0.2); }
.featured-strip .article-card-body h3 { color: var(--white); }
.featured-strip .article-card-body h3:hover { color: var(--green-light); }
.featured-strip .article-card-body p { color: rgba(255,255,255,0.8); }
.featured-strip .article-meta { color: rgba(255,255,255,0.65); }
.featured-strip .article-meta .author { color: var(--white); }

/* ---------- DIASPORA BANNER ---------- */
.diaspora-banner {
  background: var(--maroon);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 40px 48px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.diaspora-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/seed/africa/1200/400') center/cover;
  opacity: 0.15;
}
.diaspora-banner-text { position: relative; z-index: 1; }
.diaspora-banner-text .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.diaspora-banner-text h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.diaspora-banner-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  line-height: 1.6;
}
.diaspora-banner-cta { position: relative; z-index: 1; flex-shrink: 0; }

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  margin-left: 12px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- SIDEBAR ---------- */
.sidebar { }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.widget-header {
  background: var(--maroon);
  padding: 12px 18px;
}
.widget-header h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.widget-header h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.widget-body { padding: 16px; }

/* Popular Posts Widget */
.popular-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.popular-post:last-child { border-bottom: none; }
.popular-post-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--border);
  min-width: 28px;
  line-height: 1;
  padding-top: 2px;
}
.popular-post:hover .popular-post-num { color: var(--green); }
.popular-post img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.popular-post-body h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.popular-post-body h4:hover { color: var(--green); }
.popular-post-body .meta-small { font-size: 10px; color: var(--text-light); }

/* Popular Post — no-thumbnail fallback swatch */
.popular-post-nothumb {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Latest Articles Widget */
.sb-latest-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.sb-latest-item:last-child { border-bottom: none; }
.sb-latest-item:hover { background: var(--off-white); }
.sb-latest-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sb-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.sb-latest-item:hover .sb-latest-thumb img { transform: scale(1.06); }
.sb-latest-nothumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
}
.sb-latest-body {
  flex: 1;
  min-width: 0;
}
.sb-latest-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.sb-latest-body h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-latest-item:hover .sb-latest-body h4 { color: var(--green); }
.sb-latest-date {
  font-size: 10px;
  color: var(--text-light);
}
.sb-latest-date i { margin-right: 3px; }

/* Browse Categories Widget */
.sb-categories { padding: 8px 0; }
.sb-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.sb-cat-item:last-child { border-bottom: none; }
.sb-cat-item:hover { background: var(--off-white); }
.sb-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.sb-cat-item:hover .sb-cat-icon {
  background: var(--green);
  color: var(--white);
}
.sb-cat-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.sb-cat-count {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--light-gray);
  border-radius: 20px;
  padding: 2px 8px;
}

/* Recent Comments Widget */
.sb-comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sb-comment-item:last-child { border-bottom: none; }
.sb-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-comment-body { min-width: 0; }
.sb-comment-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.45;
  margin: 0 0 4px;
}
.sb-comment-meta {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}
.sb-comment-meta strong {
  color: var(--text-dark);
  font-weight: 600;
}
.sb-comment-meta a {
  color: var(--green);
  text-decoration: none;
}
.sb-comment-meta a:hover { text-decoration: underline; }

/* Newsletter Widget */
.newsletter-widget {
  background: var(--green);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.newsletter-widget .widget-header { 
  background: var(--maroon); 
  padding: 14px 20px;
}
.newsletter-widget .widget-header h3 {
  margin: 0;
  font-size: 15px;
}
.newsletter-body { 
  padding: 20px; 
}
.newsletter-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  background: rgba(255,255,255,0.95);
  outline: none;
  box-sizing: border-box;
}
.newsletter-form input:focus { 
  border-color: var(--white); 
}
.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover {
  background: var(--maroon-dark);
}
.newsletter-form button:hover { background: var(--maroon-dark); }

/* ==========================================
   AD ZONES — AfroQ Connect Ad System
   Three revenue streams supported:
   1. Direct ads  — replace ad-placeholder-inner with <a><img>
   2. Google AdSense — paste <ins class="adsbygoogle"> block
   3. Placeholder — shown when slot is empty/for sale
   ========================================== */

.ad-zone {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  display: block;
  line-height: 1;
}
.ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.ad-inner > a { display: block; line-height: 0; width: 100%; }
.ad-inner > a img,
.ad-inner > img,
.ad-inner .aqc-ad-zone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Leaderboard — 728×90 (locked) */
.ad-zone--leaderboard {
  padding: 10px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-zone--leaderboard .ad-inner { max-width: 728px; height: 90px; margin: 0 auto; }

/* Billboard — 970×90 (locked) */
.ad-zone--billboard {
  padding: 10px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-zone--billboard .ad-inner { max-width: 970px; height: 90px; margin: 0 auto; }

/* Rectangle — 336×280 (locked) */
.ad-zone--rectangle .ad-inner { max-width: 336px; height: 280px; margin: 0 auto; }

/* In-Article — 300×250 (locked) */
.ad-zone--in-article .ad-inner { max-width: 300px; height: 250px; margin: 0 auto; }

/* Half Page — 300×600 (locked) */
.ad-zone--halfpage .ad-inner { max-width: 300px; height: 600px; margin: 0 auto; }

/* Mid-Content — 728×90 (locked, same dims as leaderboard) */
.ad-zone--midcontent .ad-inner { max-width: 728px; height: 90px; margin: 0 auto; }

/* Placeholder shown until a real ad is booked */
.ad-placeholder-inner {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--light-gray) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  color: var(--text-light);
  text-align: center;
  box-sizing: border-box;
}
.ad-placeholder-inner i {
  font-size: 28px;
  color: var(--green);
  opacity: 0.55;
  margin-bottom: 2px;
}
.ad-placeholder-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.ad-placeholder-inner span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  max-width: 220px;
  line-height: 1.5;
}
.ad-cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 18px;
  background: var(--green);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  line-height: 1.4;
  transition: background var(--transition);
}
.ad-cta-btn:hover { background: var(--maroon) !important; color: var(--white) !important; }

/* Sidebar ad widget — no border/background chrome */
.sidebar-widget.is-ad {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Sticky sidebar ad — follows scroll */
.ad-sticky { position: sticky; top: 90px; }

@media (max-width: 768px) {
  .ad-zone--leaderboard .ad-inner,
  .ad-zone--billboard .ad-inner,
  .ad-zone--midcontent .ad-inner { height: 50px; max-width: 100%; }
  .ad-zone--rectangle .ad-inner,
  .ad-zone--in-article .ad-inner { max-width: 100%; height: auto; aspect-ratio: 336 / 280; }
  .ad-zone--halfpage .ad-inner { height: 300px; }
}

/* Social Widget */
.social-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.social-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition);
  text-decoration: none;
}
.social-count-item:hover { opacity: 0.85; }
.social-count-item.facebook  { background: #1877f2; color: white; }
.social-count-item.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-count-item.twitter   { background: #000; color: white; }
.social-count-item.youtube   { background: #ff0000; color: white; }
.social-count-item .s-icon { font-size: 20px; margin-bottom: 4px; }
.social-count-item .s-count { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.social-count-item .s-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }

/* Tags Widget */
.tags-cloud { padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.tag:hover {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green);
}

/* ---------- QATAR EVENTS ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-img-wrap { position: relative; overflow: hidden; }
.event-img-wrap img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.event-card:hover .event-img-wrap img { transform: scale(1.06); }
.event-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.1;
}
.event-date-badge .day {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.event-date-badge .month {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-card-body { padding: 14px; }
.event-card-body h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.event-card-body h3:hover { color: var(--green); }
.event-info {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.event-info span { display: flex; align-items: center; gap: 5px; }
.event-free-badge {
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 8px;
}

/* ---------- FOOD SECTION ---------- */
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.food-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.food-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.food-card:hover img { transform: scale(1.06); }
.food-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.food-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}
.food-card-content .badge { margin-bottom: 8px; }
.food-card-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}
.food-card-content h3:hover { color: #c8f0da; }
.food-card-meta { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--maroon-dark);
  padding: 56px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text .afroq { font-size: 26px; color: var(--white); }
.footer-brand .logo-text .afroq span { color: var(--green); }
.footer-brand .logo-text .connect { color: rgba(255,255,255,0.5); }
.footer-brand .tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--green); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-col ul li a:hover { color: var(--green); padding-left: 6px; }
.footer-newsletter-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.55;
}
.footer-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.footer-newsletter-form input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 13px;
  outline: none;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form input:focus { border-color: var(--green); }
.footer-newsletter-form button {
  padding: 10px;
  background: var(--green);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.footer-newsletter-form button:hover { background: var(--green-dark); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--green); }
.footer-bottom-links { display: flex; gap: 18px; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--maroon); }

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  background: var(--white);
  padding-bottom: 0;
}
.article-breadcrumb {
  padding: 16px 0 0;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--green); }
.article-breadcrumb span { opacity: 0.5; }
.article-header { padding: 24px 0 0; }
.article-header .badge { margin-bottom: 14px; }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.article-header .subheadline {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 400;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}
.byline-info .author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}
.byline-info .author-name a { color: var(--green); }
.byline-info .pub-date { font-size: 12px; color: var(--text-light); }
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.share-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: var(--white);
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb  { background: #1877f2; }
.share-btn.tw  { background: #000; }
.share-btn.wa  { background: #25d366; }
.share-btn.cp  { background: var(--text-light); }
.article-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.article-cover-caption {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 28px;
  text-align: center;
}
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 700px;
}
.article-content p { margin-bottom: 20px; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 34px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--maroon);
}
.article-content blockquote {
  background: var(--green-light);
  border-left: 5px solid var(--green);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
}
.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--green); text-decoration: underline; }
.article-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tags .tags-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.related-posts { padding: 40px 0; }
.related-posts .section-heading { margin-bottom: 20px; }

/* ---------- CATEGORY PAGE ---------- */
.category-hero {
  background: var(--maroon);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/seed/doha/1400/400') center/cover;
  opacity: 0.1;
}
.category-hero-content { position: relative; z-index: 1; }
.category-hero .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.category-hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.category-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
}
.category-filters {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--text-mid);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.articles-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 40px;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-mid);
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.page-btn.prev, .page-btn.next { width: auto; padding: 0 16px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-featured-img { height: 380px; }
  .hero-side { flex-direction: row; }
  .hero-side-card { flex: 1; }
  .main-layout,
  .content-sidebar-wrap,
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sidebar-widget { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .top-bar-date { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; border-top: 2px solid var(--green); box-shadow: var(--shadow-lg); z-index: 100; }
  .main-nav.open ul { flex-direction: column; gap: 2px; justify-content: flex-start; }
  .menu-toggle { display: flex; }
  .hero-side { flex-direction: column; }
  .hero-featured-img { height: 280px; }
  .hero-featured-content h1 { font-size: 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .articles-grid-2 { grid-template-columns: 1fr; }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .diaspora-banner { flex-direction: column; padding: 28px 20px; text-align: center; }
  .diaspora-banner-text { margin-right: 0; }
  .diaspora-banner-text h2 { font-size: 22px; }
  .diaspora-banner-text p { max-width: 100%; }
  .diaspora-banner-text > div { flex-direction: column; gap: 12px; }
  .diaspora-banner-text .btn-primary,
  .diaspora-banner-text .btn-outline-white { margin-left: 0; width: 100%; text-align: center; box-sizing: border-box; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-header h1 { font-size: 26px; }
  .category-hero h1 { font-size: 30px; }
  .articles-grid-main { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .social-counts { grid-template-columns: repeat(4, 1fr); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-heading .view-all { margin-left: 0; }
  .partner-label { display: none; }
  .cat-strip ul { padding: 0 12px; }
}

@media (max-width: 480px) {
  .hero-side-card { grid-template-columns: 1fr; }
  .hero-side-card img { width: 100%; height: 160px; }
  .hero-secondary-row { grid-template-columns: 1fr; }
  .hero-secondary-item { min-height: 140px; }
  .articles-grid-4 { grid-template-columns: 1fr; }
  .social-counts { grid-template-columns: repeat(2, 1fr); }
  .hero-main-content { padding: 20px; }
  .hero-main-content h2 { font-size: 1.4rem; }
  .hero-side-content h3 { font-size: 1rem; }
  .hero-secondary-content h4 { font-size: 0.95rem; }
}

/* ==========================================
   HERO SECTION - Carousel + Side Stories
   ========================================== */
.hero-section {
  padding: 24px 0;
  background: var(--off-white);
}

.hero-section .container {
  max-width: 1200px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Carousel in main area */
.hero-main-carousel {
  position: relative;
  grid-row: 1 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
}

.hmc-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.hmc-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.hmc-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}

.hero-main-content .hero-badge {
  margin-bottom: 14px;
  display: inline-block;
}

.hero-main-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.hero-main-meta .dot { opacity: 0.6; }

/* Carousel controls */
.hmc-prev, .hmc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}

.hmc-prev { left: 16px; }
.hmc-next { right: 16px; }
.hmc-prev:hover, .hmc-next:hover {
  background: var(--green);
  border-color: var(--green);
}

.hmc-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hmc-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.hmc-dot.active {
  background: var(--green);
  width: 28px;
}

.hmc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}

.hmc-progress-fill {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0%;
}

/* Side stories (static) */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-side-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
}

.hero-side-item .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 100%);
}

.hero-side-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-side-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.35;
  margin: 0 0 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-side-content .hero-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.hero-side-content .hero-badge {
  display: inline-block;
  margin-bottom: 8px;
}

/* Secondary row */
.hero-secondary-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.hero-secondary-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.hero-secondary-item .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-secondary-content {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.hero-secondary-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-secondary-content .hero-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}

.hero-secondary-content .hero-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  padding: 2px 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-main-carousel, .hmc-slide { min-height: 300px; }
  .hero-side-item { min-height: 140px; }
  .hero-grid { gap: 16px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 12px 0; }
  .hero-section .container { padding: 0 12px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-main-carousel, .hmc-slide {
    min-height: 260px;
    grid-row: auto;
  }
  .hero-side {
    flex-direction: row;
    gap: 12px;
  }
  .hero-side-item {
    flex: 1;
    min-height: 120px;
  }
  .hero-secondary-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
  }
  .hero-secondary-item { min-height: 100px; }
  .hmc-prev, .hmc-next { display: none; }
  .hero-main-meta { flex-wrap: wrap; gap: 6px; }
  .hero-main-meta .dot { display: none; }
}

/* ==========================================
   HERO CAROUSEL (Legacy)
   ========================================== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 420px;
  background: var(--dark);
  user-select: none;
}
.hc-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}
.hc-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.08) 100%);
}
.hc-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 52px;
}
.hc-content .container { max-width: 720px; }
.hc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.hc-count {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.hc-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
  line-height: 1.22;
  margin: 8px 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 650px;
}
.hc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--green);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s;
}
.hc-btn:hover { background: var(--green-dark); transform: translateX(2px); }
.hc-prev, .hc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform 0.2s;
  backdrop-filter: blur(4px);
  outline: none;
}
.hc-prev { left: 20px; }
.hc-next { right: 20px; }
.hc-prev:hover, .hc-next:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.1);
}
.hc-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}
.hc-dot {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
  outline: none;
}
.hc-dot.active { background: var(--green); width: 26px; }
.hc-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
  overflow: hidden;
}
.hc-progress-fill {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0%;
}
@media (max-width: 768px) {
  .hero-carousel { height: 340px; }
  .hc-prev { left: 10px; }
  .hc-next { right: 10px; }
  .hc-prev, .hc-next { width: 34px; height: 34px; font-size: 12px; }
  .hc-content { padding-bottom: 44px; }
  .hc-dots { bottom: 16px; }
}
@media (max-width: 480px) {
  .hero-carousel { height: 280px; }
  .hc-content h1 { font-size: 1.2rem; }
  .hc-btn { display: none; }
}

/* ==========================================
   PARTNER LOGOS MARQUEE STRIP
   ========================================== */
.partner-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  overflow: hidden;
}
.partner-strip .container {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.partner-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}
.partner-track-outer {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.partner-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: partnerMarquee 30s linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
.partner-logo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-mid);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity var(--transition), color var(--transition);
  text-transform: uppercase;
}
.partner-logo:hover { opacity: 1; color: var(--green); }
.partner-logo-sep { color: var(--border); font-size: 16px; flex-shrink: 0; line-height: 1; }
@keyframes partnerMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .partner-label { display: none; }
  .partner-logo { font-size: 11px; }
}

/* ==========================================
   MID-CONTENT INLINE AD BANNER
   ========================================== */
.ad-zone--midcontent {
  padding: 8px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-zone--midcontent .ad-inner { max-width: 100%; min-height: 90px; }

/* ==========================================
   SIDEBAR MINI CAROUSEL (Sponsored Content)
   ========================================== */
.sc-carousel { position: relative; }
.sc-track-outer { overflow: hidden; border-radius: var(--radius-sm); }
.sc-slides {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.sc-slide {
  flex: 0 0 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sc-slide img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.sc-slide-body {
  padding: 10px 12px 12px;
  background: var(--off-white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 1px solid var(--border);
  border-top: none;
}
.sc-slide-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
  display: block;
}
.sc-slide-body h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 0 0 5px;
}
.sc-slide-body h4:hover { color: var(--green); }
.sc-meta { font-size: 11px; color: var(--text-light); }
.sc-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 0 2px;
}
.sc-dots { display: flex; gap: 5px; }
.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
  outline: none;
}
.sc-dot.active { background: var(--green); width: 16px; }
.sc-nav { display: flex; gap: 5px; }
.sc-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  outline: none;
}
.sc-nav-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ==========================================
   EVENTS CAROUSEL
   ========================================== */
.events-carousel-wrap { position: relative; }
.events-carousel-outer { overflow: hidden; }
.events-carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.events-carousel-track .event-card { flex: 0 0 calc(33.333% - 12px); }
.carousel-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.carousel-controls-row h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
}
.carousel-controls-row h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--green);
  margin-right: 12px;
  border-radius: 2px;
  vertical-align: middle;
}
.carousel-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  outline: none;
}
.carousel-arrow-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.carousel-arrow-btn:disabled { opacity: 0.35; pointer-events: none; }
.carousel-btn-group { display: flex; gap: 6px; align-items: center; }
@media (max-width: 768px) {
  .events-carousel-track .event-card { flex: 0 0 80%; }
}
@media (max-width: 480px) {
  .events-carousel-track .event-card { flex: 0 0 90%; }
}

/* ==========================================
   RELATED ARTICLES CAROUSEL
   ========================================== */
.rel-carousel-outer { overflow: hidden; }
.rel-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.rel-carousel-track .article-card { flex: 0 0 calc(33.333% - 14px); }
.rel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.rel-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}
.rel-heading h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--green);
  margin-right: 12px;
  border-radius: 2px;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .rel-carousel-track .article-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 480px) {
  .rel-carousel-track .article-card { flex: 0 0 82%; }
}

/* ==========================================
   MOBILE STICKY BOTTOM AD BAR
   ========================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 9900;
  padding: 7px 40px 7px 10px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
  align-items: center;
  justify-content: center;
}
.mobile-sticky-bar.is-visible { display: flex; }
.sticky-bar-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}
.sticky-bar-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--light-gray);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  width: 320px;
  min-height: 50px;
  justify-content: center;
}
.sticky-bar-placeholder i { color: var(--green); opacity: 0.55; font-size: 16px; }
.sticky-bar-placeholder span {
  font-size: 10px;
  color: var(--text-light);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.sticky-bar-book {
  padding: 3px 10px;
  background: var(--green);
  color: white !important;
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.sticky-bar-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  outline: none;
}
.sticky-bar-close:hover { background: var(--maroon); color: white; border-color: var(--maroon); }
/* Mobile only */
@media (min-width: 769px) { .mobile-sticky-bar { display: none !important; } }

/* ======================================================
   COOKIE CONSENT BANNER
   ====================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  border-top: 3px solid var(--green);
  z-index: 9999;
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-consent-bar.is-visible { transform: translateY(0); }

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-consent-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}
.cookie-consent-icon { color: var(--green); font-size: 18px; flex-shrink: 0; padding-top: 2px; }
.cookie-consent-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent-text a { color: var(--green); text-decoration: underline; }
.cookie-consent-text a:hover { color: #4dd99a; }

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  padding: 9px 20px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--green-dark); }

.cookie-btn-manage {
  padding: 9px 16px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cookie-btn-manage:hover {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-consent-actions { width: 100%; }
  .cookie-btn-accept { flex: 1; text-align: center; }
}


/* ============================================================
   SUPPLEMENTAL COMPONENTS
   Added for WordPress template-parts, page templates & comments
   ============================================================ */

/* ---------- PAGE HERO (archive, search, page templates) ---------- */
.page-hero {
  display: none;
}
.page-hero-inner { max-width: 720px; }
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 6px 0 4px;
}
.page-hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 8px;
}

/* ---------- CONTENT + SIDEBAR WRAPPER ---------- */
/* Shared grid used by: archive, index, search, author, page, attachment,
   single (article-layout), front-page (main-layout), contact */
.content-sidebar-wrap,
.article-layout,
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding-bottom: 56px;
  align-items: start;
}
.main-layout { padding: 40px 0 56px; }
.main-content { min-width: 0; }

/* Sidebar column: always stay in its lane, sticky to prevent white gap */
.sidebar {
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

/* ---------- PAGINATION ---------- */
.pagination-wrap {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pagination-wrap .page-numbers.dots {
  border: none;
  width: auto;
  padding: 0 4px;
  color: var(--text-light);
}

/* Search count */
.search-count {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

/* ---------- GENERIC 2-COL + NARROW SIDEBAR ---------- */
.col-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .col-layout { grid-template-columns: 1fr; }
  .col-layout aside { position: static !important; }
}

/* ---------- LEGAL PAGES (Privacy, Terms, Cookies) ---------- */
.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--maroon);
  font-family: var(--font-serif);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-dark);
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 0.9em;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal-content a { color: var(--green); text-decoration: underline; }


@media (max-width: 768px) {
  .page-hero { padding: 16px 0 12px; }
}

/* ---------- BASE BUTTON ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }


/* ---------- TEMPLATE-PART CARD (.article-card override for content.php) ---------- */
.article-card .card-thumb-link { display: block; overflow: hidden; }
.article-card .card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-thumb { transform: scale(1.05); }
.card-body { padding: 16px; }
.card-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-title a { color: var(--text-dark); }
.card-title a:hover { color: var(--green); }
.card-excerpt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.card-meta i { color: var(--green); }


/* ---------- FORM BASE STYLES ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-group label span[aria-hidden] { color: var(--maroon); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(1,168,90,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Form success / error notices */
.form-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-notice--success {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.form-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Contact form wrapper */
.contact-form { display: flex; flex-direction: column; gap: 0; }

/* Comment-form cookies checkbox */
.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 12px;
}
.comment-form-cookies-consent input { width: auto; }


/* ---------- COMMENTS SECTION ---------- */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.comment-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  font-size: 0.8rem;
  vertical-align: middle;
  margin-left: 6px;
}

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children {
  list-style: none;
  padding-left: 52px;
  border-left: 2px solid var(--border);
  margin-left: 22px;
}
.comment { padding: 0; }
.comment-body {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.comment-author.fn { font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--text-light); }
.comment-content { font-size: 0.95rem; line-height: 1.65; }
.comment-content p { margin-bottom: 0.75em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 10px; }
.comment-reply-link {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  padding: 4px 10px;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.comment-reply-link:hover { background: var(--green); color: #fff; }
.no-more-comments {
  color: var(--text-mid);
  font-style: italic;
  padding: 16px 0;
}

/* Comment pagination */
.comment-pagination {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 24px;
  font-size: 13px;
}

/* Comment form */
#commentform { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
#commentform .comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.submit.btn.btn-primary {
  align-self: flex-start;
  margin-top: 20px;
}


/* ---------- NO-RESULTS ---------- */
.no-results {
  text-align: center;
  padding: 64px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.no-results-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--text-light);
}
.no-results-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.no-results-text {
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.65;
}
.no-results-cats {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.no-results-cats-label {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
}


/* ---------- RESPONSIVE: SUPPLEMENTAL COMPONENTS ---------- */
@media (max-width: 768px) {
  .comment-list .children {
    padding-left: 24px;
    margin-left: 12px;
  }
  #commentform .comment-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ============================================================
   WORDPRESS EDITORIAL CSS
   Required for content written in the block / classic editor.
   These classes are generated by WordPress core — never remove.
   ============================================================ */

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--off-white);
  border-radius: var(--radius-sm);
  clip: auto !important;
  clip-path: none;
  color: var(--text-dark);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* ---------- Image Alignment (Classic Editor & Block Editor) ---------- */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignnone { margin: 0; }

img.alignleft,
img.alignright,
img.aligncenter,
img.alignnone { max-width: 100%; height: auto; }

/* Gutenberg wide/full alignment — only affects .entry-content */
.entry-content .alignwide {
  margin-left: calc( -1 * ( ( 100vw - 720px ) / 2 ) );
  margin-right: calc( -1 * ( ( 100vw - 720px ) / 2 ) );
  max-width: 1200px;
  width: calc( 100vw - 2rem );
}
.entry-content .alignfull {
  margin-left: calc( 50% - 50vw );
  margin-right: calc( 50% - 50vw );
  max-width: 100vw;
  width: 100vw;
}
@media (max-width: 1200px) {
  .entry-content .alignwide,
  .entry-content .alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- Image Captions ---------- */
.wp-caption {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  background: var(--off-white);
}
.wp-caption img { display: block; width: 100%; height: auto; }
.wp-caption-text {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  padding: 6px 8px 4px;
  margin: 0;
  line-height: 1.5;
}
.wp-caption.alignleft  { margin: 0 1.5rem 1rem 0; }
.wp-caption.alignright { margin: 0 0 1rem 1.5rem; }

/* ---------- Sticky Post ---------- */
.hentry.sticky .article-card {
  border-left: 3px solid var(--green);
  padding-left: 12px;
}

/* Comment by post author */
.bypostauthor > .comment-body {
  background: var(--green-light);
  border-left: 3px solid var(--green);
  padding-left: 12px;
}

/* ---------- Gutenberg Block: Paragraph drop-cap ---------- */
.has-drop-cap:not(:focus)::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 5.5em;
  font-weight: 700;
  line-height: 0.65;
  margin: 0.12em 0.12em 0 -0.04em;
  color: var(--maroon);
}

/* ---------- Gutenberg Block: Pull Quote ---------- */
.wp-block-pullquote {
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.wp-block-pullquote blockquote {
  border: none;
  padding: 0;
  background: transparent;
  margin: 0;
}
.wp-block-pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.wp-block-pullquote cite {
  font-size: .85rem;
  color: var(--text-light);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Gutenberg Block: Quote ---------- */
.wp-block-quote {
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-style: italic;
}
.wp-block-quote p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.wp-block-quote cite {
  font-size: .85rem;
  color: var(--text-light);
  font-style: normal;
}

/* ---------- Gutenberg Block: Code ---------- */
.wp-block-code,
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  margin: 1.5rem 0;
}
code {
  background: var(--light-gray);
  color: var(--maroon);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: 'Cascadia Code', 'Fira Mono', monospace;
  font-size: .875em;
}
pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; }

/* ---------- Gutenberg Block: Separator ---------- */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
}
.wp-block-separator.is-style-wide { border-top-width: 3px; }
.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  color: var(--text-light);
  font-size: 1.2rem;
  letter-spacing: .4em;
}
.wp-block-separator.is-style-dots::before { content: "\00B7\00B7\00B7"; }

/* ---------- Gutenberg Block: Table ---------- */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 0;
}
.wp-block-table th {
  background: var(--maroon);
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
}
.wp-block-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:nth-child(even) td { background: var(--off-white); }
.wp-block-table.is-style-stripes tr:nth-child(odd) td { background: var(--light-gray); }
.wp-block-table figcaption {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: .5rem;
}

/* ---------- Gutenberg Block: Gallery ---------- */
.wp-block-gallery {
  display: grid;
  gap: 8px;
  margin: 1.5rem 0;
}
.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.wp-block-gallery figcaption {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 4px 0;
}
@media (max-width: 640px) {
  .wp-block-gallery.columns-3,
  .wp-block-gallery.columns-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Gutenberg Block: Image ---------- */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.wp-block-image figcaption {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
}

/* ---------- Gutenberg Block: Embed / Video ---------- */
.wp-block-embed { margin: 2rem 0; }
.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.wp-video { max-width: 100% !important; }

/* ---------- Gutenberg Block: Button(s) ---------- */
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--green);
  color: #fff;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--green);
  color: #fff;
}

/* ---------- Gutenberg Block: Cover ---------- */
.wp-block-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  margin: 1.5rem 0;
}

/* ---------- Gutenberg Block: Columns ---------- */
.wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.wp-block-column { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { width: 100%; }
}

/* ---------- Gutenberg Block: Lists ---------- */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.entry-content li::marker { color: var(--green); }

/* ---------- Gutenberg Block: Headings in content ---------- */
.entry-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.entry-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.75rem 0 .5rem;
}
.entry-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 .4rem;
}
.entry-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--green-dark); }
.entry-content blockquote {
  border-left: 3px solid var(--green);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dark);
  background: var(--green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.entry-content figure { margin: 1.5rem 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 1.5rem;
}
.entry-content th {
  background: var(--maroon);
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.entry-content tr:nth-child(even) td { background: var(--off-white); }

/* ---------- WP-generated Tag Cloud (WordPress Widget) ---------- */
.widget_tag_cloud .tagcloud,
.wp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.widget_tag_cloud a,
.tag-cloud-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-size: 12px !important; /* override WP inline font-size */
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.widget_tag_cloud a:hover,
.tag-cloud-link:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ============================================================
   PAGE-SPECIFIC STYLES
   Ported from HTML prototype inline <style> blocks.
   Applied to: About, Advertise, Author, 404, Search pages.
   ============================================================ */

/* ── ABOUT PAGE ── */
.about-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #8b1a2e 100%);
  padding: 80px 0 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://picsum.photos/seed/doha-skyline/1400/600') center/cover;
  opacity: 0.08;
}
.about-hero-content { position: relative; z-index: 1; }
.about-hero .eyebrow {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px; display: block;
}
.about-hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white); font-weight: 800; line-height: 1.15; margin-bottom: 20px;
}
.about-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  max-width: 620px; margin: 0 auto; line-height: 1.7;
}
.about-section { padding: 68px 0; }
.about-section.bg-light { background: var(--off-white); }
.about-eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px; display: block;
}
.about-heading {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--text-dark); margin-bottom: 18px; line-height: 1.2;
}
.about-subtext {
  font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px;
}
.mission-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.mission-image {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  box-shadow: var(--shadow-md);
}
.mission-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mission-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--maroon); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; letter-spacing: 0.06em;
}
.mission-badge span {
  display: block; font-size: 22px; font-family: var(--font-serif); letter-spacing: 0;
}
.value-pils { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.value-pil {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; background: var(--green-light);
  border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--green);
}
.value-pil i { font-size: 12px; }
.stats-row { background: var(--maroon); padding: 48px 0; }
.stats-row .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-block {
  text-align: center; padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-block:last-child { border-right: none; }
.stat-block .num {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 800;
  color: var(--green); line-height: 1; display: block;
}
.stat-block .lbl {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-top: 6px; display: block;
}
.timeline { position: relative; padding-left: 32px; margin-top: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-year {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 6px;
}
.timeline-item h4 {
  font-family: var(--font-serif); font-size: 1.05rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 6px;
}
.timeline-item p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 22px;
  border-top: 4px solid var(--green);
}
.value-icon { font-size: 28px; color: var(--maroon); margin-bottom: 14px; }
.value-card h3 {
  font-family: var(--font-serif); font-size: 1.05rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.value-card p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px;
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: var(--border);
}
.team-info { padding: 18px 16px; }
.team-info h4 {
  font-family: var(--font-serif); font-size: 1rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 4px;
}
.team-role {
  font-size: 12px; color: var(--green); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.team-bio { font-size: 13px; color: var(--text-mid); line-height: 1.55; margin-bottom: 12px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--off-white); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background var(--transition), color var(--transition);
}
.team-social a:hover { background: var(--green); color: var(--white); }
.about-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 56px 0; text-align: center;
}
.about-cta h2 {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white); font-weight: 800; margin-bottom: 14px;
}
.about-cta p {
  font-size: 15px; color: rgba(255,255,255,0.85);
  max-width: 500px; margin: 0 auto 28px; line-height: 1.65;
}
.about-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wh {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--white); color: var(--green) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: opacity var(--transition);
}
.btn-wh:hover { opacity: 0.9; }
.btn-outline-wh2 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: 2px solid rgba(255,255,255,0.6);
  color: var(--white) !important; font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: var(--radius-sm);
  text-decoration: none; transition: border-color var(--transition), background var(--transition);
}
.btn-outline-wh2:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
  .stats-row .container { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .mission-grid > .mission-image { order: -1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ── ADVERTISE PAGE ── */
.adv-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, #8b1a2e 100%);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.adv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://picsum.photos/seed/doha-aerial/1400/600') center/cover;
  opacity: 0.07;
}
.adv-hero-content { position: relative; z-index: 1; }
.adv-hero .eyebrow {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.adv-hero h1 {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white); font-weight: 800; line-height: 1.15; margin-bottom: 18px;
}
.adv-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  max-width: 580px; margin: 0 auto 30px; line-height: 1.65;
}
.adv-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--green); color: var(--white) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; border-radius: var(--radius-sm);
  text-decoration: none; transition: background var(--transition);
}
.btn-green:hover { background: var(--green-dark); }
.btn-outline-wh {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: 2px solid rgba(255,255,255,0.5);
  color: var(--white) !important; font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: var(--radius-sm);
  text-decoration: none; transition: border-color var(--transition), background var(--transition);
}
.btn-outline-wh:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.stats-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 10px 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--maroon); line-height: 1; display: block;
}
.stat-label { font-size: 13px; color: var(--text-mid); margin-top: 5px; display: block; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 24px; text-align: center;
}
.why-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-size: 22px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.why-card h3 {
  font-family: var(--font-serif); font-size: 1.1rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.why-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.format-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.format-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.format-card-header { padding: 20px 22px 16px; background: var(--green); color: var(--white); }
.format-card-header.maroon { background: var(--maroon); }
.format-card-header.dark { background: var(--maroon-dark); }
.format-card-header h3 {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
}
.format-card-header .fmt-size { font-size: 12px; opacity: 0.8; letter-spacing: 0.04em; }
.format-card-body { padding: 20px 22px; }
.format-price {
  font-family: var(--font-display); font-size: 1.9rem;
  font-weight: 700; color: var(--maroon); line-height: 1;
}
.format-price span {
  font-size: 13px; color: var(--text-light); font-weight: 400; font-family: var(--font-sans);
}
.format-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.format-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-mid); }
.format-list li i { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.format-cta {
  display: block; margin-top: 18px; padding: 10px; text-align: center;
  background: var(--green); color: var(--white) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: background var(--transition);
}
.format-cta:hover { background: var(--green-dark); }
.rate-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 14px; }
.rate-table th {
  background: var(--maroon); color: var(--white); padding: 13px 16px; text-align: left;
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.rate-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-mid); }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: var(--off-white); }
.rate-table .zone-name { font-weight: 700; color: var(--text-dark); }
.rate-badge {
  display: inline-block; padding: 2px 9px;
  border-radius: 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.rate-badge.hot { background: #fff0f0; color: var(--maroon); }
.rate-badge.new { background: var(--green-light); color: var(--green); }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.audience-facts { display: flex; flex-direction: column; gap: 16px; }
.audience-fact {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
}
.audience-fact i { font-size: 20px; color: var(--green); width: 24px; text-align: center; }
.audience-fact-text strong { display: block; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.audience-fact-text span { font-size: 13px; color: var(--text-mid); }
.audience-visual {
  background: var(--maroon); border-radius: var(--radius-md); padding: 32px; color: var(--white);
}
.audience-visual h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 20px; color: var(--white);
}
.demo-bar { margin-bottom: 14px; }
.demo-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 6px;
}
.demo-bar-track { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.demo-bar-fill { height: 100%; background: var(--green); border-radius: 4px; }
.contact-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 40px; }
.contact-info h3 {
  font-family: var(--font-serif); font-size: 1.4rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 14px;
}
.contact-info p { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--text-dark); }
.contact-detail i { color: var(--green); width: 18px; text-align: center; }
.contact-detail a { color: var(--green); }
.adv-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px;
}
.adv-form h3 {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 6px;
}
.adv-form > p { font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 13px; background: var(--green); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: background var(--transition);
}
.form-submit:hover { background: var(--green-dark); }
.form-note { font-size: 11px; color: var(--text-light); margin-top: 10px; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
}
.testimonial-stars { color: #f5a623; font-size: 14px; margin-bottom: 12px; }
.testimonial-card p {
  font-family: var(--font-serif); font-size: 14px; font-style: italic;
  color: var(--text-dark); line-height: 1.65; margin-bottom: 16px;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testimonial-author-info strong { display: block; font-size: 13px; color: var(--text-dark); }
.testimonial-author-info span { font-size: 12px; color: var(--text-light); }
.adv-section { padding: 64px 0; }
.adv-section.bg-light { background: var(--off-white); }
.adv-section-heading { text-align: center; margin-bottom: 8px; }
.adv-section-heading .eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px; display: block;
}
.adv-section-heading h2 {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--text-dark); margin-bottom: 10px;
}
.adv-section-heading p {
  font-size: 15px; color: var(--text-mid); max-width: 560px; margin: 0 auto; line-height: 1.65;
}

@media (max-width: 1024px) {
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .why-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .rate-table { font-size: 12px; }
  .rate-table th, .rate-table td { padding: 10px 10px; }
}


/* ── AUTHOR PAGE ── */
.author-hero {
  background: linear-gradient(148deg, var(--maroon-dark) 0%, var(--maroon) 60%, #8a1a2e 100%);
  padding: 56px 0 0;
}
.author-hero-inner { display: flex; align-items: flex-end; gap: 32px; padding-bottom: 0; }
.author-hero .author-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover; flex-shrink: 0;
  background: var(--maroon-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.35);
}
.author-hero .author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-hero-info { flex: 1; padding-bottom: 28px; }
.author-role {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}
.author-name {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--white); margin-bottom: 10px; line-height: 1.15;
}
.author-bio {
  font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7;
  max-width: 580px; margin-bottom: 16px;
}
.author-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.author-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.55); }
.author-meta-item i { color: var(--green); }
.author-socials { display: flex; gap: 8px; }
.author-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); font-size: 13px;
  text-decoration: none; transition: background var(--transition);
}
.author-social-link:hover { background: var(--green); }
.author-stats-bar {
  background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0; margin-top: 0;
}
.author-stats-inner { display: flex; gap: 36px; }
.author-stat { text-align: center; }
.author-stat-num {
  font-family: var(--font-serif); font-size: 20px; font-weight: 800;
  color: var(--white); display: block;
}
.author-stat-label {
  font-size: 11px; color: rgba(255,255,255,0.45);
  font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.author-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  padding: 48px 0 72px; align-items: start;
}
.author-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--maroon);
}
.author-section-title {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800; color: var(--text-dark);
}
.author-article-count { font-size: 12px; color: var(--text-light); }
.author-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.author-filter-tab {
  padding: 6px 14px; font-size: 12px; font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--white); color: var(--text-mid); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.author-filter-tab.active,
.author-filter-tab:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.author-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.author-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.author-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--border); }
.author-card-body { padding: 16px; }
.author-card-cat {
  display: inline-block; font-family: var(--font-display); font-size: 10px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 8px;
}
.author-card-title {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  color: var(--text-dark); line-height: 1.4; margin-bottom: 8px;
  text-decoration: none; display: block;
}
.author-card-title:hover { color: var(--maroon); }
.author-card-excerpt {
  font-size: 12px; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.author-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-light); padding-top: 10px;
  border-top: 1px solid var(--border);
}
.author-card-foot i { margin-right: 3px; }
.author-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.author-card.featured .author-card-img { aspect-ratio: 4/3; height: 100%; }
.author-card.featured .author-card-title { font-size: 18px; }
.author-card.featured .author-card-excerpt { -webkit-line-clamp: 4; }
.author-pagination { display: flex; gap: 6px; justify-content: center; padding: 36px 0 0; }
.author-pg-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-mid);
  text-decoration: none; transition: all var(--transition);
}
.author-pg-btn.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.author-pg-btn:hover:not(.active) { border-color: var(--maroon); color: var(--maroon); }
.author-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget-head {
  background: var(--maroon); padding: 12px 18px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
}
.sidebar-widget-body { padding: 18px; }
.sidebar-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-img {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--border);
}
.sidebar-post-title {
  font-size: 13px; font-weight: 600; color: var(--text-dark);
  line-height: 1.4; display: block; text-decoration: none; margin-bottom: 4px;
}
.sidebar-post-title:hover { color: var(--maroon); }
.sidebar-post-meta { font-size: 11px; color: var(--text-light); }
.sidebar-ad {
  background: var(--off-white); border: 1px dashed var(--border);
  border-radius: var(--radius-md); height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.sidebar-ad i { font-size: 24px; color: var(--border); }
.sidebar-ad span { font-size: 11px; color: var(--text-light); font-family: var(--font-display); letter-spacing: 0.08em; }
.sidebar-ad a { font-size: 11px; color: var(--green); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

@media (max-width: 900px) {
  .author-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .author-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 24px; }
  .author-grid { grid-template-columns: 1fr; }
  .author-card.featured { grid-template-columns: 1fr; }
  .author-card.featured .author-card-img { height: 200px; }
}


/* ── 404 PAGE ── */
.error-page {
  min-height: 72vh; display: flex; align-items: center;
  justify-content: center; padding: 60px 20px; background: var(--off-white);
}
.error-container { max-width: 680px; width: 100%; text-align: center; }
.error-visual { position: relative; display: inline-block; margin-bottom: 32px; }
.error-num {
  font-family: var(--font-serif);
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 3px var(--maroon);
  letter-spacing: -4px; display: block; position: relative;
}
.error-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--maroon); color: var(--white);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 24px rgba(91,7,23,0.3);
}
.error-eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px; display: block;
}
.error-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px;
}
.error-body {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.7; max-width: 480px; margin: 0 auto 32px;
}
.error-search {
  display: flex; max-width: 440px; margin: 0 auto 32px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--white); transition: border-color var(--transition);
}
.error-search:focus-within { border-color: var(--green); }
.error-search input {
  flex: 1; padding: 12px 16px; border: none; font-size: 14px;
  font-family: var(--font-sans); color: var(--text-dark);
  background: transparent; outline: none;
}
.error-search button {
  padding: 12px 18px; background: var(--green); color: var(--white);
  border: none; font-size: 15px; cursor: pointer; transition: background var(--transition);
}
.error-search button:hover { background: var(--green-dark); }
.error-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.btn-maroon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--maroon); color: var(--white) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-sm); text-decoration: none; transition: background var(--transition);
}
.btn-maroon:hover { background: var(--maroon-dark); }
.btn-green-solid {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--green); color: var(--white) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-sm); text-decoration: none; transition: background var(--transition);
}
.btn-green-solid:hover { background: var(--green-dark); }
.btn-border-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: 2px solid var(--border); color: var(--text-mid) !important;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-border-dark:hover { border-color: var(--text-mid); color: var(--text-dark) !important; }
.error-cats-label {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 12px; display: block;
}
.error-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.error-cat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; color: var(--text-dark);
  text-decoration: none; transition: border-color var(--transition), color var(--transition);
}
.error-cat-tag:hover { border-color: var(--green); color: var(--green); }
.error-cat-tag i { font-size: 11px; color: var(--green); }
.error-divider { border: none; border-top: 1px solid var(--border); margin: 36px auto; max-width: 300px; }
.error-recent { padding: 48px 0 60px; }
.error-recent-heading {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 24px; text-align: center;
}
.error-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.error-article-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.error-article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.error-article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.error-article-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.error-article-cat {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px; display: block;
}
.error-article-card-body h4 {
  font-family: var(--font-serif); font-size: 14px; font-weight: 700;
  color: var(--text-dark); line-height: 1.4; margin-bottom: 6px;
}
.error-article-date { font-size: 11px; color: var(--text-light); margin-top: auto; }

@media (max-width: 768px) {
  .error-articles-grid { grid-template-columns: 1fr; }
  .error-btns { flex-direction: column; align-items: center; }
}


/* ── SEARCH PAGE ── */
.search-bar-section { background: var(--maroon); padding: 36px 0 28px; }
.search-bar-section h1 {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75); font-weight: 400; margin-bottom: 18px;
}
.search-bar-section h1 strong { color: var(--white); font-weight: 800; }
.search-hero-form {
  display: flex; max-width: 680px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(255,255,255,0.1); transition: border-color var(--transition);
}
.search-hero-form:focus-within { border-color: var(--green); background: rgba(255,255,255,0.15); }
.search-hero-form input {
  flex: 1; padding: 14px 18px; background: transparent;
  border: none; outline: none; font-size: 16px;
  font-family: var(--font-sans); color: var(--white);
}
.search-hero-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-hero-form button {
  padding: 14px 22px; background: var(--green); color: var(--white);
  border: none; cursor: pointer; font-size: 15px; transition: background var(--transition);
}
.search-hero-form button:hover { background: var(--green-dark); }
.search-hero-form button span {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-left: 8px;
}
.search-filters-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.search-filters-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-filter-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-right: 4px;
}
.search-filter-btn {
  padding: 6px 14px; border: 1.5px solid var(--border);
  border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--text-mid); background: var(--white); cursor: pointer; transition: all var(--transition);
}
.search-filter-btn:hover, .search-filter-btn.active {
  border-color: var(--green); background: var(--green); color: var(--white);
}
.search-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-sort label { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.search-sort select {
  padding: 6px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px;
  font-family: var(--font-sans); color: var(--text-dark);
  background: var(--white); cursor: pointer; outline: none;
}
.search-main { padding: 44px 0 64px; }
.search-layout { display: grid; grid-template-columns: 1fr 316px; gap: 40px; align-items: start; }
.search-results-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 2px solid var(--maroon); margin-bottom: 28px;
}
.search-results-count { font-family: var(--font-display); font-size: 13px; color: var(--text-mid); }
.search-results-count strong { color: var(--maroon); }
.search-view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-light); cursor: pointer; transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.search-result-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background var(--transition);
}
.search-result-card:hover .result-title { color: var(--green); }
.result-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--border); display: block;
}
.result-body { display: flex; flex-direction: column; }
.result-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.result-cat {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: var(--green); padding: 2px 8px; border-radius: 3px;
}
.result-cat.maroon { background: var(--maroon); }
.result-date, .result-read-time { font-size: 11px; color: var(--text-light); }
.result-title {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.35; margin-bottom: 8px; transition: color var(--transition);
}
.result-excerpt {
  font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-author { display: flex; align-items: center; gap: 7px; margin-top: auto; }
.result-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.result-author span { font-size: 11px; color: var(--text-light); }
.search-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.pg-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-mid); cursor: pointer;
  text-decoration: none; transition: all var(--transition);
}
.pg-btn:hover, .pg-btn.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.pg-btn.disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 768px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-result-card { grid-template-columns: 100px 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .search-result-card { grid-template-columns: 1fr; }
  .result-thumb { aspect-ratio: 16/6; }
}


/* ---------- WP Core: Page Links (paginated posts) ---------- */
.page-links {
  clear: both;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
}
.page-links > .page-links-title {
  margin-right: .5rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.page-links > a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  text-decoration: none;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition);
}
.page-links > a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.page-links > span:not(.page-links-title) { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- WordPress Gallery (Classic Editor shortcode) ---------- */
.gallery {
  display: grid;
  gap: 8px;
  margin: 1.5rem 0;
}
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-caption {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   CONTACT FORM 7 OVERRIDES
   Styles CF7 (<= 5.x) when used in page-contact.php or any page.
   ============================================================ */

/* Wrapper */
.wpcf7 { margin: 0; max-width: 100%; }
.wpcf7 form { margin: 0; }

/* Inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(1,168,90,.15);
}
.wpcf7-form textarea { min-height: 180px; resize: vertical; }

/* Validation error state on individual fields */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

/* Inline validation tip */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
}

/* Response output (form-level message) */
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none !important;
}
.wpcf7-mail-sent-ok {
  background: var(--green-light);
  color: var(--green-dark);
  border-left: 4px solid var(--green) !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: #fff5f5;
  color: #c53030;
  border-left: 4px solid #e53e3e !important;
}
.wpcf7-spam-blocked {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--gold) !important;
}
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #fff5f5;
  color: #c53030;
  border-left: 4px solid #e53e3e !important;
}

/* Loading spinner */
.wpcf7 .ajax-loader {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* Submit button — match theme primary button */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.wpcf7-form input[type="submit"]:disabled,
.wpcf7-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   WORDPRESS BLOCK WIDGETS — Sidebar Styling
   Matches .widget-header / .widget-body exactly
   ============================================================ */

/* ── 1. Hard-reset all WP block container spacing ──────────── */
.sidebar-widget .wp-block-group,
.sidebar-widget .wp-block-group__inner-container,
.sidebar-widget [class*="wp-block-group-is-layout"] {
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
/* Kill WP layout-flow gap injection between children */
.sidebar-widget .is-layout-flow > * + * {
  margin-block-start: 0 !important;
}

/* ── 2. h2.wp-block-heading → same as .widget-header ───────── */
/* Parent padding is now 0, so no negative-margin tricks needed */
.sidebar-widget .wp-block-heading {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--maroon) !important;
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  border: none !important;
}
.sidebar-widget .wp-block-heading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── 3. List content: padding lives on the list itself ──────── */
.sidebar-widget .wp-block-latest-posts__list,
.sidebar-widget .wp-block-archives-list,
.sidebar-widget .wp-block-categories-list,
.sidebar-widget .wp-block-latest-comments {
  list-style: none !important;
  padding: 0 16px 16px !important;
  margin: 0 !important;
}

/* ── 4. List items ──────────────────────────────────────────── */
.sidebar-widget .wp-block-latest-posts__list > li,
.sidebar-widget .wp-block-archives-list > li,
.sidebar-widget .wp-block-categories-list > li,
.sidebar-widget .wp-block-latest-comments__comment {
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 0 !important;
  margin: 0 !important;
}
.sidebar-widget .wp-block-latest-posts__list > li:first-child,
.sidebar-widget .wp-block-archives-list > li:first-child,
.sidebar-widget .wp-block-categories-list > li:first-child,
.sidebar-widget .wp-block-latest-comments__comment:first-child {
  padding-top: 14px !important;
}
.sidebar-widget .wp-block-latest-posts__list > li:last-child,
.sidebar-widget .wp-block-archives-list > li:last-child,
.sidebar-widget .wp-block-categories-list > li:last-child,
.sidebar-widget .wp-block-latest-comments__comment:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* ── 5. Recent Posts links ──────────────────────────────────── */
.sidebar-widget .wp-block-latest-posts__post-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  text-decoration: none;
  display: block;
  transition: color var(--transition);
}
.sidebar-widget .wp-block-latest-posts__post-title:hover { color: var(--green); }

/* ── 6. Archives & Categories links ─────────────────────────── */
.sidebar-widget .wp-block-archives-list a,
.sidebar-widget .wp-block-categories-list a {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.sidebar-widget .wp-block-archives-list a::before,
.sidebar-widget .wp-block-categories-list a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.sidebar-widget .wp-block-archives-list a:hover,
.sidebar-widget .wp-block-categories-list a:hover { color: var(--green); }

/* ── 7. Recent Comments ──────────────────────────────────────── */
.sidebar-widget .wp-block-latest-comments__comment-meta {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
}
.sidebar-widget .wp-block-latest-comments__comment-author {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.sidebar-widget .wp-block-latest-comments__comment-author:hover { text-decoration: underline; }
.sidebar-widget .wp-block-latest-comments__comment-link {
  color: var(--text-mid);
  text-decoration: none;
  font-style: italic;
}
.sidebar-widget .wp-block-latest-comments__comment-link:hover { color: var(--text-dark); }

/* ── 8. Search Block ─────────────────────────────────────────── */
.sidebar-widget .wp-block-search {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}
/* Label → full-width maroon header bar */
.sidebar-widget .wp-block-search__label {
  display: block;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  line-height: 1.4;
}
.sidebar-widget .wp-block-search__label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
/* Input row → body padding */
.sidebar-widget .wp-block-search__inside-wrapper {
  display: flex;
  margin: 14px 16px 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.sidebar-widget .wp-block-search__input {
  flex: 1;
  background: #f7f7f5;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-dark);
  font-family: var(--font-body);
}
.sidebar-widget .wp-block-search__input::placeholder { color: var(--text-light); }
.sidebar-widget .wp-block-search__button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background var(--transition);
}
.sidebar-widget .wp-block-search__button:hover { background: var(--green-dark); }

/* ============================================================
   AI-GENERATED ARTICLE BODY ELEMENTS
   Classes injected by AfroQ AI Writer plugin
   ============================================================ */

/* Lead paragraph */
.entry-content .article-lead,
.post-content .article-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 28px;
  font-weight: 400;
}
.entry-content .article-lead strong,
.post-content .article-lead strong { color: var(--maroon); font-weight: 700; }

/* Inline article images */
.entry-content figure.article-image,
.post-content figure.article-image {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.entry-content figure.article-image img,
.post-content figure.article-image img {
  width: 100%; height: auto; display: block; max-height: 460px; object-fit: cover;
}
.entry-content figure.article-image figcaption,
.post-content figure.article-image figcaption {
  font-size: 12px; color: var(--text-light); padding: 8px 14px; background: #f5f5f3; font-style: italic;
}

/* Pull Quote */
.entry-content blockquote.pull-quote,
.post-content blockquote.pull-quote {
  border-left: 5px solid var(--maroon);
  margin: 36px 0;
  padding: 20px 28px;
  background: #fdf5f6;
  border-radius: 0 12px 12px 0;
  position: relative;
}
.entry-content blockquote.pull-quote::before,
.post-content blockquote.pull-quote::before {
  content: '\201C'; font-size: 72px; color: var(--maroon); opacity: .18;
  position: absolute; top: -10px; left: 16px; font-family: Georgia, serif; line-height: 1;
}
.entry-content blockquote.pull-quote p,
.post-content blockquote.pull-quote p {
  font-size: 17px; font-style: italic; color: var(--maroon); font-weight: 600; line-height: 1.65; margin: 0 0 10px;
}
.entry-content blockquote.pull-quote cite,
.post-content blockquote.pull-quote cite {
  font-size: 12.5px; color: var(--text-light); font-style: normal; display: block;
}
.entry-content blockquote.pull-quote cite::before,
.post-content blockquote.pull-quote cite::before { content: '— '; }

/* Callout / Key Stat box */
.entry-content .article-callout,
.post-content .article-callout {
  background: var(--green-light);
  border-left: 5px solid var(--green);
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-size: 14.5px;
  color: var(--text-dark);
  line-height: 1.65;
}
.entry-content .article-callout strong,
.post-content .article-callout strong {
  color: var(--green-dark); display: block; margin-bottom: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
}

/* FAQ Section */
.entry-content .article-faq,
.post-content .article-faq { margin: 32px 0 0; }
.entry-content .article-faq .faq-item,
.post-content .article-faq .faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.entry-content .article-faq .faq-item:first-child,
.post-content .article-faq .faq-item:first-child { padding-top: 4px; }
.entry-content .article-faq .faq-item:last-child,
.post-content .article-faq .faq-item:last-child { border-bottom: none; }
.entry-content .article-faq .faq-item h3,
.post-content .article-faq .faq-item h3 {
  font-size: 15px; color: var(--maroon); margin: 0 0 8px; font-weight: 700;
  display: flex; align-items: flex-start; gap: 10px;
}
.entry-content .article-faq .faq-item h3::before,
.post-content .article-faq .faq-item h3::before {
  content: 'Q'; display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; background: var(--maroon); color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.entry-content .article-faq .faq-item p,
.post-content .article-faq .faq-item p {
  margin: 0; font-size: 14px; color: var(--text-mid); line-height: 1.7; padding-left: 32px;
}

/* Article H2/H3 within the post body */
.entry-content h2, .post-content h2 {
  font-size: 20px; color: var(--text-dark); margin: 40px 0 14px;
  padding-bottom: 10px; border-bottom: 2.5px solid var(--green); line-height: 1.3;
}
.entry-content h3, .post-content h3 {
  font-size: 16.5px; color: var(--text-dark); margin: 26px 0 10px; font-weight: 700;
}

/* Photo credits */
.wp-caption-text, .wp-element-caption {
  font-size: 12px; color: var(--text-light); font-style: italic; margin-top: 6px;
}

/* ── Related Stories (AI Writer) ─────────────────────────── */
.aqc-related-stories {
  margin-top: 36px; padding: 24px 28px; background: #f9fafb;
  border: 1px solid #e5e7eb; border-radius: 10px;
}
.aqc-related-stories h3 {
  margin: 0 0 14px; font-size: 17px; font-weight: 700;
  color: var(--text-dark); letter-spacing: -0.01em;
  padding-bottom: 0; border-bottom: none;
}
.aqc-related-stories ul {
  list-style: none; margin: 0; padding: 0;
}
.aqc-related-stories li {
  padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 14px;
}
.aqc-related-stories li:last-child { border-bottom: none; }
.aqc-related-stories a {
  color: var(--green); text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.aqc-related-stories a:hover {
  color: var(--text-dark); text-decoration: underline;
}


/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 80ms linear;
  will-change: width;
}


/* ============================================================
   AJAX LIVE SEARCH RESULTS
   ============================================================ */
.live-search-results {
  display: none;
  max-height: 420px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  margin-top: 4px;
}
.live-search-results.has-results {
  display: block;
}
.lsr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.lsr-item:last-child { border-bottom: none; }
.lsr-item:hover,
.lsr-item.is-active {
  background: var(--light-gray);
}
.lsr-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.lsr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lsr-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lsr-meta {
  font-size: 12px;
  color: var(--text-light);
}
.lsr-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}


/* ============================================================
   AUTO TABLE OF CONTENTS
   ============================================================ */
.aqc-toc {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
}
.aqc-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dark);
}
.aqc-toc-label i {
  margin-right: 8px;
  color: var(--green);
}
.aqc-toc-chevron {
  font-size: 12px;
  transition: transform .25s ease;
}
.aqc-toc-chevron.flipped {
  transform: rotate(180deg);
}
.aqc-toc-list {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 600px;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.aqc-toc-list.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.aqc-toc-link {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.aqc-toc-link:last-child { border-bottom: none; }
.aqc-toc-link:hover { color: var(--green); }
.aqc-toc-link.active {
  color: var(--green);
  font-weight: 600;
}
.aqc-toc-link.aqc-toc-h3 {
  padding-left: 18px;
  font-size: 13px;
}


/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dark);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.dark-mode-toggle:hover {
  background: var(--light-gray);
  color: var(--green);
}


/* ============================================================
   DARK MODE — CSS CUSTOM PROPERTY OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --white: #1a1a1a;
  --off-white: #222;
  --light-gray: #2a2a2a;
  --border: #3a3a3a;
  --dark: #f0f0f0;
  --text-dark: #e8e8e8;
  --text-mid: #b0b0b0;
  --text-light: #888;
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: #111;
  color: #e8e8e8;
}
[data-theme="dark"] .site-header {
  background: #1a1a1a;
  border-bottom-color: #333;
}
[data-theme="dark"] .top-bar {
  background: #111;
}
[data-theme="dark"] .search-panel {
  background: #222;
}
[data-theme="dark"] .search-panel input {
  background: #333;
  color: #e8e8e8;
  border-color: #444;
}
[data-theme="dark"] .live-search-results {
  background: #222;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
[data-theme="dark"] .lsr-item:hover,
[data-theme="dark"] .lsr-item.is-active {
  background: #2a2a2a;
}
[data-theme="dark"] .article-card,
[data-theme="dark"] .hero-side-card {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .article-card-body h3,
[data-theme="dark"] .hero-side-card h3 {
  color: #e8e8e8;
}
[data-theme="dark"] .sidebar-widget {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .footer {
  background: #0d0d0d;
}
[data-theme="dark"] .cookie-consent-bar {
  background: #1e1e1e;
  border-top-color: #333;
}
[data-theme="dark"] .article-content {
  color: #d4d4d4;
}
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4 {
  color: #eee;
}
[data-theme="dark"] .article-content blockquote {
  border-left-color: var(--green);
  background: #222;
  color: #ccc;
}
[data-theme="dark"] .aqc-toc {
  background: #222;
  border-color: #3a3a3a;
}
[data-theme="dark"] .aqc-toc-toggle {
  color: #e8e8e8;
}
[data-theme="dark"] .aqc-toc-link {
  color: #b0b0b0;
  border-bottom-color: #3a3a3a;
}
[data-theme="dark"] .comments-wrap {
  color: #d4d4d4;
}
[data-theme="dark"] .comment-respond input,
[data-theme="dark"] .comment-respond textarea {
  background: #2a2a2a;
  color: #e8e8e8;
  border-color: #444;
}
[data-theme="dark"] .related-posts {
  background: #151515;
  border-top-color: #333;
}
[data-theme="dark"] .dark-mode-toggle {
  border-color: #444;
  color: #fbbf24;
}
[data-theme="dark"] .dark-mode-toggle:hover {
  background: #333;
}
[data-theme="dark"] .ad-zone {
  background: #1e1e1e;
}
[data-theme="dark"] .article-breadcrumb a {
  color: #b0b0b0;
}
[data-theme="dark"] .share-btn {
  background: #333;
  color: #ccc;
}
[data-theme="dark"] .reading-progress {
  background: #333;
}
[data-theme="dark"] .category-strip {
  background: #1a1a1a;
}
[data-theme="dark"] .hero-carousel {
  background: #111;
}
