/* style/betting-guides.css */
:root {
  --primary-color: #0A246A;
  --secondary-color: #F3C72B;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f9f9f9;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-betting-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css body #000 */
}

/* Ensure content is not hidden by fixed header */
.page-betting-guides__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
}

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

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

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

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

.page-betting-guides__main-title,
.page-betting-guides__section-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-betting-guides__hero-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-betting-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-betting-guides__cta-buttons--center {
  margin-top: 40px;
}

.page-betting-guides__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

.page-betting-guides__btn-primary:hover {
  background: darken(var(--secondary-color), 10%); /* Placeholder for darker shade */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-betting-guides__dark-section .page-betting-guides__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-betting-guides__light-bg .page-betting-guides__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-betting-guides__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

.page-betting-guides__card,
.page-betting-guides__game-card {
  background-color: var(--card-background-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-betting-guides__dark-section .page-betting-guides__card,
.page-betting-guides__dark-section .page-betting-guides__game-card {
  background-color: var(--card-background-dark);
  color: var(--text-light);
}

.page-betting-guides__card:hover,
.page-betting-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-betting-guides__card-image,
.page-betting-guides__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-betting-guides__card-title,
.page-betting-guides__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: inherit;
}

.page-betting-guides__card p,
.page-betting-guides__game-card p {
  font-size: 16px;
  padding: 0 20px 20px 20px;
  color: inherit;
  flex-grow: 1;
}

.page-betting-guides__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-betting-guides__step-item {
  background-color: var(--card-background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
  padding-left: 80px; /* Space for step number */
}

.page-betting-guides__step-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  line-height: 1;
}

.page-betting-guides__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: inherit;
}

.page-betting-guides__step-item p {
  font-size: 16px;
  color: inherit;
}

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

.page-betting-guides__tip-item {
  background-color: var(--card-background-dark);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-betting-guides__tip-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: inherit;
}

.page-betting-guides__tip-item p {
  font-size: 16px;
  color: inherit;
}

/* FAQ styles */
.page-betting-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-betting-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-background-light);
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-betting-guides__dark-section .page-betting-guides__faq-item {
  background-color: var(--card-background-dark);
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-betting-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: inherit;
}

.page-betting-guides__dark-section .page-betting-guides__faq-question {
  background: var(--card-background-dark);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

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

.page-betting-guides__dark-section .page-betting-guides__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-betting-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit;
}

.page-betting-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-betting-guides__dark-section .page-betting-guides__faq-toggle {
  color: var(--secondary-color);
}

.page-betting-guides__faq-item.active .page-betting-guides__faq-toggle {
  transform: rotate(45deg); /* Change to X or just - */
  color: var(--secondary-color);
}

.page-betting-guides__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 25px;
  opacity: 0;
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

.page-betting-guides__faq-item.active .page-betting-guides__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f0f0f0; /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
}

.page-betting-guides__dark-section .page-betting-guides__faq-item.active .page-betting-guides__faq-answer {
  background: rgba(255, 255, 255, 0.08); /* Darker background for answer */
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-betting-guides__main-title,
  .page-betting-guides__section-title {
    font-size: 36px;
  }
  .page-betting-guides__hero-description {
    font-size: 17px;
  }
  .page-betting-guides__section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .page-betting-guides__hero-section {
    padding-top: 100px !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
  }
  .page-betting-guides__container {
    padding: 0 15px;
  }
  .page-betting-guides__main-title,
  .page-betting-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-betting-guides__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-betting-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-betting-guides__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-betting-guides__grid-3-col, .page-betting-guides__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-betting-guides__card-image, .page-betting-guides__game-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-betting-guides__card-title,
  .page-betting-guides__game-title {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }
  .page-betting-guides__card p,
  .page-betting-guides__game-card p {
    font-size: 15px;
    padding: 0 15px 15px 15px;
  }
  .page-betting-guides__step-item {
    padding: 25px;
    padding-left: 70px;
  }
  .page-betting-guides__step-item::before {
    left: 20px;
    font-size: 30px;
    top: 25px;
  }
  .page-betting-guides__step-title {
    font-size: 20px;
  }
  .page-betting-guides__tip-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-betting-guides__tip-item {
    padding: 25px;
  }
  .page-betting-guides__tip-title {
    font-size: 20px;
  }
  .page-betting-guides__faq-question {
    padding: 15px 20px;
  }
  .page-betting-guides__faq-question h3 {
    font-size: 16px;
  }
  .page-betting-guides__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-betting-guides__faq-item.active .page-betting-guides__faq-answer {
    padding: 15px 20px !important;
  }
  .page-betting-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-betting-guides__section,
  .page-betting-guides__card,
  .page-betting-guides__container,
  .page-betting-guides__game-card,
  .page-betting-guides__step-item,
  .page-betting-guides__tip-item,
  .page-betting-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-betting-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-betting-guides__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-betting-guides__main-title,
  .page-betting-guides__section-title {
    font-size: 24px;
  }
  .page-betting-guides__hero-description {
    font-size: 15px;
  }
  .page-betting-guides__cta-button {
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  .page-betting-guides__card-title,
  .page-betting-guides__game-title {
    font-size: 18px;
  }
  .page-betting-guides__card p,
  .page-betting-guides__game-card p,
  .page-betting-guides__step-item p,
  .page-betting-guides__tip-item p,
  .page-betting-guides__faq-answer p {
    font-size: 14px;
  }
  .page-betting-guides__step-title {
    font-size: 18px;
  }
  .page-betting-guides__tip-title {
    font-size: 18px;
  }
  .page-betting-guides__faq-question h3 {
    font-size: 15px;
  }
}