/* style/resources-latest-news.css */

/* Base styles for the page content */
.page-resources-latest-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background-color: #1a1a2e; /* Inherited from body, explicit for context */
}

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

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

.page-resources-latest-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Primary brand color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-latest-news__section-description {
  font-size: 1.1em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-resources-latest-news__hero-section {
  position: relative;
  padding: 100px 0 60px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  overflow: hidden;
}

.page-resources-latest-news__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-resources-latest-news__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-resources-latest-news__hero-image-wrapper {
  margin: 40px auto;
  max-width: 1000px; /* Adjust as needed */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* CTA Buttons */
.page-resources-latest-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

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

.page-resources-latest-news__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
}

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

.page-resources-latest-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-resources-latest-news__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-latest-news__text-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Article Grid */
.page-resources-latest-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-resources-latest-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFD700;
  flex-grow: 1;
}

.page-resources-latest-news__article-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-latest-news__article-title a:hover {
  text-decoration: underline;
}

.page-resources-latest-news__article-meta {
  font-size: 0.9em;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-resources-latest-news__article-excerpt {
  font-size: 1em;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Featured Articles */
.page-resources-latest-news__featured-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-latest-news__featured-card {
  background-color: rgba(0, 0, 128, 0.6); /* Auxiliary color for dark section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  text-align: left;
}

.page-resources-latest-news__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-resources-latest-news__featured-content {
  padding: 30px;
  width: 50%;
}

.page-resources-latest-news__featured-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-latest-news__featured-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-latest-news__featured-title a:hover {
  text-decoration: underline;
}

.page-resources-latest-news__featured-excerpt {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 25px;
}

/* Content Blocks */
.page-resources-latest-news__content-block {
  text-align: left;
  margin-top: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-resources-latest-news__content-subtitle {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-latest-news__content-block p {
  color: #ffffff;
  margin-bottom: 15px;
}

/* Promo Banner */
.page-resources-latest-news__promo-banner {
  margin-top: 40px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-news__promo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources-latest-news__promo-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 18px 40px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-resources-latest-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #000080;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-latest-news__faq-question:hover {
  background-color: #0000a0;
}

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

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

.page-resources-latest-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.page-resources-latest-news__faq-item.active .page-resources-latest-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
  color: #ffffff;
}

.page-resources-latest-news__faq-answer p {
  margin-bottom: 10px;
  color: #ffffff;
}

/* CTA Section at bottom */
.page-resources-latest-news__cta-section {
  padding: 80px 0;
  background-color: #000080;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-latest-news__cta-section .page-resources-latest-news__section-title {
  color: #FFD700;
}

.page-resources-latest-news__cta-section .page-resources-latest-news__section-description {
  color: #ffffff;
}

.page-resources-latest-news__cta-image {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.2;
  z-index: 1;
  width: 500px; /* Large image for background effect */
  height: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-latest-news__hero-title {
    font-size: 2.8em;
  }
  .page-resources-latest-news__hero-description {
    font-size: 1.2em;
  }
  .page-resources-latest-news__section-title {
    font-size: 2.2em;
  }
  .page-resources-latest-news__featured-card {
    flex-direction: column;
  }
  .page-resources-latest-news__featured-image,
  .page-resources-latest-news__featured-content {
    width: 100%;
  }
  .page-resources-latest-news__promo-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-resources-latest-news__cta-image {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-latest-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    padding: 60px 0;
  }
  .page-resources-latest-news__hero-title {
    font-size: 2.2em;
  }
  .page-resources-latest-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources-latest-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources-latest-news__btn-primary,
  .page-resources-latest-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-latest-news__articles-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-resources-latest-news__section-title {
    font-size: 1.8em;
  }
  .page-resources-latest-news__section-description {
    font-size: 0.95em;
  }
  .page-resources-latest-news__featured-articles {
    padding: 0 15px;
  }
  .page-resources-latest-news__featured-content {
    padding: 20px;
  }
  .page-resources-latest-news__featured-title {
    font-size: 1.5em;
  }
  .page-resources-latest-news__featured-excerpt {
    font-size: 1em;
  }
  .page-resources-latest-news__promo-button {
    width: calc(100% - 30px) !important;
    left: 15px;
    transform: translateX(0);
  }
  .page-resources-latest-news__faq-list {
    padding: 0 15px;
  }
  .page-resources-latest-news__faq-question,
  .page-resources-latest-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-latest-news__cta-image {
    display: none;
  }
  /* Ensure all images are responsive */
  .page-resources-latest-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-latest-news__hero-image-wrapper,
  .page-resources-latest-news__article-card,
  .page-resources-latest-news__featured-card,
  .page-resources-latest-news__promo-banner,
  .page-resources-latest-news__content-block,
  .page-resources-latest-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
  .page-resources-latest-news__hero-image-wrapper,
  .page-resources-latest-news__promo-banner {
    padding: 0;
  }
  .page-resources-latest-news__section,
  .page-resources-latest-news__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources-latest-news__container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-resources-latest-news__hero-title {
    font-size: 1.8em;
  }
  .page-resources-latest-news__section-title {
    font-size: 1.5em;
  }
  .page-resources-latest-news__featured-title {
    font-size: 1.3em;
  }
  .page-resources-latest-news__promo-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}

/* Color Contrast Fixes for specific scenarios if needed */
.page-resources-latest-news__dark-bg {
  background-color: #000080; /* Auxiliary color */
  color: #ffffff;
}

.page-resources-latest-news__light-bg {
  background-color: #1a1a2e; /* Body background, considered light for text on cards */
  color: #ffffff;
}

.page-resources-latest-news__content-area p,
.page-resources-latest-news__content-area li {
  color: #ffffff; /* Ensure white text on dark body background */
}

.page-resources-latest-news__article-card,
.page-resources-latest-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background on dark body */
  color: #ffffff;
}

.page-resources-latest-news__faq-question {
  background-color: #000080; /* Darker background for question header */
  color: #FFD700; /* Gold text on dark blue */
}

.page-resources-latest-news__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
}

.page-resources-latest-news__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}
.page-resources-latest-news__btn-secondary:hover {
  color: #000080;
  background-color: #FFD700;
}