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

  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--bg-color); /* Inherited from body, but explicitly set for safety */
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-news__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--deep-green-color);
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for readability */
  border-radius: 10px;
  margin-top: -10%; /* Overlap slightly with image */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-news__main-title {
  color: var(--gold-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.page-news__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-news__cta-button--small {
  padding: 12px 25px;
  font-size: 1em;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Latest News Section */
.page-news__latest-news-section,
.page-news__categories-section,
.page-news__featured-news-section,
.page-news__archive-section,
.page-news__responsible-gaming-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 60px 0;
}

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

.page-news__news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 10px var(--secondary-color);
}

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

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

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

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

.page-news__news-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-news__news-title a:hover {
  color: var(--primary-color);
}

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

.page-news__news-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background-color: var(--secondary-color);
}

.page-news__view-all {
  text-align: center;
  margin-top: 30px;
}

/* Categories Section */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__category-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-main);
  padding: 0 15px;
}

/* Featured News Section */
.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__featured-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 10px var(--secondary-color);
}

.page-news__featured-image-wrapper {
  flex: 0 0 40%;
  height: 300px;
  overflow: hidden;
}

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

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

.page-news__featured-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__featured-title a:hover {
  color: var(--primary-color);
}

.page-news__featured-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Archive Section */
.page-news__archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__archive-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  color: var(--text-secondary);
}

.page-news__archive-item:hover {
  background-color: var(--deep-green-color);
}

.page-news__archive-item a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__archive-item a:hover {
  color: var(--primary-color);
}

/* Responsible Gaming Section */
.page-news__responsible-gaming-section .page-news__container {
  background-color: var(--deep-green-color);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-news__responsible-gaming-section .page-news__section-title {
  color: var(--text-main);
}

.page-news__responsible-gaming-section .page-news__text-block {
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--deep-green-color);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-item summary:hover {
  background-color: var(--primary-color);
}

.page-news__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 25px;
  text-align: center;
}

.page-news__faq-answer {
  padding: 20px 25px;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

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

/* CTA Section */
.page-news__cta-section {
  background-color: var(--primary-color);
  text-align: center;
  padding: 80px 0;
  background-image: linear-gradient(rgba(17, 168, 78, 0.8), rgba(34, 199, 104, 0.8)), url('[GALLERY:bg:1920x400:uc88_cta_background,betting_pattern,green_gold_gradient]');
  background-size: cover;
  background-position: center;
  border-top: 5px solid var(--gold-color);
  border-bottom: 5px solid var(--gold-color);
}

.page-news__cta-section .page-news__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-news__cta-section .page-news__text-block {
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__description {
    font-size: 1.1em;
  }
  .page-news__featured-card {
    flex-direction: column;
  }
  .page-news__featured-image-wrapper {
    flex: none;
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-news__text-block {
    font-size: 1em;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 30px 15px;
    margin-top: -15%;
  }
  .page-news__main-title {
    font-size: 2em;
    max-width: 100%; /* No fixed font-size, just ensure it fits */
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__news-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-content,
  .page-news__featured-content {
    padding: 20px;
  }
  .page-news__news-title,
  .page-news__featured-title {
    font-size: 1.3em;
  }
  .page-news__archive-item {
    padding: 15px 20px;
    font-size: 0.9em;
  }
  .page-news__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile responsive for images */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-image-wrapper,
  .page-news__category-card,
  .page-news__featured-image-wrapper,
  .page-news__responsible-gaming-section .page-news__container,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  /* Mobile responsive for buttons */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  .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;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__description {
    font-size: 0.95em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__news-title,
  .page-news__featured-title {
    font-size: 1.2em;
  }
  .page-news__faq-item summary {
    font-size: 0.95em;
  }
  .page-news__faq-answer {
    font-size: 0.9em;
  }
  .page-news__hero-content {
    margin-top: -20%;
  }
}