/* ==========================================================================
   CRAB — Subpages Stylesheet (About, Events, Donate, Collaboration)
   Editorial typography, responsive layouts, immersive dark theme,
   glassmorphism cards, and cohesive branding.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

html {
  scroll-behavior: smooth;
}

body.page-template-default,
body.page {
  background-color: #001a29;
  color: #fdf0d5;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.crab-page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.crab-section[id],
#become-researcher,
.research-application-section {
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   1. Subpage Hero Header Section
   -------------------------------------------------------------------------- */
.crab-page-hero {
  position: relative;
  padding: calc(var(--header-height, 92px) + 50px) clamp(20px, 6vw, 100px) 70px;
  background: radial-gradient(circle at 65% 30%, rgba(102, 155, 188, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(193, 18, 31, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, #002236 0%, #001724 100%);
  border-bottom: 1px solid rgba(253, 240, 213, 0.1);
  overflow: hidden;
}

.crab-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(253, 240, 213, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.crab-hero-content {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 2;
}

.crab-hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #669bbc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crab-hero-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 24px;
}

.crab-hero-title em,
.crab-hero-title .serif-italic {
  font-style: normal;
  font-weight: 800;
  color: #fdf0d5;
}

.crab-hero-title .text-crimson {
  color: #ff4d5a;
}

.crab-hero-lead {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  color: #c8dce6;
  max-width: 760px;
  margin: 0 0 32px;
  font-weight: 400;
}

.crab-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Primary & Secondary Buttons */
.crab-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: #c1121f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.crab-btn-primary:hover {
  background: #d91422;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(193, 18, 31, 0.6);
  color: #ffffff;
}

.crab-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: rgba(253, 240, 213, 0.08);
  color: #fdf0d5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(253, 240, 213, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.crab-btn-secondary:hover {
  background: rgba(253, 240, 213, 0.15);
  border-color: rgba(253, 240, 213, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. Main Page Content Layout
   -------------------------------------------------------------------------- */
.crab-page-content {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 60px) 100px;
  width: 100%;
  box-sizing: border-box;
}

.crab-section {
  margin-bottom: 80px;
}

.crab-section-header {
  margin-bottom: 36px;
}

.crab-section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #669bbc;
  margin-bottom: 8px;
}

.crab-section-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 16px;
}

/* Feature & Narrative Cards */
.crab-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.crab-card-box {
  background: linear-gradient(145deg, rgba(0, 36, 56, 0.7) 0%, rgba(0, 24, 38, 0.85) 100%);
  border: 1px solid rgba(253, 240, 213, 0.12);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 15, 25, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.crab-card-box:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 155, 188, 0.4);
  box-shadow: 0 16px 40px rgba(0, 20, 35, 0.35);
}

.crab-card-icon {
  font-size: 32px;
  color: #ff4d5a;
  margin-bottom: 18px;
  display: inline-block;
}

.crab-card-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 12px;
}

.crab-card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #b8cfdb;
  margin: 0;
}

/* Split Image & Text Layout */
.crab-split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(0, 32, 50, 0.6);
  border: 1px solid rgba(253, 240, 213, 0.12);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 60px;
}

@media (max-width: 860px) {
  .crab-split-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.crab-split-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 10, 20, 0.4);
  aspect-ratio: 4/3;
  background: #002236;
}

.crab-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.crab-split-block:hover .crab-split-image img {
  transform: scale(1.03);
}

.crab-split-text h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 16px;
}

.crab-split-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #c4d7e2;
  margin: 0 0 20px;
}

/* Transparent Honest Notice Callout */
.crab-notice-callout {
  background: rgba(102, 155, 188, 0.12);
  border-left: 4px solid #669bbc;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 30px 0;
}

.crab-notice-callout.notice-crimson {
  background: rgba(193, 18, 31, 0.12);
  border-left-color: #c1121f;
}

.crab-notice-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 6px;
}

.crab-notice-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #c4d7e2;
  margin: 0;
}

/* Clean Collaboration & Donate Forms / Options */
.crab-form-wrap {
  background: linear-gradient(145deg, rgba(0, 32, 50, 0.8) 0%, rgba(0, 20, 32, 0.95) 100%);
  border: 1px solid rgba(253, 240, 213, 0.14);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
  max-width: 720px;
  margin: 40px auto 0;
}

