/*
Theme Name: Sankofa ICD
Theme URI: https://sankofaicd.org
Author: Sankofa Initiative for Culture and Development
Author URI: https://sankofaicd.org
Description: Official WordPress theme for the Sankofa Initiative for Culture and Development. Contemporary, editorial, cultural.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sankofa-icd
Tags: culture, editorial, nonprofit, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:          #E51C2B;
  --red-dark:     #c41625;
  --black:        #111111;
  --black-soft:   #1a1a1a;
  --white:        #ffffff;
  --grey-light:   #f8f8f8;
  --grey-mid:     #e8e8e8;
  --grey-dark:    #666666;
  --text:         #333333;

  --font-sans:    'Lato', system-ui, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  --max-w:        1200px;
  --pad-x:        20px;
  --radius:       0;

  --transition:   0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

.label-red {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.section-title-wrap {
  text-align: center;
  padding: 56px var(--pad-x) 40px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--red);
  margin: 14px auto 0;
}
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}
.section-hd h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
}
.view-all {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.view-all:hover { color: var(--black); border-color: var(--black); }

.read-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 10px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--black-soft);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-date { color: rgba(255,255,255,.45); }
.topbar-phone a {
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.topbar-phone a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .05em;
  transition: color var(--transition);
}
.topbar-social a:hover { color: var(--red); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 80px;
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a { color: var(--red); }

/* CTA nav item */
.main-nav > li.nav-cta > a {
  background: var(--red);
  color: var(--white) !important;
  padding: 11px 20px;
  line-height: normal;
  display: inline-block;
  margin-left: 10px;
}
.main-nav > li.nav-cta > a:hover { background: var(--red-dark); }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 80px;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
}
.main-nav > li:hover .sub-menu,
.main-nav > li.submenu-open .sub-menu,
.main-nav > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #f0f0f0;
  transition: all var(--transition);
  line-height: normal;
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }
.main-nav .sub-menu li a:hover,
.main-nav .sub-menu li a:focus { background: var(--red); color: var(--white); }

/* Dropdown toggle button — hidden on desktop, used for tap-to-expand on mobile */
.main-nav .submenu-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  font-size: 13px;
  align-items: center;
  justify-content: center;
}
.main-nav .submenu-toggle span { transition: transform var(--transition); display: inline-block; }
.main-nav li.submenu-open .submenu-toggle span { transform: rotate(180deg); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--black);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
}
.slide-content {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px 60px max(60px, calc((100vw - 1200px) / 2 + 20px));
}
.slide-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.slide-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.slide-sub {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background var(--transition);
  align-self: flex-start;
}
.slide-btn:hover { background: var(--red-dark); }
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--red); width: 24px; border-radius: 4px; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
  font-size: 18px;
}
.slider-arrow:hover { background: var(--red); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-section { background: var(--grey-light); padding-bottom: 60px; }
.what-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--red);
}
.what-item {
  padding: 36px 36px 40px;
  border-right: 1px solid var(--grey-mid);
  transition: background var(--transition);
}
.what-item:last-child { border-right: none; }
.what-item:hover { background: var(--white); }
.what-icon {
  width: 52px; height: 52px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.what-icon svg {
  width: 24px; height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.what-item h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  color: var(--black);
  font-family: var(--font-sans);
  line-height: 1.3;
}
.what-item p { font-size: 13.5px; color: var(--grey-dark); line-height: 1.75; margin-bottom: 18px; }

/* ============================================================
   IMPACT RIBBON (decorative — replaces plain stat counter bar)
   ============================================================ */
.stats-section {
  background: var(--red);
  overflow: hidden;
  position: relative;
}
/* diagonal stripe texture */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,.04) 18px,
    rgba(255,255,255,.04) 36px
  );
  pointer-events: none;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.stat-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.18);
  position: relative;
  text-align: center;
  gap: 10px;
}
.stat-block:last-child { border-right: none; }
/* decorative top accent line */
.stat-block::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,.45);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
  letter-spacing: -.02em;
}
.stat-plus {
  font-size: 1.5rem;
  vertical-align: 0.1em;
  opacity: .8;
}
.stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
  max-width: 120px;
  line-height: 1.4;
}

/* ============================================================
   UPCOMING EVENTS
   ============================================================ */
