/* --- RECTAL BLEEDING PAGE --- */

/* =========== HERO =========== */
.rb-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 0;
}
.rb-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--ui-teal-700);
  margin-bottom: 0.6rem;
}
.rb-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  color: var(--section-heading-color);
  margin-bottom: 1rem;
}
.rb-hero .lead {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
  max-width: 70ch;
  margin: 0 auto;
}
.rb-hero .hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.rb-hero-image {
  margin-top: 2rem;
  border-radius: 18px;
  overflow: hidden;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.rb-hero-image picture,
.rb-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========== WHY SO COMMON =========== */
.rb-why {
  max-width: var(--container-max-width);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2.5rem;
}
.rb-why-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.rb-why-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--section-heading-color);
  margin-bottom: 0.75rem;
}
.rb-why-text p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.rb-why-text ul {
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-color);
  line-height: 1.8;
}
.rb-why-stat-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.rb-stat-card {
  background: var(--primary-050);
  border: 1px solid var(--chip-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rb-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.rb-stat-label {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* =========== SYMPTOMS =========== */
.rb-symptoms {
  background: var(--light-background);
  padding: 2.5rem 1.5rem;
}
.rb-symptoms h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--section-heading-color);
  margin-bottom: 0.5rem;
}
.rb-symptoms-lead {
  text-align: center;
  color: var(--text-color);
  max-width: 65ch;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}
.rb-symptom-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}
.rb-symptom-card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--box-shadow-soft);
}
.rb-symptom-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--section-heading-color);
}
.rb-symptom-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* =========== REASSURANCE CALLOUT =========== */
.rb-callout {
  background: var(--primary-color);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.rb-callout-inner {
  max-width: 720px;
  margin: 0 auto;
}
.rb-callout h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.rb-callout p {
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.rb-callout .btn-primary {
  background-color: #fff;
  color: var(--primary-color) !important;
}
.rb-callout .btn-primary:hover {
  background-color: var(--primary-050);
}

/* =========== TREATMENT OPTIONS =========== */
.rb-treatments {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.rb-treatments h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--section-heading-color);
  margin-bottom: 0.5rem;
}
.rb-treatments-lead {
  text-align: center;
  color: var(--text-color);
  max-width: 65ch;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}
.rb-treatment-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.rb-treatment-card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: var(--box-shadow-soft);
}
.rb-treatment-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--section-heading-color);
}
.rb-treatment-card p {
  margin: 0 0 0.75rem;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 0.98rem;
}
.rb-treatment-card .btn-link {
  font-size: 0.95rem;
}

/* =========== BREASTFEEDING NOTE =========== */
.rb-breastfeeding {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.rb-bf-card {
  background: #f0f9f4;
  border: 1px solid #b7dfca;
  border-left: 6px solid #2e8b57;
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.rb-bf-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: #1d5c38;
  margin-bottom: 0.6rem;
}
.rb-bf-card p {
  margin: 0;
  color: #2d4a37;
  line-height: 1.8;
}

/* =========== STEPS =========== */
.rb-steps {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.6rem;
}
.rb-steps h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--section-heading-color);
  margin-bottom: 1.6rem;
}
.rb-step-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.rb-step {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: var(--box-shadow-soft);
}
.rb-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.rb-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--section-heading-color);
}
.rb-step p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* =========== FAQ =========== */
.rb-faq {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1.5rem 2.8rem;
}
.rb-faq h2 {
  text-align: left;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin: 0 clamp(8px, 2vw, 16px) 0.9rem;
  color: var(--section-heading-color);
  font-weight: 700;
}
.rb-faq .faq-item {
  border-top: 1px solid #e6edf0;
  margin: 0 clamp(8px, 2vw, 16px);
  padding: 0.35rem 0;
}
.rb-faq .faq-item:first-of-type { border-top: 0; }