.crab-form-wrap h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.crab-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .crab-form-grid {
    grid-template-columns: 1fr;
  }
}

.crab-input-group {
  margin-bottom: 20px;
}

.crab-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0cddb;
  margin-bottom: 8px;
}

.crab-input-group input,
.crab-input-group textarea,
.crab-input-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 18, 30, 0.6);
  border: 1px solid rgba(253, 240, 213, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.crab-input-group input:focus,
.crab-input-group textarea:focus,
.crab-input-group select:focus {
  outline: none;
  border-color: #669bbc;
  background: rgba(0, 24, 40, 0.85);
  box-shadow: 0 0 0 3px rgba(102, 155, 188, 0.25);
}

/* Customizable Donation Amount Box (Apne Hisaab Se Karo) */
.crab-amount-custom-box {
  margin-bottom: 22px;
}

.crab-amount-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.crab-amount-freedom-badge {
  background: rgba(102, 155, 188, 0.18);
  border: 1px solid rgba(102, 155, 188, 0.35);
  color: #669bbc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.crab-amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.crab-amount-currency {
  position: absolute;
  left: 18px;
  font-size: 20px;
  font-weight: 800;
  color: #669bbc;
  pointer-events: none;
  user-select: none;
}

.crab-custom-amount-input {
  width: 100%;
  padding: 16px 20px 16px 65px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  background: rgba(0, 16, 26, 0.8) !important;
  border: 2px solid rgba(102, 155, 188, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s ease !important;
}

.crab-custom-amount-input:focus {
  border-color: #669bbc !important;
  background: rgba(0, 24, 40, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(102, 155, 188, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.crab-amount-chips-label {
  display: block;
  font-size: 11.5px;
  color: #8dafc1;
  margin: 12px 0 8px;
  font-weight: 600;
}

.crab-amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crab-amount-chip {
  background: rgba(253, 240, 213, 0.06);
  border: 1px solid rgba(253, 240, 213, 0.18);
  color: #fdf0d5;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.crab-amount-chip:hover {
  background: rgba(102, 155, 188, 0.2);
  border-color: #669bbc;
  color: #ffffff;
  transform: translateY(-1px);
}

.crab-amount-chip.is-active {
  background: #c1121f;
  border-color: #ff4d5a;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(193, 18, 31, 0.4);
}

.crab-amount-helper-note {
  font-size: 12px;
  color: #8faec0;
  margin-top: 8px;
  line-height: 1.5;
}

/* Loading Spinner */
.crab-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: crabSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

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

/* Success Receipt Card */
.crab-receipt-card {
  background: linear-gradient(160deg, #002b42 0%, #001825 100%);
  border: 1px solid rgba(253, 240, 213, 0.2);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 10, 20, 0.45);
  animation: crabFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.crab-receipt-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.crab-receipt-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 163, 42, 0.2);
  border: 2px solid #00a32a;
  color: #00d236;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.crab-receipt-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #669bbc;
  display: block;
  margin-bottom: 4px;
}

.crab-receipt-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.crab-receipt-subtitle {
  font-size: 14.5px;
  color: #c4d7e2;
  margin: 0;
}

.crab-receipt-ref-banner {
  background: rgba(0, 18, 30, 0.85);
  border: 1px dashed rgba(253, 240, 213, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.crab-receipt-ref-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #8dafc1;
  display: block;
  margin-bottom: 8px;
}

.crab-receipt-ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crab-receipt-ref-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff4d5a;
  background: transparent;
  padding: 0;
}

.crab-copy-btn {
  background: rgba(253, 240, 213, 0.12);
  border: 1px solid rgba(253, 240, 213, 0.25);
  color: #fdf0d5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crab-copy-btn:hover {
  background: #669bbc;
  color: #002236;
  border-color: #669bbc;
}

.crab-copy-btn.is-copied {
  background: #00a32a;
  border-color: #00a32a;
  color: #fff;
}

.crab-receipt-bank-block {
  background: rgba(0, 20, 32, 0.7);
  border: 1px solid rgba(253, 240, 213, 0.12);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.crab-receipt-bank-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.crab-bank-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crab-bank-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(253, 240, 213, 0.08);
}

.crab-bank-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bank-label {
  color: #8dafc1;
  font-weight: 600;
  flex-shrink: 0;
}

.bank-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-val {
  color: #ffffff;
}

.crab-receipt-instructions {
  background: rgba(102, 155, 188, 0.12);
  border-left: 3px solid #669bbc;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #c4d7e2;
  margin-bottom: 24px;
}

.crab-receipt-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.crab-btn-whatsapp {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35) !important;
}

.crab-btn-whatsapp:hover {
  background: #20ba5a !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5) !important;
}

/* --------------------------------------------------------------------------
   3. Shared Subpage Footer
   -------------------------------------------------------------------------- */
.crab-site-footer {
  background: #00121c;
  border-top: 1px solid rgba(253, 240, 213, 0.12);
  padding: 80px clamp(20px, 5vw, 80px) 40px;
  color: #fdf0d5;
}

.crab-footer-container {
  max-width: 1140px;
  margin: 0 auto;
}

.crab-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .crab-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.crab-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
}

.crab-footer-lead {
  font-size: 14px;
  line-height: 1.65;
  color: #a4becc;
  max-width: 440px;
  margin: 0 0 16px;
}

.crab-footer-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #669bbc;
  font-weight: 800;
}

.crab-footer-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 18px;
}

