/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Dark body background */
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for the banner */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0; /* Assumed shared.css handles body padding-top */
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
}

.page-news__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  line-height: 1.6;
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
  background-color: #000000;
}

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly translucent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.page-news__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #DC143C; /* Red for read more link */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  color: #FFD700;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #000080; /* Dark blue auxiliary color */
  text-align: center;
}

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

.page-news__cta-title {
  font-size: 40px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

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

.page-news__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
  border: 2px solid #FFD700;
}

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

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

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

/* Related Resources Section */
.page-news__related-resources-section {
  padding: 60px 0;
  background-color: #000000;
}

.page-news__resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.page-news__resource-list li {
  margin-bottom: 10px;
}

.page-news__resource-list a {
  display: block;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-news__resource-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFD700;
  color: #FFD700;
}

/* General image responsive styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }

  .page-news__hero-description {
    font-size: 16px;
  }

  .page-news__section-title {
    font-size: 28px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__cta-title {
    font-size: 34px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* HERO Banner */
  .page-news__hero-banner {
    height: 450px;
    padding-top: 0 !important; /* Fixed header offset */
  }

  .page-news__hero-overlay {
    padding: 15px;
  }

  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 14px;
    max-width: 90%;
  }

  /* Articles Section */
  .page-news__articles-section {
    padding: 40px 0;
  }

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

  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-top: 20px;
  }

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

  .page-news__article-image-wrapper {
    height: 200px;
  }

  .page-news__article-content {
    padding: 20px;
  }

  .page-news__article-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Related Resources Section */
  .page-news__related-resources-section {
    padding: 40px 0;
  }

  .page-news__resource-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-news__resource-list a {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* General image responsive styles for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers for mobile */
  .page-news__articles-section,
  .page-news__cta-section,
  .page-news__related-resources-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Special handling for logo-item if it were present, ensuring it's not affected by generic image rules */
  /* .page-news__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; box-sizing: border-box; } */
}