/* style/news.css */
.page-news {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
}

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

.page-news__section-title,
.page-news__hero-title,
.page-news__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.page-news__section-description,
.page-news__hero-description,
.page-news__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-news__light-bg {
  background-color: #0a0a0a; /* Dark background from shared.css */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 2;
  padding-top: 0; /* Already handled by section padding-top */
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 50px;
}

.page-news__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-news__card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #FFFF00; /* Highlight color for links */
}

.page-news__card-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #FFFF00; /* Highlight color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

/* Featured Categories */
.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__category-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-news__category-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__category-title a:hover {
  color: #FFFF00;
}

.page-news__category-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-news__btn-link:hover {
  background-color: #a00606;
}

/* About Us / Features Section */
.page-news__about-us p {
  color: #f0f0f0;
}

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

.page-news__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-news__feature-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-news__feature-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* CTA Section */
.page-news__cta-section {
  text-align: center;
  background-color: #017439;
  padding: 60px 0;
}

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

/* FAQ Section */
.page-news__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-news__faq-list {
  margin-top: 50px;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFFF00;
  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: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Global image and container responsive styles for mobile */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news video,
.page-news__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-section,
.page-news__video-container,
.page-news__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__section-description,
  .page-news__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__article-grid,
  .page-news__category-grid,
  .page-news__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-icon {
    max-width: 150px;
  }

  .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;
  }

  /* Force responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__feature-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile responsive */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button specific mobile responsive */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}