/* === Pathway Detail Page Styles === */
/* Variables not in global styles.css */
:root {
  --grey-dark: #343a40;
  --border: #dee2e6;
}

.banner_text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  top: 0;
  height: 230px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* --- Hero --- */
.pathway-hero {
  position: relative;
  min-height: 500px;
  background: #1a1a2e url('') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* padding: 80px; */
}

.pathway-hero .container {
  bottom: 80px;
}

.pathway-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.pathway-hero>* {
  position: relative;
  z-index: 2;
}

/* Hero Nav */
.pathway-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  z-index: 3;
}

.pathway-nav__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pathway-nav__left img {
  height: 48px;
  width: 56px;
}

.pathway-nav__left a {
  color: var(--white);
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.pathway-nav__left a:hover {
  opacity: 0.85;
}

.pathway-nav .btn-book {
  background: var(--white);
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Breadcrumb */
.pathway-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 300;
}

.pathway-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.pathway-breadcrumb .chevron {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.pathway-breadcrumb .current {
  color: var(--white);
  /* font-size: 18px; */
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.pathway-hero__title {
  font-family: var(--font-mirage);
  font-size: 60px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

/* --- Content Layout --- */
.pathway-content {
  background: var(--white);
  padding: 80px 0 40px;
  /* display: flex; */
  gap: 80px;
}

.wrapper {
  overflow: visible !important;
}

/* Sidebar */
.pathway-sidebar {
  width: 100%;
  max-width: 380px;
  position: sticky;
  top: 140px;
  align-self: flex-start;
  /* max-height: 100vh; */
  /* overflow-y: auto; */
}



.toc-label {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 12px;
}

.share-label {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

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

.toc-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--black);
}

.toc-list li:first-child {
  border-top: 1px solid var(--border);
}

.toc-list li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.toc-list li.active a {
  font-weight: 700;
  color: var(--blue);
}

/* Patient Guide Card */
.patient-guide-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  padding: 32px;
  margin-bottom: 40px;
}

.patient-guide-card__icon {
  height: 48px;
  width: 48px;
  margin-bottom: 16px;
}

.patient-guide-card__title {
  font-family: var(--font-mirage);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: var(--black);
  margin-top: 24px;
  margin-bottom: 8px;
}

.patient-guide-card__desc {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-dark);
  margin-bottom: 20px;
}

.btn-download img {
  margin-right: 12px;
}

.btn-download:active {
  color: var(--white);
}

.btn-download {
  width: max-content;
  display: flex;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Share */
.share-section {
  margin-top: 10px;
}

.share-header {
  cursor: pointer;
}

.share-icons {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.share-icons svg {
  width: 24px;
  height: 24px;
}

/* --- Main Article --- */
.pathway-article {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.checklistdesc {
  color: #0E0E0E;
  font-family: Helvetica;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  padding-top: 40px;
}

.pathway-article .intro p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: var(--black);
}

.pathway-article h2 {
  font-family: var(--font-mirage);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.pathway-article .section-desc {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey-dark);
  margin-bottom: 24px;
}

/* Symptom Grid */
.symptom-grid {
  border-radius: 20px;
  /* background: #F9F9F9; */
  /* display: grid; */
  /* grid-template-columns: repeat(3, 1fr); */
  margin-bottom: 16px;
}

.symptom-grid img {
  object-fit: contain;
  margin: 0 auto;
  display: flex;
  text-align: center;
  height: 100%;
  max-height: 430px;
  width: 527px;
  min-height: 430px;
  background-color: #FFF;
}

.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-radius: 4px;
  text-align: center;
}

.symptom-card--blue {
  background: var(--secondary-blue);
}

.symptom-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.symptom-card__label {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.section-note p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey-dark);
}

.section-note strong {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-dark);
}

.info-card__desc br {
  display: block;
  margin-bottom: 8px;
}

/* UL styling */
.section-note ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.section-note ul li:last-child {
  margin-bottom: 0;
}

