/* ============================================================
   IdealistCT — Main Stylesheet
   Based on design prototype. Covers all pages.
   ============================================================ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --teal:        #0A7C5C;
  --teal-light:  #1AB385;
  --teal-pale:   #E2F5EE;
  --teal-mid:    #0F6E56;
  --blue:        #1A6FAF;
  --blue-pale:   #E6F1FB;
  --yellow:      #F5B800;
  --yellow-pale: #FFF8E1;
  --orange:      #E06B00;
  --orange-pale: #FFF0E0;
  --green:       #3B8C2A;
  --green-pale:  #EAF3DE;
  --purple:      #8B44AC;
  --purple-pale: #F5EAFB;
  --white:       #FFFFFF;
  --off-white:   #F7F9F7;
  --text-dark:   #1A2926;
  --text-mid:    #3D5450;
  --text-muted:  #728C87;
  --border:      rgba(10, 124, 92, 0.18);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --shadow-card: 0 2px 12px rgba(10,124,92,0.08);
  --shadow-hover:0 12px 40px rgba(10,124,92,0.14);
  --transition:  all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; line-height: 1.1; }

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.logo-text .ct { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--teal-mid) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dark);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--teal);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(10, 124, 92, 0.25);
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 124, 92, 0.3);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.btn-white {
  background: white;
  color: var(--teal);
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-white:hover { background: var(--off-white); transform: translateY(-1px); color: var(--teal); }

.btn-outline-white {
  background: transparent;
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.btn-danger {
  background: #D42B2B;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition);
}

.btn-danger:hover { background: #b52222; }

/* ── Apply / Sign-up button on cards ─────────────────────────── */
.apply-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.apply-btn:hover { background: var(--teal); color: white; }

/* ── Section generic ─────────────────────────────────────────── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape-blob { position: absolute; border-radius: 50%; }
.shape-1 { width: 600px; height: 600px; background: var(--teal); top: -200px; right: -150px; opacity: 0.08; }
.shape-2 { width: 300px; height: 300px; background: var(--yellow); bottom: 50px; left: 40%; opacity: 0.12; }
.shape-3 { width: 150px; height: 150px; background: var(--blue); top: 30%; left: 10%; opacity: 0.07; }

.hero-content {
  padding: 5rem 3rem 4rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-pale);
  color: var(--teal-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; color: var(--teal); }

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  opacity: 0.5;
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  letter-spacing: -0.04em;
}

.stat-item .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── Hero visual (right side) ────────────────────────────────── */
.hero-visual {
  padding: 5rem 4rem 4rem 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.board-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* ── Mini opportunity cards (hero sidebar) ───────────────────── */
.opp-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.opp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,124,92,0.12);
  border-color: var(--teal-light);
}

.opp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal-light);
  border-radius: 4px 0 0 4px;
}

.opp-card.yellow::before { background: var(--yellow); }
.opp-card.blue::before   { background: var(--blue); }
.opp-card.orange::before { background: var(--orange); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.org-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 100px;
}

.opp-card.yellow .org-badge { background: var(--yellow-pale); color: #7A5E00; }
.opp-card.blue .org-badge   { background: var(--blue-pale);   color: var(--blue); }

.urgency-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ── Full opportunity cards (grid) ───────────────────────────── */
.full-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.full-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal-light);
}

