/* style/betting-guides.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-dark: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

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

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

.page-betting-guides__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-betting-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-betting-guides__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-betting-guides a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-betting-guides a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-betting-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-betting-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-betting-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-betting-guides__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-betting-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-betting-guides__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
}

/* Video Section */
.page-betting-guides__video-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-betting-guides__video-wrapper {
  width: 100%;
  max-width: 1000px; /* Match video width */
  margin: 0 auto 30px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.page-betting-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 200px; /* Enforce min video size */
  min-height: 200px; /* Enforce min video size */
}

.page-betting-guides__video-content {
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-betting-guides__video-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

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

.page-betting-guides__btn-primary,
.page-betting-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-betting-guides__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-betting-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-betting-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

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

.page-betting-guides__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-betting-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-betting-guides__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-betting-guides__card-text {
  font-size: 1em;
  color: var(--text-main);
}

/* Lists */
.page-betting-guides__list,
.page-betting-guides__ordered-list {
  list-style: none;
  padding: 0;
  margin-left: 20px;
  color: var(--text-main);
}

.page-betting-guides__list-item {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-betting-guides__list-item::before {
  content: '•';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

.page-betting-guides__ordered-list .page-betting-guides__list-item {
  counter-increment: list-counter;
}

.page-betting-guides__ordered-list .page-betting-guides__list-item::before {
  content: counter(list-counter) '.';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1em;
}

/* FAQ Section */
.page-betting-guides__faq-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

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

.page-betting-guides__faq-item {
  background-color: #2a2c33;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-betting-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  list-style: none; /* For details/summary */
}

.page-betting-guides__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-betting-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-betting-guides__faq-item[open] .page-betting-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-betting-guides__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-betting-guides__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }

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

  .page-betting-guides__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-betting-guides__section {
    padding: 40px 0;
  }

  .page-betting-guides__hero-section,
  .page-betting-guides__video-section {
    padding-bottom: 40px;
  }

  .page-betting-guides__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important; /* Mobile H1 */
  }

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

  .page-betting-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-betting-guides__btn-primary,
  .page-betting-guides__btn-secondary,
  .page-betting-guides a[class*="button"],
  .page-betting-guides 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-betting-guides__container,
  .page-betting-guides__section,
  .page-betting-guides__card,
  .page-betting-guides__introduction,
  .page-betting-guides__criteria,
  .page-betting-guides__betting-types,
  .page-betting-guides__beginner-guides,
  .page-betting-guides__advanced-tips,
  .page-betting-guides__responsible-gaming,
  .page-betting-guides__faq-section,
  .page-betting-guides__conclusion,
  .page-betting-guides__video-section,
  .page-betting-guides__video-container,
  .page-betting-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-betting-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-betting-guides video,
  .page-betting-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-betting-guides__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

  .page-betting-guides__list,
  .page-betting-guides__ordered-list {
    margin-left: 0;
  }

  .page-betting-guides__list-item,
  .page-betting-guides__ordered-list .page-betting-guides__list-item {
    padding-left: 0;
  }

  .page-betting-guides__list-item::before,
  .page-betting-guides__ordered-list .page-betting-guides__list-item::before {
    display: none;
  }
}