/* General styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--card-bg, #08162B); /* Default to Deep Navy if --card-bg is not set */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

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

.page-news__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-news__dark-section,
.page-news__dark-bg {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-news__light-bg {
  background: #10233F; /* Card BG, still dark but lighter than Deep Navy */
  color: #F3F8FF; /* Text Main */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-news__hero-image-container {
  width: 100%;
  max-height: 600px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-news__hero-content-wrapper {
  position: relative; /* Relative to flow, not absolute over image */
  width: 100%;
  text-align: center;
  padding: 40px 0;
  background: #10233F; /* Card BG for content wrapper */
  box-sizing: border-box;
  margin-top: -5px; /* Slightly overlap with image for smooth transition */
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #1D5FD1; /* Auxiliary color */
  border-radius: 2px;
}

/* News Grid */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__news-card {
  background: #10233F; /* Card BG */
  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;
  border: 1px solid #244D84; /* Border */
}

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