/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #FFFFFF;
  --text-dark: #1A1A1A;
  --accent-color: #E53935; /* A subtle red for highlights, ensuring contrast */
  --border-color: #333333;
  --bg-dark-light: #2c2c2c;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--secondary-color);
  line-height: 1.6;
}

.page-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-news .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
  border-bottom: 2px solid var(--primary-color);
}

.page-news .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-news .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news .hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: bold;
}

.page-news .hero-subtitle {
  font-size: 1.3em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.page-news .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-news .cta-button:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Section Titles */
.page-news .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
  position: relative;
}

.page-news .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Latest News Section */
.page-news .latest-news-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-news .news-card {
  background-color: var(--bg-dark-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news .news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news .news-card-content {
  padding: 25px;
}

.page-news .news-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  min-height: 70px; /* Ensure consistent card height */
}

.page-news .news-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .news-card-title a:hover {
  color: #e0b800;
}

.page-news .news-card-meta {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-news .news-card-excerpt {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news .read-more-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-news .read-more-button:hover {
  background-color: #e0b800;
}

/* News Categories Section */
.page-news .news-categories-section {
  padding: 60px 0;
  background-color: #111;
}

.page-news .category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news .category-item {
  background-color: var(--bg-dark-light);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-news .category-item:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

/* All Articles Section */
.page-news .all-articles-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-news .article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news .article-item {
  display: flex;
  background-color: var(--bg-dark-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news .article-thumb {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news .article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news .article-title {
  font-size: 1.4em;
  margin-bottom: 8px;
}

.page-news .article-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .article-title a:hover {
  color: #e0b800;
}

.page-news .article-meta {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 10px;
}

.page-news .article-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news .read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news .read-more-link:hover {
  color: #e0b800;
}

.page-news .pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news .page-link {
  background-color: var(--bg-dark-light);
  color: var(--primary-color);
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-news .page-link:hover,
.page-news .page-link.active {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

/* Promotional Banner */
.page-news .promo-banner {
  background: linear-gradient(90deg, #1A1A1A, #333333);
  padding: 80px 0;
  text-align: center;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.page-news .promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news .promo-title {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-news .promo-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-news .promo-button {
  font-size: 1.2em;
  padding: 18px 50px;
}

/* FAQ Section */
.page-news .faq-section {
  padding: 60px 0;
  background-color: #111;
}

.page-news .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-dark-light);
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background: #333333;
  color: #e0b800;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #1A1A1A;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .hero-title {
    font-size: 2.8em;
  }
  .page-news .hero-subtitle {
    font-size: 1.1em;
  }
  .page-news .news-card-title {
    font-size: 1.3em;
  }
  .page-news .article-item {
    flex-direction: column;
  }
  .page-news .article-thumb {
    width: 100%;
    height: 200px;
  }
  .page-news .promo-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news .hero-section {
    padding: 60px 15px;
  }
  .page-news .hero-title {
    font-size: 2.2em;
  }
  .page-news .hero-subtitle {
    font-size: 1em;
  }
  .page-news .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-news .news-grid {
    grid-template-columns: 1fr;
  }
  .page-news .news-card-content {
    padding: 20px;
  }
  .page-news .news-card-title {
    font-size: 1.2em;
    min-height: auto;
  }
  .page-news .category-list {
    gap: 10px;
  }
  .page-news .category-item {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-news .article-item {
    flex-direction: column;
  }
  .page-news .article-thumb {
    width: 100%;
    height: 180px;
  }
  .page-news .article-content {
    padding: 15px;
  }
  .page-news .article-title {
    font-size: 1.2em;
  }
  .page-news .promo-banner {
    padding: 60px 15px;
  }
  .page-news .promo-title {
    font-size: 1.8em;
  }
  .page-news .promo-description {
    font-size: 1em;
  }
  .page-news .promo-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news .hero-title {
    font-size: 1.8em;
  }
  .page-news .section-title {
    font-size: 1.8em;
  }
  .page-news .promo-title {
    font-size: 1.6em;
  }
  .page-news .category-item {
    font-size: 0.85em;
    padding: 8px 15px;
  }
  .page-news .article-thumb {
    height: 150px;
  }
}