/* style/news.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Blue/Grey */
  --text-light: #F8F8F8;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-medium: #1A202C;
  --background-light: #2D3748;
  --border-color: #3B4557;
}

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

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

/* Hero Section */
.page-news-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-medium);
  overflow: hidden;
}

.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%;
  height: auto;
  max-height: 450px; /* Adjusted for news banner, not full screen 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%;
  padding: 20px;
  background-color: rgba(26, 32, 44, 0.7); /* Semi-transparent background for text */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly */
}

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

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

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

.page-news-cta-button:hover {
  background: #FFEB3B; /* Lighter gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* News Articles Section */
.page-news-articles {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-news-articles h2 {
  font-size: 2.8em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

.page-news-card {
  background-color: var(--background-medium);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news-card:hover .page-news-card-image {
  transform: scale(1.05);
}

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

.page-news-card-content h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news-card-content p {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-news-date {
  font-size: 0.85em;
  color: #AAAAAA;
  margin-bottom: 10px;
}

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

.page-news-pagination-link {
  display: inline-block;
  padding: 12px 18px;
  background-color: var(--background-medium);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-news-pagination-link:hover:not(.page-news-disabled):not(.page-news-active) {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-news-pagination-link.page-news-active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  cursor: default;
}

.page-news-pagination-link.page-news-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--border-color);
  color: #AAAAAA;
}

/* CTA Section */
.page-news-cta-section {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--background-light) 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-news-cta-content h3 {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news-cta-content p {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-news-faq h2 {
  font-size: 2.8em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ default state - answer hidden */
.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(--background-light);
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

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

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

/* Question styling */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--background-medium);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--background-light);
  border-color: var(--primary-color);
}

.faq-item.active .faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: var(--background-light); /* Hide bottom border when open */
}

.faq-question h3 {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

/* Toggle icon */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

/* Copyright */
.page-news-copyright {
  background-color: var(--background-medium);
  padding: 25px 0;
  text-align: center;
  font-size: 0.9em;
  color: #AAAAAA;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-hero-content h1 {
    font-size: 2.8em;
  }
  .page-news-hero-content p {
    font-size: 1.1em;
  }
  .page-news-articles h2, .page-news-cta-content h3, .page-news-faq h2 {
    font-size: 2.4em;
  }
  .page-news-card-content h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-news-hero {
    padding: 40px 15px;
  }
  .page-news-hero-image {
    max-height: 300px;
  }
  .page-news-hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .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-articles {
    padding: 40px 0;
  }
  .page-news-articles h2, .page-news-cta-content h3, .page-news-faq h2 {
    font-size: 2em;
  }
  .page-news-intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news-grid {
    grid-template-columns: 1fr;
  }
  .page-news-card-image {
    height: 180px;
  }
  .page-news-card-content {
    padding: 20px;
  }
  .page-news-card-content h3 {
    font-size: 1.2em;
  }
  .page-news-cta-section {
    padding: 60px 0;
  }
  .page-news-cta-content h3 {
    font-size: 2.2em;
  }
  .page-news-faq {
    padding: 40px 0;
  }
  .page-news-faq h2 {
    margin-bottom: 30px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-news-hero-content h1 {
    font-size: 1.8em;
  }
  .page-news-hero-content p {
    font-size: 0.9em;
  }
  .page-news-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-news-articles h2, .page-news-cta-content h3, .page-news-faq h2 {
    font-size: 1.8em;
  }
  .page-news-pagination-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}