/* ---------------- SCOPED WRAPPER ---------------- */
.nds-ff-wrapper {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2d3748;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 10px 5px;
  box-sizing: border-box;
  line-height: 1.5;
  overflow-x: hidden;
}

.nds-ff-wrapper * {
  box-sizing: border-box;
}

/* ---------------- TOP MAIN HEADER ---------------- */
.nds-ff-main-header {
  margin-bottom: 28px;
  margin-top: 10px;
}

.nds-ff-main-title {
  font-size: 68px;
  font-weight: 900;
  font-style: italic;
  color: #0c71c3;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 14px 0;
  font-family: 'Poppins', sans-serif;
}

.nds-ff-main-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* ---------------- 1. STATS BANNER ---------------- */
.nds-ff-stats-banner {
  background: linear-gradient(135deg, #0c71c3 0%, #1c8acb 100%);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  padding: 16px 8px;
  margin-bottom: 35px;
  box-shadow: 0 4px 16px rgba(12, 113, 195, 0.15);
}

.nds-ff-stat-item {
  flex: 1 1 30%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 26px;
  position: relative;
}

.nds-ff-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.nds-ff-stat-number {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
}

.nds-ff-stat-text {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 400;
}

.nds-ff-stat-text strong {
  font-weight: 700;
  color: #ffffff;
}

/* ---------------- SECTION HEADERS ---------------- */
.nds-ff-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  margin-top: 10px;
}

.nds-ff-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin: 0;
  white-space: normal;
  line-height: 1.2;
}

.nds-ff-section-line {
  flex-grow: 1;
  height: 3px;
  background-color: #87b940;
  border-radius: 2px;
}

.nds-ff-section-desc {
  font-size: 14.5px;
  color: #4b5563;
  margin-top: -14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ---------------- 2. THE NINE CANCERS (3x3 GRID) ---------------- */
.nds-ff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.nds-ff-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nds-ff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.nds-ff-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.nds-ff-card-num {
  font-size: 24px;
  font-weight: 800;
  color: #87b940;
  line-height: 1;
}

.nds-ff-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  color: #ffffff;
  display: inline-block;
}

.nds-ff-badge-sufficient {
  background-color: #0c71c3;
}

.nds-ff-badge-limited {
  background-color: #1c8acb;
}

.nds-ff-badge-cohort {
  background-color: #1f2937;
}

.nds-ff-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0c71c3;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.nds-ff-card-body {
  font-size: 12.8px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Legend Row */
.nds-ff-legend-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 45px;
  padding-left: 5px;
  flex-wrap: wrap;
}

.nds-ff-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #4b5563;
  font-weight: 500;
}

