/**
 * assets/css/pcos-flaxseed-hair.css
 * Dedicated Scoped Stylesheet for Flaxseed Benefits for Hair Guide
 * PCOS Ferticure Clinic — PF-257
 */

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

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

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

/* Full-Width Hero Banner */
.flaxseed-full-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #FDF2F7;
  margin-bottom: 24px;
  line-height: 0;
}

.flaxseed-banner-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero Header & Badges */
.flaxseed-hero-content {
  margin-bottom: 32px;
}

.flaxseed-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.flaxseed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--flax-plum-light);
  color: var(--flax-pink);
  border: 1px solid var(--flax-border);
}

.flaxseed-badge-teal {
  background: var(--flax-teal-light);
  color: var(--flax-teal);
  border-color: #CCFBF1;
}

.flaxseed-badge-gold {
  background: var(--flax-gold-light);
  color: var(--flax-gold);
  border-color: #FDE68A;
}

.flaxseed-h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--flax-plum);
  line-height: 1.25;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.flaxseed-intro {
  font-size: 1.125rem;
  color: var(--flax-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.flaxseed-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 14px 20px;
  background: var(--flax-rose-light);
  border-left: 4px solid var(--flax-pink);
  border-radius: var(--flax-radius-sm);
  font-size: 0.875rem;
  color: var(--flax-text-muted);
  margin-bottom: 24px;
}

.flaxseed-meta-item strong {
  color: var(--flax-plum);
}

.flaxseed-clinical-notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-left: 4px solid #FFA000;
  padding: 14px 18px;
  border-radius: var(--flax-radius-sm);
  font-size: 0.9375rem;
  color: #5D4037;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Quick Clinical Answers (4 Cards) */
.flaxseed-qa-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flaxseed-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

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

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

.flaxseed-qa-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--flax-plum-light);
  color: var(--flax-pink);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.flaxseed-qa-q {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 8px;
  line-height: 1.4;
}

.flaxseed-qa-a {
  font-size: 0.9375rem;
  color: var(--flax-text);
  margin: 0;
  line-height: 1.65;
}

/* Table of Contents (2-Column Pink-Accented) */
.flaxseed-toc-card {
  background: linear-gradient(135deg, #FFF9FB 0%, #FFF 100%);
  border: 2px solid var(--flax-border);
  border-radius: var(--flax-radius-lg);
  padding: 28px;
  margin-bottom: 44px;
  box-shadow: var(--flax-shadow-sm);
}

.flaxseed-toc-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--flax-border);
}

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

.flaxseed-toc-item {
  margin: 0;
}

.flaxseed-toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--flax-radius-sm);
  color: var(--flax-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.flaxseed-toc-link:hover {
  background: var(--flax-rose-light);
  color: var(--flax-pink);
  padding-left: 14px;
}

.flaxseed-toc-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--flax-pink);
  background: var(--flax-plum-light);
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Clinical Section Styles */
.flaxseed-section {
  margin-bottom: 48px;
  padding-top: 16px;
}

.flaxseed-section-h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--flax-plum);
  line-height: 1.35;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--flax-rose-light);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.flaxseed-section-h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--flax-pink);
}

.flaxseed-section-num {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #FFF;
  background: var(--flax-pink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flaxseed-section-p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--flax-text);
  margin-bottom: 18px;
}

.flaxseed-section-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 24px 0 12px;
}

/* Callout Boxes */
.flaxseed-callout {
  background: var(--flax-rose-light);
  border: 1px solid var(--flax-border);
  border-left: 4px solid var(--flax-pink);
  border-radius: var(--flax-radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}

.flaxseed-callout-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flaxseed-callout-teal {
  background: var(--flax-teal-light);
  border-color: #CCFBF1;
  border-left-color: var(--flax-teal);
}

.flaxseed-callout-teal .flaxseed-callout-title {
  color: var(--flax-teal);
}

.flaxseed-callout-gold {
  background: var(--flax-gold-light);
  border-color: #FDE68A;
  border-left-color: var(--flax-gold);
}

.flaxseed-callout-gold .flaxseed-callout-title {
  color: var(--flax-gold);
}

.flaxseed-callout-danger {
  background: #FFF1F0;
  border-color: #FFA39E;
  border-left-color: #CF1322;
}

.flaxseed-callout-danger .flaxseed-callout-title {
  color: #CF1322;
}

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

.flaxseed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
  background: #FFF;
  min-width: 600px;
}

.flaxseed-table th {
  background: var(--flax-plum);
  color: #FFF;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--flax-plum-dark);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.flaxseed-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--flax-border-light);
  color: var(--flax-text);
  line-height: 1.6;
}

.flaxseed-table tbody tr:nth-child(even) {
  background: #FCF8FA;
}

.flaxseed-table tbody tr:hover {
  background: #FAF0F5;
}

/* Summary Matrix Table Special Styling */
.flaxseed-matrix-table td:first-child {
  font-weight: 700;
  color: var(--flax-plum);
  background: #FFFBFD;
  width: 25%;
}

.flaxseed-matrix-table td:nth-child(2) {
  width: 38%;
}

.flaxseed-matrix-table td:nth-child(3) {
  width: 37%;
  background: #FCFAF8;
}

/* Hair Care Preparation Cards (Recipe, Mask, Rinse) */
.flaxseed-recipe-card {
  background: #FFF;
  border: 2px solid var(--flax-border);
  border-radius: var(--flax-radius-lg);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--flax-shadow-md);
}

.flaxseed-recipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--flax-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.flaxseed-recipe-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flaxseed-recipe-meta {
  display: flex;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--flax-text-muted);
}

.flaxseed-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.flaxseed-step-card {
  background: var(--flax-rose-light);
  border: 1px solid var(--flax-border);
  border-radius: var(--flax-radius-sm);
  padding: 18px;
  position: relative;
}

