:root {
  /* Color System */
  --primary: #db2777;
  --primary-light: #fce7f3;
  --text: #111827;
  --text-light: #4b5563;
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a:hover {
  text-decoration: none;
}

/* Header links keep underline on hover */
header a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ensure desktop never looks small */
@media (min-width: 1024px) {
  .container {
    max-width: 1400px;
    padding: 0 3rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .nav {
    padding: 1.25rem 3rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Spacing */
.my-8 {
  margin: 2rem 0;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-6 {
  padding: 1.5rem;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

/* Header Styles */
header {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #db2777;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.tab {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  background: #f3f4f6;
  color: #db2777;
}

/* Dropdown menu for cancer types - VERTICAL LAYOUT */
.tab2-wrap {
  position: relative;
}

.tab2-wrap:hover .cancer-menu {
  display: flex;
}

.cancer-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 10;
  flex-direction: column;
  gap: 0.4rem;
}

.cancer-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.cancer-menu a:hover {
  background: #f3f4f6;
  color: #db2777;
}

/* Language Toggle */
.actions {
  display: flex;
  align-items: center;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #db2777;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Section Styles */
.section {
  padding: 4.5rem 2rem;
}

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

/* Hero sections */
.hero {
  background: white;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.hero-home {
  background: linear-gradient(180deg, #e0f2ff 0%, #e8eefc 100%);
  color: #0f172a;
}

.hero-home h1 {
  color: #0f172a;
}

.hero-home p {
  color: #1e293b;
}

.hero-alt {
  background: linear-gradient(120deg, #fce7f3, #fbcfe8);
  padding: 3rem 2rem;
}

.hero-alt h1 {
  font-size: 3.4rem;
  color: #be185d;
  margin-bottom: 2rem;
}

.hero-prostate {
  background: linear-gradient(120deg, #e0f2fe, #bae6fd);
  padding: 3rem 2rem;
}

/* Color themes for different pages */
.hero-breast {
  background: linear-gradient(120deg, #fce7f3, #fbcfe8);
  padding: 3rem 2rem;
}

.hero-breast.alt-dark {
  background: #be185d;
  color: white;
}

.hero-cervical {
  background: linear-gradient(120deg, #fef3c7, #fde68a);
  padding: 3rem 2rem;
}

.hero-colon {
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
  padding: 3rem 2rem;
}

.hero-lung {
  background: linear-gradient(120deg, #e0e7ff, #c7d2fe);
  padding: 3rem 2rem;
}

.hero-prostate {
  background: linear-gradient(120deg, #e0f2fe, #bae6fd);
  padding: 3rem 2rem;
}

.hero h1 {
  font-size: 3.4rem;
  color: #0369a1;
  margin-bottom: 1rem;
}

.hero-alt h1,
.hero-breast h1 {
  font-size: 3.4rem;
  color: #be185d;
  margin-bottom: 2rem;
}

.hero-cervical h1 {
  font-size: 3.4rem;
  color: #d97706;
  margin-bottom: 2rem;
}

.hero-colon h1 {
  font-size: 3.4rem;
  color: #0369a1;
  margin-bottom: 2rem;
}

.hero-lung h1 {
  font-size: 3.4rem;
  color: #4f46e5;
  margin-bottom: 2rem;
}

.hero-prostate h1 {
  font-size: 3.4rem;
  color: #0284c7;
  margin-bottom: 2rem;
}

/* Accent tokens for learn/screening themes */
.accent-breast { --accent: #be185d; --accent-soft: #fdf2f8; --accent-ink: #831843; }
.accent-cervical { --accent: #7e22ce; --accent-soft: #f5f3ff; --accent-ink: #581c87; }
.accent-colon { --accent: #0369a1; --accent-soft: #e0f2fe; --accent-ink: #0c4a6e; }
.accent-lung { --accent: #475569; --accent-soft: #e2e8f0; --accent-ink: #111827; }
.accent-prostate { --accent: #0284c7; --accent-soft: #e0f2fe; --accent-ink: #0f172a; }
.accent-neutral { --accent: #0f172a; --accent-soft: #f8fafc; --accent-ink: #0f172a; }
.stats-grid .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 0.35rem;
}

.stats-grid .stat-label {
  display: block;
  color: #475569;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

.section-alt-dark {
  background: #0f172a;
  color: #e2e8f0;
}

.section-alt-dark h2,
.section-alt-dark p,
.section-alt-dark li {
  color: inherit;
}

.section-alt-pink {
  background: #fdf2f8;
}

.section-alt-blue {
  background: #eef2ff;
}

/* Cancer Buttons - HORIZONTAL LAYOUT */
.cancer-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cancer-buttons a {
  padding: 1rem 1.5rem;
  background: white;
  color: #db2777;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
  white-space: nowrap;
}

.cancer-buttons a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
  background: #db2777;
  color: white;
}

/* Why It Matters Section - Blue gradient */
.why-it-matters {
  background: linear-gradient(90deg, #dbeafe, #e0f2fe);
  padding: 4rem 2rem;
}

.why-it-matters h2 {
  font-size: 2.5rem;
  color: #0369a1;
  margin-bottom: 1.5rem;
}

.why-it-matters p,
.why-it-matters li {
  color: #374151;
}

.why-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
}

.why-card::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-card h3 {
  color: #0369a1;
  font-size: 1.75rem;
}

/* Who We Are Section - White background */
.who-we-are {
  background: white;
  padding: 4rem 2rem;
}

.who-we-are h2 {
  font-size: 2.5rem;
  color: #0369a1;
  margin-bottom: 1.5rem;
}

.who-we-are h3 {
  color: #0369a1;
}

/* Site-wide cancer tiles */
.cancer-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.cancer-cards--row .cancer-card {
  text-align: center;
}

.cancer-cards .cancer-card {
  flex: 0 0 280px;
}

.cancer-cards--row .cancer-card {
  flex-basis: 200px;
}

@media (max-width: 768px) {
  .cancer-cards .cancer-card {
    flex-basis: 240px;
  }

  .cancer-cards--row .cancer-card {
    flex-basis: 180px;
  }
}

@media (max-width: 480px) {
  .cancer-cards .cancer-card {
    flex-basis: 210px;
  }

  .cancer-cards--row .cancer-card {
    flex-basis: 160px;
  }
}

.cancer-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.cancer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.cancer-card:hover::before {
  transform: scaleX(1);
}

.cancer-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.35rem;
}

.cancer-card p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cancer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.cancer-card--compact p,
.cancer-card--compact .cancer-tags {
  display: none;
}

.cancer-card.breast::before { background: linear-gradient(90deg, #be185d, #f472b6); }
.cancer-card.breast:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(190,24,93,0.15); border-color: #be185d; }
.cancer-card.breast h3 { color: #be185d; }
.cancer-card.breast .tag { background: #fce7f3; color: #be185d; }

.cancer-card.cervical::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.cancer-card.cervical:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(217,119,6,0.15); border-color: #d97706; }
.cancer-card.cervical h3 { color: #d97706; }
.cancer-card.cervical .tag { background: #fef3c7; color: #78350f; }

.cancer-card.colon::before { background: linear-gradient(90deg, #0369a1, #38bdf8); }
.cancer-card.colon:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(3,105,161,0.15); border-color: #0369a1; }
.cancer-card.colon h3 { color: #0369a1; }
.cancer-card.colon .tag { background: #dbeafe; color: #0369a1; }

.cancer-card.lung::before { background: linear-gradient(90deg, #475569, #94a3b8); }
.cancer-card.lung:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(71,85,105,0.15); border-color: #475569; }
.cancer-card.lung h3 { color: #475569; }
.cancer-card.lung .tag { background: #f1f5f9; color: #475569; }

.cancer-card.prostate::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.cancer-card.prostate:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(2,132,199,0.15); border-color: #0284c7; }
.cancer-card.prostate h3 { color: #0284c7; }
.cancer-card.prostate .tag { background: #e0f2fe; color: #0284c7; }

/* Why overview hero */
.why-overview {
  padding: 4rem 0 1rem;
}

.why-overview h1 {
  font-size: 3.25rem;
  color: #0f172a;
  margin-bottom: 2rem;
}

.why-overview__stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.why-overview__block {
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.why-overview__block.is-blue {
  background: linear-gradient(120deg, #dbeafe, #e0f2ff);
  color: #0f172a;
}

.why-overview__block.is-white {
  background: white;
  border: 1px solid #e2e8f0;
}

.why-overview__block p {
  margin-bottom: 1rem;
}

.why-overview__list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: #1f2937;
  line-height: 1.7;
}

/* Mission hero */
.mission-hero {
  background: #ffffff;
  color: #0f172a;
  padding: 4rem 2rem 3.5rem;
}

.mission-hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-hero h1 {
  font-size: 3rem;
  margin: 0;
  color: #0f172a;
}

.mission-hero p {
  margin: 0;
  max-width: 900px;
  color: #1f2937;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* ChatGPT helper */
.chatgpt-section {
  background: #f9fafb;
  padding-top: 2rem;
}

.chatgpt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.chatgpt-card h3 {
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.chatgpt-card p {
  color: #475569;
  margin: 0;
}

.chatgpt-btn {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #1e40af;
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(30,64,175,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chatgpt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(30,64,175,0.35);
}

/* Info blocks shared by cancer pages */
.info-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.info-block p {
  margin-bottom: 0.5rem;
}

.info-visual {
  flex: 0 0 280px;
  min-width: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info-card {
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid transparent;
  background: #f8fafc;
}

.info-card.info-card--blue {
  border-color: #2563eb;
  background: rgba(37,99,235,0.08);
}

.info-card.info-card--pink {
  border-color: #be185d;
  background: rgba(190,24,93,0.12);
}

.info-card.info-card--green {
  border-color: #10b981;
  background: rgba(16,185,129,0.12);
}

.info-panel {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
}

.info-panel + .info-panel {
  margin-top: 2.5rem;
}

.info-panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-text {
  flex: 1;
  min-width: 260px;
}

.info-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.info-list li {
  margin-bottom: 0.35rem;
}

/* Learn page backbone */
.learn-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.learn-intro {
  background: white;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.75rem;
}

.learn-intro h2 {
  margin: 0;
  color: var(--accent-ink, #0f172a);
}

.learn-intro p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.learn-grid {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.learn-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-left: 5px solid var(--accent, #0f172a);
}

.learn-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--accent-ink, #0f172a);
}

.learn-card p,
.learn-card li {
  color: #475569;
  line-height: 1.65;
}

.learn-card ul {
  margin: 0.25rem 0 0 1.15rem;
  padding: 0;
  list-style: disc;
}

.learn-highlight {
  background: var(--accent-soft, #f8fafc);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent, #0f172a);
}

.learn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cancer detail layouts */
.detail-intro {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.detail-intro p {
  margin: 0 0 0.75rem 0;
  color: #334155;
}

.detail-intro ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #475569;
  line-height: 1.7;
}

.detail-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.detail-card h2,
.detail-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.detail-card p,
.detail-card ul {
  color: #475569;
  line-height: 1.65;
}

.detail-card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.detail-card.accent-cervical {
  border-top: 4px solid #d97706;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7e6 100%);
}

.detail-card.accent-colon {
  border-top: 4px solid #0369a1;
  background: linear-gradient(180deg, #f8fbff 0%, #e6f1ff 100%);
}

.detail-card.accent-lung {
  border-top: 4px solid #475569;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.detail-card.accent-prostate {
  border-top: 4px solid #0284c7;
  background: linear-gradient(180deg, #f3fbff 0%, #e0f4ff 100%);
}

.detail-card.accent-neutral {
  border-top: 4px solid #0f172a;
}

.definition-bubble {
  margin: 0.75rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft, #f8fafc);
  border-left: 5px solid var(--accent, #0f172a);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.definition-bubble strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-ink, #0f172a);
}

.definition-bubble ul {
  margin: 0.25rem 0 0 1.15rem;
  padding: 0;
  line-height: 1.6;
}

.detail-note {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
}

.detail-note h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

.detail-note p,
.detail-note li {
  color: rgba(248, 250, 252, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .tab {
    text-align: center;
  }

  .cancer-menu {
    position: static;
    box-shadow: none;
    background: #f9fafb;
    margin-top: 0.5rem;
    flex-direction: column;
    transform: none;
    left: auto;
  }

  .cancer-buttons {
    flex-direction: column;
  }

  .cancer-buttons a {
    width: 100%;
  }

  .hero h1,
  .hero-alt h1,
  .hero-breast h1,
  .hero-cervical h1,
  .hero-colon h1,
  .hero-lung h1,
  .hero-prostate h1 {
    font-size: 2rem;
  }

  .learn-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .learn-card {
    padding: 1.25rem;
  }

  .definition-bubble {
    padding: 0.85rem 0.95rem;
  }

  .why-it-matters h2,
  .who-we-are h2 {
    font-size: 2rem;
  }

  .why-overview h1 {
    font-size: 2.4rem;
  }

  .why-overview__block {
    padding: 1.75rem;
  }
}

/* =====================================================
   Enhanced interactions & utilities
   ===================================================== */

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #1e40af;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lang-change {
  animation: langFade 0.3s ease;
}

@keyframes langFade {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #1e40af;
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
  z-index: 20;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e40af transparent transparent transparent;
}

[data-tooltip]:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Chatbot Styles */
:root {
  --chatbot-width: 380px;
  --chatbot-minimized-height: 60px;
  --chatbot-max-height: 70vh;
  --primary: #db2777;
  --primary-light: #fce7f3;
  --text: #111827;
  --text-light: #4b5563;
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: var(--chatbot-width);
  max-height: var(--chatbot-max-height);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0);
  transition: var(--transition);
  border: 1px solid var(--border);
}

/* Minimized state */
.chatbot-container.minimized {
  height: var(--chatbot-minimized-height);
  width: auto;
  min-width: 200px;
  max-height: var(--chatbot-minimized-height);
  overflow: hidden;
  cursor: pointer;
  border-radius: 30px;
}

.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input {
  display: none;
}

.chatbot-container.minimized .chatbot-header {
  border-radius: 30px;
  cursor: pointer;
  padding: 0 20px;
}

.chatbot-container.minimized .chatbot-header span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: inline-block;
}

.chatbot-container.minimized .chatbot-close {
  transform: rotate(180deg);
  margin-left: 10px;
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.chatbot-header span {
  font-weight: 600;
  font-size: 1rem;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  line-height: 1.4;
  position: relative;
  animation: messageAppear 0.3s ease-out;
}

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

.message-user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 0.25rem;
  margin-left: auto;
}

.message-bot {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 0.25rem;
  margin-right: auto;
}

.message-typing {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: 1rem;
  width: fit-content;
  border-bottom-left-radius: 0.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  display: inline-block;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  position: relative;
}

.chatbot-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: white;
  padding-right: 3rem;
}

.chatbot-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.chatbot-send {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-send:hover {
  background: #be1d5f;
  transform: translateY(-50%) scale(1.05);
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
}

/* Responsive styles */
@media (max-width: 992px) {
  :root {
    --chatbot-width: 100%;
    --chatbot-max-height: 90vh;
    --chatbot-minimized-height: 56px;
  }
  
  .chatbot-container {
    right: 0;
    bottom: 0;
    border-radius: 0;
    max-height: 100vh;
    height: auto;
  }
  
  .chatbot-container.minimized {
    bottom: 0;
    right: 10px;
    border-radius: 28px 28px 0 0;
    width: auto;
    min-width: 180px;
  }
  
  .chatbot-header {
    padding: 0.75rem 1rem;
  }
  
  .chatbot-messages {
    padding: 1rem 0.75rem;
  }
  
  .message {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .tabs {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .tabs.active { transform: translateY(0); }

  .tab {
    width: 100%;
    text-align: left;
  }

  .chatbot-container {
    right: 0;
    border-radius: 0;
  }
}

/* Animation for chat toggle */
@keyframes chatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: chatPulse 2s infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

/* Print cleanup */
@media print {
  .chatbot-toggle,
  .chatbot-container,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}