.crab-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crab-footer-nav-list a {
  color: #b8cfdb;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.crab-footer-nav-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.crab-footer-highlight-link {
  color: #ff6b77 !important;
  font-weight: 700 !important;
}

.crab-footer-conviction {
  font-size: 13.5px;
  line-height: 1.6;
  color: #b8cfdb;
  margin: 0 0 18px;
}

.crab-footer-conviction b {
  color: #ffffff;
}

.crab-footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(253, 240, 213, 0.08);
  border: 1px solid rgba(253, 240, 213, 0.2);
  color: #fdf0d5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.crab-footer-social-pill:hover {
  background: rgba(253, 240, 213, 0.16);
  border-color: rgba(253, 240, 213, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.crab-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(253, 240, 213, 0.08);
  font-size: 12px;
  line-height: 1.6;
  color: #7b9aa9;
}

.crab-footer-copyright {
  color: #557484;
}

/* ==========================================================================
   RESEARCH MENTOR SLIDER, WHY RESEARCH & EVENTS SECTION STYLES
   ========================================================================== */

/* Scientific Background Grid */
.crab-hero-scientific {
  position: relative;
}

.crab-scientific-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(102, 155, 188, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  opacity: 0.85;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
}

/* Scroll Reveal Base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mentor Slider Container */
.mentor-slider-section {
  position: relative;
}

.mentor-slider-container {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 34, 54, 0.85) 0%, rgba(0, 23, 36, 0.95) 100%);
  border: 1px solid rgba(253, 240, 213, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 10, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px 36px 36px;
  overflow: hidden;
  outline: none;
}

.mentor-slider-container:focus-visible {
  border-color: #669bbc;
  box-shadow: 0 0 0 2px rgba(102, 155, 188, 0.3);
}

/* Slider Topbar */
.mentor-slider-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(253, 240, 213, 0.08);
}

.mentor-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #669bbc;
  letter-spacing: 0.1em;
}

.mentor-counter-current {
  color: #ffffff;
  font-size: 16px;
}

.mentor-counter-divider {
  margin: 0 3px;
  color: rgba(255, 255, 255, 0.3);
}

.mentor-counter-total {
  color: #8faac0;
}

.mentor-slider-timer-bar {
  flex: 1;
  max-width: 380px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.mentor-progress-fill {
  height: 100%;
  width: 0%;
  background: #c1121f;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(193, 18, 31, 0.6);
}

.mentor-arrows-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mentor-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 24, 38, 0.8);
  border: 1px solid rgba(253, 240, 213, 0.16);
  color: #fdf0d5;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mentor-arrow-btn:hover {
  background: #c1121f;
  border-color: #c1121f;
  color: #ffffff;
  transform: scale(1.05);
}

.mentor-arrow-btn:focus-visible {
  outline: 2px solid #669bbc;
  outline-offset: 2px;
}

/* Slides Track */
.mentor-slides-track {
  position: relative;
  min-height: 440px;
}

.mentor-slide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mentor-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateY(0);
}

/* Slide Grid: Left ~42-45%, Right ~55-58% */
.mentor-slide-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 44px;
  align-items: center;
}

