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

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

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

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

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

/* ---------------- 1. STATS BANNER ---------------- */
.nds-angina-stats-banner {
  background: #0c71c3;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  margin-bottom: 45px;
}

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

.nds-angina-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.nds-angina-stat-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.nds-angina-stat-text {
  font-size: 14.5px;
  color: #e0f2fe;
  line-height: 1.55;
  font-weight: 400;
}

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

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

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

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

/* ---------------- 2. WHAT ANGINA FEELS LIKE ---------------- */
.nds-angina-feels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.nds-angina-feels-card-left {
  background: #f4f8fb;
  border-radius: 12px;
  padding: 30px;
}

.nds-angina-feels-card-right {
  background: #2b343e;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.nds-angina-card-title-left {
  font-size: 13px;
  font-weight: 700;
  color: #0c71c3;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nds-angina-card-title-right {
  font-size: 13px;
  font-weight: 700;
  color: #87b940;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nds-angina-list {
  margin: 0;
  padding: 0 0 0 22px;
}

.nds-angina-list li {
  font-size: 14.5px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.nds-angina-list-left li {
  color: #334155;
}
.nds-angina-list-left li::marker {
  color: #0c71c3;
  font-size: 1.3em;
}

.nds-angina-list-right li {
  color: #ffffff;
}
.nds-angina-list-right li::marker {
  color: #87b940;
  font-size: 1.3em;
}

.nds-angina-alert-text {
  font-size: 13.5px;
  font-weight: 400;
  color: #cbd5e1;
  margin-top: auto;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ---------------- 3. STABLE VS UNSTABLE TABLE ---------------- */
.nds-angina-table-wrapper {
  margin-bottom: 45px;
  max-width: 100%;
}

.nds-angina-table {
  width: 100%;
  border-collapse: collapse;
}

.nds-angina-table th,
.nds-angina-table td {
  padding: 18px 24px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.nds-angina-table th {
  font-size: 18px;
  font-weight: 800;
}

.nds-angina-th-empty {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.nds-angina-th-stable {
  background: #f0f7fc;
  color: #0c71c3;
  border-color: #e2e8f0;
}

.nds-angina-th-unstable {
  background: #c53030;
  color: #ffffff;
  border-color: #c53030 !important;
}

.nds-angina-table td {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.5;
  vertical-align: top;
  background: #ffffff;
}

.nds-angina-table td:first-child {
  font-weight: 700;
  color: #334155;
  width: 20%;
  background: #f8fafc;
}

.nds-angina-table-footer {
  display: flex;
  margin-top: 16px;
  padding-left: 20%;
}

.nds-angina-tf-col {
  flex: 1;
  padding: 0 24px;
  font-size: 13.5px;
  line-height: 1.5;
}

.nds-angina-tf-stable {
  color: #4b5563;
}

.nds-angina-tf-unstable {
  color: #c53030;
  font-weight: 700;
}

.nds-angina-td-unstable {
  background: #fff5f5 !important;
}

/* ---------------- 4. COMMIT THIS TO MEMORY ---------------- */
.nds-angina-memory {
  background-color: #b91c1c;
  border-radius: 14px;
  padding: 40px;
  color: #ffffff;
  margin-bottom: 45px;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.25);
  display: flex;
  gap: 40px;
  align-items: center;
}

.nds-angina-memory-left {
  flex: 0 0 38%;
}

.nds-angina-memory-title-small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #fca5a5;
}

.nds-angina-memory-title {
  font-size: 72px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 0.9;
  letter-spacing: -2px;
}

.nds-angina-memory-desc {
  font-size: 14.5px;
  color: #fecaca;
  line-height: 1.6;
  margin: 0;
}

.nds-angina-memory-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nds-angina-alert-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.nds-angina-alert-icon {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.nds-angina-alert-desc {
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.45;
}

/* ---------------- 5. CATCHING THE DISEASE (HORIZONTAL TIMELINE) ---------------- */
.nds-angina-timeline-horiz {
  display: flex;
  gap: 24px;
  margin-bottom: 45px;
}

.nds-angina-titem {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nds-angina-titem-topline {
  position: relative;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 22px;
  margin-top: 6px;
}

.nds-angina-titem-topline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.nds-angina-titem-1 .nds-angina-titem-topline::before { background-color: #87b940; }
.nds-angina-titem-2 .nds-angina-titem-topline::before { background-color: #0c71c3; }
.nds-angina-titem-3 .nds-angina-titem-topline::before { background-color: #64748b; }
.nds-angina-titem-4 .nds-angina-titem-topline::before { background-color: #c53030; }

.nds-angina-titem-1 .nds-angina-titem-topline { background-color: #87b940; }
.nds-angina-titem-2 .nds-angina-titem-topline { background-color: #0c71c3; }
.nds-angina-titem-3 .nds-angina-titem-topline { background-color: #64748b; }
.nds-angina-titem-4 .nds-angina-titem-topline { background-color: #c53030; }

.nds-angina-titem-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.nds-angina-titem-1 .nds-angina-titem-label { color: #87b940; }
.nds-angina-titem-2 .nds-angina-titem-label { color: #0c71c3; }
.nds-angina-titem-3 .nds-angina-titem-label { color: #64748b; }
.nds-angina-titem-4 .nds-angina-titem-label { color: #c53030; }

.nds-angina-titem-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 8px;
}

.nds-angina-titem-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
}

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

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

.nds-angina-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #0c71c3;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

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

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

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

/* ---------------- BASE OVERFLOW GUARD ---------------- */
.nds-angina-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------------- RESPONSIVE ---------------- */
@media screen and (max-width: 992px) {
  .nds-angina-stats-banner {
    flex-direction: column;
    padding: 16px;
  }
  .nds-angina-stat-item {
    width: 100%;
    padding: 16px 0;
  }
  .nds-angina-stat-item:not(:last-child)::after {
    display: none;
  }
  .nds-angina-stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nds-angina-feels-grid {
    grid-template-columns: 1fr;
  }
  .nds-angina-memory {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }
  .nds-angina-timeline-horiz {
    flex-direction: column;
    gap: 16px;
  }
  .nds-angina-titem-topline {
    width: 60px;
    margin-bottom: 12px;
  }
  .nds-angina-cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
  }
  .nds-angina-cta-btn {
    text-align: center;
  }
}

@media screen and (max-width: 580px) {
  .nds-angina-wrapper {
    padding: 5px;
  }
  .nds-angina-main-title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.8px;
  }
  .nds-angina-main-subtitle {
    font-size: 15px;
  }
  .nds-angina-stat-title {
    font-size: 22px;
  }
  .nds-angina-section-title {
    font-size: 22px;
    white-space: normal;
    word-break: break-word;
  }
  .nds-angina-section-title-wrap {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nds-angina-section-line {
    width: 100%;
    flex-basis: 100%;
  }

  /* Stacked table layout — no horizontal scroll */
  .nds-angina-table,
  .nds-angina-table thead,
  .nds-angina-table tbody,
  .nds-angina-table tr,
  .nds-angina-table th,
  .nds-angina-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .nds-angina-table thead tr {
    display: none;
  }
  .nds-angina-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .nds-angina-table td {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    width: 100%;
  }
  .nds-angina-table td:last-child {
    border-bottom: none;
  }
  .nds-angina-table td:first-child {
    width: 100%;
    background: #f0f7fc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0c71c3;
    padding: 8px 14px;
  }
  .nds-angina-td-unstable {
    background: #fff5f5 !important;
  }

  .nds-angina-table-footer {
    flex-direction: column;
    padding-left: 0;
    gap: 16px;
  }
  .nds-angina-tf-col {
    padding: 0;
  }
  .nds-angina-memory {
    padding: 24px 16px;
    gap: 24px;
  }
  .nds-angina-memory-title {
    font-size: 52px;
  }
  .nds-angina-alert-item {
    padding: 14px 16px;
  }
  .nds-angina-alert-desc {
    font-size: 13.5px;
  }
  .nds-angina-titem-title {
    font-size: 16px;
  }
  .nds-angina-cta-title {
    font-size: 19px;
  }
}