/* style/resources-how-to-use-ax88-homepage-features.css */

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-text-on-dark-bg: #FFFFFF;
  --page-text-on-light-bg: #333333;
  --page-btn-register-bg: #C30808;
  --page-btn-login-bg: #C30808;
  --page-btn-font-color: #FFFF00;
}

.page-resources-how-to-use-ax88-homepage-features {
  color: var(--page-text-on-dark-bg); /* Default text color for the main content area, given body is dark */
  background-color: transparent; /* inherited from body, which is #1a1a1a */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-resources-how-to-use-ax88-homepage-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: var(--page-primary-color);
  color: var(--page-text-on-dark-bg);
  overflow: hidden;
}

.page-resources-how-to-use-ax88-homepage-features__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 30px;
}

.page-resources-how-to-use-ax88-homepage-features__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-text-on-dark-bg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-use-ax88-homepage-features__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-how-to-use-ax88-homepage-features__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.2;
  z-index: 1;
}

.page-resources-how-to-use-ax88-homepage-features__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources-how-to-use-ax88-homepage-features__content-section {
  padding: 60px 20px;
}

.page-resources-how-to-use-ax88-homepage-features__light-bg {
  background-color: var(--page-secondary-color);
  color: var(--page-text-on-light-bg);
}

.page-resources-how-to-use-ax88-homepage-features__dark-bg {
  background-color: var(--page-primary-color);
  color: var(--page-text-on-dark-bg);
}

.page-resources-how-to-use-ax88-homepage-features__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-resources-how-to-use-ax88-homepage-features__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-resources-how-to-use-ax88-homepage-features__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-how-to-use-ax88-homepage-features__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources-how-to-use-ax88-homepage-features__image-block {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-use-ax88-homepage-features__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-resources-how-to-use-ax88-homepage-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources-how-to-use-ax88-homepage-features__cta-buttons--center {
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-resources-how-to-use-ax88-homepage-features__btn-primary,
.page-resources-how-to-use-ax88-homepage-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-how-to-use-ax88-homepage-features__btn-primary {
  background-color: var(--page-btn-register-bg); /* Specific color for Register/Login */
  color: var(--page-btn-font-color); /* Specific font color for Register/Login */
  border: 2px solid var(--page-btn-register-bg);
}

.page-resources-how-to-use-ax88-homepage-features__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-how-to-use-ax88-homepage-features__btn-secondary {
  background-color: transparent;
  color: var(--page-text-on-dark-bg); /* Use light text on dark background for secondary */
  border: 2px solid var(--page-text-on-dark-bg);
}

.page-resources-how-to-use-ax88-homepage-features__btn-secondary:hover {
  background-color: var(--page-text-on-dark-bg);
  color: var(--page-primary-color);
}

/* FAQ Section */
.page-resources-how-to-use-ax88-homepage-features__faq-section {
  padding: 60px 20px;
  background-color: var(--page-secondary-color);
  color: var(--page-text-on-light-bg);
}

.page-resources-how-to-use-ax88-homepage-features__faq-list {
  margin-top: 40px;
}

.page-resources-how-to-use-ax88-homepage-features__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-how-to-use-ax88-homepage-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-text-on-light-bg);
  background-color: var(--page-secondary-color);
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-how-to-use-ax88-homepage-features__faq-item[open] > .page-resources-how-to-use-ax88-homepage-features__faq-question {
  border-bottom: 1px solid transparent; /* No border when open */
}

.page-resources-how-to-use-ax88-homepage-features__faq-qtext {
  flex-grow: 1;
}

.page-resources-how-to-use-ax88-homepage-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-how-to-use-ax88-homepage-features__faq-item[open] .page-resources-how-to-use-ax88-homepage-features__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-how-to-use-ax88-homepage-features__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--page-text-on-light-bg);
  background-color: #f8f8f8;
}

.page-resources-how-to-use-ax88-homepage-features__faq-item summary {
  list-style: none;
}

.page-resources-how-to-use-ax88-homepage-features__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources-how-to-use-ax88-homepage-features__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--page-primary-color);
  color: var(--page-text-on-dark-bg);
}

.page-resources-how-to-use-ax88-homepage-features__cta-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-how-to-use-ax88-homepage-features__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-text-on-dark-bg);
}

.page-resources-how-to-use-ax88-homepage-features__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-how-to-use-ax88-homepage-features__main-title {
    font-size: 2.8em;
  }
  .page-resources-how-to-use-ax88-homepage-features__section-title {
    font-size: 2em;
  }
  .page-resources-how-to-use-ax88-homepage-features__sub-title {
    font-size: 1.6em;
  }
  .page-resources-how-to-use-ax88-homepage-features__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-use-ax88-homepage-features__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-resources-how-to-use-ax88-homepage-features__main-title {
    font-size: 2.2em;
  }
  .page-resources-how-to-use-ax88-homepage-features__description {
    font-size: 1em;
  }
  .page-resources-how-to-use-ax88-homepage-features__section-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-use-ax88-homepage-features__sub-title {
    font-size: 1.4em;
  }
  .page-resources-how-to-use-ax88-homepage-features__paragraph {
    font-size: 1em;
  }
  .page-resources-how-to-use-ax88-homepage-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-how-to-use-ax88-homepage-features__btn-primary,
  .page-resources-how-to-use-ax88-homepage-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources-how-to-use-ax88-homepage-features__content-section,
  .page-resources-how-to-use-ax88-homepage-features__faq-section,
  .page-resources-how-to-use-ax88-homepage-features__cta-banner {
    padding: 40px 15px;
  }
  .page-resources-how-to-use-ax88-homepage-features__container {
    padding: 0;
  }
  .page-resources-how-to-use-ax88-homepage-features__image-block {
    margin: 20px auto;
  }
  .page-resources-how-to-use-ax88-homepage-features__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-how-to-use-ax88-homepage-features__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources-how-to-use-ax88-homepage-features__faq-answer {
    padding: 0 20px 15px;
  }
  .page-resources-how-to-use-ax88-homepage-features__cta-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-use-ax88-homepage-features__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-resources-how-to-use-ax88-homepage-features__main-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-use-ax88-homepage-features__section-title {
    font-size: 1.6em;
  }
  .page-resources-how-to-use-ax88-homepage-features__cta-title {
    font-size: 1.6em;
  }
}

/* Ensure no filter on images */
.page-resources-how-to-use-ax88-homepage-features img {
  filter: none;
}