/* LI styling */
.section-note ul li {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

/* Numbered List */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.num-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--secondary-blue);
  color: var(--blue);
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbered-list li p {
  font-size: 16px;
  line-height: 24px;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  padding: 4px 0;
  color: var(--black);
  margin: 0;
}

.numbered-list li p strong {
  font-weight: 700;
  color: var(--black);
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--secondary-blue);
  border-radius: 4px;
  padding: 20px;
}

.info-card__title {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.info-card__desc {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  line-height: 24PX;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  /* min-height: 312px; */
  gap: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--grey-dark);
}

.checklist li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.accordion-item {
  border: none;
  border-radius: 0;
}

/* Remove top border from the whole accordion */
.accordion {
  border: none;
}

/* Add ONLY bottom border */
.faq-item {
  border-bottom: 1px solid var(--border);
}

/* Optional: remove top border from first item */
.faq-item:first-child,
.faq-item:last-child {
  border-top: none;
}

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

.accordion-body {
  padding: 0;
  padding-bottom: 26px !important;
}

.accordion-button::after {
  display: none !important;
}

.accordion-body p {
  color: var(--Black, #0E0E0E);
  font-family: Helvetica;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  /* 125% */
}

.pathway-faq__heading h2 {
  color: var(--Black, #0E0E0E);
  font-family: "MADE Mirage";
  font-size: 38px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}


.accordion-item .accordion-button {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Remove button focus/active borders */
.accordion-button {
  color: #0E0E0E !important;
  font-family: "MADE Mirage";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  border: none;
  box-shadow: none;
}

/* Remove weird Bootstrap overlap line */
.accordion-button:not(.collapsed) {
  box-shadow: none;
}

/* --- FAQ --- */
.pathway-faq {
  padding: 60px 0;
}

/* --- Related Pathway --- */
.pathway-related {
  background: var(--white);
  padding: 20px 0px 80px;
}

.pathway-related__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.pathway-related__header h2 {
  font-family: var(--font-mirage);
  font-size: 38px;
  font-weight: 400;
  color: var(--black);
}

.btn-explore {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
}

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

.related-card {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-card__title {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  line-height: normal;
}

.related-card__desc {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: var(--black);
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 20px;
}

.btn-readmore-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
}

.btn-readmore-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.recovering-timeline {
  /* background: #f9f9f9; */
}

/* Table styling */
.timeline-table {
  border-collapse: collapse;
  width: 100%;
}

.timeline-table thead th {
  color: var(--Gray-600, #535862);
  font-family: Helvetica;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding: 18px 24px;
}

.recovering-timeline p {
  color: var(--Black, #0E0E0E);
  font-family: Helvetica;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  padding-top: 24px;
  /* 150% */
}



.timeline-table td {
  padding: 18px 24px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #555;
}

/* Left column styling */
.timeline-title {
  color: #00a19a;
  /* teal tone like your screenshot */
  font-weight: 600;
  width: 30%;
  min-width: 220px;
}

.recovering-timeline thead tr {
  background-color: #FAFAFA;

}

.timeline-table {
  border-collapse: separate;
  border-spacing: 0;
}

.timeline-table tr td:first-child {
  color: #157A7E;

  font-family: "MADE Mirage";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  /* 142.857% */
}

.pathway-related .row {
  row-gap: 36px;
}

.timeline-table tr td {
  color: #0E0E0E;

  font-family: Helvetica;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
}


.table-responsive {
  border-radius: 12px;
}

.timeline-table {
  border: 1px solid #E9EAEB;
  border-radius: 12px;
}

/* Zebra subtle spacing */
.timeline-table tr:last-child td {
  border-bottom: none;
}

/* Mobile Share Modal */
.mobile-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4) !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-share-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 9999999 !important;
  padding: 24px 0 12px;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.mobile-share-modal.show {
  bottom: 0;
  top: 30%;
  margin: 15px;
}

.mobile-share-overlay.show {
  opacity: 1;
  visibility: visible;
}

.share-modal-header {
  padding: 0 24px 20px;
  border-bottom: 1px solid #dfe2eb;
}

.share-modal-header h4 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1c1e;
  margin-bottom: 4px;
}

.share-modal-header p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: #44474e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.share-modal-actions,
.share-modal-socials {
  display: flex;
  gap: 16px;
  padding: 0 15px;
  border-bottom: 1px solid #dfe2eb;
  overflow-x: auto;
}

.share-modal-socials {
  border-bottom: none;
}

.share-action-item,
.share-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 15px 0 20px;
  width: 64px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.share-action-icon,
.share-social-item img {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.share-action-icon svg {
  width: 24px;
  height: 24px;
}

.share-action-item span,
.share-social-item span {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: #1a1c1e;
  text-align: center;
  white-space: nowrap;
}

.share-modal-indicator {
  width: 95px;
  height: 3px;
  background: #656566;
  border-radius: 8px;
  margin: 8px auto 0;
}

@media screen and (max-width:991px) {
  .pathway-sidebar {
    max-width: 100%;
    min-width: 100%;
    position: static !important;
    top: auto !important;
    height: auto !important;
  }

  .share-section {
    margin-bottom: 48px;
  }

  .pathway-breadcrumb {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .pathway-hero__title {
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.72px;
  }

  .pathway-content {
    padding: 32px 0px;

  }

  .pathway-content .checklist {
    padding-bottom: 32px;
    border-bottom: 1px solid #DEE2E6;
  }

  .pathway-content {
    padding-bottom: 0;
  }

  .pathway-faq {
    padding-top: 24px;
  }

  .pathway-faq {
    padding: 26px 0;
  }

  .pathway-related__header h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .btn-explore {
    padding: 8px 12px;
  }

  .pathway-related__header {
    margin-bottom: 26px;
  }

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

  .pathway-related {
    padding: 0px 0 62px;
  }

  .pathway-faq__heading h2 {
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: -0.56px;
  }

  .accordion-button {
    padding: 16px 0;
  }

  .pathway-hero .container {
    bottom: 30px;
  }

  .pathway-hero .container .pathway-breadcrumb {

    top: 30px;
  }

  span img {
    display: block !important;
  }

  .patient-guide-card {
    position: relative;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    margin-top: -36px;
    margin-bottom: 32px;
  }


  .patient-guide-card>img,
  .patient-guide-card__title,
  .patient-guide-card__desc {
    display: none;
  }

  .section-note strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    font-style: normal;
    font-family: inherit;
  }

  .btn-download {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    background: var(--blue);
    box-shadow: 0px 4px 19px 0px rgba(0, 0, 0, 0.18);
    position: fixed;
    bottom: 30%;
  }

  .btn-download img {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .toc-list {
    margin-bottom: 24px;
  }

  .share-section {
    margin-bottom: 48px;
  }

  .pathway-article .intro {
    border-top: 1px solid #DEE2E6;
    padding-top: 32px;
  }

  .pathway-article {
    gap: 40px;
  }

}



@media screen and (max-width:768px) {
  .pathway-hero {
    min-height: 340px;
  }


  .share-header svg,
  .share-header img {
    width: 20px;
    height: 20px;
    color: var(--blue);

    /* transform: rotate(25deg); */
    /* ✅ tilt effect */
  }

  .pathway-article h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .symptom-card__label {
    font-size: 14px;
  }

  .toc-list li {
    padding: 8px 0;
  }

  .checklist li img {
    width: 18px;
    height: 18px;
  }

  .checklist {
    gap: 12px;
  }

  .numbered-list li p {
    font-size: 14px;
    line-height: 20px;
  }

  .timeline-table {
    table-layout: fixed;
    width: 100%;
  }

  .timeline-table td,
  .timeline-table th {
    width: 50%;
  }

  .symptom-grid img {

    margin: 0 auto;
    display: flex;
    text-align: center;
    height: 338px;
    width: 100%;
    max-width: 528px;
    aspect-ratio: 25/16;
  }

  .timeline-table thead th {
    padding: 12px 24px;
  }



  .timeline-table td {
    padding: 16px 24px;
  }
}