/* Mentor Image Column */
.mentor-image-col {
  position: relative;
}

.mentor-image-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  border: 1px solid rgba(253, 240, 213, 0.14);
  box-shadow: 0 12px 35px rgba(0, 15, 25, 0.5);
  background: #00121e;
}

.mentor-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mentor-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mentor-image-frame.fit-contain img {
  object-fit: contain;
}

.mentor-slider-container:hover .mentor-slide.is-active .mentor-image-frame img {
  transform: scale(1.03);
}

.mentor-image-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 18, 30, 0.85) 100%);
  pointer-events: none;
}

.mentor-badge-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 23, 36, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(102, 155, 188, 0.3);
  color: #e0f2fe;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mentor-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
}

/* Mentor Info Column */
.mentor-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #669bbc;
  margin-bottom: 8px;
}

.mentor-name {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.mentor-credentials {
  font-size: 13.5px;
  color: #ffb4b1;
  font-weight: 600;
  margin-bottom: 6px;
}

.mentor-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
}

.mentor-institution {
  color: #c4d7e2;
  font-weight: 500;
}

.mentor-role-title {
  font-size: 14.5px;
  color: #94b8cf;
  font-weight: 500;
  margin-bottom: 16px;
}

.mentor-bio {
  font-size: 14.5px;
  line-height: 1.68;
  color: #c8dce6;
  margin: 0 0 22px;
}

/* Mentor Metadata Grid */
.mentor-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 18, 30, 0.5);
  border: 1px solid rgba(253, 240, 213, 0.09);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.mentor-meta-full {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(253, 240, 213, 0.06);
  padding-top: 10px;
}

.mentor-meta-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #669bbc;
  margin-bottom: 4px;
}

.mentor-meta-val {
  display: block;
  font-size: 13px;
  color: #fdf0d5;
  font-weight: 600;
  line-height: 1.4;
}

.mentor-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mentor-pause-hint {
  font-size: 11.5px;
  color: #7b9aa9;
  letter-spacing: 0.04em;
}

/* Dots Navigation */
.mentor-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 240, 213, 0.08);
}

.mentor-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mentor-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.mentor-dot.is-active {
  width: 32px;
  background: #c1121f;
  box-shadow: 0 0 10px rgba(193, 18, 31, 0.5);
}

/* ==========================================================================
   SECTION 4 — WHY RESEARCH MATTERS STYLES
   ========================================================================== */
.why-research-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.why-research-heading {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}

.why-research-lead p {
  font-size: 15px;
  line-height: 1.7;
  color: #c4d7e2;
  margin: 0 0 16px;
}

.why-research-points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-point-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 34, 54, 0.55);
  border: 1px solid rgba(253, 240, 213, 0.1);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.why-point-item:hover {
  border-color: rgba(102, 155, 188, 0.35);
  transform: translateX(4px);
  background: rgba(0, 34, 54, 0.75);
}

.why-point-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #669bbc;
  background: rgba(102, 155, 188, 0.15);
  border: 1px solid rgba(102, 155, 188, 0.25);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-point-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.why-point-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #c4d7e2;
  margin: 0;
}

/* Why Quote Card */
.why-quote-card {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 34, 54, 0.85) 0%, rgba(0, 20, 32, 0.95) 100%);
  border: 1px solid rgba(253, 240, 213, 0.14);
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: 0 16px 45px rgba(0, 10, 20, 0.35);
}

.why-quote-mark {
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
  color: #c1121f;
  margin-bottom: -10px;
}

.why-quote-text {
  font-size: 17px;
  line-height: 1.6;
  color: #fdf0d5;
  font-weight: 500;
  margin: 0 0 18px;
  font-style: italic;
}

.why-quote-author strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 700;
}

.why-quote-author span {
  display: block;
  font-size: 12px;
  color: #8faac0;
}

.why-card-pillars {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 240, 213, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-pillar-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-pillar strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

.why-pillar span {
  display: block;
  font-size: 12px;
  color: #a3c0d2;
  line-height: 1.45;
}

/* ==========================================================================
   RESEARCH & COLLABORATION FORM ENHANCEMENTS
   ========================================================================== */
.crab-form-fieldset {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(253, 240, 213, 0.08);
}

.crab-form-fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.crab-fieldset-legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #669bbc;
  margin-bottom: 16px;
  display: block;
}

