/* ==========================================================================
   GEO Optimization Styles — Psymaghreb
   Styles for GEO-specific components: key takeaways, references,
   clinical info, service offerings, table of contents, and glossary.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Component 4: Key Takeaways Section
   -------------------------------------------------------------------------- */
.key-takeaways {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.key-takeaways[dir="rtl"] {
  border-left: none;
  border-right: 4px solid #16a34a;
}

.key-takeaways h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #15803d;
}

.key-takeaways ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.key-takeaways[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 1.25rem;
}

.key-takeaways li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Component 3: Scientific References Section
   -------------------------------------------------------------------------- */
.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.references h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.reference-list {
  list-style: decimal;
  padding-left: 1.5rem;
}

.reference-list li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

.reference-list cite {
  font-style: normal;
}

.reference-list a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reference-list a:hover {
  color: #14b8a6;
}

/* --------------------------------------------------------------------------
   Component 8: Service Page — Clinical Info & Service Offering
   -------------------------------------------------------------------------- */
.clinical-info {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.clinical-info h2,
.clinical-info h3 {
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.clinical-info p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-offering {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-offering h2 {
  color: #0f766e;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Component 9: Table of Contents
   -------------------------------------------------------------------------- */
.table-of-contents {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.table-of-contents h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
}

.table-of-contents ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.table-of-contents a {
  color: #0f766e;
  text-decoration: none;
  font-size: 0.9375rem;
}

.table-of-contents a:hover {
  color: #14b8a6;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Component 6: Glossary Entries
   -------------------------------------------------------------------------- */
.glossary-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.glossary-entry:last-child {
  border-bottom: none;
}

.glossary-entry dt {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.glossary-entry dt span[lang="ar"] {
  display: inline-block;
  margin-left: 1rem;
  font-weight: 500;
  color: #4b5563;
}

.glossary-entry dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #4b5563;
}

.glossary-entry dd[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

/* --------------------------------------------------------------------------
   Inline Citation Markers (superscript links)
   -------------------------------------------------------------------------- */
sup a[href^="#ref-"] {
  color: #0f766e;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.75rem;
}

sup a[href^="#ref-"]:hover {
  text-decoration: underline;
}
