/* News Page Styles */

.news-page {
  padding: 40px 0;
}

.news-page h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color, #003366);
  border-bottom: 3px solid var(--primary-color, #003366);
  padding-bottom: 20px;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.news-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.news-header {
  padding: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.news-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
}

.news-header h2 a {
  color: var(--primary-color, #003366);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-header h2 a:hover {
  color: var(--accent-color, #0066cc);
  text-decoration: underline;
}

.news-date {
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

.news-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-summary {
  padding: 20px;
}

.news-summary p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #333;
}

.read-more {
  display: inline-block;
  color: var(--primary-color, #003366);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent-color, #0066cc);
}

.no-news {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  padding: 40px 20px;
}

/* Single News Article */
.single-news {
  padding: 40px 0;
}

.news-article {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.article-header h1 {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  color: var(--primary-color, #003366);
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
}

.article-date,
.article-author {
  font-weight: 500;
}

.article-featured-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 30px 0;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 30px 0 15px 0;
  color: var(--primary-color, #003366);
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 25px 0 10px 0;
  color: #003366;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 20px 30px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: var(--primary-color, #003366);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.tag:hover {
  background: var(--primary-color, #003366);
  color: #fff;
}

.back-to-news {
  margin: 40px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.back-to-news a {
  color: var(--primary-color, #003366);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.back-to-news a:hover {
  color: var(--accent-color, #0066cc);
}

/* Related News */
.related-news {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.related-news h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: var(--primary-color, #003366);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 20px;
}

.card-content h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.card-content h4 a {
  color: var(--primary-color, #003366);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content h4 a:hover {
  color: var(--accent-color, #0066cc);
}

.card-date {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Pagination */
.pagination {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pagination-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-item {
  display: inline-block;
}

.pagination-link,
.pagination-ellipsis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--primary-color, #003366);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #fff;
}

.pagination-link:hover {
  background: var(--primary-color, #003366);
  color: #fff;
  border-color: var(--primary-color, #003366);
}

.pagination-link.active {
  background: var(--primary-color, #003366);
  color: #fff;
  border-color: var(--primary-color, #003366);
  cursor: default;
}

.pagination-link.active:hover {
  background: var(--primary-color, #003366);
  color: #fff;
}

.pagination-prev,
.pagination-next {
  font-weight: 600;
}

.pagination-ellipsis span {
  border: none;
  color: #999;
  cursor: default;
}

.pagination-ellipsis span:hover {
  background: #fff;
  color: #999;
}

.pagination-info {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-page h1 {
    font-size: 2rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .news-article {
    padding: 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 5px;
  }

  .article-content {
    font-size: 1rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .related-news h3 {
    font-size: 1.3rem;
  }
}
