/* style/resources-thomo-rules-strategy.css */
.page-resources-thomo-rules-strategy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-resources-thomo-rules-strategy__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-resources-thomo-rules-strategy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-thomo-rules-strategy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-thomo-rules-strategy__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-thomo-rules-strategy__btn-register,
.page-resources-thomo-rules-strategy__btn-login {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-thomo-rules-strategy__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

.page-resources-thomo-rules-strategy__btn-register:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-resources-thomo-rules-strategy__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #C30808;
}

.page-resources-thomo-rules-strategy__btn-login:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-resources-thomo-rules-strategy__content-area {
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-resources-thomo-rules-strategy__section-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
}

.page-resources-thomo-rules-strategy__sub-section-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-thomo-rules-strategy__paragraph {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

.page-resources-thomo-rules-strategy__highlight {
  font-weight: bold;
  color: #017439;
}

.page-resources-thomo-rules-strategy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-thomo-rules-strategy__list-item {
  margin-bottom: 10px;
}

.page-resources-thomo-rules-strategy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-thomo-rules-strategy__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* For 16:9 aspect ratio */
  padding-bottom: 56.25%; /* 9/16 * 100% */
  height: 0;
}

.page-resources-thomo-rules-strategy__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-resources-thomo-rules-strategy__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.page-resources-thomo-rules-strategy__video-wrapper:hover .page-resources-thomo-rules-strategy__video-overlay {
  opacity: 1;
}

.page-resources-thomo-rules-strategy__video-cta {
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 90%;
  text-align: center;
}

.page-resources-thomo-rules-strategy__video-cta:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-resources-thomo-rules-strategy__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 8px;
}

.page-resources-thomo-rules-strategy__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-resources-thomo-rules-strategy__faq-list {
  margin-top: 40px;
}

.page-resources-thomo-rules-strategy__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

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

.page-resources-thomo-rules-strategy__faq-question:hover {
  background-color: #dcdcdc;
}

.page-resources-thomo-rules-strategy__faq-question h3 {
  margin: 0;
  color: #017439;
}

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

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

.page-resources-thomo-rules-strategy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-resources-thomo-rules-strategy__faq-item.active .page-resources-thomo-rules-strategy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-thomo-rules-strategy__hero-title {
    font-size: 2.2em;
  }

  .page-resources-thomo-rules-strategy__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources-thomo-rules-strategy__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-resources-thomo-rules-strategy__hero-title {
    font-size: 1.8em;
  }

  .page-resources-thomo-rules-strategy__hero-description {
    font-size: 1em;
  }

  .page-resources-thomo-rules-strategy__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-resources-thomo-rules-strategy__btn-register,
  .page-resources-thomo-rules-strategy__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-resources-thomo-rules-strategy__content-area {
    padding: 40px 0;
  }

  .page-resources-thomo-rules-strategy__container {
    padding: 0 15px;
  }

  .page-resources-thomo-rules-strategy__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-resources-thomo-rules-strategy__sub-section-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  /* Mobile image responsiveness */
  .page-resources-thomo-rules-strategy img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Mobile video responsiveness */
  .page-resources-thomo-rules-strategy__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

  .page-resources-thomo-rules-strategy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Take full height of wrapper */
    object-fit: cover !important;
  }

  .page-resources-thomo-rules-strategy__video-overlay {
    width: 100% !important;
    height: 100% !important;
  }

  .page-resources-thomo-rules-strategy__video-cta {
    font-size: 1em;
    padding: 10px 20px;
    max-width: 90% !important;
    width: 100% !important;
  }

  .page-resources-thomo-rules-strategy__cta-section {
    padding: 40px 15px;
  }

  .page-resources-thomo-rules-strategy__cta-title {
    font-size: 1.8em;
  }

  .page-resources-thomo-rules-strategy__cta-description {
    font-size: 0.9em;
  }

  .page-resources-thomo-rules-strategy__faq-question {
    padding: 12px 15px;
    font-size: 1.1em;
  }

  .page-resources-thomo-rules-strategy__faq-answer {
    padding: 0 15px;
  }

  .page-resources-thomo-rules-strategy__faq-item.active .page-resources-thomo-rules-strategy__faq-answer {
    padding: 10px 15px;
  }

  /* General content containers for mobile to prevent overflow */
  .page-resources-thomo-rules-strategy__section,
  .page-resources-thomo-rules-strategy__card,
  .page-resources-thomo-rules-strategy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }}