:root {
  --primary: #0d4a73;        /* deep blue */
  --primary-dark: #063152;   /* darker blue */
  --accent: #0fa7a0;         /* teal accent */
  --light: #f5f7fa;          /* light background */
  --text: #1f2933;           /* dark neutral text */
  --muted: #6b7280;          /* muted grey text */
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hide big nav CTA button on mobile for home + FAQ pages */
@media (max-width: 768px) {
  body.page-home .nav-primary,
  body.page-faq .nav-primary {
    display: none;
  }
}

/* ================================
   HEADER / NAV
   ================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Top row: brand + main CTA */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-primary {
  display: flex;
  align-items: center;
}

/* Header CTA button (also used for last button) */
.nav-cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: #f0f7ff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 49, 82, 0.25);
}

/* Second-row menu bar */
.nav-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 0.35rem 0.25rem 0.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.nav-secondary a {
  position: relative;
  font-weight: 500;
  color: var(--text);
}

.nav-secondary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease-out;
}

.nav-secondary a:hover::after {
  width: 100%;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  background:
    linear-gradient(135deg, rgba(6, 49, 82, 0.94), rgba(15, 167, 160, 0.9)),
    url("images/home-hero.webp?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4.5rem 0 4rem;
}

/* FAQ hero overrides */
.hero-faq {
  background:
    linear-gradient(135deg, rgba(6, 49, 82, 0.90), rgba(15, 167, 160, 0.85)),
    url("images/faq-hero2.webp");
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #aef5f0;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  color: #e5f0ff;
  margin-bottom: 1.5rem;
}

.hero-bullets {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-bullets span {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-primary:hover {
  background: #e7f0ff;
  box-shadow: 0 8px 20px rgba(6, 49, 82, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: #c4ddff;
  color: #e5f0ff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-outline:hover {
  background: rgba(17, 24, 39, 0.2);
  border-color: #e5f0ff;
}

/* NEW: secondary button style (used on resource cards) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn-secondary:hover {
  background: #e7f0ff;
  color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(6, 49, 82, 0.18);
  border-color: var(--primary-dark);
}

.hero-meta {
  font-size: 0.8rem;
  color: #d1e2ff;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card {
  background: rgba(7, 34, 60, 0.92);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(10, 26, 48, 0.6);
}

.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: #dbeafe;
  margin-bottom: 0.85rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  white-space: nowrap;
}

.hero-small {
  font-size: 0.75rem;
  color: #9fb6ff;
  margin-top: 0.8rem;
}

/* ================================
   SECTIONS (GENERIC)
   ================================ */

section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: #ffffff;
}

section:nth-of-type(odd):not(.hero) {
  background: var(--light);
}

.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 34rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Image frame + hover overlay */
.section-image-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  background: #0b1220;
}

.section-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.section-image-frame:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

.image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.72),
    rgba(15, 23, 42, 0.0)
  );
  color: #f9fafb;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.section-image-frame:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   ABOUT
   ================================ */

/* Allow pill items to host tooltips */
.pill-list li {
  position: relative;
}

/* Cursor hint */
.pill-tooltip {
  cursor: help;
  position: relative;
}

/* Tooltip itself */
.pill-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  background-color: #053545;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  white-space: normal;
  display: block;
}

/* Tooltip arrow */
.pill-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #053545 transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Hover behavior */
.pill-tooltip:hover::after,
.pill-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.pill-tooltip:hover::after {
  transform: translateX(-50%) translateY(-2px);
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-list li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #e5f0ff;
  color: var(--primary-dark);
  border: 1px solid #c7ddff;
}

/* ================================
   SERVICES
   ================================ */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 1.25rem 1.2rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text);
}

.card ul li::before {
  content: "• ";
  color: var(--accent);
}

/* ================================
   ROADMAP / TIMELINE
   ================================ */

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.timeline-step {
  position: relative;
  margin-bottom: 1.4rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -1.34rem;
  top: 0.35rem;
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px #e0ecff;
}

