/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-news__dark-bg {
  background-color: #007bff;
  color: #ffffff;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

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

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

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

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #ffc107;
  color: #000000;
  border: 2px solid #ffc107;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-news__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

/* Section Titles and Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  color: #ffc107;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

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

.page-news__latest-news-section,
.page-news__featured-articles-section,
.page-news__promotions-section,
.page-news__responsible-gambling-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 40px 0;
  background-color: #000000; /* Default background for sections */
}

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

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

.page-news__article-card {
  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;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-card.page-news__dark-bg {
  background-color: #007bff;
  color: #ffffff;
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: inherit;
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: #ffc107;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 15px;
}

.page-news__article-card.page-news__dark-bg .page-news__article-date {
  color: #ccc;
}

.page-news__read-more-link {
  display: inline-block;
  margin-top: auto;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-news__article-card.page-news__dark-bg .page-news__read-more-link {
  color: #ffc107;
}

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

/* Promotions Section */
.page-news__promo-card {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__promo-image {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-news__promo-content {
  flex-grow: 1;
}

.page-news__promo-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-news__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-news__promo-title a:hover {
  color: #ffc107;
}

.page-news__promo-excerpt {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
}

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

/* Responsible Gambling Section */
.page-news__responsible-gambling-section .page-news__section-title {
  color: #ffc107;
}

.page-news__responsible-gambling-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-news__responsible-gambling-section .page-news__btn-primary {
  margin-top: 30px;
  background-color: #ffc107;
  color: #000000;
  border-color: #ffc107;
}

.page-news__responsible-gambling-section .page-news__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #000000;
}

.page-news__faq-section .page-news__section-title {
  color: #ffc107;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.page-news__faq-item.page-news__dark-bg {
  background-color: #007bff;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #007bff; /* Use primary color for question background */
  color: #ffffff; /* White text for questions */
  border-radius: 8px;
}

.page-news__faq-item.page-news__light-bg .page-news__faq-question {
  background-color: #007bff;
  color: #ffffff;
}

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

.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;
  background-color: #ffffff; /* White background for answer */
  color: #333333; /* Dark text for answer */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

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

.page-news__cta-section .page-news__section-title {
  color: #ffc107;
  font-size: 3em;
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-news__cta-section .page-news__btn-primary {
  background-color: #ffc107;
  color: #000000;
  border-color: #ffc107;
}

.page-news__cta-section .page-news__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

/* General image styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }

  .page-news__promo-card {
    flex-direction: column;
    text-align: center;
  }

  .page-news__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px;
  }
}

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

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

  .page-news__hero-section {
    height: 500px;
  }

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

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

  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-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__section-title {
    font-size: 2em;
    padding-top: 40px;
  }

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

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

  .page-news__article-card {
    margin-bottom: 20px;
  }

  .page-news__promo-card {
    padding: 20px;
  }

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

  .page-news__promo-excerpt {
    font-size: 1em;
  }

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

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

  .page-news__cta-section .page-news__section-title {
    font-size: 2.5em;
  }

  /* Mandatory responsive image and container styles */
  .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,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__promotions-section,
  .page-news__responsible-gambling-section,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__articles-grid,
  .page-news__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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