/* style/resources-latest-betting-trends.css */
.page-resources-latest-betting-trends {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #051421; /* Matches body background for consistency */
}

.page-resources-latest-betting-trends__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-latest-betting-trends__hero-section {
  position: relative;
  padding: 100px 0 50px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #0A2239;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-resources-latest-betting-trends__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-resources-latest-betting-trends__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-latest-betting-trends__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.page-resources-latest-betting-trends__section {
  padding: 60px 0;
}

.page-resources-latest-betting-trends__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-latest-betting-trends__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-betting-trends__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources-latest-betting-trends__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-latest-betting-trends__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-resources-latest-betting-trends__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-latest-betting-trends__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-latest-betting-trends__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources-latest-betting-trends__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-latest-betting-trends__btn-primary {
  background-color: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

.page-resources-latest-betting-trends__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-latest-betting-trends__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-latest-betting-trends__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
  transform: translateY(-2px);
}

.page-resources-latest-betting-trends__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-latest-betting-trends__link:hover {
  text-decoration: underline;
  color: #e6c200;
}

/* Video Section */
.page-resources-latest-betting-trends__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A2239;
}

.page-resources-latest-betting-trends__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.page-resources-latest-betting-trends__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* FAQ Section */
.page-resources-latest-betting-trends__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-betting-trends__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-betting-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A2239;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-latest-betting-trends__faq-question:hover {
  background-color: #1a3a5a;
}

.page-resources-latest-betting-trends__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFD700;
}

.page-resources-latest-betting-trends__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-resources-latest-betting-trends__faq-item.active .page-resources-latest-betting-trends__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-latest-betting-trends__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-latest-betting-trends__faq-item.active .page-resources-latest-betting-trends__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

/* Color Contrast Fixes (as per prompt) */
.page-resources-latest-betting-trends__dark-bg {
  background-color: #0A2239;
  color: #ffffff;
}

.page-resources-latest-betting-trends__light-bg {
  background-color: #051421; /* Using body background for consistency, which is dark. Text should be light. */
  color: #ffffff; /* Forced white text for dark background */
}

.page-resources-latest-betting-trends__text-contrast-fix {
  color: #ffffff; /* Ensure white text on dark background for general text */
}

.page-resources-latest-betting-trends__card.page-resources-latest-betting-trends__contrast-fix {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-betting-trends__hero-title {
    font-size: 2.8em;
  }

  .page-resources-latest-betting-trends__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-betting-trends {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-latest-betting-trends__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-resources-latest-betting-trends__hero-title {
    font-size: 2.2em;
  }

  .page-resources-latest-betting-trends__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-resources-latest-betting-trends__section {
    padding: 40px 0;
  }

  .page-resources-latest-betting-trends__section-title {
    font-size: 1.8em;
  }

  .page-resources-latest-betting-trends__text-block {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-resources-latest-betting-trends__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-resources-latest-betting-trends__card {
    padding: 20px;
  }

  .page-resources-latest-betting-trends__card-image {
    height: 180px;
  }

  .page-resources-latest-betting-trends__cta-button {
    width: calc(100% - 30px) !important;
    margin: 30px auto 0 auto !important;
    display: block !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-betting-trends__video-wrapper {
    margin: 30px 15px;
  }

  .page-resources-latest-betting-trends__faq-list {
    padding: 0 15px;
  }

  .page-resources-latest-betting-trends__faq-question {
    padding: 15px 20px;
  }

  .page-resources-latest-betting-trends__faq-title {
    font-size: 1.1em;
  }

  .page-resources-latest-betting-trends__faq-answer {
    padding: 15px 20px;
  }

  /* Image and video overflow prevention */
  .page-resources-latest-betting-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-latest-betting-trends video,
  .page-resources-latest-betting-trends__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-latest-betting-trends__section,
  .page-resources-latest-betting-trends__card,
  .page-resources-latest-betting-trends__container,
  .page-resources-latest-betting-trends__video-section,
  .page-resources-latest-betting-trends__video-container,
  .page-resources-latest-betting-trends__video-wrapper,
  .page-resources-latest-betting-trends__cta-buttons,
  .page-resources-latest-betting-trends__button-group,
  .page-resources-latest-betting-trends__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources-latest-betting-trends__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }
}