/* ==============================================
   NEWS DETAIL PAGE - MODERN STYLES
   ============================================== */

/* Hero */
.news-detail-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
  overflow: hidden;
}

.news-detail-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), #003366);
}

.news-detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.news-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 31, 77, 0.95),
    rgba(0, 31, 77, 0.5)
  );
}

.news-detail-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

/* Breadcrumb */
.news-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.news-detail-breadcrumb a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-detail-breadcrumb a:hover {
  color: var(--color-secondary);
}

.news-detail-breadcrumb > i {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.news-detail-breadcrumb > span {
  color: rgba(255, 255, 255, 0.6);
}

/* Meta */
.news-detail-meta {
  margin-bottom: 1rem;
}

.news-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 140, 0, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.news-detail-date i {
  color: var(--color-secondary);
}

/* Title */
.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 800px;
}

/* Content Section */
.news-detail-section {
  padding: 4rem 0;
  background: #fafafa;
}

.news-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Article */
.news-article-modern {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Gallery */
.news-gallery {
  margin-bottom: 2rem;
}

.news-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
}

.news-gallery-slide {
  display: none;
}

.news-gallery-slide.is-active {
  display: block;
}

.news-gallery-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.news-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.news-gallery-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: all 0.3s ease;
}

.news-gallery-thumb.is-active {
  border-color: var(--color-secondary);
}

.news-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Summary */
.news-article-summary {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.08),
    rgba(255, 140, 0, 0.03)
  );
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 16px 16px 0;
  margin-bottom: 2rem;
}

.news-article-summary i {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.news-article-summary p {
  color: #4a4a4a;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

/* Content */
.news-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 2rem;
}

.news-article-content p {
  margin-bottom: 1.25rem;
}

/* Share */
.news-article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 31, 77, 0.08);
  border-bottom: 1px solid rgba(0, 31, 77, 0.08);
  margin-bottom: 1.5rem;
}

.share-label {
  font-weight: 700;
  color: var(--color-primary);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 31, 77, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--color-secondary);
  color: white;
}

/* Back Link */
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.news-back-link:hover {
  gap: 0.75rem;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: 160px;
}

.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 31, 77, 0.08);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-secondary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.sidebar-btn.secondary {
  background: rgba(0, 31, 77, 0.05);
  color: var(--color-primary);
}

.sidebar-btn.secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Related News */
.news-related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 31, 77, 0.08);
}

.news-related-section .news-related-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-related-card {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.news-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 31, 77, 0.12);
}

.news-related-image {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #003366);
}

.news-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-related-card:hover .news-related-image img {
  transform: scale(1.08);
}

.news-related-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2.5rem;
}

.news-related-content {
  padding: 1.25rem;
}

.news-related-date {
  font-size: 0.8rem;
  color: #667085;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-related-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-detail-grid {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .news-detail-hero {
    min-height: 300px;
  }

  .news-gallery-slide img {
    height: 280px;
  }

  .news-article-modern {
    padding: 1.5rem;
  }
}
