/**
 * assets/css/pcos-white-discharge.css
 * Dedicated Scoped Stylesheet for PCOS White Discharge Clinical Guide
 * PCOS Ferticure Clinic — PF-249
 */

:root {
  --wd-plum: #4A154B;
  --wd-plum-dark: #2E0D30;
  --wd-plum-light: #FBF0F6;
  --wd-pink: #AE236B;
  --wd-pink-hover: #8C1C56;
  --wd-rose: #FFF5F9;
  --wd-text: #2C3E50;
  --wd-text-muted: #5A6B7C;
  --wd-border: #E8D5E0;
  --wd-border-light: #F2E8EE;
  --wd-surface: #FFFFFF;
  --wd-green: #2E7D32;
  --wd-green-bg: #E8F5E9;
  --wd-amber: #E65100;
  --wd-amber-bg: #FFF3E0;
  --wd-red: #C62828;
  --wd-red-bg: #FFEBEE;
  --wd-radius-sm: 8px;
  --wd-radius-md: 14px;
  --wd-radius-lg: 20px;
  --wd-shadow-sm: 0 2px 8px rgba(74, 21, 75, 0.06);
  --wd-shadow-md: 0 6px 20px rgba(74, 21, 75, 0.08);
  --wd-shadow-lg: 0 12px 32px rgba(74, 21, 75, 0.12);
}

.wd-guide-page {
  font-family: var(--font-sans, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--wd-text);
  line-height: 1.7;
  background: #FFF;
  overflow-x: clip;
  word-wrap: break-word;
}

.wd-guide-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Full-Width Hero Banner */
.wd-guide-hero {
  background: linear-gradient(180deg, #FDF7FA 0%, #FFFFFF 100%);
  padding: 0 0 40px;
  border-bottom: 1px solid var(--wd-border-light);
}

.wd-guide-full-banner {
  width: 100%;
  margin: 0 0 24px;
  background: #FFF;
  line-height: 0;
  overflow: hidden;
}

.wd-guide-full-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid var(--wd-border-light);
}

/* Breadcrumbs */
.wd-guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 12px;
  font-size: 0.9rem;
  color: var(--wd-text-muted);
}

.wd-guide-breadcrumb a {
  color: var(--wd-plum);
  text-decoration: none;
  font-weight: 500;
}

.wd-guide-breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Copy */
.wd-guide-hero-copy {
  padding: 12px 0 24px;
}

.wd-guide-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wd-pink);
  background: var(--wd-plum-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.wd-guide-hero-copy h1 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wd-plum-dark);
  margin: 0 0 16px;
}

.wd-guide-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--wd-text);
  margin-bottom: 16px;
}

.wd-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--wd-text-muted);
  margin: 16px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wd-border-light);
}

.wd-guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 4 Quick Answers Box */
.wd-guide-quick-answers {
  background: #FFF;
  border: 1px solid var(--wd-border);
  border-left: 5px solid var(--wd-pink);
  border-radius: var(--wd-radius-md);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--wd-shadow-sm);
}

.wd-guide-quick-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wd-plum);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-guide-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.wd-guide-quick-list li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--wd-text);
  padding-left: 24px;
  position: relative;
}

.wd-guide-quick-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wd-pink);
  font-weight: 700;
}

.wd-guide-quick-list li strong {
  color: var(--wd-plum-dark);
}

.wd-guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.wd-guide-hero-actions .button,
.wd-cta-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--wd-pink);
  color: #FFF;
  border: 1px solid var(--wd-pink);
  box-shadow: var(--wd-shadow-sm);
}

.wd-guide-hero-actions .button:hover,
.wd-cta-actions .button:hover {
  background: var(--wd-pink-hover);
  border-color: var(--wd-pink-hover);
  transform: translateY(-1px);
}

.wd-guide-hero-actions .button.button-outline,
.wd-cta-actions .button.button-outline {
  background: #FFF;
  color: var(--wd-plum);
  border-color: var(--wd-border);
}

.wd-guide-hero-actions .button.button-outline:hover,
.wd-cta-actions .button.button-outline:hover {
  background: var(--wd-plum-light);
  border-color: var(--wd-pink);
  color: var(--wd-pink);
}

/* TABLE OF CONTENTS */
.wd-guide-toc {
  background: var(--wd-rose);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius-lg);
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: var(--wd-shadow-sm);
}

.wd-guide-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wd-border);
}

.wd-guide-toc-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--wd-plum-dark);
  margin: 0;
}

.wd-guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.wd-guide-toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--wd-plum-dark);
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: var(--wd-radius-sm);
  transition: all 0.2s ease;
}

.wd-guide-toc-list li a:hover {
  background: var(--wd-plum-light);
  color: var(--wd-pink);
  transform: translateX(3px);
}

.wd-guide-toc-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wd-pink);
  min-width: 24px;
  flex-shrink: 0;
}

/* MAIN CONTENT SECTIONS */
.wd-guide-content {
  padding: 20px 0 60px;
}

.wd-guide-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--wd-border-light);
  scroll-margin-top: 80px;
}

.wd-guide-section:last-of-type {
  border-bottom: none;
}

.wd-guide-section h2 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--wd-plum-dark);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wd-section-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wd-pink);
  font-family: var(--font-sans, sans-serif);
}

.wd-guide-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wd-plum);
  margin: 28px 0 14px;
}

