/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #1A2A44, #3a4a64); /* Darker gradient for hero */
  color: #ffffff;
}

.page-news__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #FFCC00); /* Use accent color for CTA */
  color: #1A2A44; /* Dark text on bright button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: var(--secondary-color, #e6b800); /* Slightly darker yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-2, #1A2A44); /* A slightly different dark background */
  color: #f0f0f0;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFCC00;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-card {
  background: var(--dark-bg-3, #2a3b54); /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 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 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

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

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

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  align-self: flex-end;
}

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--dark-bg-3, #2a3b54);
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-item:hover {
  background: #FFCC00;
  color: #1A2A44;
}

.page-news__pagination-item.page-news__pagination-current {
  background: #FFCC00;
  color: #1A2A44;
  cursor: default;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #FFCC00, #e6b800); /* Bright gradient for CTA */
  color: #1A2A44; /* Dark text on bright background */
  text-align: center;
}

.page-news__cta-section .page-news__container {
  background: none; /* Override dark-bg for this section */
  padding: 0;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #1A2A44;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-news__cta-section .page-news__btn-primary {
  background: #1A2A44; /* Dark button on bright background */
  color: #ffffff;
  border: none;
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-section .page-news__btn-primary:hover {
  background: #0f1c2e; /* Even darker on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Related Topics Section */
.page-news__related-topics-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1, #0d0d0d); /* Darkest background for this section */
  color: #f0f0f0;
}

.page-news__related-topics-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__related-topics-list li {
  margin: 0;
}

.page-news__related-topics-list a {
  display: block;
  padding: 12px 25px;
  background: var(--dark-bg-3, #2a3b54);
  color: #FFCC00;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__related-topics-list a:hover {
  background: #FFCC00;
  color: #1A2A44;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content h1 {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-title {
    font-size: 2.4em;
  }
  .page-news__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-content h1 {
    font-size: 2.2em;
  }
  .page-news__hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-news__latest-articles-section,
  .page-news__cta-section,
  .page-news__related-topics-section {
    padding: 40px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .page-news__article-image {
    height: 160px;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__article-excerpt {
    font-size: 0.9em;
  }
  
  .page-news__pagination {
    margin-top: 40px;
    gap: 8px;
  }
  .page-news__pagination-item {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-section .page-news__btn-primary {
    padding: 15px 35px;
    font-size: 18px;
  }

  .page-news__related-topics-list a {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  /* Ensure all images and containers are responsive on mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content h1 {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__related-topics-list a {
    font-size: 0.85em;
    padding: 8px 15px;
  }
}