/* ==========================================================================
   Single Post Styles - COMO Face and Body
   Standard Reusable Template for all blog post pages
   Design transferred directly from live site: https://comofaceandbody.com/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Post Hero / Header Section
   -------------------------------------------------------------------------- */
.post-hero,
.post-hero-section {
  position: relative;
  background-image: url('../images/blog/open-post-background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 40px 100px 40px;
  margin-bottom: 60px;
  box-sizing: border-box;
  width: 100%;
}

.post-hero-container,
.post-hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  box-sizing: border-box;
}

.post-hero-category,
.post-category-tag {
  display: inline-block;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary, #C8A37C);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-hero-category:hover,
.post-category-tag:hover {
  color: var(--color-secondary, #222222);
}

.post-hero-title,
.post-hero-title a {
  font-family: var(--font-family-base);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  font-weight: var(--font-weight-h2, 300);
  color: var(--color-secondary, #222222);
  margin: 0;
  max-width: 960px;
  text-decoration: none;
}

.post-hero-lead {
  font-family: var(--font-family-base);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text, #6B6966);
  margin: 0;
  max-width: 800px;
}

.post-hero-date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
}

.post-hero-date {
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text, #6B6966);
}

.post-featured-media {
  width: 100%;
  max-width: 1280px;
  margin: 15px auto 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.post-featured-image {
  width: 100%;
  height: auto;
  max-height: 840px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. Main Layout (Sticky Share Sidebar on Left + Content on Right)
   -------------------------------------------------------------------------- */
.post-main-container {
  max-width: 1160px;
  margin: 0 auto 80px auto;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
}

/* Share Buttons Sidebar */
.post-share-sidebar {
  position: sticky;
  top: 120px;
  flex-shrink: 0;
}

.post-share-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-primary, #C8A37C);
  background-color: transparent;
  color: var(--color-primary, #C8A37C);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.post-share-btn:hover {
  background-color: var(--color-primary, #C8A37C);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 163, 124, 0.25);
}

/* --------------------------------------------------------------------------
   3. Post Body / Content Column
   -------------------------------------------------------------------------- */
.post-content-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.post-text-block {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body, 18px);
  line-height: 1.65;
  font-weight: 300;
  color: var(--color-text, #6B6966);
}

.post-text-block p {
  margin-bottom: 24px;
}

.post-text-block p:last-child {
  margin-bottom: 0;
}

.post-subheading {
  font-family: var(--font-family-base);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-secondary, #222222);
  margin: 20px 0 10px 0;
}

/* Multi-column treatment grid */
.post-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.post-column-item {
  font-family: var(--font-family-base);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text, #6B6966);
}

/* In-body image */
.post-body-media {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0;
}

.post-body-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

/* Testimonial Quote Box */
.post-testimonial-card {
  background-color: var(--color-alternate, #F7F5EF);
  border-radius: 20px;
  padding: 60px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
}

.post-testimonial-quote {
  font-family: var(--font-family-base);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-secondary, #222222);
  max-width: 850px;
  margin: 0;
}

.post-testimonial-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.post-testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.post-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-testimonial-name {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-secondary, #222222);
}

.post-testimonial-job {
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-text, #6B6966);
}

/* Post Tags */
.post-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--color-secondary, #222222);
  font-weight: 500;
}

.post-tag-item {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background-color: var(--color-alternate, #F7F5EF);
  color: var(--color-secondary, #222222);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.post-tag-item:hover {
  background-color: var(--color-primary, #C8A37C);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4. Previous / Next Post Navigation
   -------------------------------------------------------------------------- */
.post-nav-section {
  max-width: 1160px;
  margin: 0 auto 80px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.post-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--color-border, #EAE9E6);
  border-bottom: 1px solid var(--color-border, #EAE9E6);
}

.post-nav-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.post-nav-item:hover {
  opacity: 0.85;
}

.post-nav-item.next {
  justify-content: flex-end;
  text-align: right;
}

.post-nav-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-nav-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-nav-label {
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-tertiary, #AEAAA5);
}

.post-nav-title {
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary, #222222);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-sep {
  width: 1px;
  height: 60px;
  background-color: var(--color-border, #EAE9E6);
}

/* --------------------------------------------------------------------------
   5. Similar Posts Section
   -------------------------------------------------------------------------- */
.post-similar-section {
  max-width: 1280px;
  margin: 0 auto 120px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.post-similar-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2, 56px);
  font-weight: var(--font-weight-h2, 300);
  line-height: 1.15;
  color: var(--color-secondary, #222222);
  margin: 0 0 50px 0;
  text-align: center;
}

.post-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 60px;
}

.post-similar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-similar-media {
  display: block;
  width: 100%;
  height: 265px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  text-decoration: none;
}

.post-similar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.4s ease;
}

.post-similar-card:hover .post-similar-img {
  transform: scale(1.04);
}

.post-similar-category {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary, #C8A37C);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.post-similar-category:hover {
  color: var(--color-secondary, #222222);
}

.post-similar-card-title {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-secondary, #222222);
  margin: 0 0 25px 0;
}

.post-similar-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-similar-card-title a:hover {
  color: var(--color-primary, #C8A37C);
}

.post-similar-divider {
  border: 0;
  border-top: 1px solid var(--color-border, #EAE9E6);
  margin-top: auto;
  margin-bottom: 20px;
  width: 100%;
}

.post-similar-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary, #222222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-similar-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.post-similar-more:hover {
  color: var(--color-primary, #C8A37C);
}

.post-similar-card:hover .post-similar-more svg {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .post-hero {
    padding: 70px 30px 80px 30px;
    margin-bottom: 50px;
  }

  .post-featured-media {
    max-height: 450px;
  }

  .post-main-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 30px;
    margin-bottom: 60px;
  }

  .post-share-sidebar {
    position: static;
    width: 100%;
  }

  .post-share-list {
    flex-direction: row;
    justify-content: flex-start;
  }

  .post-nav-section {
    padding: 0 30px;
  }

  .post-similar-section {
    padding: 0 30px;
    margin-bottom: 90px;
  }

  .post-similar-title {
    font-size: 44px;
    margin-bottom: 40px;
  }

  .post-similar-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 40px;
  }

  .post-similar-media {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .post-hero {
    padding: 50px 20px 60px 20px;
    margin-bottom: 40px;
  }

  .post-featured-media {
    max-height: 350px;
  }

  .post-main-container {
    padding: 0 20px;
    gap: 30px;
    margin-bottom: 50px;
  }

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

  .post-testimonial-card {
    padding: 40px 25px;
  }

  .post-nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .post-nav-sep {
    display: none;
  }

  .post-nav-item.next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }

  .post-similar-section {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .post-similar-title {
    font-size: 34px;
    margin-bottom: 30px;
  }

  .post-similar-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .post-similar-media {
    height: 200px;
  }
}
