/* style/the-thao.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --text-dark-color: #000000;
  --card-bg-color: #FFFFFF;
  --background-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--text-dark-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-the-thao__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-the-thao__button-group .page-the-thao__btn-primary,
.page-the-thao__button-group .page-the-thao__btn-secondary {
  flex-grow: 1;
  max-width: 300px;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom; /* Adjust to show more field */
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__hero-content {
  padding: 40px 20px 60px;
  position: relative;
  z-index: 1;
  background: linear-gradient(0deg, rgba(47, 107, 255, 0.8) 0%, rgba(47, 107, 255, 0.6) 100%);
  margin-top: -100px; /* Overlap image slightly */
  padding-top: 120px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__why-choose-section .page-the-thao__section-title {
  color: #ffffff;
}

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

.page-the-thao__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  min-height: 400px; /* Ensure cards have some height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-the-thao__feature-description {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-the-thao__sport-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__sport-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__sport-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-the-thao__sport-description {
  font-size: 1em;
  padding: 0 20px 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* How To Start Section */
.page-the-thao__how-to-start-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__how-to-start-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-the-thao__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-the-thao__step-description {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__step-card .page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
  width: calc(100% - 0px);
}

.page-the-thao__step-card .page-the-thao__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-the-thao__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__promo-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-the-thao__promo-description {
  font-size: 1em;
  padding: 0 20px 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Responsible Gaming Section */
.page-the-thao__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__responsible-gaming-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__responsible-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-the-thao__responsible-list li strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-dark-color);
  cursor: pointer;
  background-color: #fcfdff;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__faq-question:hover {
  background-color: #f0f5ff;
}

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

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

.page-the-thao__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  background-color: #ffffff;
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 25px 25px;
}

.page-the-thao__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

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

.page-the-thao__cta-section .page-the-thao__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

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

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

@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding-top: 100px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__step-card {
    min-height: 380px;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image {
    height: 180px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__sport-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 400px;
  }

  .page-the-thao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    margin-top: -60px;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    line-height: 1.3;
  }

  .page-the-thao__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    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__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__button-group .page-the-thao__btn-primary,
  .page-the-thao__button-group .page-the-thao__btn-secondary {
    max-width: 100%;
  }

  /* Section Titles */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Feature Grid */
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__step-card {
    min-height: auto;
    padding: 20px;
  }

  .page-the-thao__feature-icon {
    max-width: 200px;
    margin-bottom: 15px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-the-thao__feature-title,
  .page-the-thao__step-title {
    font-size: 1.4em;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image {
    height: 160px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-the-thao__sport-title,
  .page-the-thao__promo-title {
    font-size: 1.4em;
    margin: 15px 15px 8px;
  }

  .page-the-thao__sport-description,
  .page-the-thao__promo-description {
    padding: 0 15px 15px;
  }

  .page-the-thao__sport-card .page-the-thao__btn-secondary,
  .page-the-thao__promo-card .page-the-thao__btn-secondary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }

  /* Responsible Gaming List */
  .page-the-thao__responsible-list li {
    padding: 15px;
    font-size: 1em;
  }

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

  .page-the-thao__faq-answer {
    padding: 0 20px;
  }

  .page-the-thao__faq-item.active .page-the-thao__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-the-thao__faq-answer p {
    font-size: 0.95em;
  }

  /* General image and card responsive styles */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__card,
  .page-the-thao__section,
  .page-the-thao__container,
  .page-the-thao__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No specific carousel, guide box, home_content, blog grid for this non-index page, but including placeholders for completeness per instruction */
  /* Placeholder for top carousel if it were on a non-index page */
  .page-the-thao__hero-carousel-section { /* No specific rules here as this page uses a single hero image, not a carousel */ }
  
  /* Placeholder for guide box + five team cards */
  .page-the-thao__guide-box { /* Not applicable to this page */ }
  .page-the-thao__guide-grid { /* Not applicable to this page */ }
  .page-the-thao__guide-card { /* Not applicable to this page */ }

  /* Placeholder for home_content box */
  .page-the-thao__home-content-box { /* Not applicable to this page */ }
  .page-the-thao__home-content-inner { /* Not applicable to this page */ }

  /* Placeholder for blog card section */
  .page-the-thao__blog-section { /* This page uses blog type images in promo and sports sections, but not a dedicated blog grid */ }
  .page-the-thao__blog-grid { /* Not applicable to this page */ }
}