.wd-guide-section p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.wd-guide-section p a,
.wd-guide-content a:not(.button):not(.wd-guide-toc-list a):not(.wd-tool-link) {
  color: var(--wd-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.wd-guide-section p a:hover {
  color: var(--wd-plum-dark);
}

/* Callout and Alert Boxes */
.wd-callout {
  border-radius: var(--wd-radius-md);
  padding: 22px 26px;
  margin: 24px 0;
  border-left: 5px solid;
}

.wd-callout-info {
  background: var(--wd-plum-light);
  border-color: var(--wd-pink);
}

.wd-callout-warning {
  background: var(--wd-amber-bg);
  border-color: var(--wd-amber);
}

.wd-callout-danger {
  background: var(--wd-red-bg);
  border-color: var(--wd-red);
}

.wd-callout-success {
  background: var(--wd-green-bg);
  border-color: var(--wd-green);
}

.wd-callout h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-callout-info h4 { color: var(--wd-plum); }
.wd-callout-warning h4 { color: var(--wd-amber); }
.wd-callout-danger h4 { color: var(--wd-red); }
.wd-callout-success h4 { color: var(--wd-green); }

.wd-callout p:last-child {
  margin-bottom: 0;
}

/* Infographic Display inside Sections */
.wd-section-infographic {
  margin: 28px 0 32px;
  background: #FFF;
  border: 1px solid var(--wd-border-light);
  border-radius: var(--wd-radius-md);
  overflow: hidden;
  box-shadow: var(--wd-shadow-sm);
  text-align: center;
}

.wd-section-infographic img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.wd-section-infographic figcaption {
  font-size: 0.88rem;
  color: var(--wd-text-muted);
  padding: 10px 16px;
  background: #FAFAFA;
  border-top: 1px solid var(--wd-border-light);
  font-style: italic;
}

/* Comparison Tables */
.wd-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius-md);
  box-shadow: var(--wd-shadow-sm);
  background: #FFF;
}

.wd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.wd-table th {
  background: var(--wd-plum);
  color: #FFF;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--wd-plum-dark);
}

.wd-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--wd-border-light);
  vertical-align: top;
}

.wd-table tr:nth-child(even) td {
  background: var(--wd-rose);
}

.wd-table tr:hover td {
  background: var(--wd-plum-light);
}

.wd-table strong {
  color: var(--wd-plum-dark);
}

/* Myths vs Facts */
.wd-myths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.wd-myth-card {
  border-radius: var(--wd-radius-md);
  padding: 22px;
  border: 1px solid var(--wd-border);
  background: #FFF;
  box-shadow: var(--wd-shadow-sm);
}

.wd-myth-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.wd-myth-label.myth {
  background: var(--wd-red-bg);
  color: var(--wd-red);
}

.wd-myth-label.fact {
  background: var(--wd-green-bg);
  color: var(--wd-green);
}

.wd-myth-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wd-plum-dark);
  margin: 0 0 10px;
}

.wd-myth-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wd-text);
  margin: 0;
}

/* Health Tools Grid */
.wd-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.wd-tool-card {
  background: #FFF;
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--wd-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wd-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wd-shadow-md);
  border-color: var(--wd-pink);
}

.wd-tool-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wd-plum-dark);
  margin: 0 0 8px;
}

.wd-tool-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--wd-text-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.wd-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wd-pink);
  text-decoration: none;
}

.wd-tool-link:hover {
  text-decoration: underline;
  color: var(--wd-plum-dark);
}

/* FAQ Accordion */
.wd-faq-section {
  margin: 36px 0;
}

.wd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wd-faq-item {
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius-md);
  background: #FFF;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.wd-faq-item:hover {
  border-color: var(--wd-pink);
}

.wd-faq-item summary {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wd-plum-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.wd-faq-item summary::-webkit-details-marker {
  display: none;
}

.wd-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--wd-pink);
  transition: transform 0.2s ease;
}

.wd-faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.wd-faq-answer {
  padding: 0 22px 20px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--wd-text);
  border-top: 1px solid var(--wd-border-light);
}

.wd-faq-answer p:first-child {
  margin-top: 14px;
}

.wd-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Doctor Consultation Card */
.wd-doctor-card {
  background: linear-gradient(135deg, var(--wd-rose) 0%, #FFFFFF 100%);
  border: 1px solid var(--wd-border);
  border-radius: var(--wd-radius-lg);
  padding: 32px 36px;
  margin: 40px 0;
  display: flex;
  gap: 28px;
  align-items: center;
  box-shadow: var(--wd-shadow-md);
}

.wd-doctor-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--wd-pink);
  box-shadow: var(--wd-shadow-sm);
}

.wd-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wd-doctor-info {
  flex-grow: 1;
}

.wd-doctor-name {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wd-plum-dark);
  margin: 0 0 6px;
}

.wd-doctor-creds {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wd-pink);
  margin: 0 0 12px;
}

.wd-doctor-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wd-text);
  margin: 0 0 18px;
}

.wd-doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Medical Disclaimer & Clinical Review Footer */
.wd-guide-footer {
  background: #F8F9FA;
  border-top: 1px solid var(--wd-border-light);
  padding: 32px 0 40px;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--wd-text-muted);
  line-height: 1.65;
}

.wd-disclaimer-box {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--wd-radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wd-disclaimer-box p {
  margin: 0;
}

.wd-review-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--wd-plum);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .wd-guide-quick-list,
  .wd-guide-toc-list,
  .wd-myths-grid {
    grid-template-columns: 1fr;
  }
  
  .wd-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-doctor-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  
  .wd-doctor-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .wd-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .wd-guide-shell {
    padding: 0 16px;
  }
  
  .wd-guide-toc {
    padding: 24px 20px;
  }

  .wd-guide-quick-answers {
    padding: 20px 18px;
  }
}
