/* style/the-thao.css */
/* Base Styles */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

.page-the-thao__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color schemes */
.page-the-thao__dark-bg,
.page-the-thao__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__section-description {
  color: #ffffff;
}

.page-the-thao__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text wraps */
  text-align: center;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-tertiary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text */
  border: 2px solid #017439;
}

.page-the-thao__btn-primary:hover,
.page-the-thao__btn-tertiary:hover {
  background-color: #005a2d; /* Slightly darker green */
  border-color: #005a2d;
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* As per rule, small top padding */
  padding-bottom: 60px;
  text-align: center;
}

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__main-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 600px;
  color: #ffffff; /* White text for dark hero */
}

.page-the-thao__hero-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 600px;
  color: #f0f0f0; /* Light text for dark hero */
}

.page-the-thao__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: block;
}

/* Intro Section (Feature Grid) */
.page-the-thao__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-the-thao__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-the-thao__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0f2e8; /* Light green background for icon box */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is also round */
  display: block;
}

.page-the-thao__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-the-thao__feature-text {
  font-size: 16px;
  color: #555555;
}

/* Categories Section */
.page-the-thao__categories-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-the-thao__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__category-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-the-thao__category-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-the-thao__category-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-the-thao__category-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-the-thao__btn-tertiary {
  margin: 0 15px 20px;
}

/* How To Bet Section */
.page-the-thao__how-to-bet-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__guide-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-the-thao__guide-step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-the-thao__guide-step-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__guide-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-the-thao__guide-link:hover {
  color: #005a2d;
  text-decoration: underline;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e0f2e8; /* Light green background for question */
  border-bottom: 1px solid #d0e8d8;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid #c0e0c8;
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  background-color: #ffffff;
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
}

.page-the-thao__faq-answer .page-the-thao__guide-link {
  margin-top: 10px;
}

/* Remove default details marker */
.page-the-thao__faq-item summary {
  list-style: none;
}
.page-the-thao__faq-item summary::-webkit-details-marker {
  display: none;
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-the-thao__cta-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Universal Responsive Images */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------- */
/* Responsive Styles */
/* --------------------------------------------------- */

@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 38px;
  }
  .page-the-thao__section-title {
    font-size: 28px;
  }
  .page-the-thao__hero-container {
    padding: 30px 16px;
  }
  .page-the-thao__container {
    padding: 30px 16px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: 26px;
  }
  .page-the-thao__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Specific override for hero top padding */
    padding-bottom: 40px;
  }
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 20px;
  }
  .page-the-thao__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-the-thao__main-title {
    font-size: 32px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-the-thao__hero-description {
    font-size: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }
  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Buttons */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"],
  .page-the-thao__guide-link { /* Including guide-link for consistent button-like styling */
    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-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section (Feature Grid) */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__icon-box-media {
    width: 200px; /* Smaller for mobile */
    height: 200px; /* Maintain square aspect ratio */
    margin-bottom: 15px;
  }

  /* Categories Section */
  .page-the-thao__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__category-image {
    height: auto; /* Allow height to adjust */
  }
  .page-the-thao__category-card h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 8px;
  }
  .page-the-thao__category-card p {
    font-size: 15px;
    padding-bottom: 15px;
  }
  .page-the-thao__btn-tertiary {
    margin-bottom: 15px;
  }

  /* How To Bet Section */
  .page-the-thao__guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__guide-item {
    padding: 25px;
  }
  .page-the-thao__guide-step-title {
    font-size: 20px;
  }
  .page-the-thao__guide-step-text {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
  }

  /* CTA Bottom Section */
  .page-the-thao__cta-bottom-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .page-the-thao__cta-bottom-content .page-the-thao__section-title {
    font-size: 26px;
  }
  .page-the-thao__cta-bottom-content .page-the-thao__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Universal Image Adaption */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Exception for round icon box media */
  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}