/* style/news.css */
:root {
  --primary-bg-color: #1A202C;
  --secondary-accent-color: #E53E3E;
  --tertiary-accent-color: #F6AD55;
  --text-light: #E2E8F0;
  --text-dark: #1A202C;
  --card-bg: #2D3748;
  --border-color: #4A5568;
}

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

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

.page-news .section-title {
  font-size: 2.5em;
  color: var(--tertiary-accent-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news .section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 60px 20px;
  background: linear-gradient(135deg, var(--primary-bg-color) 0%, #000000 100%);
}

.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%;
  max-height: 450px; /* Adjusted height for news hero */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news .hero-content h1 {
  font-size: 3.5em;
  color: var(--tertiary-accent-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-news .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-accent-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(229, 62, 62, 0.4);
}

.page-news .cta-button:hover {
  background: #C53030;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 62, 62, 0.6);
}

/* News Articles Section */
.page-news .news-articles-section {
  padding: 80px 0;
}

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

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

.page-news .news-card {
  background-color: var(--card-bg);
  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;
}

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

.page-news .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-news .card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

.page-news .card-title a:hover {
  color: var(--secondary-accent-color);
}

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

.page-news .card-excerpt {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-news .read-more {
  display: inline-block;
  color: var(--secondary-accent-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-news .read-more:hover {
  color: var(--tertiary-accent-color);
  transform: translateX(5px);
}

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

.page-news .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--card-bg);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news .page-link:hover, .page-news .page-link.active {
  background-color: var(--secondary-accent-color);
  color: #fff;
  border-color: var(--secondary-accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
}

/* Featured Content Section */
.page-news .featured-content-section {
  background-color: #2D3748;
  padding: 80px 0;
}

.page-news .featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-news .featured-item {
  background-color: var(--primary-bg-color);
  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;
}

.page-news .featured-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-news .featured-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-news .featured-item h3 {
  padding: 20px 25px 10px;
  font-size: 1.6em;
  line-height: 1.3;
}

.page-news .featured-item h3 a {
  color: var(--tertiary-accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .featured-item h3 a:hover {
  color: var(--secondary-accent-color);
}

.page-news .featured-item p {
  padding: 0 25px 25px;
  font-size: 1em;
  color: var(--text-light);
}

/* Call to Action Section */
.page-news .call-to-action-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #1A202C, #2D3748);
}

.page-news .call-to-action-section .section-title {
  color: var(--tertiary-accent-color);
}

.page-news .call-to-action-section p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.page-news .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news .faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  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 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-news .faq-question:hover {
  background: #3A475B;
  border-color: var(--secondary-accent-color);
}

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

.page-news .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--tertiary-accent-color);
  transition: transform 0.3s ease;
}

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

.page-news .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #2D3748;
  color: var(--text-light);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-news .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
}

.page-news .faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .hero-content h1 {
    font-size: 2.8em;
  }
  .page-news .section-title {
    font-size: 2em;
  }
  .page-news .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news .hero-section {
    padding: 40px 15px;
  }
  .page-news .hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-news .hero-content h1 {
    font-size: 2.2em;
  }
  .page-news .hero-content p {
    font-size: 1em;
  }
  .page-news .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news .news-articles-section, .page-news .featured-content-section, .page-news .call-to-action-section, .page-news .faq-section {
    padding: 50px 0;
  }
  .page-news .section-title {
    font-size: 1.8em;
  }
  .page-news .section-description {
    font-size: 0.95em;
  }
  .page-news .article-grid {
    gap: 30px;
  }
  .page-news .card-title {
    font-size: 1.3em;
  }
  .page-news .featured-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-news .featured-item h3 {
    font-size: 1.4em;
  }
  .page-news .faq-question {
    padding: 15px 20px;
  }
  .page-news .faq-question h3 {
    font-size: 1.1em;
  }
  .page-news .faq-toggle {
    font-size: 20px;
  }
  .page-news .faq-answer {
    padding: 15px 20px;
  }
  .page-news .pagination {
    margin-top: 40px;
    gap: 10px;
  }
  .page-news .page-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news .hero-content h1 {
    font-size: 1.8em;
  }
  .page-news .section-title {
    font-size: 1.6em;
  }
  .page-news .hero-image {
    max-height: 200px;
  }
  .page-news .news-card {
    margin-bottom: 20px;
  }
  .page-news .card-image {
    height: 180px;
  }
  .page-news .card-content {
    padding: 20px;
  }
  .page-news .card-title {
    font-size: 1.2em;
  }
  .page-news .featured-item h3 {
    font-size: 1.2em;
  }
  .page-news .faq-question h3 {
    font-size: 1em;
  }
  .page-news .faq-toggle {
    font-size: 18px;
  }
  .page-news .pagination {
    flex-wrap: wrap;
  }
  .page-news .page-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
}