.page-news {
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --background-dark: #08160F;
  --card-bg: #11271B;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

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

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-news__hero-content {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  z-index: 1;
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-news__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333333; /* Default for light background */
}

.page-news__text-main {
  color: var(--text-main-color);
}

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

.page-news__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
}

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

.page-news__article-image,
.page-news__promo-image,
.page-news__product-image,
.page-news__info-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-info,
.page-news__promo-info,
.page-news__product-info,
.page-news__info-card {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__promo-title,
.page-news__product-title,
.page-news__info-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a,
.page-news__promo-title a,
.page-news__product-title a,
.page-news__info-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promo-title a:hover,
.page-news__product-title a:hover,
.page-news__info-title a:hover {
  color: var(--glow-color);
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__promo-description,
.page-news__product-description,
.page-news__info-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-news__view-all-button-wrapper,
.page-news__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news__cta-section {
  background-color: #ffffff;
  color: #333333;
  text-align: center;
  padding: 80px 20px;
}

.page-news__cta-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333333;
}

.page-news__cta-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-news__section {
    padding: 40px 15px;
  }

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

  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__product-grid,
  .page-news__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-news__article-image,
  .page-news__promo-image,
  .page-news__product-image,
  .page-news__info-image {
    height: 180px;
  }

  .page-news__article-title,
  .page-news__promo-title,
  .page-news__product-title,
  .page-news__info-title {
    font-size: 1.2rem;
  }

  .page-news__article-excerpt,
  .page-news__promo-description,
  .page-news__product-description,
  .page-news__info-description {
    font-size: 0.95rem;
  }

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

  .page-news__view-all-button-wrapper,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__cta-section {
    padding: 50px 15px;
  }

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

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

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-news__section {
    padding: 30px 10px;
  }
  .page-news__section-title {
    font-size: 1.6rem;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__product-image,
  .page-news__info-image {
    height: 150px;
  }
  .page-news__cta-title {
    font-size: 1.6rem;
  }
}