.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color */
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}

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

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login font color for main title as per custom colors */
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom color for Register/Login font */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #e01a1a;
  border-color: #e01a1a;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

.page-news__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-news__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-news__card--dark {
  background-color: #005a2e;
  color: #ffffff;
}

.page-news__card--dark .page-news__card-title a,
.page-news__card--dark .page-news__card-text {
  color: #ffffff;
}

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

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

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

.page-news__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card--dark .page-news__card-title a {
  color: #FFFF00;
}

.page-news__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 12px;
}

.page-news__promotion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-news__promotion-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-news__promotion-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-news__promotion-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555555;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  color: #333333;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7f0; /* Light green for contrast */
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #d8ede0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-news__cta-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}

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

.page-news__cta-section .page-news__container {
  z-index: 2;
}

.page-news__cta-section .page-news__section-title {
  color: #FFFF00; /* Custom font color */
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__button-group {
  margin-top: 40px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__game-updates,
  .page-news__promotions,
  .page-news__insights,
  .page-news__faq-section,
  .page-news__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__main-title {
    font-size: 2.2em;
  }

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

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

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-news__card-text {
    font-size: 0.9em;
  }

  .page-news__full-width-image {
    margin-top: 30px;
  }

  .page-news__promotion-title {
    font-size: 1.5em;
  }

  .page-news__promotion-text {
    font-size: 0.95em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }

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

  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__game-updates,
  .page-news__promotions,
  .page-news__insights,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__container,
  .page-news__card,
  .page-news__promotion-item,
  .page-news__faq-item,
  .page-news__cta-buttons,
  .page-news__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    font-size: 0.95em;
  }
}