/* style/news.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #003366;
  --border-color: #e0e0e0;
}

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

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-title--light {
  color: var(--text-color-light);
}

.page-news__section-description {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  color: var(--text-color-light);
  padding-top: var(--header-offset, 120px);
  text-align: center;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 2;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__cta-buttons--center {
  margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Grid Cards */
.page-news__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__card {
  background-color: var(--text-color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-news__card-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-news__card-text {
  font-size: 1em;
  color: #666;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
}

.page-news__card-link:hover {
  text-decoration: underline;
}

/* Article List */
.page-news__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.page-news__article-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--text-color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-news__article-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 250px; /* Ensure minimum size */
}

.page-news__article-content {
  padding: 30px;
  flex-grow: 1;
}

.page-news__article-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-news__article-text {
  font-size: 1.05em;
  color: #666;
  margin-bottom: 20px;
}

.page-news__article-read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__article-read-more:hover {
  text-decoration: underline;
}

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

.page-news__community-item {
  background-color: var(--text-color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
}

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

.page-news__community-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-news__community-title a {
  text-decoration: none;
  color: inherit;
}

.page-news__community-title a:hover {
  color: var(--secondary-color);
}

.page-news__community-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px;
}

/* Video Section */
.page-news__video-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--text-color-light);
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-news__faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f4f8;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #e0e6eb;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 1em;
}

.page-news__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Bottom CTA */
.page-news__cta-bottom {
  padding: 80px 0;
}

.page-news__cta-container {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-item {
    flex-direction: column;
  }
  .page-news__article-image {
    width: 100%;
    height: auto;
    min-width: unset;
  }
  .page-news__article-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__grid-cards,
  .page-news__community-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-news__card,
  .page-news__community-item {
    padding-bottom: 15px;
  }
  .page-news__card-title,
  .page-news__community-title {
    font-size: 1.3em;
    margin: 15px 15px 8px;
  }
  .page-news__card-text,
  .page-news__community-text {
    padding: 0 15px;
  }
  .page-news__article-list {
    padding: 0 15px;
  }
  .page-news__article-item {
    flex-direction: column;
  }
  .page-news__article-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-news__article-content {
    padding: 15px;
  }
  .page-news__article-title {
    font-size: 1.5em;
  }
  .page-news__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto 30px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
  }
  .page-news__faq-list {
    padding: 0 15px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }
  .page-news__cta-bottom {
    padding: 50px 0;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right might be needed on containers if not already handled by .page-news__container */
  }
  /* Specific padding for sections if not handled by .page-news__container */
  .page-news__section:not(.page-news__hero-section):not(.page-news__video-section) .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__card-title,
  .page-news__community-title {
    font-size: 1.2em;
  }
}

/* Dark background for sections */
.page-news__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

/* Ensure text contrast for default light background */
.page-news p,
.page-news li,
.page-news__card-text,
.page-news__article-text,
.page-news__community-text,
.page-news__faq-answer {
  color: var(--text-color-dark);
}

.page-news__section-description--light,
.page-news__hero-description,
.page-news__cta-description--light {
  color: #f0f0f0;
}