/* style/resources-online-xoc-dia-rules.css */

/* Base styles for the page content */
.page-resources-online-xoc-dia-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Fixed header offset */
.page-resources-online-xoc-dia-rules__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Section styling */
.page-resources-online-xoc-dia-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 500px;
  background-color: #26A9E0;
  color: #ffffff;
  overflow: hidden;
}

.page-resources-online-xoc-dia-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-resources-online-xoc-dia-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources-online-xoc-dia-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let background color show */
}

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

.page-resources-online-xoc-dia-rules__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-online-xoc-dia-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-resources-online-xoc-dia-rules__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-online-xoc-dia-rules__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.page-resources-online-xoc-dia-rules__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #26A9E0;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.page-resources-online-xoc-dia-rules__sub-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-online-xoc-dia-rules__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-resources-online-xoc-dia-rules__list,
.page-resources-online-xoc-dia-rules__numbered-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-online-xoc-dia-rules__numbered-list {
  list-style: decimal;
}

.page-resources-online-xoc-dia-rules__list li,
.page-resources-online-xoc-dia-rules__numbered-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-resources-online-xoc-dia-rules__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);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Call to Action Buttons */
.page-resources-online-xoc-dia-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-resources-online-xoc-dia-rules__cta-buttons--centered {
  margin-top: 40px;
  text-align: center;
}

.page-resources-online-xoc-dia-rules__btn-primary,
.page-resources-online-xoc-dia-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-resources-online-xoc-dia-rules__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-online-xoc-dia-rules__btn-primary:hover {
  background-color: #1a7fb4;
  border-color: #1a7fb4;
}

.page-resources-online-xoc-dia-rules__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-online-xoc-dia-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb4;
  border-color: #1a7fb4;
}

/* Dark background sections */
.page-resources-online-xoc-dia-rules__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-online-xoc-dia-rules__dark-bg .page-resources-online-xoc-dia-rules__section-title,
.page-resources-online-xoc-dia-rules__dark-bg .page-resources-online-xoc-dia-rules__section-title::after,
.page-resources-online-xoc-dia-rules__dark-bg .page-resources-online-xoc-dia-rules__sub-title {
  color: #ffffff;
}

.page-resources-online-xoc-dia-rules__dark-bg .page-resources-online-xoc-dia-rules__faq-question span {
  color: #ffffff;
}

/* FAQ Section */
.page-resources-online-xoc-dia-rules__faq-list {
  margin-top: 40px;
}

.page-resources-online-xoc-dia-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-online-xoc-dia-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-online-xoc-dia-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-online-xoc-dia-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources-online-xoc-dia-rules__faq-item.active .page-resources-online-xoc-dia-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-online-xoc-dia-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

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

.page-resources-online-xoc-dia-rules__faq-answer p {
  margin-bottom: 0;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources-online-xoc-dia-rules__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-online-xoc-dia-rules__main-title {
    font-size: 2em;
  }

  .page-resources-online-xoc-dia-rules__intro-text {
    font-size: 1em;
  }

  .page-resources-online-xoc-dia-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-resources-online-xoc-dia-rules__btn-primary,
  .page-resources-online-xoc-dia-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-online-xoc-dia-rules__content-area {
    padding: 20px 15px;
  }

  .page-resources-online-xoc-dia-rules__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-resources-online-xoc-dia-rules__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
  }

  .page-resources-online-xoc-dia-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources-online-xoc-dia-rules__text-block,
  .page-resources-online-xoc-dia-rules__faq-list,
  .page-resources-online-xoc-dia-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .page-resources-online-xoc-dia-rules__faq-item {
    margin-left: 0;
    margin-right: 0;
  }

  .page-resources-online-xoc-dia-rules__faq-question,
  .page-resources-online-xoc-dia-rules__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images meet minimum size */
.page-resources-online-xoc-dia-rules__text-block img {
  min-width: 200px;
  min-height: 200px;
}