/* Base styles */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Assuming body is white */
  line-height: 1.6;
  padding-bottom: 40px; /* General padding for bottom of main content */
}

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-the-thao__section-title--white {
  color: #ffffff;
}

/* HERO Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  background-color: #26A9E0; /* Hero section background */
  padding-bottom: 40px;
}

.page-the-thao__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 15px;
  background-color: #ffffff; /* Light background for text block */
  border-radius: 8px;
  max-width: 900px;
  margin: -60px auto 0 auto; /* Pull content slightly over image */
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #333333; /* Dark text for light background */
}

.page-the-thao__main-title {
  font-size: clamp(1.8em, 5vw, 2.8em); /* Adjusted for clamp requirement */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-outline,
.page-the-thao a[class*="button"],
.page-the-thao a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  text-align: center;
}

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-the-thao__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-outline:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
}

.page-the-thao__image-content-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__content-image {
  width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-the-thao__image-content-row p {
  flex: 1;
}

/* Sports Types Section */
.page-the-thao__sports-types {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-the-thao__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards stretch */
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-the-thao__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__card-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Platform Features Section */
.page-the-thao__platform-features {
  padding: 60px 0;
}

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

.page-the-thao__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-the-thao__feature-icon {
  width: 100%; /* Adjusted for larger image display */
  max-width: 300px; /* Max width for feature images */
  height: 200px; /* Fixed height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-the-thao__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

/* How to Start Section */
.page-the-thao__how-to-start {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-the-thao__step-item {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.page-the-thao__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__cta-buttons--center {
  text-align: center;
}

/* Responsible Gaming Section */
.page-the-thao__responsible-gaming {
  padding: 60px 0;
  text-align: center;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-the-thao__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for questions */
  color: #26A9E0;
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #333333;
  background-color: #ffffff;
}

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

/* Contact CTA Section */
.page-the-thao__contact-cta {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-the-thao__container--flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.page-the-thao__contact-text {
  flex: 1;
}

.page-the-thao__contact-text .page-the-thao__section-title {
  text-align: left;
  margin-bottom: 15px;
}

.page-the-thao__contact-text p {
  margin-bottom: 0;
}

/* General image and button responsive styles for mobile */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__section,
.page-the-thao__card,
.page-the-thao__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    max-width: 700px;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-the-thao__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-the-thao__step-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
  }
  .page-the-thao__hero-image {
    max-height: 400px;
  }
  .page-the-thao__hero-content {
    margin-top: -30px;
    padding: 25px 15px;
  }
  .page-the-thao__main-title {
    /* font-size handled by clamp */
    margin-bottom: 10px;
  }
  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
  }

  /* Buttons */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline,
  .page-the-thao a[class*="button"],
  .page-the-thao 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-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;
    display: flex;
    flex-direction: column; /* For buttons in CTA sections */
  }

  /* Intro Section */
  .page-the-thao__intro-section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-the-thao__image-content-row {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__content-image {
    width: 100%;
    min-width: 200px;
    min-height: 150px; /* Adjusted min height for mobile */
  }

  /* Sports Types Section */
  .page-the-thao__sports-types {
    padding: 40px 0;
  }
  .page-the-thao__grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }
  .page-the-thao__card-image {
    height: 180px; /* Adjusted height for mobile cards */
    min-width: 200px;
    min-height: 150px;
  }

  /* Platform Features Section */
  .page-the-thao__platform-features {
    padding: 40px 0;
  }
  .page-the-thao__feature-list {
    grid-template-columns: 1fr; /* Single column for mobile */
  }
  .page-the-thao__feature-icon {
    max-width: 250px; /* Adjusted max width for feature images */
    height: 180px; /* Adjusted height for mobile */
    min-width: 200px;
    min-height: 150px;
  }

  /* How to Start Section */
  .page-the-thao__how-to-start {
    padding: 40px 0;
  }
  .page-the-thao__step-list {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  /* Responsible Gaming Section */
  .page-the-thao__responsible-gaming {
    padding: 40px 0;
  }

  /* FAQ Section */
  .page-the-thao__faq-section {
    padding: 40px 0;
  }
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-the-thao__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Contact CTA Section */
  .page-the-thao__contact-cta {
    padding: 40px 0;
  }
  .page-the-thao__container--flex {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__contact-text .page-the-thao__section-title {
    text-align: center;
  }

  /* General image and container styles for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}