/*==================================================================
Blog Article Template Styles — Dr. Shah Hospital
--------------------------------------------------------------------
Scoped under `.article-page` so it only affects the redesigned
detailed blog/article template and never leaks into the rest of the
site. Reuses the site's existing color palette, fonts (Poppins /
Montserrat) and buttons (.default-btn / .default-btn-two) rather
than introducing a parallel design system.

Palette reference (from style.css):
  Navy   #16213e   Blue  #1fa2ff   Teal  #00EBBA
  Gray   #6e6e6e   Light #eeeeee  Deep  #003EAC
===================================================================*/

.article-page {
  --article-navy: #16213e;
  --article-blue: #1fa2ff;
  --article-blue-text: #0a6fb0; /* darker accent for small label text — meets WCAG AA on white, unlike the lighter brand blue */
  --article-gray: #6e6e6e;
  --article-border: #e7ebf2;
  --article-surface: #f5f9fd;
  --article-max-width: 760px;
}

.article-page section {
  scroll-margin-top: 120px;
}

/*------------------------------------------------------------------
Breadcrumb
------------------------------------------------------------------*/
.article-breadcrumb {
  padding: 10px 0;
  border-bottom: 1px solid var(--article-border);
  background-color: #ffffff;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--article-gray);
}

.article-breadcrumb li {
  display: flex;
  align-items: center;
}

.article-breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: #c3cad6;
}

.article-breadcrumb a {
  color: var(--article-gray);
  font-weight: 500;
}

.article-breadcrumb a:hover {
  color: var(--article-blue-text);
}

.article-breadcrumb li[aria-current="page"] {
  color: var(--article-navy);
  font-weight: 600;
}

/*------------------------------------------------------------------
Editorial article header (replaces the large blue inner-banner)
------------------------------------------------------------------*/
.article-header {
  padding: 44px 0 30px;
  background-color: #ffffff;
}

.article-header .container {
  max-width: 900px;
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--article-blue-text);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--article-navy);
}

.article-deck {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--article-gray);
  max-width: 68ch;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 14px;
  color: var(--article-gray);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--article-border);
  margin-bottom: 18px;
}

.article-meta-reviewer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.article-meta-reviewer img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta-reviewer strong {
  color: var(--article-navy);
  font-weight: 600;
}

.article-meta .dot {
  color: #c3cad6;
}

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article-share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--article-navy);
}

.article-share a,
.article-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--article-border);
  background-color: #ffffff;
  color: var(--article-navy);
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.article-share button {
  width: auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.article-share a:hover,
.article-share button:hover {
  background-color: var(--article-navy);
  border-color: var(--article-navy);
  color: #ffffff;
}

/*------------------------------------------------------------------
Featured image
------------------------------------------------------------------*/
.article-featured-image {
  margin: 6px auto 40px;
  max-width: 1140px;
}

.article-featured-image .img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(22, 33, 62, 0.35);
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*------------------------------------------------------------------
Two-column layout: TOC + content
------------------------------------------------------------------*/
.article-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 20px;
}

/* Table of Contents */
.article-toc {
  flex: 0 0 250px;
  width: 250px;
}

.article-toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background-color: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--article-navy);
  cursor: pointer;
}

.article-toc-toggle i {
  font-size: 20px;
  transition: transform 0.3s;
}

.article-toc-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.article-toc-panel {
  position: sticky;
  top: 110px;
  background-color: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 10px;
  padding: 22px 20px;
}

.article-toc-heading {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--article-navy);
  margin-bottom: 14px;
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc-list li {
  margin-bottom: 4px;
}

.article-toc-list li.article-toc-sub {
  padding-left: 14px;
}

.article-toc-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--article-gray);
  font-weight: 500;
  border-left: 2px solid transparent;
}

.article-toc-list a:hover {
  color: var(--article-blue-text);
  background-color: rgba(31, 162, 255, 0.08);
}

.article-toc-list a.is-active {
  color: var(--article-navy);
  font-weight: 700;
  background-color: rgba(31, 162, 255, 0.1);
  border-left-color: var(--article-blue);
}

/* Article content column */
.article-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--article-max-width);
}

