/* style/news.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-news {
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Assuming shared.css body is dark, this section uses a light background */
}

.page-news__hero-banner {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
  box-sizing: border-box;
}

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

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-news__hero-subtitle {
  font-size: 1.3em;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--text-light);
}

.page-news__articles-section,
.page-news__latest-articles-section,
.page-news__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  box-sizing: border-box;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

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

.page-news__article-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-news__article-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-excerpt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__article-excerpt a:hover {
  text-decoration: underline;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.page-news__article-date {
  font-size: 0.9em;
  color: #888888;
  margin-top: 15px;
  align-self: flex-end;
}

.page-news__articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-news__list-item {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-news__list-item-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-news__list-item-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-news__list-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-news__list-item-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__list-item-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-news__list-item-excerpt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__list-item-excerpt a:hover {
  text-decoration: underline;
}

.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: var(--secondary-color);
  text-decoration: underline;
}

.page-news__list-item-date {
  font-size: 0.85em;
  color: #888888;
  margin-top: 10px;
  display: block;
}

/* FAQ Section Styles */
.page-news__faq-list {
  margin-top: 30px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #444444;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 1em;
}

.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-news__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-news__faq-question:active {
  background: #eeeeee;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allows click on parent */
  color: var(--text-dark);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Allows click on parent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Visually change + to X or similar */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-subtitle {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__list-item-image {
    width: 200px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding: 40px 15px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-subtitle {
    font-size: 1em;
  }
  .page-news__articles-section,
  .page-news__latest-articles-section,
  .page-news__faq-section {
    padding: 40px 15px;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__article-excerpt {
    font-size: 0.95em;
  }
  .page-news__list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news__list-item-image {
    width: 100% !important;
    height: 200px !important;
    border-radius: 10px 10px 0 0;
  }
  .page-news__list-item-content {
    padding: 20px;
  }
  .page-news__list-item-title {
    font-size: 1.2em;
  }
  .page-news__list-item-excerpt {
    font-size: 0.9em;
  }
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-section,
  .page-news__latest-articles-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-subtitle {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__list-item-title {
    font-size: 1.1em;
  }
  .page-news__article-image {
    height: 150px;
  }
  .page-news__list-item-image {
    height: 150px !important;
  }
}