.events-section { padding: 60px 0; background: var(--white); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.event-card {
  display: flex;
  border: 1px solid var(--grey-mid);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.event-date-block {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 22px;
  min-width: 86px;
  text-align: center;
  flex-shrink: 0;
}
.event-day {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.event-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  display: block;
  margin-top: 4px;
}
.event-year { font-size: 10px; opacity: .5; display: block; margin-top: 2px; }
.event-info {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.event-info h3 { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--black); margin-bottom: 8px; }
.event-info p { font-size: 12px; color: #777; line-height: 1.6; margin-bottom: 10px; }
.event-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.event-link:hover { gap: 8px; }

/* ============================================================
   PROJECTS / INITIATIVES
   ============================================================ */
.projects-section { background: var(--grey-light); padding: 60px 0; }
.projects-list { display: flex; flex-direction: column; }
.proj-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  overflow: hidden;
  transition: box-shadow var(--transition);
  position: relative;
}
.proj-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); z-index: 1; }
.proj-img {
  overflow: hidden;
  position: relative;
  min-height: 220px;
}
.proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.proj-card:hover .proj-img img { transform: scale(1.05); }
.proj-img-placeholder {
  width: 100%; height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: rgba(255,255,255,.15);
}
.proj-info {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proj-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.proj-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.2;
}
.proj-info p { font-size: 13.5px; color: var(--grey-dark); line-height: 1.7; margin-bottom: 22px; max-width: 52ch; }
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 11px 22px;
  transition: background var(--transition);
  align-self: flex-start;
}
.learn-more:hover { background: var(--black); color: var(--white); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--black);
  padding: 56px 0;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.newsletter-section p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button {
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ============================================================
   VIDEO ARCHIVES
   ============================================================ */
.video-section { padding: 60px 0; background: var(--white); }
.video-intro { font-size: 13px; color: #888; margin-bottom: 28px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.video-card {
  border: 1px solid var(--grey-mid);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.video-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background var(--transition);
}
.video-card:hover .play-btn { background: rgba(229,28,43,.7); }
.play-btn svg { width: 44px; height: 44px; fill: rgba(255,255,255,.85); }
.video-info { padding: 16px; }
.video-info h3 { font-size: 13px; font-weight: 700; color: var(--black); line-height: 1.4; margin-bottom: 8px; }
.video-info p { font-size: 12px; color: #888; line-height: 1.6; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--grey-light);
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--red);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin-top: 10px;
}

/* ============================================================
   ARCHIVE HEADER (Stories)
   ============================================================ */
.archive-header {
  background: var(--grey-light);
  padding: 56px 0 40px;
  border-bottom: 3px solid var(--red);
}
.category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.cat-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid #ccc;
  color: #666;
  transition: all var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   ABOUT / CONTENT LAYOUT
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding: 56px 0;
}
.content-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 4px;
}
.content-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.content-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.content-body .lead {
  font-size: 15.5px;
  color: var(--black);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.values-list { display: flex; flex-direction: column; gap: 0; }
.value-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--grey-mid);
}
.value-item:last-child { border-bottom: none; }
.value-item h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--black);
  margin-bottom: 8px;
}
.value-item p { font-size: 13.5px; color: #555; line-height: 1.75; margin: 0; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--grey-mid);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.team-role { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.team-bio { font-size: 12.5px; color: #666; line-height: 1.65; }

/* ============================================================
   GET INVOLVED
   ============================================================ */
.get-involved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 2.5rem;
  background: var(--grey-mid);
}
.gi-card {
  padding: 2.5rem;
  background: var(--white);
  transition: background var(--transition);
}
.gi-card:hover { background: var(--grey-light); }
.gi-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.gi-card p { font-size: 13.5px; color: #555; line-height: 1.75; }
.gi-card a { margin-top: 12px; display: inline-flex; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  padding-top: 56px;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
}
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 6px;
}
.contact-detail p,
.contact-detail a,
.contact-detail span {
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--red); }

/* Contact Form */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-mid);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ============================================================
   PROJECTS / PUBLICATIONS (Our Work page)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card { border: 1px solid var(--grey-mid); overflow: hidden; }
