/* ==========================================================================
   THE BESTOWALS - BLOG DETAILS / READING PAGE STYLESHEET (blog-details.css)
   Pixel-perfect article presentation matching reference screenshot
   ========================================================================== */

/* Page Background */
.blog-details-page {
  background-color: var(--color-bg-body, #faf5ee);
  color: var(--color-text-body, #2b241d);
}

.blog-details-container {
  width: 100%;
  max-width: var(--container-max-width, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 20px);
  padding-right: var(--container-padding, 20px);
}

/* ==========================================================================
   1. BREADCRUMBS
   ========================================================================== */
.article-breadcrumbs-section {
  padding: 16px 0 12px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8c8273;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-breadcrumbs li:not(:last-child)::after {
  content: "›";
  font-size: 14px;
  color: #b8ad9e;
}

.article-breadcrumbs a {
  color: #695e50;
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.article-breadcrumbs a:hover {
  color: var(--color-primary-green, #185b20);
}

.article-breadcrumbs .current-article-crumb {
  color: #3b3329;
  font-weight: 500;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==========================================================================
   2. MAIN 2-COLUMN ARTICLE LAYOUT
   ========================================================================== */
.blog-details-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
  margin-bottom: 50px;
}


/* ==========================================================================
   3. ARTICLE MAIN COLUMN
   ========================================================================== */
.article-main-column {
  background-color: transparent;
  min-width: 0;
}

/* Category Badge */
.article-category-badge {
  display: inline-block;
  background-color: #edf5ec;
  color: var(--color-primary-green, #185b20);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Article Title */
.article-main-title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 36px;
  font-weight: 700;
  color: #1e1914;
  line-height: 1.22;
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
}

/* Article Subtitle / Excerpt */
.article-main-desc {
  font-family: var(--font-sans, "Plus Jakarta Sans", "Outfit", sans-serif);
  font-size: 14.5px;
  color: #6f6558;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

/* Metadata & Social Share Bar */
.article-meta-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ebe4d8;
  flex-wrap: wrap;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #7a6f62;
  flex-wrap: wrap;
}

.author-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #decbb4;
}

.author-by-text {
  font-weight: 600;
  color: #221d18;
}

.meta-v-divider {
  color: #d6cbbe;
  font-weight: 300;
}

.meta-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-icon-svg {
  width: 14px;
  height: 14px;
  stroke: #7a6f62;
}

/* Social Share Icons */
.article-share-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #554b3f;
  margin-right: 2px;
}

.share-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform var(--transition-fast, 0.2s ease), opacity var(--transition-fast, 0.2s ease);
}

.share-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-social-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.share-btn-fb {
  background-color: #1877f2;
}

.share-btn-tw {
  background-color: #1da1f2;
}

.share-btn-pin {
  background-color: #e60023;
}

.share-btn-wa {
  background-color: #25d366;
}


/* ==========================================================================
   4. FEATURED IMAGE
   ========================================================================== */
.article-featured-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f3eee6;
  border: 1px solid #ebe4d8;
  margin-bottom: 28px;
}

.article-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   5. ARTICLE BODY TEXT & NUMBERED LISTS
   ========================================================================== */
.article-body-content {
  font-family: var(--font-sans, "Plus Jakarta Sans", "Outfit", sans-serif);
  font-size: 14.5px;
  line-height: 1.7;
  color: #3b3329;
}

.article-body-content p {
  margin: 0 0 16px 0;
}

.article-section-block {
  margin-bottom: 20px;
}

.article-section-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", "Outfit", sans-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: #1e1914;
  margin: 0 0 6px 0;
}

.article-section-desc {
  font-size: 14px;
  color: #554c40;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Expandable Additional Content */
.expandable-article-sections {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.expandable-article-sections.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 16px;
}

/* Read More Button */
.btn-article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #decbb4;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #3b3329;
  cursor: pointer;
  margin: 8px 0 24px 0;
  transition: all var(--transition-fast, 0.2s ease);
}

.btn-article-read-more svg {
  width: 14px;
  height: 14px;
  stroke: #665b4c;
  transition: transform var(--transition-fast, 0.2s ease);
}

.btn-article-read-more:hover {
  border-color: var(--color-primary-green, #185b20);
  color: var(--color-primary-green, #185b20);
}

.btn-article-read-more:hover svg {
  stroke: var(--color-primary-green, #185b20);
}

.btn-article-read-more.expanded svg {
  transform: rotate(180deg);
}


/* ==========================================================================
   6. QUOTE CARD
   ========================================================================== */
.article-quote-card {
  background-color: #edf5ec;
  border: 1px solid #d8ead6;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.quote-mark-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--color-primary-green, #185b20);
  font-family: Georgia, serif;
  font-weight: 700;
  opacity: 0.6;
  flex-shrink: 0;
}

.quote-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-main-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #1a4f1e;
  line-height: 1.5;
  margin: 0;
}

.quote-author-attribution {
  font-size: 12px;
  color: #48724b;
  margin: 0;
}


/* ==========================================================================
   7. AUTHOR CARD
   ========================================================================== */
.article-author-card {
  background-color: #ffffff;
  border: 1px solid #ebe4d8;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.author-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #decbb4;
  flex-shrink: 0;
}

.author-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e1914;
  margin: 0;
}

.author-card-bio {
  font-size: 12.5px;
  color: #695e50;
  line-height: 1.5;
  margin: 0 0 6px 0;
}

.author-card-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-social-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f7f3ec;
  border: 1px solid #ebe4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #695e50;
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s ease);
}

