/* Professional FOUNDOCTOR Medical Editorial & Articles Library */
.ed-page {
  padding: 28px 0 96px;
  color: #14242e;
}
.ed-hero {
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 65%, #f6f9ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 34px;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px rgba(15, 39, 88, 0.05);
}
.ed-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #063ee3;
  background: #eaf1ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ed-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: #0f2b66;
}
.ed-hero p {
  margin: 0;
  max-width: 660px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}
.ed-search-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 640px;
}
.ed-search-bar input {
  flex: 1;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
}
.ed-search-bar input:focus {
  outline: none;
  border-color: #063ee3;
  box-shadow: 0 0 0 3px rgba(6, 62, 227, 0.12);
}
.ed-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.ed-cat-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ed-cat-pill:hover {
  border-color: #063ee3;
  color: #063ee3;
}
.ed-cat-pill.active {
  background: #063ee3;
  border-color: #063ee3;
  color: #fff;
}
.ed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.ed-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(15, 39, 88, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ed-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 39, 88, 0.09);
}
.ed-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  color: #063ee3;
  background: #eef4ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ed-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: #0f2b66;
}
.ed-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.ed-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #063ee3;
}
.ed-card-foot small {
  font-weight: 500;
  color: #64748b;
}

/* Article Detail View */
.ed-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}
.ed-breadcrumb a {
  color: #063ee3;
  font-weight: 600;
}
.ed-breadcrumb a:hover {
  text-decoration: underline;
}
.ed-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.ed-article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(15, 39, 88, 0.05);
}
.ed-article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 24px;
}
.ed-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ed-article-header h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.18;
  color: #0f2b66;
}
.ed-lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
}
.ed-author-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
}
.ed-author-bar strong {
  color: #0f2b66;
}
.ed-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.ed-toc a {
  padding: 6px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ed-toc a:hover {
  background: #eaf1ff;
  color: #063ee3;
}
.ed-prose section {
  margin-bottom: 28px;
}
.ed-prose h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #0f2b66;
}
.ed-prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #1e293b;
}
.ed-custom-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
}
.ed-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ed-key-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}
.ed-key-item b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #063ee3;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
}
.ed-urgent-box {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 4px solid #ea580c;
  border-radius: 14px;
  padding: 18px 20px;
}
.ed-urgent-box h2 {
  color: #9a3412;
  font-size: 18px;
}
.ed-urgent-box p {
  margin: 0;
  color: #7c2d12;
}
.ed-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.ed-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f2b66;
}
.ed-faq details p {
  margin: 10px 0 0;
  font-size: 15px;
  color: #475569;
}
.ed-disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

/* Sticky Sidebar */
.ed-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 84px;
}
.ed-side-cta {
  background: linear-gradient(145deg, #0f2b66, #063ee3);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(6, 62, 227, 0.22);
}
.ed-side-cta h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.ed-side-cta p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #dbeafe;
}
.ed-side-cta a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #063ee3;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.ed-side-cta a:hover {
  background: #eff6ff;
}
.ed-side-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.ed-side-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #0f2b66;
}
.ed-related-list {
  display: grid;
  gap: 8px;
}
.ed-related-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ed-related-list a:hover {
  background: #eaf1ff;
  color: #063ee3;
}

/* Admin Article Publisher Panel (foundoctornow@gmail.com) */
.ed-admin-panel {
  background: #fff;
  border: 2px solid #063ee3;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(6, 62, 227, 0.1);
}
.ed-admin-panel[hidden] {
  display: none !important;
}
.ed-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ed-admin-head h2 {
  margin: 0;
  font-size: 20px;
  color: #0f2b66;
}
.ed-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ed-admin-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.ed-admin-form .ed-full {
  grid-column: 1 / -1;
}
.ed-admin-form input,
.ed-admin-form select,
.ed-admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}
.ed-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ed-admin-danger {
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: #b91c1c;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Search Page Related Articles Strip */
.ds-articles-section {
  margin-top: 22px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 39, 88, 0.04);
}
.ds-articles-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ds-articles-head h3 {
  margin: 0;
  font-size: 17px;
  color: #0f2b66;
}
.ds-articles-head a {
  font-size: 13px;
  font-weight: 700;
  color: #063ee3;
}
.ds-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ds-article-hit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ds-article-hit:hover {
  border-color: #063ee3;
  background: #f0f6ff;
}
.ds-article-hit b {
  font-size: 15px;
  color: #0f2b66;
  margin-bottom: 4px;
}
.ds-article-hit p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}
.ds-article-hit span {
  font-size: 12px;
  font-weight: 700;
  color: #063ee3;
}
.ds-spec-group-label {
  padding: 6px 12px 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

@media (max-width: 980px) {
  .ed-grid,
  .ed-key-grid,
  .ds-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ed-detail-grid {
    grid-template-columns: 1fr;
  }
  .ed-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .ed-hero,
  .ed-article-card,
  .ed-admin-panel {
    padding: 20px 18px;
  }
  .ed-grid,
  .ed-key-grid,
  .ed-admin-form,
  .ds-articles-grid {
    grid-template-columns: 1fr;
  }
}
