/**
 * assets/css/pcos-pregnancy-guide.css
 * Dedicated Scoped Stylesheet for Pregnancy Management, Antenatal Care & PCOS Pregnancy Guide
 * PCOS Ferticure Clinic — PF-252
 */

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

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

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

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

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

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

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

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

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

/* Badges */
.pg-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--pg-plum-light);
  color: var(--pg-plum);
  border: 1px solid var(--pg-border);
}

.pg-badge-green {
  background: var(--pg-green-bg);
  color: var(--pg-green);
  border-color: #C8E6C9;
}

/* Headings */
.pg-h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--pg-plum);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.pg-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: #374151;
  line-height: 1.75;
  margin: 0 0 20px;
}

.pg-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--pg-text-muted);
  padding-bottom: 8px;
}

.pg-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Disclaimer Box */
.pg-disclaimer-box {
  background: #FFF8E1;
  border-left: 4px solid #FFA000;
  padding: 14px 18px;
  border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
  font-size: 0.92rem;
  color: #5D4037;
  line-height: 1.6;
  margin: 20px 0;
}

/* Quick Answer Cards */
.pg-qa-section {
  padding: 28px 0;
}

.pg-qa-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pg-plum);
  margin-bottom: 20px;
}

.pg-qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.pg-qa-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 20px;
  box-shadow: var(--pg-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pg-qa-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pg-shadow-md);
}

.pg-qa-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pg-plum);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-qa-card p {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.6;
  margin: 0;
}

/* Quick Action Strip */
.pg-quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 28px;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pg-btn-primary {
  background: var(--pg-pink);
  color: #FFF;
  border: 1px solid var(--pg-pink);
}

.pg-btn-primary:hover {
  background: var(--pg-pink-hover);
  border-color: var(--pg-pink-hover);
  color: #FFF;
}

.pg-btn-outline {
  background: #FFF;
  color: var(--pg-plum);
  border: 1px solid var(--pg-border);
}

.pg-btn-outline:hover {
  background: var(--pg-plum-light);
  border-color: var(--pg-plum);
}

/* Pink-Accented Numbered Two-Column Table of Contents */
.pg-toc-card {
  background: var(--pg-surface);
  border: 2px solid #F3D2E5;
  border-radius: var(--pg-radius-lg);
  padding: 28px;
  margin: 24px 0 40px;
  box-shadow: var(--pg-shadow-md);
}

.pg-toc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--pg-border-light);
  margin-bottom: 20px;
}

.pg-toc-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pg-plum);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@media (max-width: 768px) {
  .pg-toc-list {
    grid-template-columns: 1fr;
  }
}

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

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

.pg-toc-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pg-pink);
  background: #FDF2F8;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Clinical Sections */
.pg-section {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--pg-border-light);
}

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

.pg-sec-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pg-pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pg-h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--pg-plum);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.pg-h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--pg-plum-dark);
  line-height: 1.4;
  margin: 24px 0 12px;
}

.pg-section p {
  margin: 0 0 16px;
  line-height: 1.75;
}

.pg-section ul, .pg-section ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.pg-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Infographic Figure */
.pg-figure {
  margin: 24px 0;
  text-align: center;
  background: #FAF8FA;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 16px;
}

.pg-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pg-radius-sm);
  display: inline-block;
}

.pg-caption {
  font-size: 0.88rem;
  color: var(--pg-text-muted);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}

/* Callouts */
.pg-callout {
  padding: 20px;
  border-radius: var(--pg-radius-md);
  margin: 24px 0;
  border-left: 4px solid transparent;
}

.pg-callout h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.pg-callout-warning {
  background: #FFF9E6;
  border-left-color: #D97706;
  color: #78350F;
}

.pg-callout-danger {
  background: #FEF2F2;
  border-left-color: #DC2626;
  color: #7F1D1D;
}

.pg-callout-info {
  background: #EFF6FF;
  border-left-color: #2563EB;
  color: #1E3A8A;
}

.pg-callout-success {
  background: #F0FDF4;
  border-left-color: #16A34A;
  color: #14532D;
}