.nds-ff-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.nds-ff-dot-sufficient { background-color: #0c71c3; }
.nds-ff-dot-limited { background-color: #1c8acb; }
.nds-ff-dot-cohort { background-color: #1f2937; }

/* ---------------- 3. MORE EXPOSURE, MORE RISK (DOSE-RESPONSE) ---------------- */
.nds-ff-dose-section {
  margin-bottom: 45px;
}

.nds-ff-dose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.nds-ff-dose-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nds-ff-dose-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.nds-ff-dose-tag {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.nds-ff-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.nds-ff-cbar {
  flex: 1;
  border-radius: 4px;
  transition: height 0.3s ease;
}

.nds-ff-cbar-b1 { height: 26%; background-color: #d6e8f7; }
.nds-ff-cbar-b2 { height: 48%; background-color: #90c2e8; }
.nds-ff-cbar-b3 { height: 74%; background-color: #4ba2df; }
.nds-ff-cbar-b4 { height: 100%; background-color: #0c71c3; }

.nds-ff-cbar-g1 { height: 26%; background-color: #e5f2d6; }
.nds-ff-cbar-g2 { height: 48%; background-color: #bde18a; }
.nds-ff-cbar-g3 { height: 74%; background-color: #97cb4e; }
.nds-ff-cbar-g4 { height: 100%; background-color: #87b940; }

.nds-ff-dose-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.nds-ff-dose-title-blue {
  color: #0c71c3;
}

.nds-ff-dose-title-green {
  color: #87b940;
}

.nds-ff-dose-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

/* ---------------- 4. EARLY DETECTION (DARK BOX) ---------------- */
.nds-ff-early-detect {
  background-color: #131b26;
  border-radius: 14px;
  padding: 36px 36px 32px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 35px;
  box-shadow: 0 8px 24px rgba(19, 27, 38, 0.2);
}

.nds-ff-ed-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #7cda24;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nds-ff-ed-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.nds-ff-ed-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.nds-ff-ed-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nds-ff-progress-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nds-ff-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nds-ff-label-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

.nds-ff-label-value {
  font-size: 15px;
  font-weight: 800;
}

.nds-ff-val-green {
  color: #7cda24;
}

.nds-ff-val-white {
  color: #ffffff;
}

.nds-ff-track {
  width: 100%;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.nds-ff-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
}

.nds-ff-fill-green {
  width: 96.1%;
  background: linear-gradient(90deg, #87b940 0%, #7cda24 100%);
}

.nds-ff-fill-grey {
  width: 94.2%;
  background-color: #94a3b8;
}

.nds-ff-ed-footnote {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  font-style: italic;
}

/* ---------------- 5. CTA BANNER ---------------- */
.nds-ff-cta-banner {
  background-color: #f0f7fc;
  border: 1px solid #d0e7f7;
  border-radius: 12px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.nds-ff-cta-content {
  flex: 1;
}

.nds-ff-cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #0c71c3;
  margin: 0 0 6px 0;
}

.nds-ff-cta-desc {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.nds-ff-cta-btn {
  background-color: #87b940;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.nds-ff-cta-btn:hover {
  background-color: #76a635;
  transform: translateY(-2px);
}

/* ---------------- RESPONSIVE ---------------- */
@media screen and (max-width: 992px) {
  .nds-ff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 900px) {
  .nds-ff-wrapper {
    padding: 10px;
  }
  .nds-ff-stats-banner {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .nds-ff-stat-item {
    width: 100%;
    padding: 10px 0;
  }
  .nds-ff-stat-item:not(:last-child)::after {
    display: none;
  }
  .nds-ff-stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 14px;
  }
  .nds-ff-early-detect {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 24px;
  }
  .nds-ff-cta-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
  }
  .nds-ff-cta-btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }
  .nds-ff-main-title {
    font-size: 48px;
    line-height: 1.15;
  }
}

@media screen and (max-width: 768px) {
  .nds-ff-section-title {
    font-size: 22px;
  }
  .nds-ff-dose-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 580px) {
  .nds-ff-wrapper {
    padding: 5px 2px;
  }
  .nds-ff-main-header {
    margin-bottom: 22px;
  }
  .nds-ff-main-title {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
  }
  .nds-ff-main-subtitle {
    font-size: 13.5px;
    line-height: 1.45;
  }
  .nds-ff-stats-banner {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 26px;
  }
  .nds-ff-stat-item {
    gap: 6px;
    padding: 12px 2px;
  }
  .nds-ff-stat-number {
    font-size: 44px;
    line-height: 1;
  }
  .nds-ff-stat-text {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .nds-ff-section-title-wrap {
    gap: 10px;
    margin-bottom: 16px;
  }
  .nds-ff-section-title {
    font-size: 19px;
    letter-spacing: -0.3px;
  }
  .nds-ff-section-line {
    height: 2px;
  }
  .nds-ff-section-desc {
    font-size: 13px;
    line-height: 1.45;
    margin-top: -8px;
    margin-bottom: 18px;
  }
  .nds-ff-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nds-ff-card {
    padding: 16px 18px;
    border-radius: 10px;
  }
  .nds-ff-card-header {
    margin-bottom: 10px;
  }
  .nds-ff-card-num {
    font-size: 22px;
  }
  .nds-ff-badge {
    font-size: 8.5px;
    padding: 3px 8px;
    letter-spacing: 0.4px;
  }
  .nds-ff-card-title {
    font-size: 15.5px;
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .nds-ff-card-body {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .nds-ff-legend-row {
    gap: 10px 16px;
    margin-top: 6px;
    margin-bottom: 30px;
  }
  .nds-ff-legend-item {
    font-size: 11.5px;
  }
  .nds-ff-legend-dot {
    width: 8px;
    height: 8px;
  }
  .nds-ff-dose-section {
    margin-bottom: 32px;
  }
  .nds-ff-dose-card {
    padding: 18px 16px;
  }
  .nds-ff-chart-bars {
    height: 70px;
    margin-bottom: 14px;
  }
  .nds-ff-dose-title {
    font-size: 16px;
  }
  .nds-ff-dose-desc {
    font-size: 12.5px;
  }
  .nds-ff-early-detect {
    border-radius: 10px;
    padding: 22px 16px;
    margin-bottom: 25px;
    gap: 20px;
  }
  .nds-ff-ed-tag {
    font-size: 10.5px;
    margin-bottom: 6px;
  }
  .nds-ff-ed-title {
    font-size: 21px;
    margin-bottom: 10px;
  }
  .nds-ff-ed-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .nds-ff-track {
    height: 12px;
  }
  .nds-ff-label-name {
    font-size: 12px;
  }
  .nds-ff-label-value {
    font-size: 14px;
  }
  .nds-ff-cta-banner {
    border-radius: 10px;
    padding: 18px 16px;
    gap: 14px;
  }
  .nds-ff-cta-title {
    font-size: 17px;
    line-height: 1.3;
  }
  .nds-ff-cta-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .nds-ff-cta-btn {
    font-size: 13.5px;
    padding: 12px 18px;
  }
}

@media screen and (max-width: 380px) {
  .nds-ff-main-title {
    font-size: 23px;
  }
  .nds-ff-section-title {
    font-size: 17px;
  }
  .nds-ff-stat-number {
    font-size: 38px;
  }
  .nds-ff-card-title {
    font-size: 14.5px;
  }
  .nds-ff-ed-title {
    font-size: 19px;
  }
}