/* style/news.css */

/* Base styles for page-news */
.page-news {
  color: #F2FFF6; /* Text Main on dark background */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  max-height: 700px; /* Limit height for hero image */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.5) 50%, rgba(8, 22, 15, 0.8) 100%);
  width: 100%;
  box-sizing: border-box;
  padding-top: 150px; /* Ensure content starts below potential header overlap */
}

.page-news__hero-title {
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-news__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
}

.page-news__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  color: #F2FFF6;
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

.page-news__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

.page-news__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__card-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #F2FFF6; /* Text Main */
}

/* Content Sections (Sports, Casino, Promotions, Security) */
.page-news__sports-section,
.page-news__casino-section,
.page-news__promotions-section,
.page-news__security-section {
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-news__text-block {
  flex: 1;
}

.page-news__text-block p {
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__text-block .page-news__btn-primary {
  margin-top: 20px;
}

.page-news__image-right,
.page-news__image-left {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker { /* For Webkit browsers */
  display: none;
}

.page-news__faq-question::marker { /* Standard */
  display: none;
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B;
}

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

/* Final CTA Section */
.page-news__cta-final-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  max-height: 600px;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.5) 50%, rgba(8, 22, 15, 0.8) 100%);
  padding: 60px 20px;
  border-radius: 12px;
}

.page-news__cta-content .page-news__section-title {
  margin-bottom: 20px;
}

.page-news__cta-content .page-news__section-description {
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-news__content-wrapper {
    flex-direction: column;
  }

  .page-news__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-news__image-right,
  .page-news__image-left {
    max-width: 100%;
    margin-top: 30px;
  }

  .page-news__hero-content {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .page-news__section-title {
    font-size: 2em;
  }

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

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

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

  .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__content-wrapper,
  .page-news__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__hero-section,
  .page-news__latest-section,
  .page-news__sports-section,
  .page-news__casino-section,
  .page-news__promotions-section,
  .page-news__security-section,
  .page-news__faq-section,
  .page-news__cta-final-section {
    padding-left: 0;
    padding-right: 0;
  }

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

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

  .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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