/* style/news.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --background-dark: #1a2a40;
  --background-light: #ffffff;
  --card-background: #1a2a40;
  --border-color: #3e4c5e;
}

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

.page-news h1, .page-news h2, .page-news h3, .page-news h4, .page-news h5, .page-news h6 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-news a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news .cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.page-news .cta-button:hover {
  background-color: #e6c200;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Hero Banner Section */
.page-news .hero-banner {
  position: relative;
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--background-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news .hero-banner .hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.page-news .hero-banner .hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  display: block;
}

.page-news .hero-banner .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news .hero-banner .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

/* News Grid Section */
.page-news .news-grid {
  padding: 60px 20px;
  background-color: var(--primary-color);
  text-align: center;
}

.page-news .news-grid h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-news .news-grid p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news .news-grid .articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news .news-grid .news-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-news .news-grid .news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news .news-grid .news-card .card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news .news-grid .news-card .card-content h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news .news-grid .news-card .card-content h3 .article-link {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-news .news-grid .news-card .card-content h3 .article-link:hover {
  color: #fff;
}

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

.page-news .news-grid .news-card .card-content p {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
}

.page-news .news-grid .news-card .read-more-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news .news-grid .news-card .read-more-button:hover {
  background-color: #e6c200;
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-news .pagination .page-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--card-background);
  color: var(--secondary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-news .pagination .page-link:hover, .page-news .pagination .page-link.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
}

/* Categories Section */
.page-news .categories-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  text-align: center;
}

.page-news .categories-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-news .categories-section p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news .categories-section .categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news .categories-section .category-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news .categories-section .category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-news .categories-section .category-card .category-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-news .categories-section .category-card h3 {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-news .categories-section .category-card p {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 0;
}

/* CTA Section */
.page-news .cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
  text-align: center;
}

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

.page-news .cta-section h2 {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-news .cta-section p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

/* FAQ Section */
.page-news .faq-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
}

.page-news .faq-section h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

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

.page-news .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-background);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--background-dark);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-news .faq-question:hover {
  background-color: #2c3e50;
}

.page-news .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
  flex-grow: 1;
}

.page-news .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-news .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: var(--card-background);
}

.page-news .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px;
}

.page-news .faq-answer p {
  margin: 0;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .hero-banner .hero-content h1 {
    font-size: 2.8em;
  }
  .page-news .news-grid .articles-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news .categories-section .categories-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .page-news .cta-section h2 {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-news .hero-banner {
    padding: 60px 0;
  }
  .page-news .hero-banner .hero-content h1 {
    font-size: 2.2em;
  }
  .page-news .hero-banner .hero-content p {
    font-size: 1em;
  }
  .page-news .news-grid, .page-news .categories-section, .page-news .cta-section, .page-news .faq-section {
    padding: 40px 15px;
  }
  .page-news .news-grid h2, .page-news .categories-section h2, .page-news .cta-section h2, .page-news .faq-section h2 {
    font-size: 2em;
  }
  .page-news .news-grid .articles-container {
    grid-template-columns: 1fr;
  }
  .page-news .categories-section .categories-container {
    grid-template-columns: 1fr;
  }
  .page-news .cta-button {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-news .faq-question {
    padding: 15px;
  }
  .page-news .faq-question h3 {
    font-size: 1.1em;
  }
  .page-news .faq-toggle {
    font-size: 1.5em;
  }
  .page-news .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-news .hero-banner .hero-content h1 {
    font-size: 1.8em;
  }
  .page-news .news-grid h2, .page-news .categories-section h2, .page-news .cta-section h2, .page-news .faq-section h2 {
    font-size: 1.8em;
  }
  .page-news .cta-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}