/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: #121212; /* Consistent with body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-intro {
  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;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.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-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

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

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

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

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

.page-news__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
}

.page-news__card-image {
  width: 100%;
  height: 250px;
  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.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-news__card-title a:hover {
  color: #e0b800;
}

.page-news__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #e0b800;
}

/* Feature Article Section */
.page-news__dark-section {
  background-color: #8B0000; /* Dark red background */
  padding: 60px 0;
  color: #ffffff;
}

.page-news__dark-section .page-news__section-title {
  color: #FFD700; /* Gold title on dark red */
}

.page-news__dark-section .page-news__section-intro {
  color: #f0f0f0;
}

.page-news__article-content {
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
}

.page-news__article-heading {
  font-size: 2em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__article-paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__article-paragraph a {
  color: #FFD700;
  text-decoration: underline;
}

.page-news__article-paragraph a:hover {
  color: #e0b800;
}

.page-news__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

/* Video Section */
.page-news__video-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  text-align: center;
}

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

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

/* Tips Section */
.page-news__light-bg {
  background-color: #121212; /* Default dark background for content */
  color: #ffffff;
}

.page-news__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-news__tips-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-news__tips-heading {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__tips-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-news__tips-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-news__tips-description a:hover {
  color: #e0b800;
}

.page-news__cta-group--center {
  margin-top: 40px;
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
  color: #FFD700;
}

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

.page-news__faq-item {
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

.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: #f0f0f0;
}

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

.page-news__faq-paragraph a {
  color: #FFD700;
  text-decoration: underline;
}

.page-news__faq-paragraph a:hover {
  color: #e0b800;
}

/* Final CTA Section */
.page-news__final-cta-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-heading {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-news__cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__content-area,
  .page-news__hero-content,
  .page-news__video-wrapper,
  .page-news__faq-container,
  .page-news__cta-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-news img,
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    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__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-news__news-grid,
  .page-news__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__article-heading {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
}