.fieldset-sub-hint {
  font-size: 13px;
  color: #c4d7e2;
  margin: -8px 0 16px;
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: #8faac0;
  margin-top: 5px;
  line-height: 1.4;
}

.req {
  color: #ff4d5a;
}

/* Research Interest Pills */
.crab-interest-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crab-interest-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 24, 38, 0.65);
  border: 1px solid rgba(253, 240, 213, 0.14);
  color: #c4d7e2;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.crab-interest-pill input[type="checkbox"] {
  display: none;
}

.crab-interest-pill .pill-check {
  font-size: 11px;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.crab-interest-pill:hover {
  border-color: #669bbc;
  color: #ffffff;
  background: rgba(0, 34, 54, 0.8);
}

.crab-interest-pill.is-active {
  background: rgba(102, 155, 188, 0.22);
  border-color: #669bbc;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(102, 155, 188, 0.25);
}

.crab-interest-pill.is-active .pill-check {
  opacity: 1;
  color: #669bbc;
}

/* Consent Box */
.crab-consent-box {
  background: rgba(0, 24, 38, 0.5);
  border: 1px solid rgba(253, 240, 213, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
}

.crab-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #c4d7e2;
  cursor: pointer;
}

.crab-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #c1121f;
  cursor: pointer;
  flex-shrink: 0;
}

/* Collaboration Types Mini Cards Grid */
.crab-collab-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.crab-collab-type-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: rgba(0, 24, 38, 0.6);
  border: 1px solid rgba(253, 240, 213, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  outline: none;
}

.crab-collab-type-card:hover {
  border-color: rgba(102, 155, 188, 0.45);
  transform: translateY(-2px);
  background: rgba(0, 32, 50, 0.7);
}

.crab-collab-type-card:focus-visible {
  border-color: #669bbc;
  box-shadow: 0 0 0 2px rgba(102, 155, 188, 0.4);
}

.crab-collab-type-card.is-selected {
  border-color: #c1121f;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.14) 0%, rgba(0, 34, 54, 0.8) 100%);
  box-shadow: 0 4px 20px rgba(193, 18, 31, 0.25);
}

.collab-card-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.collab-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.collab-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #a3bfd2;
  margin: 0;
}

.collab-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: transparent;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.crab-collab-type-card.is-selected .collab-card-check {
  background: #c1121f;
  border-color: #c1121f;
  color: #ffffff;
}

/* ==========================================================================
   CHANGE MAKER SECTION STYLES
   ========================================================================== */
.change-maker-section {
  position: relative;
  padding-top: 20px;
}

.crab-change-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.crab-change-card {
  background: rgba(0, 34, 54, 0.65);
  border: 1px solid rgba(253, 240, 213, 0.12);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 15, 25, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.crab-change-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 155, 188, 0.45);
  background: rgba(0, 34, 54, 0.85);
  box-shadow: 0 16px 36px rgba(0, 15, 25, 0.4);
}

.change-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #669bbc;
  margin-bottom: 12px;
}

.change-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.change-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.change-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #c4d7e2;
  margin: 0;
  flex: 1;
}

.change-maker-action-wrap {
  text-align: center;
  margin-top: 10px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .mentor-slide-grid {
    grid-template-columns: 42% 58%;
    gap: 28px;
  }
  .why-research-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .mentor-slider-container {
    padding: 24px 20px;
  }
  .mentor-slide-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .mentor-image-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 480px;
    border-radius: 14px;
    background: #00121e;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 15, 25, 0.45);
  }
  .mentor-picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .mentor-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: var(--mentor-mobile-fit, cover);
    object-position: var(--mentor-mobile-pos, center 35%);
    display: block;
  }
  .mentor-image-frame.fit-contain img {
    object-fit: contain !important;
    background: #00121e;
  }
  .mentor-badge-tag {
    bottom: 12px;
    left: 12px;
    padding: 5px 11px;
    font-size: 10px;
  }
  .mentor-meta-grid {
    grid-template-columns: 1fr;
  }
  .mentor-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mentor-actions .mentor-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .crab-collab-types-grid {
    grid-template-columns: 1fr;
  }
  .crab-change-grid {
    grid-template-columns: 1fr;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mentor-slide {
    transition: none !important;
  }
  .mentor-progress-fill {
    transition: none !important;
  }
}