/* Responsive Table */
.pg-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  box-shadow: var(--pg-shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

.pg-table th {
  background: var(--pg-plum);
  color: #FFF;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pg-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pg-border-light);
  line-height: 1.6;
}

.pg-table tr:nth-child(even) td {
  background: #FAF6F8;
}

.pg-table tr:hover td {
  background: #FDF0F6;
}

/* Status Pills */
.pg-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pg-pill-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.pg-pill-caution {
  background: #FEF3C7;
  color: #92400E;
}

.pg-pill-safe {
  background: #DCFCE7;
  color: #166534;
}

/* Timeline Cards */
.pg-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.pg-timeline-card {
  background: #FFF;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 20px;
  box-shadow: var(--pg-shadow-sm);
  position: relative;
  overflow: hidden;
}

.pg-timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pg-pink);
}

.pg-timeline-card h4 {
  color: var(--pg-plum);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

/* Danger Alert Panel */
.pg-danger-panel {
  background: #FFF5F5;
  border: 2px solid #FCA5A5;
  border-radius: var(--pg-radius-lg);
  padding: 26px;
  margin: 30px 0;
}

.pg-danger-panel h3 {
  color: #B91C1C;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-danger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pg-danger-item {
  background: #FFF;
  border: 1px solid #FECACA;
  border-radius: var(--pg-radius-sm);
  padding: 14px;
}

.pg-danger-item strong {
  color: #991B1B;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.pg-danger-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.5;
}

/* Context Links */
.pg-context-banner {
  background: linear-gradient(135deg, #FAF0F5 0%, #F5F3FF 100%);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 20px;
  margin: 24px 0;
}

.pg-context-btn {
  display: inline-block;
  background: var(--pg-pink);
  color: #FFF;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 8px;
  transition: background 0.2s;
}

.pg-context-btn:hover {
  background: var(--pg-pink-hover);
  color: #FFF;
}

/* FAQs Accordion */
.pg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

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

.pg-faq-item.active {
  border-color: var(--pg-pink);
}

.pg-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--pg-plum);
  background: #FFF;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
}

.pg-faq-question:hover {
  background: var(--pg-plum-light);
}

.pg-faq-icon {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg-pink);
  transition: transform 0.2s;
}

.pg-faq-item.active .pg-faq-icon {
  transform: rotate(45deg);
}

.pg-faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: #374151;
  line-height: 1.7;
}

.pg-faq-item.active .pg-faq-answer {
  display: block;
}

/* Doctor Profile Card */
.pg-doctor-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #FBF4F8 0%, #FFF 100%);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-lg);
  padding: 26px;
  margin: 32px 0;
  box-shadow: var(--pg-shadow-sm);
}

@media (max-width: 640px) {
  .pg-doctor-card {
    flex-direction: column;
    text-align: center;
  }
}

.pg-doctor-avatar {
  flex-shrink: 0;
}

.pg-doctor-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFF;
  box-shadow: var(--pg-shadow-sm);
}

.pg-doctor-info {
  flex: 1;
}

.pg-doctor-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pg-plum);
  margin: 0 0 4px;
}

.pg-doctor-creds {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pg-pink);
  margin: 0 0 10px;
}

.pg-doctor-bio {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.6;
  margin: 0 0 16px;
}

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

/* Health Tools Callout Grid */
.pg-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.pg-tool-card {
  background: #FFF;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--pg-shadow-sm);
  transition: all 0.2s ease;
}

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

.pg-tool-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pg-plum);
  margin-bottom: 6px;
}

.pg-tool-desc {
  font-size: 0.88rem;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.pg-tool-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pg-pink);
}

/* References */
.pg-references {
  background: #FAF8FA;
  border-radius: var(--pg-radius-md);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--pg-border-light);
}

.pg-references h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pg-plum);
  margin: 0 0 14px;
}

.pg-ref-list {
  padding-left: 20px;
  margin: 0;
  font-size: 0.86rem;
  color: #4B5563;
  line-height: 1.7;
}

.pg-ref-list li {
  margin-bottom: 8px;
}
