/* style/resources-thomo-live-rules.css */
.page-resources-thomo-live-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so main text is light */
  background-color: #121212;
}

.page-resources-thomo-live-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-thomo-live-rules__hero-section {
  position: relative;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.page-resources-thomo-live-rules__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00;
  line-height: 1.2;
}

.page-resources-thomo-live-rules__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-thomo-live-rules__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-thomo-live-rules__btn-primary,
.page-resources-thomo-live-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources-thomo-live-rules__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-resources-thomo-live-rules__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-thomo-live-rules__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-thomo-live-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #015c2d;
}

.page-resources-thomo-live-rules__content-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #f0f0f0;
}

.page-resources-thomo-live-rules__section-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
}

.page-resources-thomo-live-rules__subsection-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-resources-thomo-live-rules__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-resources-thomo-live-rules__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources-thomo-live-rules__list li {
  margin-bottom: 10px;
}

.page-resources-thomo-live-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

/* FAQ Section */
.page-resources-thomo-live-rules__faq-list {
  margin-top: 40px;
}

.page-resources-thomo-live-rules__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-thomo-live-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-resources-thomo-live-rules__faq-question:hover {
  background-color: #015c2d;
}

.page-resources-thomo-live-rules__faq-title {
  margin: 0;
  color: #ffffff; /* Ensure title color in FAQ question */
}

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

.page-resources-thomo-live-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #3a3a3a;
  color: #e0e0e0;
}

.page-resources-thomo-live-rules__faq-item.active .page-resources-thomo-live-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-thomo-live-rules__faq-item.active .page-resources-thomo-live-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-thomo-live-rules__faq-answer p {
  margin: 0;
}

.page-resources-thomo-live-rules__cta-buttons {
  margin-top: 50px;
  text-align: center;
}

.page-resources-thomo-live-rules__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-thomo-live-rules__content-section a {
  color: #FFFF00; /* Link color in content */
  text-decoration: underline;
}

.page-resources-thomo-live-rules__content-section a:hover {
  color: #ffcc00;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-thomo-live-rules__hero-title {
    font-size: 2.2em;
  }
  .page-resources-thomo-live-rules__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources-thomo-live-rules__hero-section {
    padding: 60px 15px;
  }
  .page-resources-thomo-live-rules__hero-title {
    font-size: 1.8em;
  }
  .page-resources-thomo-live-rules__hero-description {
    font-size: 1em;
  }
  .page-resources-thomo-live-rules__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-thomo-live-rules__btn-primary,
  .page-resources-thomo-live-rules__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }
  .page-resources-thomo-live-rules__content-section {
    padding: 40px 0;
  }
  .page-resources-thomo-live-rules__container {
    padding: 0 15px;
  }
  .page-resources-thomo-live-rules__section-title {
    font-size: 1.6em;
  }
  .page-resources-thomo-live-rules__subsection-title {
    font-size: 1.3em;
  }
  .page-resources-thomo-live-rules__text-block,
  .page-resources-thomo-live-rules__list li {
    font-size: 0.95em;
  }
  .page-resources-thomo-live-rules__list {
    margin-left: 20px;
  }
  .page-resources-thomo-live-rules__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources-thomo-live-rules__faq-answer {
    padding: 0 15px;
  }
  .page-resources-thomo-live-rules__faq-item.active .page-resources-thomo-live-rules__faq-answer {
    padding: 15px;
  }

  /* Mobile responsive for images, videos, buttons, and containers */
  .page-resources-thomo-live-rules img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-thomo-live-rules video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-thomo-live-rules__section,
  .page-resources-thomo-live-rules__card,
  .page-resources-thomo-live-rules__container,
  .page-resources-thomo-live-rules__hero-section,
  .page-resources-thomo-live-rules__content-section,
  .page-resources-thomo-live-rules__video-section,
  .page-resources-thomo-live-rules__video-container,
  .page-resources-thomo-live-rules__video-wrapper,
  .page-resources-thomo-live-rules__cta-buttons,
  .page-resources-thomo-live-rules__button-group,
  .page-resources-thomo-live-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Add padding to containers to prevent content touching edges on mobile */
  .page-resources-thomo-live-rules__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-resources-thomo-live-rules__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }
}