.card-img {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.card-img-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-img-inner.env  { background: linear-gradient(135deg, #C8EDDA 0%, #9FE1CB 100%); }
.card-img-inner.edu  { background: linear-gradient(135deg, #BDD9F5 0%, #85B7EB 100%); }
.card-img-inner.food { background: linear-gradient(135deg, #FDE8B5 0%, #F5C46A 100%); }
.card-img-inner.ani  { background: linear-gradient(135deg, #FCCFB5 0%, #F0997B 100%); }
.card-img-inner.art  { background: linear-gradient(135deg, #E6C8EF 0%, #C88FDC 100%); }
.card-img-inner.sr   { background: linear-gradient(135deg, #C8E8C8 0%, #97C459 100%); }
.card-img-inner.hlth { background: linear-gradient(135deg, #F5BEBE 0%, #E88888 100%); }
.card-img-inner.hous { background: linear-gradient(135deg, #E8DDB5 0%, #C4A96A 100%); }
.card-img-inner.yth  { background: linear-gradient(135deg, #B5E8D8 0%, #6ACAB0 100%); }
.card-img-inner.imm  { background: linear-gradient(135deg, #B5CBE8 0%, #6A9CCA 100%); }
.card-img-inner.dis  { background: linear-gradient(135deg, #C8C8E8 0%, #9797C8 100%); }
.card-img-inner.job  { background: linear-gradient(135deg, #E8D8B5 0%, #CAA96A 100%); }

.card-category {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.urgent-flag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--orange);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-org {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.card-body-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.card-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Search bar ──────────────────────────────────────────────── */
.search-wrap {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  max-width: 560px;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(10,124,92,0.1);
  margin-bottom: 1.5rem;
}

.search-wrap input {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  flex: 1;
  background: transparent;
}

.search-wrap input::placeholder { color: var(--text-muted); }

.search-btn {
  background: var(--teal);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-btn:hover { background: var(--teal-mid); }

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.filter-tag {
  font-size: 0.78rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--teal-pale);
  border-color: var(--teal-light);
  color: var(--teal);
}

/* ── Ticker ──────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--teal);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker 32s linear infinite;
}

.ticker-track span {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 2.5rem;
}

.ticker-track span::before {
  content: '✦';
  margin-right: 2.5rem;
  color: var(--yellow);
  font-size: 0.7rem;
}

/* ── How it works ────────────────────────────────────────────── */
.how-section {
  background: var(--off-white);
  padding: 5rem 0;
}

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

.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--teal-pale);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.step-icon.yellow { background: var(--yellow-pale); }
.step-icon.teal   { background: var(--teal-pale); }
.step-icon.blue   { background: var(--blue-pale); }

.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Categories ──────────────────────────────────────────────── */
.cat-section {
  background: white;
  padding: 5rem 0;
}

.categories-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.cat-pill {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--teal-pale);
  border-color: var(--teal-light);
  transform: translateY(-2px);
}

.cat-icon  { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.cat-name  { font-size: 0.78rem; font-weight: 600; color: var(--text-mid); display: block; }
.cat-count { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* ── Spotlight CTA ───────────────────────────────────────────── */
.spotlight-wrap { padding: 4rem 0; }

.spotlight {
  background: var(--teal);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin: 0 4rem;
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.spotlight::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.spotlight h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.spotlight h2 em { font-style: italic; color: var(--yellow); }

.spotlight p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.6; max-width: 500px; }

.spotlight-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

/* ── IdealistDays event strip ─────────────────────────────────── */
.events-strip {
  background: var(--yellow-pale);
  border: 1px solid rgba(245,184,0,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 4rem 3rem;
}

.event-badge {
  background: var(--yellow);
  color: #5A3D00;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.event-text strong { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--text-dark); }
.event-text p { font-size: 0.85rem; color: var(--text-mid); margin-top: 2px; }

.event-link {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7A5E00;
  text-decoration: none;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}

.event-link:hover { color: var(--text-dark); }

/* ── Opportunities grid ──────────────────────────────────────── */
.opps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Browse page ─────────────────────────────────────────────── */
.browse-header {
  background: var(--teal);
  padding-top: 64px;
  padding-bottom: 3rem;
}

.browse-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4rem 0;
}

.browse-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.browse-header h1 em { font-style: italic; color: var(--yellow); }
.browse-header p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 2rem; }

.browse-search-wrap {
  background: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  max-width: 640px;
}

.browse-search-wrap input {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  flex: 1;
  background: transparent;
}

.browse-search-wrap input::placeholder { color: var(--text-muted); }

.browse-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 4rem 5rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-mid);
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.filter-select:focus, .filter-select:hover { border-color: var(--teal); color: var(--teal); }

.filter-toggle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.filter-toggle:hover, .filter-toggle.active { background: var(--teal-pale); border-color: var(--teal-light); color: var(--teal); }

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.clear-filters {
  font-size: 0.82rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.clear-filters:hover { color: var(--teal-mid); }

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.empty-state h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--text-dark); margin-bottom: 0.75rem; }
.empty-state p  { color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.page-btn:hover, .page-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ── Opportunity detail page ─────────────────────────────────── */
.detail-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding-top: 64px;
}

.detail-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4rem 2.5rem;
}

.detail-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.detail-breadcrumb a { color: var(--teal); text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb span { margin: 0 0.5rem; }

.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.detail-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.detail-meta-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.detail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.detail-main h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
}

.detail-main h2:first-child { margin-top: 0; }
.detail-main p { color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }
.detail-main ul { padding-left: 1.5rem; color: var(--text-mid); line-height: 1.75; }
.detail-main li { margin-bottom: 0.4rem; }

.detail-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.sidebar-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.sidebar-fact {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.sidebar-fact-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.sidebar-fact-label { font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 1px; }

.org-card-link {
  text-decoration: none;
  color: inherit;
}

.org-logo-placeholder {
  width: 48px; height: 48px;
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.org-name-link {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.share-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.share-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }

/* ── Volunteer signup form ────────────────────────────────────── */
.signup-form-section {
  background: var(--teal-pale);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}

.signup-form-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.signup-form-section p { color: var(--text-mid); margin-bottom: 1.5rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.form-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group:last-child { margin-bottom: 0; }

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

label .req { color: var(--orange); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--teal); }
input.error, select.error, textarea.error { border-color: #D42B2B; }

textarea { resize: vertical; min-height: 120px; }

.field-hint { font-size: 0.78rem; color: var(--text-muted); }
.field-error { font-size: 0.78rem; color: #D42B2B; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Post page layout ────────────────────────────────────────── */
.post-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding-top: 64px;
}

.post-header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

.post-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.post-header p { color: var(--text-mid); font-size: 1rem; line-height: 1.7; }

.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Notice / alert boxes ─────────────────────────────────────── */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.notice-success {
  background: var(--teal-pale);
  color: var(--teal-mid);
  border: 1px solid rgba(10,124,92,0.25);
}

.notice-error {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid rgba(185,28,28,0.2);
}

.notice-info {
  background: var(--blue-pale);
  color: #1A4F7E;
  border: 1px solid rgba(26,111,175,0.2);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 4rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: white; }

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-light); }

.idealist-affiliation {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.idealist-affiliation img {
  height: 22px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

/* ── Admin pages ─────────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  background: var(--off-white);
  padding-top: 64px;
}

.admin-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 200;
}

.admin-nav .logo-text { color: white; font-size: 1.1rem; }
.admin-nav .logo-text .ct { color: var(--yellow); }

.admin-nav-links { display: flex; gap: 1.5rem; list-style: none; }
.admin-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.admin-nav-links a:hover, .admin-nav-links a.active { color: white; }
.admin-nav-links .admin-logout { color: rgba(255,255,255,0.5); }
.admin-nav-links .admin-logout:hover { color: #E88888; }

.admin-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.admin-page-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.admin-page-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.admin-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  letter-spacing: -0.04em;
}

.admin-stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.admin-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-section-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(10,124,92,0.06);
  color: var(--text-mid);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }

.table-title { font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.table-sub   { font-size: 0.78rem; color: var(--text-muted); }

.action-row { display: flex; gap: 0.5rem; align-items: center; }

/* ── Admin login ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-dark);
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
}

.login-card .logo-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card h1 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.login-card p { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-bottom: 2rem; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeUp 0.6s ease both; }
.hero-badge        { animation-delay: 0.1s; }
.hero h1           { animation-delay: 0.2s; }
.hero-sub          { animation-delay: 0.3s; }
.hero-actions      { animation-delay: 0.4s; }
.hero-stats        { animation-delay: 0.5s; }
.search-wrap       { animation-delay: 0.35s; }
.opp-card:nth-child(1) { animation: fadeUp 0.5s 0.4s  ease both; }
.opp-card:nth-child(2) { animation: fadeUp 0.5s 0.55s ease both; }
.opp-card:nth-child(3) { animation: fadeUp 0.5s 0.7s  ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 4rem 2rem 3rem; }

  .steps-grid, .opps-grid { grid-template-columns: 1fr 1fr; }
  .categories-wrap { grid-template-columns: repeat(3, 1fr); }
  .spotlight { grid-template-columns: 1fr; margin: 0 1.5rem; padding: 2.5rem; }
  .spotlight-btns { flex-direction: row; }
  .events-strip { margin: 0 1.5rem 2rem; flex-wrap: wrap; }

  .section-wrap, .browse-body, .post-body { padding-left: 1.5rem; padding-right: 1.5rem; }
  .browse-header-inner { padding: 2rem 1.5rem 0; }
  .detail-header-inner { padding: 2rem 1.5rem; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }
  .admin-body { padding: 1.5rem 1rem 3rem; }
}

@media (max-width: 600px) {
  .steps-grid, .opps-grid { grid-template-columns: 1fr; }
  .categories-wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .filter-bar { gap: 0.5rem; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .browse-search-wrap { flex-wrap: wrap; border-radius: var(--radius-md); padding: 0.75rem; }
  .browse-search-wrap input { width: 100%; }
  .search-btn { width: 100%; text-align: center; border-radius: var(--radius-md); }
}

/* Mobile nav open state */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: white;
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 150;
}

.nav-mobile-open .nav-cta { text-align: center; }
