/* Base Styles */
.page-blog-w88hcm-sports-betting-guide {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #f9f9f9;
  line-height: 1.6;
}

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

.page-blog-w88hcm-sports-betting-guide__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-blog-w88hcm-sports-betting-guide__section:first-of-type {
    padding-top: 10px; /* Small top padding for the first section */
}

.page-blog-w88hcm-sports-betting-guide__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog-w88hcm-sports-betting-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-blog-w88hcm-sports-betting-guide__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog-w88hcm-sports-betting-guide__article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog-w88hcm-sports-betting-guide__article-body p {
    margin-bottom: 15px;
    font-size: 17px;
}

.page-blog-w88hcm-sports-betting-guide__article-body a {
    color: #017439;
    text-decoration: underline;
}

.page-blog-w88hcm-sports-betting-guide__article-body a:hover {
    color: #005f2c;
}

.page-blog-w88hcm-sports-betting-guide__article-figure {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-blog-w88hcm-sports-betting-guide__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0; /* Remove margin-bottom to avoid double spacing */
  padding: 0;
  background-color: #017439;
}

.page-blog-w88hcm-sports-betting-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-blog-w88hcm-sports-betting-guide__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog-w88hcm-sports-betting-guide__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-blog-w88hcm-sports-betting-guide__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog-w88hcm-sports-betting-guide__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-blog-w88hcm-sports-betting-guide__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-w88hcm-sports-betting-guide__btn-primary,
.page-blog-w88hcm-sports-betting-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog-w88hcm-sports-betting-guide__btn-primary {
  background-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
  border-color: #C30808;
}

.page-blog-w88hcm-sports-betting-guide__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
}

.page-blog-w88hcm-sports-betting-guide__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
}

.page-blog-w88hcm-sports-betting-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
  transform: translateY(-2px);
}

.page-blog-w88hcm-sports-betting-guide__cta-buttons--bottom {
  margin-top: 40px;
}

/* List Styles */
.page-blog-w88hcm-sports-betting-guide__list,
.page-blog-w88hcm-sports-betting-guide__numbered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog-w88hcm-sports-betting-guide__numbered-list {
  list-style-type: decimal;
}

.page-blog-w88hcm-sports-betting-guide__list li,
.page-blog-w88hcm-sports-betting-guide__numbered-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-blog-w88hcm-sports-betting-guide__list li strong,
.page-blog-w88hcm-sports-betting-guide__numbered-list li strong {
  color: #017439;
}

/* FAQ Section */
details.page-blog-w88hcm-sports-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-blog-w88hcm-sports-betting-guide__faq-item summary.page-blog-w88hcm-sports-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-blog-w88hcm-sports-betting-guide__faq-item summary.page-blog-w88hcm-sports-betting-guide__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog-w88hcm-sports-betting-guide__faq-item summary.page-blog-w88hcm-sports-betting-guide__faq-question:hover {
  background: #f5f5f5;
}

.page-blog-w88hcm-sports-betting-guide__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-blog-w88hcm-sports-betting-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-blog-w88hcm-sports-betting-guide__faq-toggle {
    transform: rotate(45deg);
}

details.page-blog-w88hcm-sports-betting-guide__faq-item .page-blog-w88hcm-sports-betting-guide__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #555555;
}

.page-blog-w88hcm-sports-betting-guide__faq-answer p {
    margin-bottom: 0;
}

/* General Image Responsive Styles */
.page-blog-w88hcm-sports-betting-guide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog-w88hcm-sports-betting-guide__hero-section {
    height: 500px;
  }

  .page-blog-w88hcm-sports-betting-guide__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog-w88hcm-sports-betting-guide__description {
    font-size: 1rem;
  }

  .page-blog-w88hcm-sports-betting-guide__section-title {
    font-size: 30px;
  }

  .page-blog-w88hcm-sports-betting-guide__sub-title {
    font-size: 22px;
  }

  .page-blog-w88hcm-sports-betting-guide__btn-primary,
  .page-blog-w88hcm-sports-betting-guide__btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
  }

  .page-blog-w88hcm-sports-betting-guide__article-body p,
  .page-blog-w88hcm-sports-betting-guide__list li,
  .page-blog-w88hcm-sports-betting-guide__numbered-list li,
  .page-blog-w88hcm-sports-betting-guide__faq-qtext,
  .page-blog-w88hcm-sports-betting-guide__faq-answer {
    font-size: 16px;
  }

  /* HERO mobile object-fit:contain */
  .page-blog-w88hcm-sports-betting-guide__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove aspect ratio constraint */
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog-w88hcm-sports-betting-guide__hero-section {
    height: auto;
    min-height: 400px;
    padding: 10px 0; /* Small top padding */
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-blog-w88hcm-sports-betting-guide__hero-image {
    position: relative;
    height: 250px;
    order: 1;
  }

  .page-blog-w88hcm-sports-betting-guide__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog-w88hcm-sports-betting-guide__hero-content {
    order: 2;
    padding: 20px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for mobile */
    border-radius: 0 0 10px 10px;
  }

  .page-blog-w88hcm-sports-betting-guide__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-blog-w88hcm-sports-betting-guide__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Section Titles */
  .page-blog-w88hcm-sports-betting-guide__section-title {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-blog-w88hcm-sports-betting-guide__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-blog-w88hcm-sports-betting-guide__sub-title {
    font-size: 20px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Article Body & General Content */
  .page-blog-w88hcm-sports-betting-guide__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-w88hcm-sports-betting-guide__article-body {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-w88hcm-sports-betting-guide__article-body p,
  .page-blog-w88hcm-sports-betting-guide__list li,
  .page-blog-w88hcm-sports-betting-guide__numbered-list li {
    font-size: 15px;
  }

  .page-blog-w88hcm-sports-betting-guide__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  /* General Images */
  .page-blog-w88hcm-sports-betting-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Buttons */
  .page-blog-w88hcm-sports-betting-guide__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-w88hcm-sports-betting-guide__btn-primary,
  .page-blog-w88hcm-sports-betting-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ */
  details.page-blog-w88hcm-sports-betting-guide__faq-item summary.page-blog-w88hcm-sports-betting-guide__faq-question {
    padding: 15px;
  }

  .page-blog-w88hcm-sports-betting-guide__faq-qtext {
    font-size: 16px;
  }

  .page-blog-w88hcm-sports-betting-guide__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-blog-w88hcm-sports-betting-guide__faq-item .page-blog-w88hcm-sports-betting-guide__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}