/* News Container */
.news-container {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* News Header */
.news-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    color: #ffffff;
    padding: 40px 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

    .news-header h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .news-header p {
        margin: 10px 0 0 0;
        font-size: 1.1rem;
        color: #ffffff !important;
        opacity: 0.9;
    }


/* Section Titles */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

/* Featured Section */
.featured-section {
  margin-bottom: 40px;
}

.featured-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.featured-content {
  padding: 20px;
}

.featured-content h3 {
  font-size: 1.4rem;
  margin: 10px 0;
}

.featured-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-content h3 a:hover {
  color: #667eea;
}

.featured-content .excerpt {
  color: #666;
  font-size: 0.95rem;
  margin: 10px 0;
  line-height: 1.6;
}

/* Article Cards */
.article-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-body h4 {
  font-size: 1.2rem;
  margin: 10px 0;
  flex: 1;
}

.article-body h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-body h4 a:hover {
  color: #667eea;
}

.article-body .excerpt {
  color: #666;
  font-size: 0.9rem;
  margin: 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Meta */
.article-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #888;
  margin-top: 10px;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  font-size: 0.9rem;
}

.article-meta-small {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}

/* Search and Filter Section */
.search-filter-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Sidebar */
.sidebar-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

/* Hot Articles */
.hot-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hot-article-item {
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.hot-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hot-article-item h5 {
  font-size: 1rem;
  margin: 0 0 8px 0;
}

.hot-article-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hot-article-item a:hover {
  color: #667eea;
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  padding: 10px 15px;
  border-radius: 6px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.category-item:hover {
  background: #e9ecef;
  color: #667eea;
  transform: translateX(5px);
}

.category-item.active {
  background: #667eea;
  color: white;
}

/* News Detail Page */
.news-detail-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px 0;
}

.news-article {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 15px 0;
  line-height: 1.3;
}

.article-meta-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 15px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #adb5bd;
}

.article-stats {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #888;
}

.article-featured-image {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

/* Article Content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 30px 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.article-content ul,
.article-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.article-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

/* Article Tags */
.article-tags {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.article-tags .badge {
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  padding: 8px 12px;
}

/* Article Share */
.article-share {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.article-share h5 {
  margin-bottom: 15px;
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Related Articles */
.related-articles {
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.related-articles h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.related-article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 100%;
}

.related-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.related-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-content {
  padding: 15px;
}

.related-content h5 {
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.related-content a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-content a:hover {
  color: #667eea;
}

/* Admin Pages */
.news-admin-container {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.admin-header {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-header h1 {
  font-size: 2rem;
  margin: 0;
  color: #333;
}

.filter-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* News Form */
.news-form-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px 0;
}

.form-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-header h1 {
    font-size: 2rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .featured-image {
    height: 200px;
  }

  .article-meta-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
