/* style/news.css */
/* 
  Body padding-top for fixed header is handled by shared.css.
  Do not re-apply var(--header-offset) here.
*/
.page-news {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

.page-news__section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__dark-section {
  background-color: #17191F; /* Card BG, slightly lighter than body for contrast */
  padding: 60px 20px;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Responsive padding */
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  padding: 0;
  padding-bottom: 40px;
  background-color: #0D0E12;
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  display: flex;
  flex-direction: column; /* Default: image on top, text below */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 0; /* Small top padding */
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  filter: none !important; /* Ensure no image filters */
}

.page-news__hero-text-block {
  text-align: center;
  max-width: 800px;
}

.page-news__hero-text-block h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6;
  border: none;
  margin-right: 15px;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

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

.page-news__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Section Titles */
.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

.page-news__article-card {
  background-color: #17191F; /* Card BG */
  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-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: none !important; /* Ensure no image filters */
}

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

.page-news__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFA53A; /* Accent */
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #A84F0C; /* Border color, good for subtle meta text */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: #FFA53A;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #FFB04D;
}

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

.page-news__read-more-link:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Featured Analysis */
.page-news__analysis-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.page-news__analysis-item {
  background-color: #17191F;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__analysis-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__analysis-text {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 20px;
}

/* Promotions CTA */
.page-news__promotions-cta {
  background-color: #0D0E12;
}

.page-news__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-news__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  filter: none !important; /* Ensure no image filters */
}

.page-news__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-news__cta-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.page-news__cta-description {
  font-size: 1.1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
  text-align: left;
}

.page-news__cta-content .page-news__btn-primary {
  margin-right: 15px;
}

/* Responsible Gaming */
.page-news__responsible-gaming .page-news__section-title,
.page-news__responsible-gaming .page-news__section-description {
  color: #FFF3E6; /* Ensure light text on dark background */
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: #17191F;
  border-radius: 8px;
  padding: 20px 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
  border: 1px solid #A84F0C;
}

.page-news__faq-item[open] {
  background-color: #2a2d3a; /* Slightly different background when open */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFB04D;
  list-style: none; /* Remove default marker */
}

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

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

.page-news__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  color: #FFA53A;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form cross */
}

.page-news__faq-answer {
  padding-top: 15px;
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Final CTA */
.page-news__final-cta {
  background-color: #0D0E12;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 15px;
  }

  .page-news__dark-section {
    padding: 40px 15px;
  }

  .page-news__hero-content {
    padding-top: 10px !important; /* Small top padding, not header offset */
  }

  .page-news__hero-text-block h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-news__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-news__article-thumbnail {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 1.2rem;
  }

  .page-news__analysis-title {
    font-size: 1.4rem;
  }

  .page-news__flex-container {
    flex-direction: column;
    text-align: center;
  }

  .page-news__cta-image {
    margin-bottom: 30px;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    text-align: center;
  }

  .page-news__cta-description {
    text-align: center;
  }

  .page-news__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-question {
    font-size: 1rem;
  }
  
  /* Mobile image, video, and button responsive overrides */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no image filters */
  }

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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; /* Ensure no horizontal scroll */
  }

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

/* Color contrast safety check for specific elements */
.page-news p,
.page-news li,
.page-news__section-description,
.page-news__article-excerpt,
.page-news__analysis-text,
.page-news__cta-description,
.page-news__faq-answer p {
  color: #FFF3E6; /* Main text color */
}

/* Ensure images do not have filters */
.page-news img {
  filter: none !important;
}