.article-content h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--article-navy);
  margin-top: 44px;
  margin-bottom: 18px;
  scroll-margin-top: 120px;
}

.article-content section:first-of-type h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: clamp(19px, 2vw, 23px);
  color: var(--article-navy);
  margin-top: 30px;
  margin-bottom: 14px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #555f6d;
  margin-bottom: 20px;
}

.article-content ul:not(.article-toc-list):not(.accordion) {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article-content ul:not(.article-toc-list):not(.accordion) li {
  font-size: 17px;
  line-height: 1.8;
  color: #555f6d;
  margin-bottom: 8px;
}

/*------------------------------------------------------------------
At-a-Glance box
------------------------------------------------------------------*/
.article-glance {
  background-color: var(--article-surface);
  border: 1px solid var(--article-border);
  border-left: 4px solid var(--article-blue);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 8px 0 32px;
}

.article-glance-title {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--article-navy);
  margin-bottom: 16px;
}

.article-glance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.article-glance-grid dt {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--article-blue-text);
  margin-bottom: 4px;
}

.article-glance-grid dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--article-navy);
  margin: 0;
  font-weight: 500;
}

/*------------------------------------------------------------------
Callout / important boxes
------------------------------------------------------------------*/
.article-callout {
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
  border: 1px solid var(--article-border);
  background-color: var(--article-surface);
}

.article-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.article-callout-warning {
  background-color: #fff8ec;
  border-color: #f5e2b8;
}

.article-callout-warning .article-callout-title {
  color: #9a6b12;
}

.article-callout-warning .article-callout-title i {
  color: #d99b23;
}

.article-callout-info .article-callout-title {
  color: var(--article-blue-text);
}

/*------------------------------------------------------------------
Medical reviewer / credibility card
------------------------------------------------------------------*/
.article-reviewer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin: 40px 0;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  background-color: #ffffff;
}

.article-reviewer img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-reviewer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--article-blue-text);
  margin-bottom: 4px;
}

.article-reviewer-name {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--article-navy);
  margin-bottom: 2px;
}

.article-reviewer-role,
.article-reviewer-date {
  font-size: 14px;
  color: var(--article-gray);
  margin: 0;
}

/*------------------------------------------------------------------
Medical disclaimer
------------------------------------------------------------------*/
.article-disclaimer {
  font-size: 13.5px;
  line-height: 1.7;
  color: #8a92a0;
  border-top: 1px solid var(--article-border);
  padding-top: 20px;
  margin: 10px 0 40px;
}

.article-disclaimer strong {
  color: var(--article-navy);
}

/*------------------------------------------------------------------
FAQ — reuses the site's existing .faq-accordion / .accordion /
.accordion-title CSS *and* JS (see custom.js) for the open/close
behaviour; the rules below only adapt sizing to the article column
instead of the original theme's narrow 490px sidebar layout.
------------------------------------------------------------------*/
.article-faq h2 {
  margin-bottom: 22px;
}

.article-faq.faq-accordion {
  max-width: none;
  margin-bottom: 0;
}

.article-faq .accordion {
  border: 1px solid var(--article-border);
  border-radius: 10px;
  overflow: hidden;
}

.article-faq .accordion-item {
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--article-border);
}

.article-faq .accordion-item:last-child {
  border-bottom: none;
}

.article-faq .accordion-title {
  padding: 18px 46px 18px 20px !important;
  font-size: 16px !important;
}

.article-faq .accordion-title i {
  right: 16px !important;
  top: 14px !important;
}

.article-faq .accordion-content {
  padding: 0 20px 20px !important;
}

.article-faq .accordion-content p {
  font-size: 15.5px !important;
}

/*------------------------------------------------------------------
CTA button spacing (two buttons reused inside .appointment-from-area)
------------------------------------------------------------------*/
.article-page .appointment-from-area .default-btn,
.article-page .appointment-from-area .default-btn-two {
  margin: 6px 10px 6px 0;
  display: inline-block;
}

/* The near-invisible CTA text/overlay-stacking bug is now fixed
   globally in style.css (.appointment-bg > .container, and
   .appointment-from-area > h2/p). This just adds page-specific
   sizing/spacing polish on top of that shared fix. */
.article-page .appointment-from-area > h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}