.author-social-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.author-social-link:hover {
  background-color: var(--color-primary-green, #185b20);
  border-color: var(--color-primary-green, #185b20);
  color: #ffffff;
}


/* ==========================================================================
   8. YOU MIGHT ALSO LIKE (RELATED BLOGS)
   ========================================================================== */
.related-blogs-wrap {
  margin-top: 10px;
}

.related-section-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", "Outfit", sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #1e1914;
  margin: 0 0 16px 0;
}

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

.related-blog-card {
  background-color: #ffffff;
  border: 1px solid #ebe4d8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(45, 35, 20, 0.07);
  border-color: #d6c2a8;
}

.related-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f3eee6;
  overflow: hidden;
}

.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.related-blog-card:hover .related-card-img {
  transform: scale(1.04);
}

.related-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-badge {
  align-self: flex-start;
  background-color: #edf5ec;
  color: var(--color-primary-green, #185b20);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e1914;
  line-height: 1.35;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast, 0.2s ease);
}

.related-blog-card:hover .related-card-title {
  color: var(--color-primary-green, #185b20);
}

.related-card-date {
  font-size: 11px;
  color: #8c8273;
  margin-top: auto;
}


/* ==========================================================================
   9. RIGHT SIDEBAR
   ========================================================================== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Search Box */
.sidebar-search-box {
  position: relative;
  width: 100%;
}

.sidebar-search-input {
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #decbb4;
  border-radius: 8px;
  padding: 0 38px 0 14px;
  font-family: inherit;
  font-size: 13px;
  color: #1e1914;
  outline: none;
  transition: all var(--transition-fast, 0.2s ease);
}

.sidebar-search-input:focus {
  border-color: var(--color-primary-green, #185b20);
  box-shadow: 0 0 0 3px rgba(24, 91, 32, 0.12);
}

.sidebar-search-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a6f62;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-search-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Sidebar Cards */
.blog-sidebar-card {
  background-color: #ffffff;
  border: 1px solid #ebe4d8;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(45, 35, 20, 0.02);
}

.sidebar-card-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #1e1914;
  margin: 0 0 16px 0;
  letter-spacing: 0.1px;
}

/* Category Filter List */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #4a4237;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
  text-align: left;
}

.category-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  width: 16px;
  height: 16px;
  stroke: #665b4c;
  stroke-width: 1.8;
  flex-shrink: 0;
  transition: stroke var(--transition-fast, 0.2s ease);
}

.category-count-badge {
  font-size: 11px;
  font-weight: 600;
  background-color: #f5efe6;
  color: #7a6f62;
  padding: 2px 7px;
  border-radius: 12px;
  transition: all var(--transition-fast, 0.2s ease);
}

.category-filter-btn:hover {
  background-color: #f7f3ec;
  color: var(--color-primary-green, #185b20);
}

.category-filter-btn:hover .category-icon {
  stroke: var(--color-primary-green, #185b20);
}

/* Popular Posts Section */
.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.popular-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f3eee6;
  border: 1px solid #ebe4d8;
  transition: transform var(--transition-fast, 0.2s ease);
}

.popular-post-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.popular-post-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #221d18;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast, 0.2s ease);
}

.popular-post-row:hover .popular-post-title {
  color: var(--color-primary-green, #185b20);
}

.popular-post-row:hover .popular-post-thumb {
  transform: scale(1.04);
}

.popular-post-date {
  font-size: 11px;
  color: #8c8273;
}

/* Newsletter Card (Soft Light-Green) */
.sidebar-newsletter-card {
  background-color: #f2f7f0;
  border: 1px solid #dbe8d8;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #d4e4d1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-primary-green, #185b20);
  box-shadow: 0 2px 6px rgba(24, 91, 32, 0.08);
}

.newsletter-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary-green, #185b20);
}

.newsletter-card-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e1914;
  margin: 0 0 6px 0;
}

.newsletter-card-desc {
  font-size: 12px;
  color: #5d6b59;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.newsletter-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-sidebar-input {
  width: 100%;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid #ccdcc9;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  color: #1e1914;
  outline: none;
  transition: all var(--transition-fast, 0.2s ease);
}

.newsletter-sidebar-input:focus {
  border-color: var(--color-primary-green, #185b20);
  box-shadow: 0 0 0 3px rgba(24, 91, 32, 0.12);
}

.newsletter-sidebar-submit-btn {
  width: 100%;
  height: 38px;
  background-color: var(--color-primary-green, #185b20);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-sidebar-submit-btn:hover {
  background-color: #124719;
  box-shadow: 0 4px 10px rgba(24, 91, 32, 0.25);
}


/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .blog-details-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media screen and (max-width: 600px) {
  .article-main-title {
    font-size: 26px;
  }

  .article-meta-share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-share-right {
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px dashed #decbb4;
  }

  .article-author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-card-socials {
    justify-content: center;
  }

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