.timeline-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--primary-dark);
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================================
   RESOURCES (OLD generic)
   ================================ */

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.resource-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ================================
   CONTACT (CARD + GRID)
   ================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.contact-card {
  background: var(--card-bg);
  padding: 1.5rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.contact-list {
  list-style: none;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

.contact-list span {
  font-weight: 600;
  color: var(--primary-dark);
}

.contact-tag {
  font-size: 0.8rem;
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  margin-top: 0.2rem;
}

/* ================================
   CONTACT FORM
   ================================ */

.contact-form-wrapper {
  margin-bottom: 2.5rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.form-field-full {
  margin-top: 0.5rem;
}

.form-field label {
  font-weight: 600;
  color: var(--primary-dark);
}

.form-field label span {
  color: #b91c1c;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 167, 160, 0.3);
  background: #ffffff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 0.75rem;
}

.form-footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ================================
   FOOTER
   ================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #ffffff;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .cards-3,
  .cards-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4rem;
  }

  .nav {
    padding: 0.6rem 0.25rem 0.3rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-tagline {
    font-size: 0.75rem;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }

  .nav-secondary {
    gap: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .nav-secondary {
    justify-content: flex-start;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* ================================
   HERO CARD TOOLTIP (LIGHT VARIANT)
   ================================ */
.hero-card .pill-tooltip::after {
  /* reuse base tooltip positioning from .pill-tooltip::after; only change colors */
  background-color: #f5f7fa;
  color: #052635;
  border: 1px solid var(--accent);
}

.hero-card .pill-tooltip::before {
  /* arrow matches the light tooltip background in hero card */
  border-color: transparent transparent #f5f7fa transparent;
}

/* === DECG Resources cards on homepage === */

#decg-resources-feed {
  margin-top: 2.5rem;
}

/* Featured wrapper & grid share body width */
.decg-resource-featured-wrapper,
.decg-resource-grid {
  width: 100%;
  max-width: 1200px;    /* match your main container width */
  margin: 0 auto;
}

/* Base card */
.decg-resource-card {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.decg-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Featured (top) card – 10% taller, stronger border */
.decg-featured-card {
  border-width: 2px;
  border-color: #c7d6e8;
  padding: 32px 32px 28px;
}

/* Titles use same styling as section-title + clamp so they don't blow up cards */
.decg-resource-title.section-title {
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* ← change to 2 if you want even tighter */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Author line */
.decg-resource-author {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* Excerpt – clamped by default (bottom 3 cards) */
.decg-resource-excerpt {
  font-size: 1rem;
  color: #333;
  line-height: 1.55;
  margin-bottom: 16px;

  display: -webkit-box;
  -webkit-line-clamp: 4;          /* clamp long text */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Allow full (or longer) excerpt for the featured card only */
.decg-featured-card .decg-resource-excerpt {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
}

/* “Read the full article” */
.decg-resource-link {
  color: #004e9a;
  font-weight: 500;
  text-decoration: none;
}

.decg-btn-featured {
  display: inline-block;
  background: #004e9a;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* Tags line – clamped so they don't blow up card height */
.decg-resource-tags {
  font-size: 0.9rem;
  color: #888;
  margin-top: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;      /* ← keeps cards uniform */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Bottom 3 cards in a row */
.decg-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .decg-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* For footer menu */

/* Footer menu layout */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Give article top spacing so title doesn't crash under sticky nav */
.article-shell {
  padding-top: 40px; /* tweak to 30–60px as needed */
}

/* ============================================
   PRIVACY POLICY INDENTATION + READABILITY
   ============================================ */

/* Indent the whole content block slightly */
#privacy-policy .content-container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 15px;
}

/* h3 section headers */
#privacy-policy h3 {
  margin-top: 35px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0f3558;
}

/* h4 subsection headers */
#privacy-policy h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  padding-left: 10px;
  font-size: 1.15rem;
  color: #144d7f;
}

/* Indent bullet list groups */
#privacy-policy ul {
  margin-left: 35px;     /* ← THIS creates the real visual indentation */
  margin-bottom: 20px;
  list-style: disc;
}

/* Improve bullet spacing */
#privacy-policy ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Paragraph spacing + light indent */
#privacy-policy p {
  margin-bottom: 18px;
  padding-left: 5px;
  line-height: 1.6;
}


/* Testimonials section layout */
.testimonial-strips {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 1.5rem;
}

/* Base testimonial block – no box, no background */
.testimonial-strip {
  max-width: 52rem;
  padding: 0;
  background: none;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

/* Stagger: 1st left, 2nd right, 3rd left */
.testimonial-strip:nth-child(2) {
  margin-left: auto;
  text-align: right;
}

/* On smaller screens, keep everything left-aligned for readability */
@media (max-width: 768px) {
  .testimonial-strip {
    margin-left: 0 !important;
    text-align: left !important;
  }
}

/* Quote styling: bigger, italic, bright teal accent */
.testimonial-quote {
  font-size: 1.15rem;      /* 1–2 levels bigger than normal text */
  line-height: 1.8;
  font-style: italic;
  color: #0f766e;          /* bright teal accent */
  margin-bottom: 0.35rem;

  /* optional: keep the 2-line feel; remove if you want full paragraphs */
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* show about 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Name + title: dark grey, normal style, same size as body text */
.testimonial-meta {
  font-size: 0.95rem;
  color: #374151;          /* dark grey */
  font-style: normal;
  opacity: 0.95;
}

/* Subtle hover effect (like your pills, but on text) */
.testimonial-strip {
  cursor: pointer;
}

/* On hover: show the full testimonial, not just 2 lines */
.testimonial-strip:hover .testimonial-quote {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  text-overflow: clip;
  transform: translateY(-1px);
  filter: brightness(1.12);
}

/* Resources – Article Hero */
.hero--resources-article {
  position: relative;
  min-height: 260px;
  padding: 4rem 0 3rem;
  background-image: linear-gradient(
      120deg,
      rgba(6, 32, 73, 0.85),
      rgba(7, 85, 120, 0.65)
    ),
    url("../../images/resources-hero.webp"); /* replace with your own */
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero--resources-article .hero-inner {
  position: relative;
  z-index: 1;
}

.article-hero-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Article shell */
.article-shell {
  padding: 3rem 0 4rem;
}

.resource-article {
  max-width: 760px;
  margin: 0 auto;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-divider {
  margin: 3rem 0 1.5rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-back-link {
  font-size: 0.95rem;
}

.article-back-link a {
  text-decoration: none;
}

.article-back-link a:hover {
  text-decoration: underline;
}

/* =========================================
   RESOURCES – INDEX PAGE
   (Hero, sections, grid, and cards)
========================================= */

/* Hero background for resources index */
.hero--resources-index {
  position: relative;
  padding: 4rem 0 3.5rem;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero--resources-index .hero-inner {
  position: relative;
  max-width: 860px;
}

.hero--resources-index .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero--resources-index h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero--resources-index .hero-subtitle {
  max-width: 700px;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Sections */
.resources-section {
  padding: 3rem 0;
}

.resources-section + .resources-section {
  padding-top: 0.75rem;
}

.section-header {
  max-width: none;
  margin: 0 0 1.75rem 0;
  text-align: left;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

/* Single unified grid of articles */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* fixed 3 columns on desktop */
  gap: 1.75rem;
  margin-top: 0.5rem;
}

/* Stable responsive breakpoints so it doesn't "change style" unexpectedly */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Status line under grid */
.resources-status {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cards */
.resource-card {
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 8px 26px rgba(6, 32, 73, 0.08);
  border: 1px solid rgba(6, 32, 73, 0.06);
  overflow: hidden;
  height: 100%;
  transition:
    transform 160ms ease-out,
    box-shadow 160ms ease-out,
    border-color 160ms ease-out;
}

/* Card inner body */
.resource-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
}

/* Titles */
.resource-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  color: #061f49;

  /* Limit article titles to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta info (date, etc.) */
.resource-card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.6rem;
}

/* Excerpt text – clamped to keep heights consistent */
.resource-card-excerpt {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 0.9rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Click here to read more" spacing */
.resource-card-link {
  margin-top: 0.25rem;
}

/* Hover states */
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(6, 32, 73, 0.12);
  border-color: rgba(7, 85, 120, 0.32);
}

.resource-card:hover .resource-card-title {
  color: #075578;
}

/* Category + tags row */
.resource-taxonomy {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.resource-taxonomy span {
  display: inline-flex;
  align-items: center;
  background: rgba(7, 85, 120, 0.10);
  color: #075578;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.resource-readmore {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #075578;
}

/* === Fix article header background + stacking === */

/* Remove white box behind title */
.resource-article h1,
#article-title {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Make title use normal DECG dark blue */
#article-title {
  color: var(--primary-dark) !important;
}

/* Ensure the article scrolls UNDER the nav, not above it */
#article-layout,
.resource-article,
.article-shell {
  position: relative;
  z-index: 1; /* below header (header uses 100) */
}

/* Fix: align resource page headers flush-left */
#resources .section-header {
  max-width: none;              /* remove artificial narrow width */
  margin: 0 0 1.75rem 0 !important;  /* remove auto-centering */
  padding: 0;
  text-align: left;
}


/* Discovery Survey Page
   ---------------------------------------- */

.survey-section {
  padding: 4rem 0;
  background: var(--section-bg, #f5f7fb); /* or whatever your light bg is */
}

.survey-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.survey-card .section-title {
  margin-bottom: 0.75rem;
}

.survey-card .section-subtitle {
  margin-bottom: 1.5rem;
}

.survey-embed {
  margin-top: 1rem;
}

/* Make the Google Form responsive and clean */
.survey-embed iframe {
  width: 100% !important;
  max-width: 100%;
  border: none;
  min-height: 900px; /* adjust up/down if your form is longer/shorter */
}

.survey-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #4b5563;
}