.flaxseed-step-num {
  width: 28px;
  height: 28px;
  background: var(--flax-pink);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.flaxseed-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 6px;
}

.flaxseed-step-desc {
  font-size: 0.875rem;
  color: var(--flax-text);
  margin: 0;
  line-height: 1.5;
}

/* Hair Health Action Roadmap */
.flaxseed-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}

.flaxseed-roadmap-card {
  background: #FFF;
  border: 2px solid var(--flax-border);
  border-radius: var(--flax-radius-md);
  padding: 24px;
  box-shadow: var(--flax-shadow-sm);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.flaxseed-roadmap-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--flax-plum-light);
  color: var(--flax-pink);
  margin-bottom: 12px;
}

.flaxseed-roadmap-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 10px;
}

.flaxseed-roadmap-text {
  font-size: 0.9375rem;
  color: var(--flax-text);
  margin: 0;
  line-height: 1.6;
}

/* Contextual Linking in Prose */
.flaxseed-section-p a {
  color: var(--flax-pink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.flaxseed-section-p a:hover {
  color: var(--flax-pink-hover);
  text-decoration-thickness: 2px;
}

/* Visual Figures & Infographics */
.flaxseed-figure {
  margin: 28px 0;
  border-radius: var(--flax-radius-md);
  overflow: hidden;
  box-shadow: var(--flax-shadow-sm);
  border: 1px solid var(--flax-border);
  background: #FFF;
}

.flaxseed-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.flaxseed-figure figcaption {
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--flax-text-muted);
  background: var(--flax-rose-light);
  border-top: 1px solid var(--flax-border);
  font-style: italic;
  text-align: center;
}

/* Interactive Health Tools Section */
.flaxseed-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}

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

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

.flaxseed-tool-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 8px;
}

.flaxseed-tool-desc {
  font-size: 0.875rem;
  color: var(--flax-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.flaxseed-tool-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--flax-radius-sm);
  background: var(--flax-plum-light);
  color: var(--flax-pink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--flax-border);
  transition: all 0.15s ease;
}

.flaxseed-tool-btn:hover {
  background: var(--flax-pink);
  color: #FFF;
  border-color: var(--flax-pink);
}

/* FAQ Section */
.flaxseed-faq-item {
  border: 1px solid var(--flax-border);
  border-radius: var(--flax-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #FFF;
}

.flaxseed-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--flax-plum);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease;
}

.flaxseed-faq-q:hover {
  background: var(--flax-rose-light);
}

.flaxseed-faq-q svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.flaxseed-faq-item[open] .flaxseed-faq-q svg,
.flaxseed-faq-item.active .flaxseed-faq-q svg {
  transform: rotate(180deg);
}

.flaxseed-faq-a {
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: var(--flax-text);
  line-height: 1.7;
}

.flaxseed-faq-a p {
  margin: 0;
}

/* Doctor Consultation Profile Card */
.flaxseed-doctor-card {
  background: linear-gradient(135deg, #FFF9FB 0%, #FDF2F7 100%);
  border: 2px solid var(--flax-border);
  border-radius: var(--flax-radius-lg);
  padding: 32px;
  margin: 44px 0;
  box-shadow: var(--flax-shadow-md);
  display: flex;
  gap: 28px;
  align-items: center;
}

.flaxseed-doctor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFF;
  box-shadow: var(--flax-shadow-sm);
  flex-shrink: 0;
}

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

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

.flaxseed-doctor-credentials {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--flax-pink);
  margin-bottom: 8px;
}

.flaxseed-doctor-bio {
  font-size: 0.9375rem;
  color: var(--flax-text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.flaxseed-doctor-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flaxseed-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--flax-pink);
  color: #FFF;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--flax-radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.flaxseed-btn-primary:hover {
  background: var(--flax-pink-hover);
  transform: translateY(-1px);
}

.flaxseed-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #FFF;
  color: var(--flax-plum);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--flax-radius-sm);
  text-decoration: none;
  border: 1px solid var(--flax-border);
  transition: all 0.15s ease;
}

.flaxseed-btn-secondary:hover {
  border-color: var(--flax-pink);
  color: var(--flax-pink);
}

/* Scientific References & Disclaimer */
.flaxseed-references {
  margin: 40px 0;
  padding: 24px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--flax-radius-md);
  font-size: 0.875rem;
  color: var(--flax-text-muted);
}

.flaxseed-references-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--flax-plum);
  margin: 0 0 14px;
}

.flaxseed-references ol {
  padding-left: 20px;
  margin: 0;
}

.flaxseed-references li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.flaxseed-disclaimer {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  padding: 18px 22px;
  border-radius: var(--flax-radius-sm);
  font-size: 0.875rem;
  color: #78350F;
  margin: 32px 0 48px;
  line-height: 1.65;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .flaxseed-h1 {
    font-size: 1.95rem;
  }
  .flaxseed-qa-grid {
    grid-template-columns: 1fr;
  }
  .flaxseed-toc-grid {
    grid-template-columns: 1fr;
  }
  .flaxseed-doctor-card {
    flex-direction: column;
    text-align: center;
  }
  .flaxseed-doctor-ctas {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .flaxseed-h1 {
    font-size: 1.65rem;
  }
  .flaxseed-guide-shell {
    padding: 0 14px;
  }
  .flaxseed-meta-bar {
    flex-direction: column;
    gap: 8px;
  }
  .flaxseed-toc-card,
  .flaxseed-recipe-card,
  .flaxseed-doctor-card {
    padding: 18px 14px;
  }
  .flaxseed-section-h2 {
    font-size: 1.4rem;
  }
  .flaxseed-table th,
  .flaxseed-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
}
