/* style/news.css */

/* General styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Overall page background */
}

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

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background-color: #2A1212; /* Dark background for hero */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF1E8; /* Light text color */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly blend with background */
  display: block;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #140C0C; /* Dark text on bright button */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: transparent;
  color: #F3C54D; /* Gold text for secondary button */
  border: 2px solid #F3C54D; /* Gold border */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  margin-left: 20px;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C; /* Dark text on gold hover */
}

/* News Grid Section */
.page-news__news-grid-section {
  padding: 60px 0;
  background-color: #140C0C; /* Main background color */
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F3C54D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__news-card {
  background-color: #2A1212; /* Card background color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E; /* Border color */
}

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

.page-news__news-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-news__news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 25px;
}

.page-news__news-date {
  font-size: 14px;
  color: #E53030; /* Auxiliary red color for date */
  margin-bottom: 10px;
  display: block;
}

.page-news__news-card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__news-card-title a {
  color: #FFF1E8; /* Light text for card title link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #F3C54D; /* Gold on hover */
}

.page-news__news-card-excerpt {
  font-size: 16px;
  color: #FFF1E8; /* Light text for excerpt */
  margin-bottom: 20px;
}

.page-news__read-more-btn {
  display: inline-block;
  font-size: 16px;
  color: #F3C54D; /* Gold color for read more link */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
  color: #FFB04A; /* Lighter gold on hover */
}

.page-news__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* CTA Banner Section */
.page-news__cta-banner {
  padding: 80px 0;
  background-color: #C61F1F; /* Main brand color for CTA background */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:cta_banner:1920x400:888 bet,promotion,signup,action]'); /* Placeholder for background image */
  background-size: cover;
  background-position: center;
  opacity: 0.1; /* Subtle background image */
  z-index: 1;
}

.page-news__cta-content {
  position: relative;
  z-index: 2;
}

.page-news__cta-title {
  font-size: 42px;
  font-weight: 700;
  color: #FFF1E8; /* Light text for CTA title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 20px;
  color: #FFF1E8; /* Light text for CTA description */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #140C0C; /* Main background color */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card background color for FAQ item */
  color: #FFF1E8; /* Light text */
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF1E8; /* Light text */
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #3a1a1a; /* Slightly lighter dark red on hover */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8; /* Light text */
}

.page-news__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #F3C54D; /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 32px; /* Larger width */
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #1e0f0f; /* Slightly different dark background for answer */
  border-radius: 0 0 8px 8px;
  color: #FFF1E8; /* Light text */
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #FFF1E8; /* Light text */
}

/* Image Responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */

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

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

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    padding: 30px 0;
  }

  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px !important;
    font-size: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for stacking */
  }

  /* News Grid Section */
  .page-news__news-grid-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 25px;
  }

  .page-news__news-card-image-wrapper {
    height: 180px; /* Adjust card image height */
  }

  .page-news__news-card-content {
    padding: 20px;
  }

  .page-news__news-card-title {
    font-size: 20px;
  }

  .page-news__news-card-excerpt {
    font-size: 15px;
  }

  .page-news__view-all-wrapper {
    margin-top: 40px;
  }

  /* CTA Banner Section */
  .page-news__cta-banner {
    padding: 50px 0;
  }

  .page-news__cta-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-news__faq-section {
    padding: 40px 0;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-qtext {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 28px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Universal Image Responsiveness for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}