/* style/news.css */

/* Base styles for the page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-news__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-news__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color themes for sections */
.page-news__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__card-title a,
.page-news__light-bg .page-news__card-text,
.page-news__light-bg .page-news__read-more-button,
.page-news__light-bg .page-news__gaming-title,
.page-news__light-bg .page-news__gaming-list li,
.page-news__light-bg .page-news__gaming-text {
  color: #333333;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__insight-title,
.page-news__dark-bg .page-news__insight-text,
.page-news__dark-bg .page-news__faq-qtext {
  color: #ffffff;
}

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
}

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

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__read-more-button:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Latest News Section */
.page-news__latest-news {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-news__news-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-news__card-title a {
  text-decoration: none;
  color: #333333;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #26A9E0;
}

.page-news__card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* Industry Insights Section */
.page-news__industry-insights {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__insight-item {
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__insight-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-news__insight-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-news__insight-text a {
  color: #EA7C07; /* Highlight links */
  text-decoration: underline;
}

.page-news__insight-text a:hover {
  color: #d86b00;
}

/* Responsible Gaming Section */
.page-news__responsible-gaming {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__gaming-item {
  margin-bottom: 40px;
  padding: 25px;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__gaming-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

.page-news__gaming-list {
  list-style: disc inside;
  font-size: 1.1em;
  color: #555555;
  margin-left: 20px;
}

.page-news__gaming-list li {
  margin-bottom: 10px;
}

.page-news__gaming-list a,
.page-news__gaming-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news__gaming-list a:hover,
.page-news__gaming-text a:hover {
  color: #1a7bb5;
}

.page-news__gaming-text {
  font-size: 1.1em;
  color: #555555;
}

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

.page-news__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-news__faq-item {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item details > summary {
  list-style: none;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #d86b00;
}

/* Bottom CTA Section */
.page-news__cta-bottom {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__cta-bottom-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__description,
  .page-news__section-description,
  .page-news__insight-text,
  .page-news__gaming-list,
  .page-news__gaming-text,
  .page-news__faq-answer {
    font-size: 1em;
  }
  .page-news__insight-title,
  .page-news__gaming-title {
    font-size: 1.5em;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-card {
    margin-bottom: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__dark-bg, .page-news__light-bg {
    padding: 60px 0;
  }

  /* Images responsive */
  .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__news-grid,
  .page-news__insight-item,
  .page-news__gaming-item,
  .page-news__faq-list,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-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;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-news__card-title {
    font-size: 1.1em;
  }
  .page-news__card-image {
    height: 160px;
  }
}