/* style/news.css */
.page-news {
  background-color: var(--background);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, so this is just for decorative top padding */
  background-color: var(--deep-green);
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  z-index: 1;
  color: var(--text-main);
}

.page-news__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* CTA Button Base */
.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

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

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__news-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

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

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

.page-news__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

.page-news__card-title a:hover {
  color: var(--gold-color);
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-news__read-more-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more-link:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Featured Section */
.page-news__featured-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-news__featured-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-news__featured-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__featured-text {
  max-width: 700px;
  text-align: center;
}

.page-news__featured-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__featured-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--background);
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  color: var(--text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  margin-left: 20px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-news__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
  }
  .page-news__featured-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }
  .page-news__featured-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: 2rem;
  }
  .page-news__hero-description {
    font-size: 1rem;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__section-description {
    font-size: 0.9rem;
  }
  .page-news__featured-content {
    flex-direction: column;
    text-align: center;
  }
  .page-news__featured-text {
    text-align: center;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive containers for images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-section,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__news-card,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-news__hero-image-wrapper {
    max-height: none;
  }

  .page-news__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
}