.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-news__section-title {
  font-size: 36px;
  color: #E3B505;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-news__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #E3B505;
  border: 2px solid #E3B505;
}

.page-news__btn-secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-news__read-more {
  color: #E3B505;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

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

.page-news__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(3px);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-news__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-news__hero-content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: #ffffff;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #E3B505;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__category-card:hover {
  background-color: rgba(227, 181, 5, 0.15);
  border-color: #E3B505;
  transform: translateY(-5px);
}

.page-news__category-card--inactive {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-news__category-card--inactive:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.page-news__category-icon {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1;
}

.page-news__category-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #E3B505;
}

/* Featured Articles */
.page-news__featured-articles {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-news__article-card {
  background-color: #0A2463;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-news__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image-wrapper img {
  transform: scale(1.05);
}

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E3B505;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: #ffc107;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Latest Articles List */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #0A2463;
}

.page-news__articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__list-item {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__list-item-image {
  width: 300px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.page-news__list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news__list-item-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-news__list-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E3B505;
  line-height: 1.3;
}

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

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

.page-news__list-item-meta {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-news__list-item-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #E3B505;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 18px;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #E3B505;
  color: #0A2463;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  text-align: center;
}

.page-news__cta-title {
  font-size: 40px;
  font-weight: 800;
  color: #E3B505;
  margin-bottom: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 42px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news__list-item-image {
    width: 100%;
    height: 220px;
  }
  .page-news__list-item-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__container {
    padding: 15px;
  }
  .page-news__section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .page-news__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__categories-section,
  .page-news__featured-articles,
  .page-news__latest-articles,
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__article-image-wrapper {
    height: 200px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__list-item {
    margin-bottom: 15px;
  }
  .page-news__list-item-image {
    height: 180px;
  }
  .page-news__list-item-title {
    font-size: 18px;
  }
  .page-news__list-item-excerpt {
    font-size: 14px;
  }
  .page-news__cta-title {
    font-size: 30px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}