/* ==========================================================================
   ANIMATED MARQUEE HERO (hero-3.tsx Exact Visual Reference)
   ========================================================================== */
.crab-marquee-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 130px 0 50px;
  background-color: var(--hero-bg, #001a29);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(102, 155, 188, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 80% 50%, rgba(193, 18, 31, 0.06) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

/* Subtle background research grid */
.crab-marquee-hero .crab-scientific-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-size: 32px 32px;
  background-image: radial-gradient(circle, rgba(253, 240, 213, 0.3) 1px, transparent 1px);
  z-index: 0;
}

.crab-marquee-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow Pill Badge */
.crab-marquee-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border-radius: 9999px;
  background: rgba(102, 155, 188, 0.12);
  border: 1px solid rgba(102, 155, 188, 0.28);
  color: #669bbc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  animation: crabHeroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Heading */
.crab-marquee-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-width: 960px;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.crab-marquee-animated-title {
  display: inline;
}

.crab-marquee-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: crabWordEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.08s * var(--word-index, 0));
  margin: 0 0.04em;
}

.crab-highlight-cream {
  color: #fdf0d5 !important;
  text-shadow: 0 0 30px rgba(253, 240, 213, 0.25);
}

@keyframes crabWordEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Description Lead */
.crab-marquee-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: #c8dce6;
  max-width: 720px;
  margin: 0 auto 30px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(12px);
  animation: crabHeroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

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

/* CTA Wrap & Button (Positioned Overlapping Marquee like hero-3.tsx) */
.crab-marquee-cta-wrap {
  position: relative;
  z-index: 25;
  margin-bottom: -22px;
  opacity: 0;
  transform: translateY(12px);
  animation: crabHeroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.crab-marquee-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 9999px;
  background: #c1121f;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 28px -4px rgba(193, 18, 31, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.crab-marquee-cta:hover {
  background: #d91422;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px -4px rgba(193, 18, 31, 0.7);
  color: #ffffff;
}

.crab-marquee-cta:focus-visible {
  outline: 3px solid #fdf0d5;
  outline-offset: 4px;
}

/* ==========================================================================
   IMAGE MARQUEE STRIP
   ========================================================================== */
.crab-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  overflow: hidden;
  padding: 42px 0 28px;
  z-index: 10;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  --marquee-gap: 24px;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.crab-marquee-track {
  display: flex;
  gap: var(--marquee-gap, 24px);
  width: max-content;
  user-select: none;
}

.crab-marquee-group {
  display: flex;
  gap: var(--marquee-gap, 24px);
  flex-shrink: 0;
  align-items: center;
  animation: crabMarqueeScrollGroup var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}

@keyframes crabMarqueeScrollGroup {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - var(--marquee-gap, 24px)), 0, 0);
  }
}

.crab-marquee-container.has-pause-on-hover:hover .crab-marquee-group {
  animation-play-state: paused;
}

/* Portrait Card: 3 / 4 Aspect Ratio */
.crab-marquee-card {
  position: relative;
  flex-shrink: 0;
  width: 195px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #002236;
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

/* Alternating rotations mimicking hero-3.tsx */
.crab-marquee-card:nth-child(6n + 1) { transform: rotate(-2.5deg); }
.crab-marquee-card:nth-child(6n + 2) { transform: rotate(4.5deg); }
.crab-marquee-card:nth-child(6n + 3) { transform: rotate(-1.5deg); }
.crab-marquee-card:nth-child(6n + 4) { transform: rotate(5deg); }
.crab-marquee-card:nth-child(6n + 5) { transform: rotate(-3deg); }
.crab-marquee-card:nth-child(6n + 6) { transform: rotate(3.5deg); }

.crab-marquee-card:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: 0 24px 44px -8px rgba(0, 0, 0, 0.8), 0 0 22px rgba(102, 155, 188, 0.35);
  z-index: 15;
}

.crab-marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.crab-marquee-card:hover img {
  transform: scale(1.04);
}

