/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Dark background */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
}

.page-news__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Video Section */
.page-news__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-news__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  transform: translateZ(0); /* Fix for some browsers rendering issues */
  width: 100%; /* Desktop width */
  max-width: 100%; /* Ensure it doesn't exceed container */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  cursor: pointer;
}

.page-news__video-description {
  font-size: 1rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

/* Common Section Styles */
.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
  color: #26A9E0; /* Brand color for titles */
}

.page-news__intro-text {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Background colors */
.page-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__card-title a {
  color: #26A9E0;
}

.page-news__light-bg p,
.page-news__light-bg li {
  color: #333333;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

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

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

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark 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;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-news__light-bg .page-news__news-card {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-news__card-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
}

.page-news__light-bg .page-news__card-date {
  color: #666;
}

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

.page-news__card-title a {
  color: #ffffff; /* Default for dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__card-title a:hover {
  color: #26A9E0; /* Brand color on hover for dark bg */
}

.page-news__light-bg .page-news__card-title a:hover {
  color: #1e87c0;
}

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

.page-news__light-bg .page-news__card-excerpt {
  color: #555;
}

/* List styles */
.page-news__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
}

.page-news__list li {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.page-news__light-bg .page-news__list li {
  background: #f8f8f8;
  color: #333333;
}

.page-news__list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-news__list li a:hover {
  text-decoration: underline;
}

.page-news__list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.page-news__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__light-bg .page-news__feature-item {
  background: #fdfdfd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-news__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-news__feature-item p {
  font-size: 1rem;
  color: #ccc;
}

.page-news__light-bg .page-news__feature-item p {
  color: #555;
}

.page-news__feature-item a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-news__feature-item a:hover {
  text-decoration: underline;
}

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

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

.page-news__light-bg .page-news__faq-item {
  background: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-news__light-bg .page-news__faq-question {
  color: #333333;
}

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

.page-news__faq-item[open] .page-news__faq-question {
  background-color: rgba(38, 169, 224, 0.1);
}

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

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #ccc;
}

.page-news__light-bg .page-news__faq-answer {
  color: #555;
}

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

.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-news__cta-content {
  text-align: center;
  padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-news__section-title {
    font-size: 2rem;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

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

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-news__description {
    font-size: 1rem;
  }

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

  .page-news__content-area,
  .page-news__cta-content {
    padding: 30px 15px;
  }

  .page-news__articles-grid,
  .page-news__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card,
  .page-news__feature-item {
    padding: 20px;
  }

  .page-news__card-image {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 1.1rem;
  }

  .page-news__card-excerpt {
    font-size: 0.95rem;
  }

  .page-news__list li {
    font-size: 1rem;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile button adaptations */
  .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-right: 0 !important; /* Remove right margin for stacking */
  }

  .page-news__cta-container {
    flex-direction: column;
    gap: 10px;
  }

  /* Image responsive enforcement */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__promotions-section,
  .page-news__sports-casino-section,
  .page-news__game-guides-section,
  .page-news__security-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}