/* =========== CTA =========== */
.rb-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.2rem;
}
.rb-cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  margin-bottom: 0.85rem;
  color: var(--section-heading-color);
}
.rb-cta p {
  margin-bottom: 1.15rem;
  color: var(--text-color);
}
.rb-cta .cta-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========== RESPONSIVE =========== */
@media (min-width: 768px) {
  .rb-why-inner { grid-template-columns: 1fr 340px; }
  .rb-symptom-card { grid-column: span 6; }
  .rb-treatment-card { grid-column: span 4; }
  .rb-step { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .rb-symptom-card { grid-column: span 4; }
}

/* =========== RECTAL BLEEDING EXTRAS =========== */
.rb-trust { margin-top: 0.9rem; font-size: 0.92rem; color: var(--text-color); opacity: 0.85; }
.rb-er { max-width: var(--container-max-width); margin: 2rem auto 0; padding: 0 1.5rem; }
.rb-er-card {
  background: #fff5f5; border: 1px solid #f3c2c2; border-left: 6px solid #c0392b;
  border-radius: 14px; padding: 1.3rem 1.5rem;
}
.rb-er-card h2 { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #8e2a1f; margin-bottom: 0.5rem; }
.rb-er-card ul { padding-left: 1.2rem; list-style: disc; color: #4a2b27; line-height: 1.7; margin-bottom: 0.6rem; }
.rb-er-card p { margin: 0; color: #4a2b27; line-height: 1.7; }
.rb-why-text li { margin-bottom: 0.35rem; }
.rb-triage { background: var(--light-background); padding: 2.5rem 1.5rem; }
.rb-triage h2 { text-align: center; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--section-heading-color); margin-bottom: 0.5rem; }
.rb-triage-lead { text-align: center; color: var(--text-color); max-width: 70ch; margin: 0 auto 1.75rem; line-height: 1.7; }
.rb-triage-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; max-width: var(--container-max-width); margin: 0 auto; }
.rb-triage-card { grid-column: span 12; background: #fff; border: 1px solid #e6edf0; border-radius: 14px; padding: 1.35rem; box-shadow: var(--box-shadow-soft); }
.rb-triage-card h3 { font-size: 1.1rem; margin: 0 0 0.6rem; color: var(--section-heading-color); }
.rb-triage-card ul { padding-left: 1.2rem; list-style: disc; color: var(--text-color); line-height: 1.7; margin: 0; }
.rb-triage-card li { margin-bottom: 0.3rem; }
.rb-triage-office { border-top: 5px solid var(--primary-color); }
.rb-triage-refer { border-top: 5px solid #c0392b; }
.rb-triage-note { text-align: center; max-width: 70ch; margin: 1.5rem auto 0; color: var(--text-color); line-height: 1.7; }
.rb-anoscopy { max-width: var(--container-max-width); margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.rb-ano-card { background: var(--primary-050); border: 1px solid var(--chip-border); border-left: 6px solid var(--primary-color); border-radius: 14px; padding: 1.5rem 1.6rem; }
.rb-ano-card h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--section-heading-color); margin-bottom: 0.6rem; }
.rb-ano-card p { margin: 0; color: var(--text-color); line-height: 1.8; }
.rb-steps { padding-top: 2.5rem; }
.rb-byline { max-width: 950px; margin: 0 auto; padding: 0 1.5rem 2.2rem; }
.rb-byline-card { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid #e6edf0; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--box-shadow-soft); }
.rb-byline-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.rb-byline-name { margin: 0 0 0.25rem; font-weight: 700; color: var(--section-heading-color); }
.rb-byline-text { margin: 0; font-size: 0.93rem; color: var(--text-color); line-height: 1.6; }
.rb-sources { margin-top: 1.6rem; font-size: 0.8rem; color: var(--text-color); opacity: 0.75; line-height: 1.7; max-width: 80ch; margin-left: auto; margin-right: auto; }
.rb-sources a { color: inherit; }
@media (min-width: 768px) { .rb-triage-card { grid-column: span 6; } }

/* =========== FAQ accordion (same look as the Symptoms page) =========== */
/* Remove outer frame */
.rb-faq .faq-acc { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }

/* Inset separators left/right (shorter lines) */
.rb-faq .faq-item {
  position: relative;
  padding: .2rem 0;
}
.rb-faq .faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(.5rem, 2vw, 1.25rem);
  right: clamp(.5rem, 2vw, 1.25rem);
  height: 1px;
  background: #e6edf0;
}
.rb-faq .faq-item:first-child::before { display: none; }

/* Question button */
.rb-faq .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;                 /* space between caret and text */
  padding: .8rem 0;
  background: transparent !important; /* kill any background highlight */
  border: 0;
  font-weight: 700;
  color: var(--section-heading-color);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, text-underline-offset .2s ease;
}

/* Caret LEFT — 2× size, matches text color; rotates 90° on expand */
.rb-faq .faq-q::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-color: currentColor; /* caret uses the same color as text */
  /* URL-encoded inline SVG to avoid parser issues */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(0deg);
  opacity: .95;
  transition: transform .2s ease, opacity .2s ease;
}
.rb-faq .faq-q[aria-expanded="true"] { color: var(--primary-700); }
.rb-faq .faq-q[aria-expanded="true"]::before { transform: rotate(90deg); opacity: 1; }

/* Subtle text-only hover */
.rb-faq .faq-q:hover {
  background: transparent !important;
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}

/* Accessible focus ring, no background */
.rb-faq .faq-q:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Answer: hidden by default; indent when expanded */
.rb-faq .faq-a {
  display: none;
  padding: 0 0 1rem 0;
  color: var(--text-color);
}
.rb-faq .faq-q[aria-expanded="true"] + .faq-a {
  padding-left: calc(28px + .75rem); /* indent = caret width + gap */
}

