.page-betting-guides {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-font-color: #FFFF00;
  
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default light background */
}

.page-betting-guides__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); /* Ensures content is not hidden by fixed header */
  min-height: 500px;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--primary-color);
}

.page-betting-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-betting-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-betting-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-betting-guides__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-betting-guides__subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-betting-guides__section {
  padding: 80px 20px;
}

.page-betting-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-betting-guides__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.page-betting-guides__dark-bg .page-betting-guides__section-title {
  color: var(--text-light);
}

.page-betting-guides__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

.page-betting-guides__dark-bg .page-betting-guides__paragraph {
  color: var(--text-light);
}

.page-betting-guides__image-content {
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.page-betting-guides__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-betting-guides__list-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-betting-guides__dark-bg .page-betting-guides__list-item {
  color: var(--text-light);
}

.page-betting-guides__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-betting-guides__card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-betting-guides__card--alt-bg {
  background-color: rgba(255, 255, 255, 0.95);
}

.page-betting-guides__dark-bg .page-betting-guides__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-betting-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-betting-guides__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-betting-guides__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-betting-guides__dark-bg .page-betting-guides__card-title a {
  color: var(--text-light);
}

.page-betting-guides__card-title a:hover {
  text-decoration: underline;
}

.page-betting-guides__card-text {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-betting-guides__btn-primary,
.page-betting-guides__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;
  font-size: 1.05em;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-betting-guides__btn-primary {
  background-color: var(--button-register);
  color: var(--button-font-color);
  border: 2px solid var(--button-register);
}

.page-betting-guides__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-betting-guides__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-betting-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-betting-guides__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-betting-guides__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-betting-guides__cta-text {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-betting-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-betting-guides__faq-list {
  margin-top: 40px;
}

.page-betting-guides__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-betting-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-betting-guides__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-betting-guides__faq-question:hover {
  background-color: #f5f5f5;
}

.page-betting-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-betting-guides__faq-item.active .page-betting-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-betting-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fcfcfc;
  color: var(--text-dark);
}

.page-betting-guides__faq-item.active .page-betting-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-betting-guides__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

/* Ensure dark background sections have light text */
.page-betting-guides__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-betting-guides__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-betting-guides__main-title {
    font-size: 2.8em;
  }
  .page-betting-guides__section-title {
    font-size: 2em;
  }
  .page-betting-guides__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-betting-guides__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-betting-guides__hero-content {
    padding: 0 15px;
  }
  .page-betting-guides__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-betting-guides__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-betting-guides__section {
    padding: 50px 15px;
  }
  .page-betting-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-betting-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-betting-guides__paragraph,
  .page-betting-guides__list-item {
    font-size: 0.95em;
    text-align: left;
  }
  .page-betting-guides__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-betting-guides__card-image {
    height: 200px;
  }
  .page-betting-guides__card-title {
    font-size: 1.3em;
  }
  .page-betting-guides__cta-section {
    padding: 50px 15px;
  }
  .page-betting-guides__cta-title {
    font-size: 2em;
  }
  .page-betting-guides__cta-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-betting-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-betting-guides__btn-primary,
  .page-betting-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-betting-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-betting-guides__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-betting-guides__faq-answer {
    padding: 0 15px;
  }
  .page-betting-guides__faq-item.active .page-betting-guides__faq-answer {
    padding: 12px 15px;
  }
  /* Content area images must not display smaller than 200px */
  .page-betting-guides__image-content {
    min-width: 200px;
    min-height: 200px;
  }
  .page-betting-guides__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-betting-guides__main-title {
    font-size: 1.8em;
  }
  .page-betting-guides__section-title {
    font-size: 1.5em;
  }
  .page-betting-guides__cta-title {
    font-size: 1.8em;
  }
  .page-betting-guides__btn-primary,
  .page-betting-guides__btn-secondary {
    font-size: 0.95em;
    padding: 10px 20px;
  }
}