/* style/resources-betting-guides.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-btn-bg: #C30808;
  --register-login-font-color: #FFFF00;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
  --section-padding: 60px 20px;
  --container-max-width: 1200px;
}

.page-resources-betting-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
}

.page-resources-betting-guides__hero-section {
  position: relative;
  width: 100%;
  padding: var(--section-padding);
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for header offset, adding some extra space */
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources-betting-guides__video-section {
  position: relative;
  width: 100%;
  padding: var(--section-padding);
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  text-align: center;
}

.page-resources-betting-guides__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-resources-betting-guides__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources-betting-guides__section-title:first-of-type {
  margin-top: 0;
}

.page-resources-betting-guides__content-area {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  padding: var(--section-padding);
}

.page-resources-betting-guides p {
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

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

.page-resources-betting-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources-betting-guides__btn-primary,
.page-resources-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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-resources-betting-guides__btn-primary:hover {
  background-color: darken(var(--register-login-btn-bg), 10%);
  border-color: darken(var(--register-login-btn-bg), 10%);
}

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

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

.page-resources-betting-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 20px auto;
  border-radius: 8px;
}

.page-resources-betting-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-resources-betting-guides__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-resources-betting-guides__video-description {
  font-size: 0.95em;
  color: var(--dark-text-color);
  margin-top: 15px;
}

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

.page-resources-betting-guides__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-betting-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-resources-betting-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-resources-betting-guides__faq-answer {
  padding: 0 20px 15px 20px;
  color: var(--dark-text-color);
  font-size: 0.95em;
}

.page-resources-betting-guides__faq-item[open] .page-resources-betting-guides__faq-question {
  background-color: #f0f0f0;
}

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

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

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

/* Color Contrast System */
.page-resources-betting-guides__dark-bg {
  color: var(--light-text-color);
  background: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-betting-guides__main-title {
    font-size: 2.2em;
  }
  .page-resources-betting-guides__section-title {
    font-size: 1.8em;
  }
  .page-resources-betting-guides__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-betting-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-betting-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 400px;
  }
  .page-resources-betting-guides__main-title {
    font-size: 1.8em;
  }
  .page-resources-betting-guides__intro-text {
    font-size: 1em;
  }
  .page-resources-betting-guides__section-title {
    font-size: 1.5em;
  }
  .page-resources-betting-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-betting-guides__btn-primary,
  .page-resources-betting-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-betting-guides__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile video section padding */
  }
  .page-resources-betting-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-resources-betting-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-betting-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-betting-guides__section,
  .page-resources-betting-guides__card,
  .page-resources-betting-guides__container,
  .page-resources-betting-guides__content-area,
  .page-resources-betting-guides__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-betting-guides__faq-question {
    padding: 12px 15px;
  }
  .page-resources-betting-guides__faq-answer {
    padding: 0 15px 12px 15px;
  }
}