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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --btn-login: #EA7C07;
}

.page-resources-betting-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--bg-dark); /* Ensure main content area respects body bg */
}

.page-resources-betting-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

/* Hero Section */
.page-resources-betting-guide__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0; /* Standard padding, assuming shared handles body padding-top */
  min-height: 500px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-betting-guide__hero-section .page-resources-betting-guide__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-resources-betting-guide__hero-content {
  flex: 1;
  max-width: 600px;
}

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

.page-resources-betting-guide__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources-betting-guide__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-betting-guide__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* General Section Styling */
.page-resources-betting-guide__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-betting-guide__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-betting-guide__grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources-betting-guide__grid--reverse {
  flex-direction: row-reverse;
}

.page-resources-betting-guide__content-block {
  flex: 1;
}

.page-resources-betting-guide__content-block .page-resources-betting-guide__section-title {
  text-align: left;
}

.page-resources-betting-guide__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-betting-guide__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Buttons */
.page-resources-betting-guide__btn-primary,
.page-resources-betting-guide__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-resources-betting-guide__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

.page-resources-betting-guide__hero-content .page-resources-betting-guide__btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-resources-betting-guide__content-block .page-resources-betting-guide__btn-secondary {
  margin-top: 20px;
}

/* CTA Section */
.page-resources-betting-guide__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-resources-betting-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-betting-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-betting-guide__cta-buttons .page-resources-betting-guide__btn-primary {
  background-color: var(--btn-login); /* Use login color for primary CTA */
  border-color: var(--btn-login);
}

.page-resources-betting-guide__cta-buttons .page-resources-betting-guide__btn-primary:hover {
  background-color: darken(var(--btn-login), 10%);
  border-color: darken(var(--btn-login), 10%);
}

.page-resources-betting-guide__cta-buttons .page-resources-betting-guide__btn-secondary {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.page-resources-betting-guide__cta-buttons .page-resources-betting-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* FAQ Section */
.page-resources-betting-guide__faq-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-resources-betting-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-resources-betting-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-betting-guide__faq-question h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.2em;
}

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

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

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

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

.page-resources-betting-guide__faq-answer p {
  margin: 0;
  font-size: 1em;
}

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

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

  .page-resources-betting-guide__cta-title {
    font-size: 2.2em;
  }

  .page-resources-betting-guide__grid {
    flex-direction: column;
  }

  .page-resources-betting-guide__grid--reverse {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .page-resources-betting-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-betting-guide__hero-section {
    padding: 60px 0;
  }

  .page-resources-betting-guide__hero-section .page-resources-betting-guide__container {
    flex-direction: column;
  }

  .page-resources-betting-guide__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-resources-betting-guide__hero-content .page-resources-betting-guide__btn-primary {
    width: 100%;
  }

  .page-resources-betting-guide__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-resources-betting-guide__hero-title {
    font-size: 2.5em;
  }

  .page-resources-betting-guide__section {
    padding: 40px 0;
  }

  .page-resources-betting-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-betting-guide__content-block .page-resources-betting-guide__section-title {
    text-align: center;
  }

  /* Mobile image responsiveness */
  .page-resources-betting-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-betting-guide__section,
  .page-resources-betting-guide__card,
  .page-resources-betting-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-resources-betting-guide__cta-button,
  .page-resources-betting-guide__btn-primary,
  .page-resources-betting-guide__btn-secondary,
  .page-resources-betting-guide a[class*="button"],
  .page-resources-betting-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-betting-guide__cta-buttons,
  .page-resources-betting-guide__button-group,
  .page-resources-betting-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 15px;
  }

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

  .page-resources-betting-guide__cta-description {
    font-size: 1em;
  }

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

  .page-resources-betting-guide__faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources-betting-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    padding: 10px 20px;
  }
}