/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

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

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-news__video-cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__video-cta-button:hover {
  background-color: #6b0000;
  transform: translateY(-3px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-button:hover {
  background-color: #6b0000;
}

/* Featured Categories Section */
.page-news__featured-categories {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-news__category-title {
  font-size: 1.3em;
  color: #FFD700;
  margin: 15px 0 10px;
  padding: 0 15px;
}

.page-news__category-description {
  color: #cccccc;
  font-size: 0.9em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* About Us / Features Section */
.page-news__about-us-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-news__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-news__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-news__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-news__feature-description {
  color: #cccccc;
  font-size: 0.95em;
}

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

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-subtitle {
  color: #ffffff;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.page-news__btn-primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-news__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: #FFD700;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  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-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  color: #FFD700;
  font-weight: bold;
  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 20px;
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-subtitle {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    height: auto;
    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__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-subtitle {
    font-size: 0.9em;
  }
  .page-news__video-section, .page-news__latest-articles, .page-news__featured-categories, .page-news__about-us-section, .page-news__cta-section, .page-news__faq-section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }

  /* Image responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-card, .page-news__category-card, .page-news__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video 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;
  }
  .page-news__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: auto !important;
  }

  /* Button responsive */
  .page-news__hero-button,
  .page-news__video-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;
    text-align: center;
  }
  .page-news__button-group {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .page-news__button-group a {
    margin: 0 auto; /* Center buttons when stacked */
  }

  /* FAQ responsive */
  .page-news__faq-question, .page-news__faq-answer {
    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.5em;
  }
  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__features-grid {
    grid-template-columns: 1fr;
  }
}