/* News Detail Page Styles */

.news-meta-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-category {
  background: var(--color-accent);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.news-date {
  font-size: 15px;
  opacity: 0.85;
}

/* Article Section */
.article-section {
  padding: 60px 0;
  background: var(--color-bg);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

/* Article Main */
.article-main {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 40px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 30px 0 16px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.article-body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-bg);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--color-primary);
  margin: 0;
}

/* Article Tags */
.article-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.tag-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

.tag {
  padding: 4px 12px;
  background: var(--color-bg);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text);
  transition: all 0.3s;
}

.tag:hover {
  background: var(--color-primary);
  color: white;
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  border-top: 1px solid var(--color-border);
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.article-nav a {
  text-decoration: none;
  transition: all 0.3s;
}

.article-nav a:hover {
  transform: translateX(5px);
}

.nav-prev:hover {
  transform: translateX(-5px) !important;
}

.nav-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
}

.search-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-form button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.search-form button:hover {
  background: var(--color-accent);
}

/* Categories */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  border-bottom: 1px solid var(--color-border);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.category-list a:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

.category-list span {
  color: var(--color-text-light);
  font-size: 13px;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.recent-post:hover {
  transform: translateX(5px);
}

.recent-post img {
  width: 70px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-info {
  flex: 1;
}

.recent-date {
  font-size: 12px;
  color: var(--color-text-light);
}

.recent-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post:hover h4 {
  color: var(--color-primary);
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f6a 100%);
  color: white;
}

.contact-cta .widget-title {
  color: white;
  border-bottom-color: var(--color-accent);
}

.contact-cta p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 20px;
}

.contact-cta .btn {
  display: block;
  text-align: center;
  width: 100%;
}

/* Related News */
.related-news {
  padding: 60px 0;
  background: white;
}

.related-news .section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}

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

.related-card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-card .related-content {
  padding: 16px;
}

.related-card .related-date {
  font-size: 12px;
  color: var(--color-text-light);
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover h3 {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 26px;
  }
  
  .article-featured-image {
    height: 250px;
  }
  
  .article-body {
    padding: 24px;
  }
  
  .article-tags,
  .article-share,
  .article-nav {
    padding: 16px 24px;
  }
  
  .article-nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    flex-direction: column;
  }
}
