/* ==========================================================================
   News Detail Page Premium Stylesheet - Wanda Wood
   ========================================================================== */

/* News Detail Section Layout */
.news-detail-section {
  background: linear-gradient(180deg, #f9f8f6 0%, #efece6 100%);
  padding: 64px 0 96px;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  width: 100%;
}

/* Main Article Column Container */
.news-main-column {
  background: #ffffff;
  border: 1px solid rgba(226, 218, 208, 0.85);
  border-radius: 20px;
  padding: 48px 52px 56px;
  box-shadow: 0 16px 48px rgba(28, 22, 16, 0.05);
}

/* Header Area */
.news-detail-header {
  margin-bottom: 28px;
}

.news-detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 83, 43, 0.08);
  color: var(--brown, #8c532b);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.news-detail-cat i {
  font-size: 11px;
}

.news-detail-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #1a1613;
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Meta Bar */
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #efe8e0;
  font-size: 13.5px;
  color: #787066;
}

.news-detail-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.news-detail-meta i {
  color: var(--brown, #8c532b);
  font-size: 14px;
}

/* Featured Cover Image */
.news-detail-cover {
  width: 100%;
  max-height: 440px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 38px;
  box-shadow: 0 12px 32px rgba(28, 22, 16, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-detail-cover img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Article Body Typography */
.news-article-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #38322c;
  word-break: break-word;
}

.news-article-body p {
  margin-bottom: 22px;
}

.news-article-body .lead-text {
  font-size: 18.5px;
  line-height: 1.7;
  font-weight: 500;
  color: #1a1613;
  padding: 18px 22px;
  background: #fdfcfb;
  border-left: 4px solid var(--brown, #8c532b);
  border-radius: 0 10px 10px 0;
  margin-bottom: 28px;
}

.news-article-body h2 {
  position: relative;
  font-size: 24px;
  font-weight: 800;
  color: #1f1a16;
  margin: 42px 0 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-left: 16px;
}

.news-article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brown, #8c532b) 0%, #c78d52 100%);
}

.news-article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #241f1a;
  margin: 32px 0 14px;
  line-height: 1.35;
}

.news-article-body h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: #2b2520;
  margin: 24px 0 12px;
}

.news-article-body ul,
.news-article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.news-article-body li {
  margin-bottom: 8px;
  line-height: 1.72;
}

.news-article-body li strong {
  color: #1a1613;
}

.news-article-body a {
  color: var(--brown, #8c532b);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .2s ease;
}

.news-article-body a:hover {
  color: #593116;
}

/* Key Takeaway / Highlight Box */
.key-takeaway-box {
  border: 1px solid rgba(140, 83, 43, 0.25);
  border-left: 5px solid var(--brown, #8c532b);
  background: #fdfaf6;
  padding: 24px 28px;
  border-radius: 12px;
  margin: 36px 0;
  box-shadow: 0 8px 24px rgba(140, 83, 43, 0.05);
}

.key-takeaway-box h4 {
  font-size: 15.5px;
  font-weight: 800;
  color: #1f1a16;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-takeaway-box h4 i {
  color: var(--brown, #8c532b);
  font-size: 17px;
}

.key-takeaway-box ul {
  margin: 0;
  padding-left: 18px;
  color: #3d362e;
}

.key-takeaway-box li {
  margin-bottom: 8px;
  font-weight: 500;
}

/* Blockquote */
.news-article-body blockquote {
  position: relative;
  border-left: 4px solid var(--brown, #8c532b);
  background: #fcfbfa;
  padding: 20px 24px 20px 28px;
  margin: 34px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #2b241e;
  font-size: 17.5px;
  line-height: 1.65;
}

.news-article-body blockquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--brown, #8c532b);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Previous / Next Article Navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1.5px dashed #efe7de;
}

.post-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 16px 20px;
  border: 1.5px solid #eae3d9;
  border-radius: 14px;
  background: #faf8f5;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-nav__item:hover {
  border-color: var(--brown, #8c532b);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(140, 83, 43, 0.12);
}

.post-nav__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brown, #8c532b);
  border: 1px solid #e8e1d7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  transition: all .25s ease;
}

.post-nav__item:hover .post-nav__arrow {
  background: var(--brown, #8c532b);
  color: #ffffff;
  border-color: var(--brown, #8c532b);
}

.post-nav__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.post-nav__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brown, #8c532b);
  margin-bottom: 3px;
}

.post-nav__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1613;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}

.post-nav__item:hover .post-nav__title {
  color: var(--brown, #8c532b);
}

/* ----------------------------------------------------
   Right Sticky Sidebar Widgets
---------------------------------------------------- */
.news-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(226, 218, 208, 0.85);
  border-radius: 18px;
  padding: 26px 26px 28px;
  box-shadow: 0 10px 30px rgba(28, 22, 16, 0.04);
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  color: #1f1a16;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f2ece4;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i {
  color: var(--brown, #8c532b);
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--brown, #8c532b);
}

/* Recent Articles List */
.recent-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-article-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  transition: background .2s ease;
}

.recent-article-item:hover {
  background: #faf7f3;
}

.recent-article-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee9e2;
}

.recent-article-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.recent-article-item:hover .recent-article-item__thumb img {
  transform: scale(1.08);
}

.recent-article-item__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recent-article-item__date {
  font-size: 11.5px;
  color: #8c8378;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.recent-article-item__date i {
  color: var(--brown, #8c532b);
}

.recent-article-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #241e18;
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.recent-article-item:hover .recent-article-item__title {
  color: var(--brown, #8c532b);
}

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

.widget-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid #efe7de;
  color: #28221c;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.widget-cat-link i {
  font-size: 11px;
  color: #8c8378;
  transition: transform .25s ease, color .25s ease;
}

.widget-cat-link:hover {
  background: #ffffff;
  border-color: var(--brown, #8c532b);
  color: var(--brown, #8c532b);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(140, 83, 43, 0.08);
}

.widget-cat-link:hover i {
  color: var(--brown, #8c532b);
  transform: translateX(3px);
}

/* CTA Widget Card */
.sidebar-widget.widget-cta {
  background: linear-gradient(145deg, #1f1a16 0%, #3a2b20 100%);
  color: #ffffff;
  border: 0;
  padding: 30px 24px;
  box-shadow: 0 16px 40px rgba(31, 26, 22, 0.25);
  position: relative;
  overflow: hidden;
}

.sidebar-widget.widget-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(199, 141, 82, 0.15);
  pointer-events: none;
}

.widget-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #d4a373;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.widget-cta h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.widget-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
  line-height: 1.55;
}

.widget-cta__btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c78d52 0%, var(--brown, #8c532b) 100%);
  border: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(140, 83, 43, 0.35);
  transition: all .25s ease;
}

.widget-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(140, 83, 43, 0.48);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .news-detail-section {
    padding: 40px 0 60px;
  }
  .news-main-column {
    padding: 28px 20px 32px;
    border-radius: 14px;
  }
  .news-detail-title {
    font-size: 22px;
  }
  .news-detail-cover {
    max-height: 260px;
    margin-bottom: 24px;
  }
  .post-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .post-nav__item--next {
    flex-direction: row-reverse;
    text-align: left;
  }
}
