/* =============================================
   NEWS DETAIL PAGE STYLES
============================================= */

/* --- News Detail Banner (Blurred Background) --- */
.news-detail-banner {
  position: relative;
  padding: 170px 0 80px;
  color: #fff;
  overflow: hidden;
  background-image: url("/wp-content/themes/GlobalZT/assets/images/banner/news-banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.6)
  );
  -webkit-backdrop-filter: blur(10px) brightness(0.5);
  backdrop-filter: blur(10px) brightness(0.5);
  z-index: 2;
}

.news-detail-banner-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.news-meta-cat {
  background: white;
}
.news-banner-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  font-weight: 500;
}

.news-detail-banner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 800;
}

.news-detail-featured-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16/10;
}

.news-detail-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- News Detail Layout --- */
.news-detail-section {
  padding: 60px 0;
  /* background-color: var(--clr-bg-section); */
}

.news-detail-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: stretch; /* Required for sticky sidebar height */
}

/* --- Article Content Styling --- */
.news-article-content {
  background: #ffffff;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--clr-border);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-secondary);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  color: var(--clr-primary-dark);
  font-size: 1.8rem;
  margin: 48px 0 24px;
}

.article-body blockquote {
  background: var(--clr-bg-section);
  border-left: 5px solid var(--clr-accent);
  padding: 40px;
  margin: 40px 0;
  font-style: italic;
  color: var(--clr-primary-dark);
  font-size: 1.4rem;
}

.article-body img {
  border-radius: var(--radius-lg);
  margin: 40px 0;
  width: 100%;
}

.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
}

.share-item:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* --- Related News Section --- */
.related-news-section {
  padding: 100px 0;
  background-color: var(--clr-bg-section);
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.related-news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--clr-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.related-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-news-card:hover .related-img img {
  transform: scale(1.1);
}

.related-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-info .news-meta {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.related-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--clr-primary-dark);
}

.related-info h4 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-info h4 a:hover {
  color: var(--clr-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .news-detail-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-detail-banner-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap:30px;
  }
  /* .breadcrumb {
    justify-content: center;
  } */
  .related-news-grid {
    grid-template-columns: 1fr;
  }
  .article-body {
    font-size: 1rem;
  }
  .news-article-content{
    padding: 30px;
  }
}
