/* style/news.css */
.page-news {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Assuming shared.css sets body background to #000000 */
}

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

.page-news__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #003366; /* Main brand color */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.page-news__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold accent for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-news__hero-button:hover {
  background-color: #e6c200;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-news__latest-news-section,
.page-news__insights-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-news__dark-bg {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-news__news-card,
.page-news__promo-card,
.page-news__insight-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover,
.page-news__promo-card:hover,
.page-news__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-news__news-card-image,
.page-news__promo-card-image,
.page-news__insight-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__promo-card-image {
  height: 180px;
}

.page-news__insight-card-image {
  height: 250px;
}

.page-news__news-card-content,
.page-news__promo-card-content,
.page-news__insight-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title,
.page-news__promo-card-title,
.page-news__insight-card-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__news-card-title a,
.page-news__promo-card-title a,
.page-news__insight-card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__promo-card-title a:hover,
.page-news__insight-card-title a:hover {
  color: #fff;
}

.page-news__news-card-excerpt,
.page-news__promo-card-excerpt,
.page-news__insight-card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-button,
.page-news__promo-card-button,
.page-news__insight-card-button {
  display: inline-block;
  background-color: #003366;
  color: #FFD700;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__news-card-button:hover,
.page-news__promo-card-button:hover,
.page-news__insight-card-button:hover {
  background-color: #FFD700;
  color: #003366;
}

.page-news__faq-section {
  padding: 60px 0;
}

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

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

.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-question-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

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

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

.page-news__faq-answer p {
  margin: 0;
  color: #cccccc;
}

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
}

.page-news__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-button,
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-news__news-card-button,
  .page-news__promo-card-button,
  .page-news__insight-card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-news__news-card-image,
  .page-news__promo-card-image,
  .page-news__insight-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__insights-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__faq-question-title {
    font-size: 1.1em;
  }
  
  /* Ensure all img tags within .page-news are responsive */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all sections/divs containing images/buttons/videos are responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-content,
  .page-news__hero-image-wrapper,
  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__insights-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}