/* style/resources-online-betting-guide.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --login-button-color: #EA7C07;
  --background-color: #FFFFFF;
  --black-color: #000000;
}

.page-resources-online-betting-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color);
}

.page-resources-online-betting-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
  color: var(--text-color-light);
  overflow: hidden;
}

.page-resources-online-betting-guide__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

.page-resources-online-betting-guide__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.page-resources-online-betting-guide__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-online-betting-guide__btn-primary,
.page-resources-online-betting-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-online-betting-guide__btn-primary {
  background-color: var(--login-button-color);
  color: var(--text-color-light);
  border: 2px solid var(--login-button-color);
}

.page-resources-online-betting-guide__btn-primary:hover {
  background-color: #d16b06; /* Darken #EA7C07 */
  border-color: #d16b06;
}

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

.page-resources-online-betting-guide__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources-online-betting-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-online-betting-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-resources-online-betting-guide__section {
  padding: 60px 20px;
}

.page-resources-online-betting-guide__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-resources-online-betting-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-resources-online-betting-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-online-betting-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 800px;
  background-color: var(--black-color);
  border-radius: 10px;
}

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

.page-resources-online-betting-guide__video-caption {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.9em;
  color: inherit;
}

.page-resources-online-betting-guide__feature-grid,
.page-resources-online-betting-guide__info-grid,
.page-resources-online-betting-guide__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-online-betting-guide__card,
.page-resources-online-betting-guide__info-card,
.page-resources-online-betting-guide__step-card {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-resources-online-betting-guide__card:hover,
.page-resources-online-betting-guide__info-card:hover,
.page-resources-online-betting-guide__step-card:hover {
  transform: translateY(-5px);
}

.page-resources-online-betting-guide__card-title,
.page-resources-online-betting-guide__info-card-title,
.page-resources-online-betting-guide__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-online-betting-guide__card-text,
.page-resources-online-betting-guide__info-card-text,
.page-resources-online-betting-guide__step-text {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-resources-online-betting-guide__card-image,
.page-resources-online-betting-guide__info-card-image,
.page-resources-online-betting-guide__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* FAQ Section */
.page-resources-online-betting-guide__faq-section {
  background-color: #f8f8f8;
}

.page-resources-online-betting-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-online-betting-guide__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

.page-resources-online-betting-guide__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

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

.page-resources-online-betting-guide__faq-item.active .page-resources-online-betting-guide__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for '-' */
}

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

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

.page-resources-online-betting-guide__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1em;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-betting-guide__main-title {
    font-size: 2.8em;
  }

  .page-resources-online-betting-guide__intro-text {
    font-size: 1.2em;
  }

  .page-resources-online-betting-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-betting-guide__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-resources-online-betting-guide__main-title {
    font-size: 2em;
  }

  .page-resources-online-betting-guide__intro-text {
    font-size: 1.1em;
  }

  .page-resources-online-betting-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-online-betting-guide__btn-primary,
  .page-resources-online-betting-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-online-betting-guide__section,
  .page-resources-online-betting-guide__container,
  .page-resources-online-betting-guide__feature-grid,
  .page-resources-online-betting-guide__info-grid,
  .page-resources-online-betting-guide__steps-grid,
  .page-resources-online-betting-guide__card,
  .page-resources-online-betting-guide__info-card,
  .page-resources-online-betting-guide__step-card,
  .page-resources-online-betting-guide__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-online-betting-guide__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources-online-betting-guide__card-image,
  .page-resources-online-betting-guide__info-card-image,
  .page-resources-online-betting-guide__step-image,
  .page-resources-online-betting-guide__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-online-betting-guide__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    overflow: hidden !important;
  }

  .page-resources-online-betting-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-resources-online-betting-guide__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-resources-online-betting-guide__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-online-betting-guide__main-title {
    font-size: 1.8em;
  }

  .page-resources-online-betting-guide__intro-text {
    font-size: 1em;
  }

  .page-resources-online-betting-guide__section-title {
    font-size: 1.8em;
  }
}