/* ===== MedExpert (MDX PAGE) - safe scoped styles ===== */

.mdx-page,
.mdx-page * {
  box-sizing: border-box;
}

.mdx-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Container */
.mdx-page .wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
}

.mdx-page .content-section {
  background: #fff;
  padding: 28px 34px;
  margin: 0 0 22px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

/* Headings */
.mdx-page h1 {
  font-size: 2.2em;
  color: #1b7a99;
  margin: 0 0 18px;
  text-align: center;
  border-bottom: 3px solid #1b7a99;
  padding-bottom: 14px;
}

.mdx-page h2 {
  font-size: 1.55em;
  color: #1b7a99;
  margin: 26px 0 12px;
  padding-left: 14px;
  border-left: 5px solid #1b7a99;
}

.mdx-page h2:first-of-type {
  margin-top: 0;
}

/* Text */
.mdx-page p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #444;
}

.mdx-page strong {
  color: #1b7a99;
  font-weight: 600;
}

/* Lists */
.mdx-page ul {
  margin: 0 0 16px 18px;
  padding-left: 0;
}

.mdx-page ul li {
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.7;
  font-size: 16px;
}

.mdx-page ul li::marker {
  color: #1b7a99;
  font-weight: bold;
}

/* Highlight blocks */
.mdx-page .benefits-list {
  background: rgba(27,122,153,.04);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 18px 0;
  border-left: 5px solid #1b7a99;
}

.mdx-page .contact-info,
.mdx-page .conclusion-text {
  background: rgba(27,122,153,.08);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 18px 0;
  border-left: 5px solid #1b7a99;
}

.mdx-page .mdx-final {
  background: rgba(27,122,153,.06);
  border-left: 5px solid #1b7a99;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 18px 0 0;
}

/* Phone link */
.mdx-page .phone {
  color: #e67e22;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mdx-page .phone:hover {
  text-decoration: underline;
}

/* ==========================================================
   Main sections accordion (mdx-acc) - works everywhere,
   but "accordion look" is primarily for mobile.
   ========================================================== */

.mdx-page .mdx-acc {
  margin-top: 12px;
}

.mdx-page .mdx-acc-item {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.mdx-page .mdx-acc-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #1b7a99;
  background: rgba(27,122,153,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.mdx-page .mdx-acc-item > summary::-webkit-details-marker {
  display: none;
}

.mdx-page .mdx-acc-item > summary::after {
  content: "▼";
  transition: transform .2s ease;
  flex: 0 0 auto;
  color: #1b7a99;
}

.mdx-page .mdx-acc-item[open] > summary::after {
  transform: rotate(180deg);
}

.mdx-page .mdx-acc-body {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.mdx-page .mdx-acc-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   FAQ (details/summary)
   ========================================================== */

.mdx-page .mdx-faq {
  margin-top: 12px;
}

.mdx-page .mdx-faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.mdx-page .mdx-faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: #1b7a99;
  background: rgba(27,122,153,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.mdx-page .mdx-faq-item > summary::-webkit-details-marker {
  display: none;
}

.mdx-page .mdx-faq-item > summary::after {
  content: "▼";
  font-size: .95em;
  transition: transform .2s ease;
  color: #1b7a99;
  flex: 0 0 auto;
}

.mdx-page .mdx-faq-item[open] > summary::after {
  transform: rotate(180deg);
}

.mdx-page .mdx-faq-body {
  padding: 14px 16px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.mdx-page .mdx-faq-body p {
  margin: 0;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {
  .mdx-page .wrapper {
    padding: 16px 12px;
  }

  .mdx-page .content-section {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .mdx-page h1 {
    font-size: 1.75em;
    padding-bottom: 12px;
  }

  /* h2 is used for FAQ title only in new markup; keep it */
  .mdx-page h2 {
    font-size: 1.25em;
    padding-left: 12px;
    margin-top: 22px;
  }

  .mdx-page p,
  .mdx-page ul li {
    font-size: 15px;
    line-height: 1.7;
  }

  .mdx-page .benefits-list,
  .mdx-page .contact-info,
  .mdx-page .conclusion-text,
  .mdx-page .mdx-final {
    padding: 16px 14px;
  }

  /* Mobile accordion paddings a bit tighter */
  .mdx-page .mdx-acc-item > summary {
    padding: 14px 14px;
    font-size: 15px;
  }

  .mdx-page .mdx-acc-body {
    padding: 14px 14px;
  }

  .mdx-page .mdx-faq-item > summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .mdx-page .mdx-faq-body {
    padding: 12px 14px;
  }
}
