/* ==========================================================================
   Sunny Days Therapy - Single Blog Post
   ========================================================================== */

/* Reading progress */
.sds-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.sds-reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0D965C, #2970C5);
  transition: width 0.05s linear;
}

body.sds-theme .sds-reading-progress {
  top: 0;
}

.sds-post {
  background: #FFFFFF;
  padding: 50px 40px 0;
}

.sds-post__container {
  max-width: 820px;
  margin: 0 auto;
}

/* Hero */
.sds-post__hero {
  position: relative;
  width: 1200px;
  max-width: calc(100vw - 80px);
  height: 461px;
  margin-top: 0;
  margin-bottom: 24px;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 16px;
  overflow: hidden;
}

.sds-post__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sds-post__hero-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sds-post__hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.sds-post__hero-btn--primary {
  background: #0D965C;
  color: #fff;
}

.sds-post__hero-btn--primary:hover {
  background: #7ac97a;
  color: #fff;
}

.sds-post__hero-btn--secondary {
  background: #fff;
  color: #0A2E5C;
}

.sds-post__hero-btn--secondary:hover {
  background: #F3F6FA;
  color: #0A2E5C;
}

/* Meta */
.sds-post__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sds-post__category {
  display: inline-block;
  background: #FDE8D0;
  color: #8A4B00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
}

.sds-post__read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  font-family: Inter, sans-serif;
}

.sds-post__title {
  font-family: Instrument Serif, Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: #0A2E5C;
  margin: 0 0 28px;
}

/* TOC */
.sds-post__toc {
  background: #dee9f5;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.sds-post__toc-title {
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0A2E5C;
  margin: 0 0 14px;
}

.sds-post__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sds-post__toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.5;
  font-family: Inter, sans-serif;
}

.sds-post__toc-list a:hover {
  color: #2970C5;
}

.sds-post__toc-arrow {
  color: #2970C5;
  font-weight: 700;
  flex-shrink: 0;
}

/* Content */
.sds-post__content {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 60px;
}

.sds-post__content p {
  margin: 0 0 1.25em;
}

.sds-post__tips,
.sds-post__takeaways {
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 2em;
}

.sds-post__tips {
  background: #F3F8EE;
  border: 1px solid #C9E4B4;
}

.sds-post__takeaways {
  background: #F3F7FB;
  border: 1px solid #D4E4F5;
}

.sds-post__tips h2,
.sds-post__takeaways h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.sds-post__tips ol,
.sds-post__takeaways ul {
  margin: 0;
  padding-left: 1.2em;
}

.sds-post__tips li,
.sds-post__takeaways li {
  margin: 0 0 8px;
}

.sds-post__content h2 {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A2E5C;
  margin: .75em 0 0.75em;
  scroll-margin-top: 90px;
}

.sds-post__content h3 {
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A2E5C;
  margin: 1.6em 0 0.6em;
}

.sds-post__content img {
  width: 100%;
  border-radius: 14px;
  margin: 1.5em 0;
  display: block;
}

.sds-post__content ul,
.sds-post__content ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.sds-post__content li {
  margin-bottom: 0.4em;
}

/* Highlight callout boxes */
.sds-post__content .sds-post__highlight,
.sds-post__content blockquote {
  background: #F5F7FA;
  border-radius: 14px;
  padding: 22px 26px;
  margin: 1.75em 0;
  border: none;
  border-left: none;
}

.sds-post__content .sds-post__highlight h3,
.sds-post__content blockquote h3 {
  margin-top: 0;
  font-size: 16px;
}

.sds-post__content .sds-post__highlight p:last-child,
.sds-post__content blockquote p:last-child {
  margin-bottom: 0;
}

.sds-post__content blockquote {
  font-style: normal;
  color: #444;
}

/* Related articles — archive cards, one row of three */
.sds-post-related {
  background: #FFFFFF;
  padding: 50px 40px 40px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

.sds-post-related__container {
  max-width: 1200px;
  margin: 0 auto;
}

.sds-post-related .sds-blog__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Footer FAQ + services */
.sds-post-footer {
  background: #dee9f5;
  padding: 70px 40px 90px;
  margin-top: 20px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

body.sds-single-post {
  overflow-x: hidden;
}

.sds-post-footer__container {
  max-width: 1100px;
  margin: 0 auto;
}

.sds-post-footer__heading {
  font-family: Instrument Serif, Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: #0A2E5C;
  margin: 0 0 36px;
}

.sds-post-footer__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.sds-post-footer__card {
  background: #EEF2F6;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(10, 46, 92, 0.04);
}

.sds-post-footer__card-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.sds-post-footer__card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.sds-post-footer__card-title {
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A2E5C;
  margin: 0 0 10px;
}

.sds-post-footer__card-text {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 18px;
}

.sds-post-footer__card-btn {
  display: inline-block;
  background: #FFFFFF;
  color: #0A2E5C;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  font-family: Inter, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sds-post-footer__card-btn:hover {
  background: #7caff6;
  color: #fff;
}

.sds-post-footer__faqs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sds-post-footer__faq {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 46, 92, 0.05);
  overflow: hidden;
}

.sds-post-footer__faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px 16px 44px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0A2E5C;
  position: relative;
  user-select: none;
}

.sds-post-footer__faq-q::-webkit-details-marker {
  display: none;
}

.sds-post-footer__faq-q::before {
  content: '▾';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #0A2E5C;
  transition: transform 0.2s ease;
}

.sds-post-footer__faq[open] .sds-post-footer__faq-q::before {
  transform: translateY(-50%) rotate(-180deg);
}

.sds-post-footer__faq-a {
  padding: 0 20px 16px 44px;
}

.sds-post-footer__faq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
}

@media (max-width: 900px) {
  .sds-post-related .sds-blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sds-post-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sds-post {
    padding: 50px 20px 0;
  }

  .sds-post__title {
    font-size: 24px;
  }

  .sds-post__content h2,
  .sds-blog__title {
    font-size: 20px;
  }

  .sds-post__hero-actions {
    position: static;
    margin-top: 12px;
    justify-content: flex-start;
  }

  .sds-post__hero {
    width: 100%;
    max-width: 100%;
    height: 461px;
    margin-top: 0;
    margin-left: 0;
    transform: none;
    overflow: visible;
  }

  .sds-post__hero-image {
    border-radius: 16px;
  }

  .sds-post-related {
    padding: 40px 20px 30px;
  }

  .sds-post-related .sds-blog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sds-post-related .sds-blog__grid {
    grid-template-columns: 1fr;
  }

  .sds-post-footer {
    padding: 50px 20px 70px;
  }

  .sds-post-footer__heading {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .sds-post {
    padding: 0;
  }

  .sds-post__container {
    max-width: none;
    padding: 0;
  }

  .sds-post__hero {
    width: 100%;
    max-width: none;
    height: min(70vh, 520px);
    margin: 0 0 24px;
    margin-left: 0;
    transform: none;
    border-radius: 0;
    overflow: hidden;
  }

  .sds-post__hero-image {
    border-radius: 0;
  }

  .sds-post__hero-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin-top: 0;
    justify-content: flex-end;
    z-index: 2;
  }

  .sds-post__meta,
  .sds-post__title,
  .sds-post__toc,
  .sds-post__content {
    padding-left: 20px;
    padding-right: 20px;
  }
}