.project-image { aspect-ratio: 16/9; overflow: hidden; background: var(--grey-mid); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-card > *:not(.project-image) { padding: 0 18px; }
.project-year {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 16px;
  margin-bottom: 6px;
}
.project-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.project-card h3 a { color: var(--black); }
.project-card h3 a:hover { color: var(--red); }
.project-card p { font-size: 12.5px; color: #666; line-height: 1.65; padding-bottom: 18px; }

.pub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pub-card { }
.pub-cover { aspect-ratio: 3/4; background: var(--grey-mid); overflow: hidden; margin-bottom: 12px; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-type { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 5px; }
.pub-card h4 { font-size: 13px; font-weight: 700; color: var(--black); line-height: 1.3; margin-bottom: 4px; }

/* Archive grid (stories) */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 40px;
}
.story-image { aspect-ratio: 16/9; overflow: hidden; background: var(--grey-mid); margin-bottom: 12px; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-image:hover img { transform: scale(1.04); }
.story-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 6px;
}
.story-excerpt { font-size: 13px; color: #666; line-height: 1.65; margin-bottom: 10px; }
.story-meta { font-size: 11.5px; color: #aaa; display: flex; gap: 12px; }

/* Pagination */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-mid);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  margin: 0 3px;
  transition: all var(--transition);
}
.page-numbers:hover,
.page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }

/* Hierarchy bar */
.hierarchy-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  margin-bottom: 12px;
  flex-wrap: wrap;
  letter-spacing: .03em;
}
.hierarchy-bar .sep { color: #ddd; }
.hierarchy-bar .active { color: var(--black); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
/* ---- Footer CTA strip ---- */
.footer-cta-strip {
  background: var(--red);
  text-align: center;
  padding: 18px var(--pad-x);
}
.footer-cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 28px;
  transition: all var(--transition);
}
.footer-cta-btn:hover { background: var(--black); color: var(--white); }

/* ---- Footer main ---- */
.site-footer { background: var(--black); color: rgba(255,255,255,.55); padding: 56px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ---- Brand column ---- */
.footer-brand {}
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 44px; mix-blend-mode: screen; filter: brightness(2); }
.footer-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
  max-width: 300px;
}
.footer-issn {
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

/* ---- Social icon buttons ---- */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.footer-social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social-icon svg[stroke="currentColor"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-social-icon:hover { background: var(--red); color: var(--white); }

/* ---- Link columns ---- */
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { margin-bottom: 28px; list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.footer-col ul a:hover { color: var(--red); }

/* ---- Connect column ---- */
.footer-connect-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.fc-item svg {
  width: 14px; height: 14px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.fc-item a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.fc-item a:hover { color: var(--red); }
.fc-link svg { stroke: rgba(255,255,255,.3); }

/* ---- Footer bottom bar ---- */
.footer-bottom {
  text-align: center;
  padding: 18px var(--pad-x);
  font-size: 11.5px;
  color: rgba(255,255,255,.25);
}
.footer-bottom a { color: var(--red); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   404 / SEARCH / GENERIC PAGE
   ============================================================ */
.error-page, .generic-page { padding: 80px 0; min-height: 50vh; }
.error-page h1 { font-family: var(--font-serif); font-size: 6rem; color: var(--red); line-height: 1; margin-bottom: 1rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header { background: var(--grey-light); padding: 56px 0 40px; border-bottom: 3px solid var(--red); }
.post-header h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--black); line-height: 1.15; margin-top: 12px; max-width: 780px; }
.post-meta { font-size: 12px; color: #999; display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.post-body { max-width: 720px; padding: 48px 0; }
.post-body p { font-size: 15px; line-height: 1.85; color: #333; margin-bottom: 1.4rem; }
.post-body h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.post-body h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body blockquote { border-left: 3px solid var(--red); padding: 1rem 0 1rem 1.5rem; margin: 2rem 0; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: #444; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.post-body li { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 0.4rem; list-style: disc; }
.post-body img { margin: 2rem 0; max-width: 100%; }
.post-body a { color: var(--red); border-bottom: 1px solid rgba(229,28,43,.3); }
.post-body a:hover { border-color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .what-item:nth-child(2) { border-right: none; }
  .what-item:nth-child(3) { border-top: 1px solid var(--grey-mid); }
  .proj-card { grid-template-columns: 220px 1fr; }
  .content-grid { grid-template-columns: 160px 1fr; gap: 2.5rem; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-date { display: none; }
  .main-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.1); gap: 0; z-index: 999; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > li { position: relative; }
  .main-nav > li > a { line-height: normal; padding: 12px 0; border-bottom: 1px solid var(--grey-mid); }
  .main-nav > li.menu-item-has-children > a { padding-right: 44px; }
  .main-nav > li:last-child > a { margin: 12px 0 0; }
  .main-nav .submenu-toggle { display: flex; top: 0; height: 44px; }
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    padding-left: 16px;
  }
  .main-nav li.submenu-open .sub-menu { max-height: 1000px; }
  .nav-toggle { display: flex; }
  .hero-slider { height: 480px; }
  .slide-content { width: 90%; padding: 40px 20px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-block { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-last-child(-n+2) { border-bottom: none; }
  .events-grid { grid-template-columns: 1fr; }
  .proj-card { grid-template-columns: 1fr; }
  .proj-img { min-height: 200px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .what-grid { grid-template-columns: 1fr; }
  .what-item { border-right: none; border-bottom: 1px solid var(--grey-mid); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .content-label { padding-bottom: 8px; border-bottom: 2px solid var(--red); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .get-involved-grid { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { flex-direction: column; }
  .stat-block { flex: none; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat-block:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ============================================================
   EDITABLE-CONTENT ADJUSTMENTS
   ============================================================ */

/* Impact ribbon: works with any number of stats, not just four. */
.stats-inner.stats-count-3 .stat-block { flex: 1 1 0; }
.stats-inner.stats-count-2 .stat-block { flex: 1 1 0; }
.stats-inner.stats-count-1 .stat-block { flex: 1 1 100%; border-right: none; }

@media (max-width: 900px) {
  .stats-inner.stats-count-3 .stat-block { flex: 0 0 100%; border-right: none; }
  .stats-inner.stats-count-3 .stat-block:last-child { border-bottom: none; }
}

/* Paragraphs generated from the multi-paragraph content boxes. */
.work-body p { margin-bottom: 1rem; }
.work-body p:last-child { margin-bottom: 0; }
.content-body > p { margin-bottom: 1rem; }
.content-body > p:last-child { margin-bottom: 0; }
