/* style/news.css */

/* Base Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF);
}

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

/* Sections */
.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-news__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

/* General Buttons */
.page-news__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-section {
  padding: 80px 0;
}

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

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

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-news__article-excerpt {
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__read-more:hover .page-news__arrow {
  margin-left: 10px;
}

/* In-depth Section */
.page-news__in-depth-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__in-depth-section .page-news__section-title,
.page-news__in-depth-section .page-news__section-description {
  color: #ffffff;
}

.page-news__article-detail {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__article-detail-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: bold;
}

.page-news__article-detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.page-news__article-detail p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-news__article-detail .page-news__read-more {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 2px;
}

.page-news__article-detail .page-news__read-more:hover {
  border-bottom-color: #f0f0f0;
}

.page-news__highlight {
  font-weight: bold;
  color: #FFD700; /* A contrasting color for highlights */
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
}

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

.page-news__promotion-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-news__promotion-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-news__promotion-description {
  color: #666666;
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Responsible Gaming Section */
.page-news__responsible-gaming-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-news__responsible-gaming-section .page-news__section-title,
.page-news__responsible-gaming-section .page-news__section-description {
  color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
}

.page-news__faq-list {
  margin-top: 40px;
}

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

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  color: #555555;
  font-size: 1.1em;
}

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

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #ffffff;
}

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

.page-news__cta-buttons--center {
  justify-content: center;
}

/* Image and Video Responsive Styles (Global for .page-news) */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

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

  .page-news__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

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

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

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

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

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-card,
  .page-news__promotion-card {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-news__in-depth-section .page-news__container,
  .page-news__latest-section .page-news__container,
  .page-news__promotions-section .page-news__container,
  .page-news__responsible-gaming-section .page-news__container,
  .page-news__faq-section .page-news__container,
  .page-news__cta-section .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__article-detail {
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-news__article-detail p {
    font-size: 0.95em;
  }

  .page-news__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-news__faq-answer {
    font-size: 0.95em;
    padding: 0 15px 15px 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .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;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all videos are responsive */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Contrast Fixes */
.page-news__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

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