.page-news {
  background-color: var(--bg-dark-1);
  color: #ffffff; /* Default text color for dark background */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

/* Hero Section */
.page-news__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color, #1A237E) 0%, #0D144F 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-news__hero-title {
  font-size: 48px;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-news__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-news__btn-primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A237E);
}

.page-news__btn-primary:hover {
  background: #E0B500; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-news__section-title {
  font-size: 38px;
  color: var(--secondary-color, #FFD700);
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__section-subtitle {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.5;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-news__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to fill available space */
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__news-card-date {
  font-size: 13px;
  color: #999999;
  display: block;
  text-align: right;
  margin-top: auto;
}

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

.page-news__pagination-link,
.page-news__pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-next:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A237E);
}

.page-news__pagination-link--active {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A237E);
  cursor: default;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: var(--primary-color, #1A237E);
  margin-top: 40px;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 25px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color, #FFD700);
}

.page-news__category-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  margin: 0;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0D144F 0%, var(--primary-color, #1A237E) 100%);
  margin-top: 40px;
}

.page-news__cta-title {
  font-size: 42px;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-news__hero-section {
    padding: 60px 0;
    margin-bottom: 30px;
  }

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

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

  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

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

  .page-news__section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-news__latest-news-section {
    padding: 40px 0;
  }

  .page-news__news-grid {
    gap: 20px;
  }

  .page-news__news-card-image {
    height: 180px;
  }

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

  .page-news__news-card-excerpt {
    font-size: 14px;
  }

  .page-news__news-card-date {
    font-size: 12px;
  }

  .page-news__pagination {
    margin-top: 40px;
    gap: 8px;
  }

  .page-news__pagination-link,
  .page-news__pagination-next {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 14px;
  }

  .page-news__categories-section {
    padding: 40px 0;
    margin-top: 30px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .page-news__category-image {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
  }

  .page-news__category-title {
    font-size: 16px;
  }

  .page-news__cta-section {
    padding: 60px 0;
    margin-top: 30px;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__news-card,
  .page-news__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .page-news__news-card-content {
    padding: 15px;
  }
}