/* ==========================================================================
   SmartWorks Education — Stylesheet
   Warm teal-and-gold palette: the cool near-black navy from the previous
   version is replaced with a deep, warm teal so dark sections (footer,
   stats, inner-page heroes) read as inviting rather than corporate/cold.
   Neutrals are warmed from cool slate-blue to a soft ivory/taupe family.
   ========================================================================== */

/* Core Color Palette Variables */
:root {
  /*--navy-primary: #134E4A;
  --teal-accent: #0D9488;
  --teal-light: #5EEAD4;
  --amber-gold: #F59E0B;
  --slate-bg: #FBF7F0;
  --text-dark: #2A2420;
  --text-muted: #7A7267;
  --white: #FFFFFF;
  --border-color: #E6DFD1;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
*/
--navy-primary: #0F172A;
  --teal-accent: #0D9488;
  --teal-light: #5EEAD4;
  --amber-gold: #F59E0B;
  --slate-bg: #F8FAFC;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  }

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography & Buttons */
h1, h2, h3, h4 {
  color: var(--navy-primary);
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a { color: inherit; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--teal-accent);
}

.btn-accent {
  background-color: var(--amber-gold);
  color: var(--navy-primary);
}

.btn-accent:hover {
  background-color: #d97706;
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--navy-primary);
  color: var(--navy-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--navy-primary);
  color: var(--white);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--navy-primary);
  border-color: var(--white);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 10px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: var(--teal-accent);
}

.dropdown-toggle .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle .chevron,
.nav-dropdown.open .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 10px;
  min-width: 250px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.dropdown-menu a span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.dropdown-menu a:hover {
  background: var(--slate-bg);
  color: var(--teal-accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background: var(--navy-primary);
  border-radius: 2px;
}

/* Breadcrumb (inner pages) */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal-accent);
}

/* Hero Section (home) */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: #E6FFFA;
  color: var(--teal-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
}

.hero-trust .trust-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.hero-trust .trust-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero visual: proof panel (replaces the old infinity loop graphic) */
.proof-panel {
  background: var(--navy-primary);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  color: var(--white);
}

.proof-panel h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.proof-panel .proof-sub {
  color: #A9C9C0;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.proof-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.proof-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.proof-item h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.proof-item p {
  color: #A9C9C0;
  font-size: 0.82rem;
}

/* Standard inner-page hero */
.hero-standard {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #0B3330 100%);
  color: var(--white);
  padding: 60px 0 64px 0;
}

