.page-resources-faq-online-betting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

.page-resources-faq-online-betting__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-faq-online-betting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-resources-faq-online-betting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.page-resources-faq-online-betting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-resources-faq-online-betting__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for main title */
}

.page-resources-faq-online-betting__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-faq-online-betting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-faq-online-betting__btn-primary,
.page-resources-faq-online-betting__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-resources-faq-online-betting__btn-primary {
  background-color: #C30808; /* Custom color for primary button */
  color: #FFFF00; /* Custom font color for primary button */
  border: 2px solid #C30808;
}

.page-resources-faq-online-betting__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-faq-online-betting__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for secondary button */
  border: 2px solid #FFFF00; /* Custom border color for secondary button */
}

.page-resources-faq-online-betting__btn-secondary:hover {
  background-color: rgba(255, 255, 0, 0.2);
  color: #ffffff;
}

.page-resources-faq-online-betting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-resources-faq-online-betting__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-faq-online-betting__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-resources-faq-online-betting__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-resources-faq-online-betting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-faq-online-betting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-faq-online-betting__faq-question:hover {
  background-color: #005a2e;
}

.page-resources-faq-online-betting__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-resources-faq-online-betting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-faq-online-betting__faq-item.active .page-resources-faq-online-betting__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-faq-online-betting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-resources-faq-online-betting__faq-item.active .page-resources-faq-online-betting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-resources-faq-online-betting__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-resources-faq-online-betting__cta-banner {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  margin-top: 60px;
}

.page-resources-faq-online-betting__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-resources-faq-online-betting__cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-resources-faq-online-betting__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color */
}

.page-resources-faq-online-betting__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-faq-online-betting__main-title {
    font-size: 3em;
  }
  .page-resources-faq-online-betting__hero-section {
    height: 450px;
  }
  .page-resources-faq-online-betting__content-area {
    padding: 40px 15px;
  }
  .page-resources-faq-online-betting__section-title {
    font-size: 2em;
  }
  .page-resources-faq-online-betting__cta-banner {
    height: 350px;
  }
  .page-resources-faq-online-betting__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-faq-online-betting__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-faq-online-betting__main-title {
    font-size: 2.2em;
  }
  .page-resources-faq-online-betting__description {
    font-size: 1em;
  }
  .page-resources-faq-online-betting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources-faq-online-betting__btn-primary,
  .page-resources-faq-online-betting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-resources-faq-online-betting__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources-faq-online-betting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-faq-online-betting__intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources-faq-online-betting__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-resources-faq-online-betting__faq-answer {
    padding: 10px 20px;
  }

  .page-resources-faq-online-betting__cta-banner {
    height: 300px;
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources-faq-online-betting__cta-content {
    padding: 15px;
    max-width: 90%;
  }
  .page-resources-faq-online-betting__cta-title {
    font-size: 1.8em;
  }
  .page-resources-faq-online-betting__cta-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  
  /* Image responsiveness */
  .page-resources-faq-online-betting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-faq-online-betting__hero-image, 
  .page-resources-faq-online-betting__cta-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-resources-faq-online-betting__hero-section,
  .page-resources-faq-online-betting__cta-banner,
  .page-resources-faq-online-betting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-faq-online-betting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  .page-resources-faq-online-betting__hero-section {
    height: 350px;
  }
  .page-resources-faq-online-betting__main-title {
    font-size: 1.8em;
  }
  .page-resources-faq-online-betting__cta-banner {
    height: 250px;
  }
  .page-resources-faq-online-betting__cta-title {
    font-size: 1.5em;
  }
  .page-resources-faq-online-betting__faq-question {
    font-size: 0.95em;
  }
}