.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: var(--header-offset, 120px);
  background: linear-gradient(135deg, var(--primary-color), #FFFFFF);
  color: var(--text-dark-color);
}

.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-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__hero-image {
  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%;
}

.page-news__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-dark-color);
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(1, 116, 57, 0.3);
}

.page-news__hero-cta-button:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(1, 116, 57, 0.4);
}

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

.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-news__latest-news-section {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-dark-color);
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-news__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__card-summary {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f0f0;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-news__card-link:hover {
  background: var(--primary-color);
  color: var(--text-light-color);
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(1, 116, 57, 0.3);
}

.page-news__view-all-button:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(1, 116, 57, 0.4);
}

.page-news__featured-article-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light-color);
}

.page-news__featured-article-section .page-news__section-title {
  color: var(--text-light-color);
}

.page-news__featured-article-section .page-news__section-title::after {
  background-color: var(--text-light-color);
}

.page-news__featured-article-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-news__featured-article-image-wrapper {
  flex: 1;
  min-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-news__featured-article-text {
  flex: 2;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-news__featured-article-text p {
  margin-bottom: 20px;
  color: var(--text-light-color);
}

.page-news__read-more-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--text-light-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__read-more-button:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-dark-color);
}

.page-news__cta-banner {
  background: var(--primary-color);
  border-radius: 15px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light-color);
}

.page-news__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-light-color);
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text-light-color);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-register {
  background: #C30808;
  color: #FFFF00;
}

.page-news__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-login {
  background: #C30808;
  color: #FFFF00;
}

.page-news__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Base text colors based on body background */
body {
  --background-color: #FFFFFF;
  --text-dark-color: #333333;
  --text-light-color: #ffffff;
}

.page-news {
  color: var(--text-dark-color);
}

.page-news__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light-color);
}

.page-news__light-bg {
  background-color: var(--background-color);
  color: var(--text-dark-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__featured-article-content {
    flex-direction: column;
    align-items: center;
  }

  .page-news__featured-article-image-wrapper {
    min-width: auto;
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-title {
    font-size: 2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-news__container {
    padding: 20px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

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

  .page-news__card-image-wrapper {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__featured-article-section {
    padding: 60px 0;
  }

  .page-news__featured-article-text {
    font-size: 1em;
  }

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

  .page-news__cta-banner {
    padding: 40px 20px;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__cta-button {
    margin: 10px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__cta-banner .page-news__cta-content {
    display: flex;
    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,
  .page-news__hero-container,
  .page-news__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__view-all-button-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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