.hero-standard h1 { color: var(--white); margin-top: 15px; font-size: 2.3rem; }
.hero-standard p { color: #A9C9C0; max-width: 750px; margin-top: 15px; font-size: 1.1rem; }
.hero-standard .breadcrumb { color: #A9C9C0; }
.hero-standard .breadcrumb a { color: #BFDED6; }
.hero-standard .breadcrumb a:hover { color: var(--teal-light); }

/* Section Commons */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--slate-bg);
}

.bg-navy {
  background-color: var(--navy-primary);
  color: var(--white);
}

.bg-navy p { color: #A9C9C0; }
.bg-navy h2 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Force a 3-up wrap (3+2) for the 5-pillar homepage grid instead of an
   uneven 4+1 wrap */
.services-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

@media (max-width: 640px) {
  .services-grid-5 {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.teal-bg { background: #E6FFFA; }
.navy-bg { background: #E6DFD1; }
.gold-bg { background: #FEF3C7; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card-list {
  list-style: none;
  margin-top: 16px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.card-list li::before {
  content: "•";
  color: var(--teal-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-cta {
  display: inline-block;
  margin-top: 15px;
  font-weight: 700;
  color: var(--teal-accent);
  font-size: 0.9rem;
}

/* Engagement Cycle (replaces the old "Continuous Knowledge Loop") */
.cycle-section .section-header { margin-bottom: 30px; }

.cycle-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.cycle-step {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
  margin: 0 8px;
}

.cycle-step .step-num {
  width: 38px;
  height: 38px;
  background: var(--navy-primary);
  color: var(--amber-gold);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.cycle-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cycle-step p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.cycle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-accent);
}

.cycle-arrow svg { width: 22px; height: 22px; }

.cycle-loop-note {
  max-width: 1100px;
  margin: 22px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--slate-bg);
}

.cycle-loop-note svg {
  width: 18px;
  height: 18px;
  color: var(--amber-gold);
  flex-shrink: 0;
}

.cycle-loop-note strong { color: var(--navy-primary); }

@media (max-width: 900px) {
  .cycle-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cycle-step { margin: 0; }
  .cycle-arrow { transform: rotate(90deg); }
}

/* Why-us / differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.diff-card {
  text-align: center;
  padding: 10px;
}

.diff-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #E6FFFA;
  color: var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px auto;
}

.diff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 0.92rem;
}

/* Process Grid (legacy — still used on inner pages) */
.loop-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.process-step {
  background: var(--slate-bg);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--amber-gold);
  color: var(--navy-primary);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

/* Timeline (HQIM + service pages) */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.step-badge {
  width: 55px;
  height: 55px;
  background: var(--navy-primary);
  color: var(--amber-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.data-callout {
  background: #E6FFFA;
  border-left: 5px solid var(--teal-accent);
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
}

.data-callout h4 {
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.criteria-grid, .state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Article / research content blocks */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  line-height: 1.8;
}

.article-content h3 { margin-bottom: 12px; color: var(--navy-primary); }
.article-content p { margin-bottom: 20px; }

.callout-teal {
  background: #E6FFFA;
  border-left: 5px solid var(--teal-accent);
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.callout-teal h4 { color: var(--navy-primary); margin-bottom: 8px; }
.callout-teal p { margin: 0; font-size: 0.95rem; color: var(--text-dark); }

.callout-navy {
  background: var(--slate-bg);
  border-left: 5px solid var(--navy-primary);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.callout-navy p { margin: 0; font-size: 0.95rem; color: var(--text-dark); }

.references-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--slate-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.references-box h3 {
  color: var(--navy-primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--teal-accent);
  padding-bottom: 8px;
}

.apa-citations { font-size: 0.9rem; color: var(--text-dark); line-height: 1.7; }
.apa-citations p { padding-left: 36px; text-indent: -36px; margin-bottom: 16px; color: var(--text-dark); }
.apa-citations p:last-child { margin-bottom: 0; }
.apa-citations a { color: var(--teal-accent); text-decoration: underline; }

/* Foldable references (replaces a hover tooltip — works on touch devices,
   is keyboard/screen-reader accessible via native <details>, and handles
   long citation lists better than a hover popover). */
.ref-fold {
  max-width: 900px;
  margin: 0 auto;
  background: var(--slate-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.ref-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 30px;
  font-weight: 800;
  color: var(--navy-primary);
  font-size: 1.1rem;
  user-select: none;
}

.ref-fold summary::-webkit-details-marker { display: none; }

.ref-fold summary .ref-fold-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-fold summary .ref-fold-count {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

.ref-fold summary:hover { background: rgba(13, 148, 136, 0.06); }

.ref-fold summary .chevron {
  width: 18px;
  height: 18px;
  color: var(--teal-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ref-fold[open] summary .chevron { transform: rotate(180deg); }

.ref-fold[open] summary {
  border-bottom: 2px solid var(--teal-accent);
}

.ref-fold .apa-citations {
  padding: 24px 30px 28px 30px;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--amber-gold);
}

.stat-label {
  color: #A9C9C0;
  font-size: 0.95rem;
}

/* Mission / Vision cards (About) */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mv-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.mv-card.mission-card { border-top: 5px solid var(--teal-accent); }
.mv-card.vision-card { border-top: 5px solid var(--amber-gold); }

.story-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.quote-callout {
  background: var(--slate-bg);
  border-left: 5px solid var(--navy-primary);
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  font-style: italic;
}

.leadership-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.pill {
  background: #E6DFD1;
  color: var(--navy-primary);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Publishing plan cards */
.plan-featured {
  border-top: 4px solid var(--amber-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  .plan-featured { transform: scale(1.02); }
}

.plan-badge {
  background: var(--amber-gold);
  color: var(--navy-primary);
}

/* Form Styles */
.contact-form {
  max-width: 650px;
  margin: 0 auto;
}

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

.form-row.single { grid-template-columns: 1fr; }

input, textarea, select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.btn-block {
  width: 100%;
  margin-top: 16px;
}

/* CTA banner */
.cta-banner {
  text-align: center;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

/* Legal pages */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.legal-notice {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-left: 5px solid var(--amber-gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-notice strong { color: var(--navy-primary); }

.legal-toc {
  background: var(--slate-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 36px;
}

.legal-toc h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  -webkit-columns: 2;
}

.legal-toc li { margin-bottom: 8px; font-size: 0.9rem; }
.legal-toc a { color: var(--teal-accent); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

.legal-content section {
  margin-bottom: 34px;
  padding: 0;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.legal-content section:first-of-type h2 { border-top: none; padding-top: 0; }

.legal-content p, .legal-content li {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol.legal-list {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content a { color: var(--teal-accent); }

/* Resources page */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.book-cover-wrap {
  aspect-ratio: 3/4;
  background: var(--slate-bg);
  overflow: hidden;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card-body {
  padding: 22px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-status {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: #FEF3C7;
  color: #92400E;
}

.book-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.book-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.book-card-body p.book-desc {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 16px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.resource-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-link-card:hover {
  border-color: var(--teal-accent);
  transform: translateY(-3px);
}

.resource-link-card .r-source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 8px;
}

.resource-link-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--navy-primary);
}

.resource-link-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.resource-category-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin: 34px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-category-label:first-child { margin-top: 0; }

/* Footer */
.footer {
  background: var(--navy-primary);
  color: var(--white);
  padding: 60px 0 30px 0;
  border-top: 1px solid #0B3330;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  color: #A9C9C0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #A9C9C0;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #0B3330;
  font-size: 0.85rem;
  color: #A9C9C0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dba-notice {
  margin-top: 6px;
  font-style: italic;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links .btn-nav-mobile-spacer { margin-top: 8px; }
  .nav-dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 0; }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    width: 100%;
    padding: 0 0 6px 12px;
  }
  .nav-dropdown.open .dropdown-menu { display: flex; }
  .nav-links > a { padding: 10px 0; width: 100%; }
  .mobile-toggle {
    display: flex;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
