/* style/the-thao.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-login-text: #FFFF00;
  --background-color: #FFFFFF;
}

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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 16px;
}

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

.page-the-thao__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  max-width: 600px;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
}

.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: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-the-thao__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 60px 0;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__category-title,
.page-the-thao__dark-section .page-the-thao__why-item-title {
  color: var(--text-color-light);
}

/* Buttons */
.page-the-thao__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-login-text);
  border: 2px solid var(--button-register-bg);
}

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

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-the-thao__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-light);
}

.page-the-thao__category-media {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-the-thao__category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao__category-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--text-color-light);
}

.page-the-thao__category-description {
  font-size: 1em;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-the-thao__category-card .page-the-thao__btn-secondary {
  color: var(--text-color-light);
  border-color: var(--text-color-light);
  margin: 0 auto;
}

.page-the-thao__category-card .page-the-thao__btn-secondary:hover {
  background-color: var(--text-color-light);
  color: var(--primary-color);
}

/* Promotions Section */
.page-the-thao__promo-cards-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(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-the-thao__promo-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__promo-description {
  font-size: 1em;
  color: var(--text-color-dark);
  margin-bottom: 25px;
}

.page-the-thao__center-button {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-the-thao__why-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__why-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__why-item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-color-light);
}

.page-the-thao__why-item-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-the-thao__guide-step {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__guide-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-the-thao__guide-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-the-thao__guide-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__guide-description {
  font-size: 1em;
  color: var(--text-color-dark);
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  font-size: 1.05em;
  color: var(--text-color-dark);
}

/* Contact CTA Section */
.page-the-thao__contact-cta {
  text-align: center;
  padding: 80px 0;
}

.page-the-thao__contact-cta-content {
  max-width: 800px;
}

.page-the-thao__contact-cta .page-the-thao__section-title {
  color: var(--text-color-light);
  margin-bottom: 25px;
}

.page-the-thao__contact-cta .page-the-thao__text-block {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Responsive Styles */

/* Desktop/Tablet */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: 2.8em;
  }
  .page-the-thao__section-title {
    font-size: 2.2em;
  }
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__hero-content {
    text-align: center;
  }
  .page-the-thao__hero-cta-buttons {
    justify-content: center;
  }
}

/* Mobile Styles (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* HERO Section (Must be present) */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 30px 0;
  }

  .page-the-thao__hero-content {
    text-align: center;
    min-width: unset;
  }

  .page-the-thao__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-image {
    min-width: unset;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons (Must be present) */
  .page-the-thao__cta-button,
  .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;
  }

  .page-the-thao__hero-cta-buttons,
  .page-the-thao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-the-thao__light-bg,
  .page-the-thao__dark-section {
    padding: 40px 0;
  }

  /* Intro Section */
  .page-the-thao__text-block {
    font-size: 1em;
  }

  /* Sports Categories Section */
  .page-the-thao__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__category-media {
    height: 180px;
  }
  .page-the-thao__category-media img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotions Section */
  .page-the-thao__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Why Choose Section */
  .page-the-thao__why-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__why-item-title {
    font-size: 1.2em;
  }

  /* Guide Section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__guide-icon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section (Must be present) */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-the-thao__faq-answer {
    padding: 10px 20px 20px;
    font-size: 1em;
  }

  /* Contact CTA Section */
  .page-the-thao__contact-cta {
    padding: 60px 0;
  }
  .page-the-thao__contact-cta-content {
    padding: 0 15px;
  }

  /* Generic Image rule (Must be present for all images) */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers containing images or content (Must be present) */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__promotions-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta,
  .page-the-thao__category-card,
  .page-the-thao__promo-card,
  .page-the-thao__why-item,
  .page-the-thao__guide-step,
  .page-the-thao__faq-item,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}