/* style/the-thao.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

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

.page-the-thao__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-the-thao__light-bg {
  background-color: var(--text-main);
  color: #333333; /* Dark text for light background */
}

.page-the-thao__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-the-thao__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

/* Buttons */
.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  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 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__btn-small {
  padding: 8px 18px;
  font-size: 0.95em;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 50px;
  overflow: hidden;
  text-align: center;
  color: var(--text-main);
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 30px;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--gold-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-the-thao__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-secondary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-the-thao__intro-heading {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--deep-green);
}

.page-the-thao__intro-text {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
}

/* Sports Overview Section */
.page-the-thao__sports-overview-section {
  padding: 80px 0;
}

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

.page-the-thao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

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

.page-the-thao__sport-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 70px; /* Ensure consistent card height */
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-the-thao__step-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-the-thao__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  background: var(--deep-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  border: 2px solid var(--gold-color);
}

.page-the-thao__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao__step-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-the-thao__guide-cta {
  margin-top: 50px;
}

/* Features Section */
.page-the-thao__features-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-the-thao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
}

.page-the-thao__feature-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-the-thao__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-the-thao__promotion-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao__promotion-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent card height */
}

.page-the-thao__promotions-cta {
  margin-top: 50px;
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-the-thao__why-choose-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-the-thao__why-choose-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.page-the-thao__why-choose-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao__why-choose-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

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

.page-the-thao__faq-question:hover {
  background-color: var(--primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
  text-align: left;
  color: var(--text-main);
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−';
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: left;
}

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

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

.page-the-thao__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-the-thao__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

/* General responsive for images and containers */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
  .page-the-thao__section-title,
  .page-the-thao__intro-heading,
  .page-the-thao__cta-title {
    font-size: 2.2em;
  }
  .page-the-thao__container {
    padding: 20px 30px;
  }
}

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

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }
  .page-the-thao__hero-title {
    font-size: clamp(2em, 8vw, 2.8em) !important;
    margin-top: 20px;
  }
  .page-the-thao__hero-description {
    font-size: 1em !important;
    padding: 0 15px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 20px;
  }

  /* Intro Section */
  .page-the-thao__intro-section {
    padding: 40px 0 !important;
  }
  .page-the-thao__intro-heading {
    font-size: 1.8em !important;
    padding: 0 15px;
  }
  .page-the-thao__intro-text {
    font-size: 1em !important;
    padding: 0 15px;
  }

  /* General Section Titles & Descriptions */
  .page-the-thao__section-title,
  .page-the-thao__cta-title {
    font-size: 2em !important;
    padding: 0 15px;
  }
  .page-the-thao__section-description,
  .page-the-thao__cta-description {
    font-size: 1em !important;
    padding: 0 15px;
    margin-bottom: 30px !important;
  }

  /* Sports Grid */
  .page-the-thao__sports-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }
  .page-the-thao__sport-text {
    min-height: auto !important;
  }

  /* Guide Steps */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }

  /* Features Grid */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }

  /* Promotions Grid */
  .page-the-thao__promotion-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }
  .page-the-thao__promotion-text {
    min-height: auto !important;
  }

  /* Why Choose Grid */
  .page-the-thao__why-choose-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    padding: 0 15px;
  }
  .page-the-thao__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }
  .page-the-thao__faq-answer {
    font-size: 0.95em !important;
    padding: 10px 20px 15px 20px !important;
  }

  /* CTA Bottom Section */
  .page-the-thao__cta-bottom-section {
    padding: 50px 0 !important;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 20px;
  }

  /* General Images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Containers */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__sports-overview-section,
  .page-the-thao__guide-section,
  .page-the-thao__features-section,
  .page-the-thao__promotions-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section,
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__guide-cta,
  .page-the-thao__promotions-cta,
  .page-the-thao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons specific mobile */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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;
  }

  /* Ensure flex containers wrap */
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__cta-buttons {
    flex-wrap: wrap !important;
    flex-direction: column !important; /* Ensure vertical stack on mobile */
    gap: 10px !important;
  }
}

@media (max-width: 549px) {
  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 9vw, 2.5em) !important;
  }
  .page-the-thao__section-title,
  .page-the-thao__intro-heading,
  .page-the-thao__cta-title {
    font-size: 1.6em !important;
  }
}