.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is #000 from shared.css */
}

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-news__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: var(--header-offset, 120px); /* Ensure header spacing */
  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%;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.9); /* Semi-transparent dark background */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__main-title {
  font-size: 48px;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__intro-text {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary brand color */
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

.page-news__cta-button:hover {
  background: #fff; /* White on hover */
  color: #1A1A1A;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background-color: #1A1A1A;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-news__article-card {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

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

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

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

.page-news__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__card-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #fff;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

/* Categories Section */
.page-news__categories {
  background: #1A1A1A;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

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

.page-news__category-item {
  display: inline-block;
  padding: 12px 25px;
  background: #333;
  color: #FFD700;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid #FFD700;
}

.page-news__category-item:hover {
  background: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* All Articles List */
.page-news__all-articles {
  background-color: #000;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: #1A1A1A;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__list-image {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-news__list-content {
  text-align: left;
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__list-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #fff;
}

.page-news__list-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__list-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
  display: block;
}

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

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover {
  background: #FFD700;
  color: #1A1A1A;
}

.page-news__pagination-active {
  background: #FFD700;
  color: #1A1A1A;
  cursor: default;
}

/* CTA Banner */
.page-news__cta-banner {
  background: linear-gradient(90deg, #1A1A1A, #333333);
  padding: 80px 0;
  border-top: 1px solid #444;
}

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

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

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

.page-news__btn-primary {
  background: #FFD700;
  color: #1A1A1A;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-news__btn-primary:hover {
  background: #fff;
  color: #1A1A1A;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-news__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.page-news__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
  border-color: #FFD700;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 42px;
  }
  .page-news__intro-text {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__article-card {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-news__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news__list-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  .page-news__list-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 20px;
  }
  .page-news__main-title {
    font-size: 32px;
  }
  .page-news__intro-text {
    font-size: 16px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    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 {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card {
    max-width: 100%;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 14px;
  }
  .page-news__category-item {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-news__list-item {
    padding: 15px;
  }
  .page-news__list-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-news__list-title {
    font-size: 18px;
  }
  .page-news__list-excerpt {
    font-size: 14px;
  }
  .page-news__list-date {
    font-size: 13px;
  }
  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-buttons .page-news__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Ensure all images and their containers are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__article-list,
  .page-news__list-item,
  .page-news__category-list,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__hero-image {
    border-radius: 0;
  }
  .page-news__hero-content {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__cta-title {
    font-size: 28px;
  }
}

/* Color contrast fixes */
.page-news__dark-bg {
  color: #ffffff;
  background: #1A1A1A;
}
.page-news__light-bg {
  color: #333333;
  background: #ffffff;
}
.page-news__medium-bg {
  color: #000000;
  background: #FFD700;
}

.page-news__content-area, .page-news__text-block {
  color: #f0f0f0;
  background: transparent;
}
.page-news p, .page-news li {
  color: #f0f0f0;
}
.page-news__card {
  background: #1A1A1A;
  color: #f0f0f0;
  border: 1px solid #333;
}
.page-news__dark-section {
  background: #1A1A1A;
  color: #ffffff;
}
.page-news__btn-primary {
  background: #FFD700;
  color: #1A1A1A;
}
.page-news__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}