/* style/the-thao.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Aligns with shared body padding, preventing double spacing */
  padding-bottom: 60px;
  background-color: var(--background-color);
}

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

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--text-main-color);
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  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(255, 211, 107, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

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

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

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

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

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

.page-the-thao__icon-box {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-the-thao__icon-box-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__icon-box-text {
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.5;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.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: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
}

.page-the-thao__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__category-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__category-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  margin-top: auto;
}

.page-the-thao__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 211, 107, 0.4);
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

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

.page-the-thao__step-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-the-thao__step-text {
  font-size: 0.95em;
  color: var(--text-main-color);
  line-height: 1.5;
}

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

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

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

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

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1em;
  list-style: none;
  outline: none;
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  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;
  background-color: #1a1a1a; /* Slightly lighter than card-bg */
  color: var(--text-main-color);
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

/* Contact CTA Section */
.page-the-thao__contact-cta-section {
  background-color: var(--background-color);
  padding: 60px 0 80px;
  text-align: center;
}

.page-the-thao__contact-cta-section .page-the-thao__cta-buttons {
  justify-content: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }

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

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

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

  .page-the-thao__intro-grid,
  .page-the-thao__categories-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-the-thao__icon-box-media {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    padding: 20px 15px;
    flex-direction: column-reverse !important;
    gap: 20px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  /* 6. Buttons */
  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 0.9em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-the-thao__content-container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-the-thao__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* 2. Module 1 Three-column circular images */
  .page-the-thao__intro-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    border-width: 3px;
  }

  .page-the-thao__icon-box-title {
    font-size: 1.3em;
  }

  /* 3. Seven Tab Game Area (N/A for this page, but general content rules apply) */
  /* If there were game tabs, they would stack or use a carousel */

  /* 4. Tutorial / Promo / Trust / FAQ / Intro Layout */
  .page-the-thao__categories-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .page-the-thao__category-card {
    margin-bottom: 15px;
  }

  .page-the-thao__category-image {
    height: 200px;
  }

  .page-the-thao__category-title {
    font-size: 1.4em;
  }

  .page-the-thao__category-text {
    font-size: 0.9em;
  }

  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-the-thao__step-title {
    font-size: 1.2em;
  }

  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-the-thao__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95em;
  }

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

  .page-the-thao__category-card img {
    height: auto !important;
  }

  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure no overflow for any content block */
  .page-the-thao {
    overflow-x: hidden;
  }
}