/* ================================
   Article Detail Page Styles
   ================================ */

.breadcrumb {
  list-style: none;
  width: fit-content;
  padding: 5px 0;
  margin: 0 20%;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb ul li {
  margin: 0 5px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__link {
  color: var(--color-text-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  transition: opacity 0.3s ease;
}

.breadcrumb__link:hover {
  opacity: 0.8;
}

.breadcrumb__link svg {
  width: 20px;
  height: 20px;
}

.breadcrumb__divider {
  color: var(--color-text-white);
  font-size: var(--font-size-sm);
}

.breadcrumb__item--current {
  color: var(--color-text-white);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Hero Banner */
.article-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px;
}

.article-hero .container {
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) 0;
  transform: translateX(calc(-1 * var(--header-height))) translateY(calc(var(--header-height) / 2));
}

@media (max-width: 1366px) {
  .article-hero .container {
    transform: none;
  }
}

.article-hero__text {
  color: #fff;
  flex: 1;
}

.article-hero__title {
  color: #fff;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-3xl);
}

.article-hero__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.article-hero__breadcrumbs {
  background-color: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Article Content */
.article-content {
  padding: var(--space-12) 0;
  background: #fff;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  gap: 32px;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid #eee;
  font-size: var(--font-size-sm);
  color: #666;
  flex-wrap: wrap;
}

.post-meta strong {
  color: #333;
}

.post-meta a {
  color: var(--color-primary);
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-body {
  line-height: 1.8;
  font-size: var(--font-size-base);
  color: #333;
}

.post-body h2 {
  font-size: var(--font-size-2xl);
  margin: var(--space-8) 0 var(--space-4) 0;
  color: var(--color-primary);
}

.post-body p {
  margin-bottom: var(--space-4);
}

.post-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  background: #f9f9f9;
  margin: var(--space-8) 0;
  font-style: italic;
  color: #666;
}

.post-body figure {
  margin: var(--space-8) 0;
  text-align: center;
}

.post-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-body figcaption {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: #999;
  font-style: italic;
}

.post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid #eee;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero__title {
    font-size: var(--font-size-xl);
  }

  .article-hero__desc {
    font-size: var(--font-size-sm);
  }

  .post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .post-body h2 {
    font-size: var(--font-size-lg);
  }

  .breadcrumb ul {
    gap: 6px;
  }

  .breadcrumb__link svg {
    width: 18px;
    height: 18px;
  }

  .breadcrumb__item--current,
  .breadcrumb__link {
    font-size: var(--font-size-xs);
  }
}

/* =================================
   New Post Detail Layout (old theme)
   ================================= */
.post-details-section {
  padding: 80px 0 120px;
  background-image: url('/assets/images/backgrounds/bg_post.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.post-details-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-breadcrumb {
  margin-bottom: 40px;
}

.post-breadcrumb ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
}

.post-breadcrumb a,
.post-breadcrumb .breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.post-breadcrumb a:hover,
.post-breadcrumb .breadcrumb__link:hover {
  opacity: 0.8;
}

.post-breadcrumb .breadcrumb__link svg {
  width: 20px;
  height: 20px;
}

.post-breadcrumb .breadcrumb__divider {
  color: #666;
}

.post-breadcrumb li.current,
.post-breadcrumb .breadcrumb__item--current {
  color: #333;
  font-weight: 500;
}

.post_inner {
  max-width: 1030px;
  margin: auto;
  text-align: center;
}

.top_post {
  padding: 0 50px;
  margin-bottom: 50px;
}

.top_post .heading_h2 {
  font-family: var(--font-heading, 'Comfortaa', sans-serif);
  font-size: 60px;
  color: #0b6934;
  line-height: 1.2;
  margin: 0;
}

.wrap_post_inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.content_post {
  box-shadow: 0 0 98px rgba(81, 53, 21, 0.07);
  border-radius: 20px;
  background-color: #ffffff;
  text-align: left;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.content_post > img.post-feature-image {
  width: 100%;
  height: auto;
  display: block;
}

.content_post .content {
  padding: 50px 70px 30px;
}

.content_post .content .post-body {
  font-size: 15px;
  text-align: justify;
  line-height: 1.8;
  color: #333;
}

.content_post .post-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.content_post .post-meta strong {
  color: #333;
}

.content_post .post-meta a {
  color: var(--color-primary);
  text-decoration: none;
}

.content_post .post-meta a:hover {
  text-decoration: underline;
}

.sidebar {
  position: absolute;
  left: 0;
  transform: translateX(-100%);
  height: 100%;
}

.sidebar .share {
  position: sticky;
  top: 100px;
  padding-top: 30px;
  padding-right: 20px;
}

.sidebar .share span {
  color: #333;
  font-size: 16px;
  transform: rotate(-90deg);
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
}

.sidebar .share ul {
  list-style: none;
  margin: 39px 0 0;
  padding: 0;
}

.sidebar .share ul li {
  margin-bottom: 10px;
}

.sidebar .share ul a {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #666;
  border-radius: 50%;
  fill: #666;
  transition: .3s all;
}

.sidebar .share ul a:hover {
  border-color: #0b6934;
  fill: #0b6934;
}

.sidebar .share ul a svg {
  width: 11px;
  height: 11px;
}

.post_related {
  padding-top: 75px;
}

.post_related .heading_h2 {
  margin-bottom: 30px;
  font-family: var(--font-heading, 'Comfortaa', sans-serif);
  font-size: 60px;
  color: #0b6934;
  text-align: center;
}

.box_slider {
  position: relative;
}

.slider_news_related .item {
  border-radius: 20px;
  text-align: left;
  overflow: hidden;
  background-image: linear-gradient(to right, #fef1cc 0%, #fef5db 100%);
  z-index: 0;
  position: relative;
}

.slider_news_related .item h3 {
  color: #333;
  font-size: 16px;
  margin: 0 30px 25px;
  height: 43px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  transition: .3s all;
  line-height: 1.3;
}

.slider_news_related .item img {
  height: 219px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin-bottom: 25px;
  border-radius: 20px 20px 0 0;
}

.slider_news_related .item:before {
  background-color: #0b6934;
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 20px;
  opacity: 0;
  transition: .3s all;
}

.slider_news_related .item:hover:before {
  opacity: 1;
}

.slider_news_related .item:hover h3 {
  color: white;
}

.slider_news_related .item * {
  z-index: 2;
  position: relative;
}

.slider_news_related .item a {
  z-index: 9;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider_news_related .item_video {
  position: relative;
}

.slider_news_related .item_video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.3s ease;
}

.slider_news_related .item_video .play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 4px;
}

.slider_news_related .item_video:hover .play-btn {
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.1);
}

.arrow_slider {
  position: absolute;
  z-index: 9;
  top: 50%;
  transform: translateY(-50%);
  fill: #0b6934;
  cursor: pointer;
  width: 46px;
  height: 46px;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow_slider.next {
  right: -60px;
  left: unset;
}

.arrow_slider:not(.next) {
  left: -60px;
}

.arrow_slider svg {
  width: 20px;
  height: auto;
}

/* Slick overrides for post_related */
.slider_news_related .slick-list {
  margin: 0 -15px;
}

/* .slider_news_related .slick-slide {
  padding: 0 15px;
} */

/* Responsive */
@media (max-width: 1200px) {
  .arrow_slider {
    width: 38px;
    height: 38px;
  }
  .arrow_slider.next {
    right: -40px;
  }
  .arrow_slider:not(.next) {
    left: -40px;
  }
}

@media (max-width: 768px) {
  .top_post {
    padding: 0;
  }
  .top_post .heading_h2 {
    font-size: 31px;
  }
  .post-breadcrumb {
    margin-bottom: 20px;
  }
  .post-details-section {
    padding: 60px 0;
  }
  .content_post .content {
    padding: 30px;
  }
  .content_post .post-meta {
    flex-direction: column;
    gap: 8px;
  }
  .sidebar {
    position: unset;
    transform: unset;
    height: auto;
    order: 2;
    width: 100%;
  }
  .wrap_post_inner {
    flex-wrap: wrap;
  }
  .sidebar .share {
    display: flex;
    align-items: center;
    padding-right: 0;
    top: auto;
    position: relative;
    margin-bottom: 20px;
  }
  .sidebar .share ul {
    display: flex;
    margin: 0 0 0 10px;
  }
  .sidebar .share ul li {
    margin-right: 10px;
  }
  .sidebar .share span {
    transform: none;
  }
  .post_related {
    padding-top: 60px;
  }
  .post_related .heading_h2 {
    font-size: 31px;
  }
  .post_related .box_slider {
    max-width: 300px;
    margin: auto;
  }
  .arrow_slider.next {
    right: -30px;
  }
  .arrow_slider:not(.next) {
    left: -30px;
  }
}

/* Project-specific overrides for news detail pages */
.post-details-section {
  padding: 20px 0 120px !important;
}

nav.post-breadcrumb.breadcrumb {
  width: 100%;
  margin: 20px 0;
}

.breadcrumb__item a {
  color: var(--color-primary) !important;
}

.breadcrumb__item a:hover {
  color: #333 !important;
}

/* Make related-news slider arrows visible */
.post_related .box_slider {
  padding: 0 60px;
}

.post_related .arrow_slider {
  width: 46px;
  height: 46px;
}

.post_related .arrow_slider.next {
  right: 0;
  left: unset;
}

.post_related .arrow_slider:not(.next) {
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}

.post_related .arrow_slider svg {
  width: 20px;
  height: auto;
  fill: #0b6934;
  transform: none;
}

@media (max-width: 1200px) {
  .post_related .arrow_slider {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .post_related .box_slider {
    padding: 0 40px;
  }
}
