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

/* Variables for consistent styling */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #2F4F4F; /* Dark Green */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --card-dark-bg: rgba(255, 255, 255, 0.1);
  --card-light-bg: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources-sports-betting-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if body background changes */
  overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

/* Ensure main content starts below the fixed header */
.page-resources-sports-betting-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px; /* Adjust padding as needed, ensure spacing from top */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  text-align: center;
  overflow: hidden;
}

.page-resources-sports-betting-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-resources-sports-betting-guide__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-resources-sports-betting-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-sports-betting-guide__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-sports-betting-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold for contrast */
  border: 2px solid var(--primary-color);
}

.page-resources-sports-betting-guide__btn-primary:hover {
  background-color: var(--secondary-color); /* Dark green background */
  color: var(--primary-color); /* Gold text for contrast */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-resources-sports-betting-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold for contrast */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-sports-betting-guide__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* General Section Styling */
.page-resources-sports-betting-guide__section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.page-resources-sports-betting-guide__dark-bg {
  background-color: var(--secondary-color); /* Dark green */
  color: var(--text-light);
}

.page-resources-sports-betting-guide__light-bg {
  background-color: var(--card-light-bg); /* White */
  color: var(--text-dark);
}

.page-resources-sports-betting-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--primary-color);
}

/* Feature Grid */
.page-resources-sports-betting-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-sports-betting-guide__feature-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-sports-betting-guide__card {
  background: var(--card-dark-bg); /* Default for dark sections */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-sports-betting-guide__light-bg .page-resources-sports-betting-guide__card {
  background: var(--card-light-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}


.page-resources-sports-betting-guide__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-sports-betting-guide__feature-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Min size for all images */
}

.page-resources-sports-betting-guide__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-sports-betting-guide__text-block {
  font-size: 1em;
  line-height: 1.7;
}

/* Steps Grid */
.page-resources-sports-betting-guide__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-sports-betting-guide__step-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-sports-betting-guide__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-sports-betting-guide__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

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

/* Content Grid (for bet types) */
.page-resources-sports-betting-guide__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-sports-betting-guide__content-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-sports-betting-guide__content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-sports-betting-guide__content-subtitle {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-resources-sports-betting-guide__content-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Min size for all images */
}

/* Tips Grid */
.page-resources-sports-betting-guide__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-sports-betting-guide__tip-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-sports-betting-guide__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-sports-betting-guide__tip-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}


/* FAQ Section */
.page-resources-sports-betting-guide__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources-sports-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-resources-sports-betting-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state */
.page-resources-sports-betting-guide__faq-item.active .page-resources-sports-betting-guide__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficiently large max-height */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-dark-bg); /* Use dark card background for dark section */
  color: var(--text-light); /* Light text for dark background */
  border-radius: 0 0 5px 5px;
}
/* For light background FAQ sections, ensure proper colors */
.page-resources-sports-betting-guide__light-bg .page-resources-sports-betting-guide__faq-item.active .page-resources-sports-betting-guide__faq-answer {
  background: #f9f9f9; /* Lighter background for light section */
  color: var(--text-dark); /* Dark text for light background */
}