.article-page .appointment-from-area > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 60ch;
}

/*------------------------------------------------------------------
Related articles
------------------------------------------------------------------*/
.article-related {
  padding: 70px 0 90px;
  background-color: var(--article-surface);
  border-top: 1px solid var(--article-border);
}

.article-related h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--article-navy);
  margin-bottom: 30px;
  text-align: center;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-related-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}

.article-related-card:hover {
  box-shadow: 0 18px 34px -20px rgba(22, 33, 62, 0.3);
  transform: translateY(-3px);
}

.article-related-card .thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.article-related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-related-card .body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.article-related-card .category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--article-blue-text);
  margin-bottom: 10px;
}

.article-related-card h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--article-navy);
  margin-bottom: 10px;
}

.article-related-card h3 a {
  color: inherit;
}

.article-related-card p.excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--article-gray);
  margin-bottom: 16px;
  flex: 1 1 auto;
}

.article-related-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--article-navy);
}

.article-related-card .read-more i {
  margin-left: 4px;
  transition: transform 0.25s;
}

.article-related-card:hover .read-more i {
  transform: translateX(3px);
}

/*------------------------------------------------------------------
Responsive
------------------------------------------------------------------*/
@media only screen and (max-width: 1199px) {
  .article-layout {
    gap: 32px;
  }
}

@media only screen and (max-width: 991px) {
  .article-layout {
    flex-direction: column;
  }

  .article-toc {
    width: 100%;
    flex: 1 1 100%;
  }

  .article-toc-toggle {
    display: flex;
  }

  .article-toc-panel {
    position: static;
    display: none;
    margin-top: 10px;
  }

  .article-toc-panel.is-open {
    display: block;
  }

  .article-content {
    max-width: 100%;
  }

  .article-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .article-header {
    padding: 32px 0 24px;
  }

  .article-featured-image {
    margin-bottom: 30px;
  }

  .article-featured-image .img-frame {
    border-radius: 10px;
    aspect-ratio: 4 / 3;
  }

  .article-glance-grid {
    grid-template-columns: 1fr;
  }

  .article-reviewer {
    flex-wrap: wrap;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-related {
    padding: 50px 0 60px;
  }
}

@media only screen and (max-width: 480px) {
  .article-meta {
    gap: 6px 10px;
  }

  .article-share button span {
    display: none;
  }

  .article-share button {
    width: 38px;
    padding: 0;
  }
}

/*------------------------------------------------------------------
Reduced motion
------------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .article-related-card,
  .article-related-card .read-more i,
  .article-toc-toggle i,
  .article-share a,
  .article-share button {
    transition: none !important;
  }

  .article-related-card:hover {
    transform: none;
  }
}

/*------------------------------------------------------------------
Dark theme overrides (site uses a `.theme-dark` class on <html>)
------------------------------------------------------------------*/
.theme-dark .article-breadcrumb,
.theme-dark .article-header,
.theme-dark .article-reviewer,
.theme-dark .article-faq .accordion-title,
.theme-dark .article-faq .accordion-content {
  background-color: #141a2e !important;
  border-color: #26304a;
}

.theme-dark .article-page {
  --article-border: #26304a;
  --article-surface: #182142;
}

.theme-dark .article-content p,
.theme-dark .article-content ul:not(.article-toc-list):not(.accordion) li,
.theme-dark .article-deck,
.theme-dark .article-meta,
.theme-dark .article-breadcrumb ol,
.theme-dark .article-disclaimer,
.theme-dark .article-faq .accordion-content p {
  color: #b7c0d4;
}

.theme-dark .article-content h1,
.theme-dark .article-content h2,
.theme-dark .article-content h3,
.theme-dark .article-header h1,
.theme-dark .article-glance-grid dd,
.theme-dark .article-reviewer-name,
.theme-dark .article-toc-heading {
  color: #f2f5fb;
}

.theme-dark .article-related {
  background-color: #101527;
}

.theme-dark .article-related-card {
  background-color: #141a2e;
  border-color: #26304a;
}

.theme-dark .article-share a,
.theme-dark .article-share button {
  background-color: #141a2e;
  border-color: #26304a;
  color: #f2f5fb;
}
