/* Shared content sections (cards, comparison, steps, info blocks, FAQ).
   Used by the rewritten pages and the blog. Every class starts with rn- so nothing here touches older sections.
   Spacing, colours and fonts follow the existing Elementor sections. */

.rn-section { padding: 90px 6%; background: #fff; }
.rn-section--light { background: #f5f5f5; }
.rn-section--plum { background: #634256; color: #fff; }
.rn-wrap { max-width: 1200px; margin: 0 auto; }
.rn-wrap--narrow { max-width: 900px; }

.rn-section h2,
.rn-section h3 { font-family: "Work Sans", sans-serif; font-weight: 300; line-height: 1.1; text-transform: capitalize; margin: 0 0 20px; }
.rn-section h2 { font-size: 36px; color: #299dc9; }
.rn-section h3 { font-size: 24px; line-height: 1.2; color: #396768; margin-bottom: 12px; }
.rn-section p { margin: 0 0 15px; }
.rn-section p:last-child { margin-bottom: 0; }
.rn-section strong { font-weight: 600; }
.rn-section--plum h2,
.rn-section--plum h3 { color: #fff; }

.rn-intro { max-width: 860px; margin: 0 auto 45px; text-align: center; }
.rn-outro { max-width: 860px; margin: 45px auto 0; text-align: center; }

/* Arrow list */
.rn-list { list-style: none; margin: 0 0 15px; padding: 0; }
.rn-list li { position: relative; margin: 0 0 12px; padding-left: 30px; }
.rn-list li::before { content: "\f061"; position: absolute; left: 0; top: 0; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 16px; color: #80b8b2; }
.rn-list li:last-child { margin-bottom: 0; }

/* Two columns */
.rn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rn-split--top { align-items: start; }
.rn-split img { display: block; width: 100%; height: auto; }

/* Doctor photos */
.rn-doctors { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rn-doctor { display: block; text-align: center; }
.rn-doctor img { border-radius: 50%; max-width: 230px; margin: 0 auto 18px; }
.rn-doctor span { display: block; font-family: "Work Sans", sans-serif; font-weight: 300; font-size: 22px; line-height: 1.2; color: #396768; }

/* Cards: rows stay centred when the last one is not full */
.rn-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.rn-card { box-sizing: border-box; flex: 0 1 calc((100% - 72px) / 4); padding: 30px 26px; background: #fff; border-top: 3px solid #80b8b2; box-shadow: 0 4px 18px rgba(41, 23, 33, .08); }
.rn-cards--3 .rn-card { flex-basis: calc((100% - 48px) / 3); }

/* Modifier: two cards per row, for longer text */
.rn-cards--2 .rn-card { flex-basis: calc((100% - 24px) / 2); }

/* Points on a plum section (no boxes, line on top) */
.rn-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 55px; }
/* Modifier: three points per row */
.rn-points--3 { grid-template-columns: repeat(3, 1fr); }
.rn-point { padding-top: 24px; border-top: 2px solid #80b8b2; }

/* Comparison: equal columns */
.rn-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rn-compare__col { padding: 36px 30px; background: #fff; border: 1px solid #d9e6e4; }
.rn-compare__col--main { background: #634256; border-color: #634256; color: #fff; }
.rn-section .rn-compare__col--main h3 { color: #fff; }

/* Numbered steps */
.rn-steps { list-style: none; margin: 0; padding: 0; counter-reset: rn-step; }
.rn-steps li { position: relative; margin: 0; padding: 0 0 30px 76px; counter-increment: rn-step; }
.rn-steps li::before { content: counter(rn-step); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: #634256; color: #fff; font-family: "Work Sans", sans-serif; font-weight: 300; font-size: 24px; line-height: 50px; text-align: center; }
.rn-steps li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 58px; bottom: 8px; width: 2px; background: #80b8b2; }
.rn-steps li:last-child { padding-bottom: 0; min-height: 50px; }
.rn-steps h3 { padding-top: 11px; }

/* Info blocks */
.rn-info { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 60px; }
.rn-info__item { padding-top: 28px; border-top: 2px solid #80b8b2; }
.rn-section .rn-info__item h2 { font-size: 28px; }

/* Address box */
.rn-contact { padding: 36px 34px; border: 2px solid #299dc9; background: #fff; }
.rn-contact p { margin-bottom: 18px; }
.rn-contact strong { display: block; color: #396768; }

/* FAQ accordion (no JavaScript needed) */
.rn-faq { border-top: 1px solid #d4d4d4; }
.rn-faq details { border-bottom: 1px solid #d4d4d4; }
.rn-faq summary { position: relative; padding: 20px 50px 20px 0; font-weight: 700; line-height: 1.4; color: #299dc9; cursor: pointer; list-style: none; }
.rn-faq summary::-webkit-details-marker { display: none; }
.rn-faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid #634256; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.rn-faq details[open] summary::after { margin-top: -3px; transform: rotate(-135deg); }
.rn-faq summary h3 { display: inline; margin: 0; font: inherit; color: inherit; text-transform: none; }
.rn-faq summary:focus-visible { outline: 2px solid #299dc9; outline-offset: 3px; }
.rn-faq details > div { padding: 0 50px 22px 0; }

@media (max-width: 1024px) {
  .rn-section { padding: 70px 45px; }
  .rn-section h2 { font-size: 26px; }
  .rn-section h3 { font-size: 21px; }
  .rn-section .rn-info__item h2 { font-size: 24px; }
  .rn-card,
  .rn-cards--3 .rn-card { flex-basis: calc((100% - 24px) / 2); }
  .rn-points { grid-template-columns: 1fr 1fr; margin-top: 45px; }
  .rn-compare { grid-template-columns: 1fr; }
  .rn-split,
  .rn-info { gap: 40px; }
}

@media (max-width: 767px) {
  .rn-section { padding: 54px 20px; }
  .rn-split,
  .rn-info,
  .rn-points { grid-template-columns: 1fr; }
  .rn-card,
  .rn-cards--2 .rn-card,
  .rn-cards--3 .rn-card { flex-basis: 100%; }
  .rn-doctors { gap: 16px; }
  .rn-doctor span { font-size: 18px; }
  .rn-intro,
  .rn-outro { text-align: left; }
  .rn-intro { margin-bottom: 30px; }
  .rn-outro { margin-top: 30px; }
  .rn-steps li { padding-left: 66px; }
  .rn-faq details > div { padding-right: 0; }
}