/* Optional subtle caption badge on bottom of card */
.crab-marquee-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0, 26, 41, 0.92) 0%, rgba(0, 26, 41, 0.4) 60%, transparent 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.crab-marquee-card:hover .crab-marquee-card-caption {
  opacity: 1;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .crab-marquee-hero {
    padding: 115px 0 45px;
  }
  .crab-marquee-wrapper {
    --marquee-gap: 18px;
    padding: 34px 0 24px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
  .crab-marquee-card {
    width: 160px;
    height: 215px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .crab-marquee-hero {
    padding: 100px 0 35px;
  }
  .crab-marquee-eyebrow {
    font-size: 10px;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  .crab-marquee-inner {
    padding: 0 16px;
  }
  .crab-marquee-heading {
    width: 100%;
    max-width: 320px;
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.18;
    margin: 0 auto 16px;
    text-wrap: balance;
    word-break: normal;
  }
  .crab-marquee-lead {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .crab-marquee-cta-wrap {
    margin-bottom: -18px;
  }
  .crab-marquee-cta {
    padding: 13px 28px;
    font-size: 12px;
  }
  .crab-marquee-wrapper {
    --marquee-gap: 14px;
    padding: 26px 0 20px;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }
  .crab-marquee-card {
    width: 125px;
    height: 168px;
    border-radius: 13px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .crab-marquee-eyebrow,
  .crab-marquee-word,
  .crab-marquee-lead,
  .crab-marquee-cta-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .crab-marquee-group {
    animation: none !important;
  }
  .crab-marquee-wrapper {
    overflow-x: auto;
  }
}

/* ==========================================================================
   CINEMATIC DONATION HERO & 4-CATEGORY IMPACT SECTION
   Matches CRAB deep navy (#001a29) & crimson (#c1121f) cinematic identity.
   ========================================================================== */

.crab-donate-hero {
  position: relative;
  background-color: #001a29;
  padding: calc(var(--header-height, 92px) + 36px) clamp(20px, 5vw, 80px) 72px;
  overflow: hidden;
  border-bottom: 1px solid rgba(253, 240, 213, 0.08);
}

/* Ambient glow & subtle medical grid */
.crab-donate-hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 40%, rgba(193, 18, 31, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 82% 35%, rgba(102, 155, 188, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 34, 54, 0.7) 0%, #001a29 100%);
  z-index: 1;
}

.crab-donate-hero-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253, 240, 213, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 240, 213, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  opacity: 0.8;
}

/* Split-screen 40/60 Container */
.crab-donate-hero-container {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: clamp(32px, 4.5vw, 68px);
  z-index: 2;
}

/* Left Side: Content */
.crab-donate-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crab-donate-eyebrow {
  margin-bottom: 18px;
  animation: crabFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.crab-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(102, 155, 188, 0.12);
  border: 1px solid rgba(102, 155, 188, 0.32);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8bc1de;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.crab-donate-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.4rem, 4.1vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  animation: crabFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.crab-title-line-offwhite {
  color: #ffffff;
}

.crab-title-line-cream {
  color: #fdf0d5;
}

.crab-title-line-cream.serif-accent {
  font-style: normal;
  text-shadow: 0 0 28px rgba(253, 240, 213, 0.2);
}

.crab-donate-lead {
  font-size: clamp(15.5px, 1.12vw, 18px);
  line-height: 1.68;
  color: #c4d7e2;
  margin: 0 0 34px;
  max-width: 520px;
  font-weight: 400;
  animation: crabFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.crab-donate-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  animation: crabFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* Primary Donation CTA: CRAB Brand Red Pill */
.crab-donate-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  background: #c1121f;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 22px rgba(193, 18, 31, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.crab-donate-btn-primary:hover,
.crab-donate-btn-primary:focus-visible {
  background: #d91422;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193, 18, 31, 0.72), 0 0 20px rgba(255, 77, 90, 0.45);
  color: #ffffff !important;
}

.crab-donate-btn-primary:focus-visible {
  outline: 2px solid #fdf0d5;
  outline-offset: 3px;
}

/* Secondary CTA: Transparent Cream Pill */
.crab-donate-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  background: rgba(253, 240, 213, 0.06);
  color: #fdf0d5 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid rgba(253, 240, 213, 0.28);
  backdrop-filter: blur(6px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.crab-donate-btn-secondary:hover,
.crab-donate-btn-secondary:focus-visible {
  background: rgba(253, 240, 213, 0.15);
  border-color: rgba(253, 240, 213, 0.5);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.crab-donate-btn-secondary:focus-visible {
  outline: 2px solid #669bbc;
  outline-offset: 3px;
}

/* Right Side: Media Environment */
.crab-donate-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crabFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.crab-donate-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #00101b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(253, 240, 213, 0.06);
  display: flex;
}

.crab-donate-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border: 0;
  outline: 0;
}

.crab-donate-poster-only {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient Integration Overlays */
/* Left Edge: Softly dissolves video into deep navy background without obscuring center subjects */
.crab-video-gradient-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 26%;
  background: linear-gradient(to right, #001a29 0%, rgba(0, 26, 41, 0.65) 35%, rgba(0, 26, 41, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Top & Bottom soft vignettes */
.crab-video-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(to bottom, #001a29 0%, rgba(0, 26, 41, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.crab-video-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16%;
  background: linear-gradient(to top, #001a29 0%, rgba(0, 26, 41, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Right edge subtle fade */
.crab-video-gradient-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10%;
  background: linear-gradient(to left, #001a29 0%, rgba(0, 26, 41, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Keyframe Entrance Animation */
@keyframes crabFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   DONATION IMPACT SECTION (4 Categories)
   -------------------------------------------------------------------------- */
.crab-donate-impact-section {
  position: relative;
  padding-top: 54px;
}

.crab-section-lead-subtitle {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: #c4d7e2;
  max-width: 680px;
  margin: 10px auto 0;
  text-align: center;
}

.crab-grid-4-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.crab-impact-card {
  background: rgba(0, 34, 54, 0.65);
  border: 1px solid rgba(102, 155, 188, 0.22);
  border-radius: 12px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.crab-impact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 240, 213, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  background: rgba(0, 38, 62, 0.85);
}

.crab-impact-card .crab-card-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(102, 155, 188, 0.12);
  border: 1px solid rgba(102, 155, 188, 0.2);
}

.crab-impact-card .crab-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.crab-impact-card .crab-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: #c4d7e2;
  margin: 0;
  flex: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS (Desktop, Tablet, Mobile)
   -------------------------------------------------------------------------- */

/* Tablet (769px to 1024px) */
@media (max-width: 1024px) {
  .crab-donate-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .crab-donate-hero-content {
    max-width: 720px;
  }

  .crab-donate-lead {
    max-width: 100%;
  }

  .crab-donate-media-wrapper {
    max-height: 440px;
  }

  .crab-grid-4-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .crab-donate-hero {
    padding: calc(var(--header-height, 92px) + 20px) 20px 48px;
  }

  .crab-donate-hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .crab-donate-eyebrow {
    margin-bottom: 14px;
  }

  .crab-eyebrow-pill {
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 5px 12px;
  }

  .crab-donate-title {
    font-size: clamp(2rem, 7.8vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .crab-donate-lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .crab-donate-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    margin-bottom: 8px;
  }

  .crab-donate-btn-primary,
  .crab-donate-btn-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
  }

  /* Video Visual positioned after CTA on mobile */
  .crab-donate-hero-media {
    order: 5;
    margin-top: 12px;
    width: 100%;
  }

  .crab-donate-media-wrapper {
    aspect-ratio: 16 / 9;
    max-height: 290px;
    border-radius: 12px;
  }

  .crab-video-gradient-left {
    width: 14%;
  }

  .crab-grid-4-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .crab-impact-card {
    padding: 20px 18px;
  }
}

/* Small mobile (< 400px: 320px, 360px, 375px, 390px) */
@media (max-width: 400px) {
  .crab-donate-hero {
    padding: calc(var(--header-height, 92px) + 16px) 16px 40px;
  }

  .crab-donate-title {
    font-size: 1.85rem;
  }

  .crab-donate-lead {
    font-size: 14px;
  }

  .crab-donate-media-wrapper {
    max-height: 220px;
  }
}

/* Reduced Motion Preference for Donate Hero */
@media (prefers-reduced-motion: reduce) {
  .crab-donate-eyebrow,
  .crab-donate-title,
  .crab-donate-lead,
  .crab-donate-cta-group,
  .crab-donate-hero-media {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .crab-donate-video {
    display: none !important;
  }

  .crab-donate-poster-only,
  .crab-donate-media-wrapper img {
    display: block !important;
  }
}


