:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--deep-navy); /* A dark background from palette for the main page */
}

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

.page-news__section-title {
  font-size: 32px;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  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: var(--gold-color);
}

.page-news__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--deep-navy);
  overflow: hidden;
}

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

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.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.5);
}

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

.page-news__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: none;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-news__news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-news__card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-news__news-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-title:hover {
  color: var(--gold-color);
}

.page-news__card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-news__card-date {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 15px;
}

.page-news__read-more {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--gold-color);
}

.page-news__button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-news__categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__category-item:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

/* Promotional CTA Section */
.page-news__promo-cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-main);
}

.page-news__promo-cta-section .page-news__section-title {
  color: var(--gold-color);
}

.page-news__promo-cta-section .page-news__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

/* About Summary Section */
.page-news__about-summary-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.page-news__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-title {
    font-size: clamp(24px, 6vw, 36px);
  }

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

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

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

  .page-news__latest-news-section,
  .page-news__categories-section,
  .page-news__promo-cta-section,
  .page-news__about-summary-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-news__news-card img {
    height: 200px;
  }

  .page-news__card-title {
    font-size: 18px;
  }

  .page-news__card-excerpt,
  .page-news__card-date,
  .page-news__read-more {
    font-size: 14px;
  }

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

  .page-news__categories-grid {
    gap: 10px;
  }

  .page-news__category-item {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}