/* style/the-thao.css */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg-color: #D32F2F;
  --section-bg-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared body padding-top */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main-color);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: var(--deep-red-color);
  border: none;
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-the-thao__btn--secondary {
  background-color: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(201, 31, 23, 0.4);
}

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

.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--section-bg-color);
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__sub-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-the-thao__figure {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
}

.page-the-thao__figure-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__figure-caption {
  font-style: italic;
  font-size: 0.95em;
  color: #cccccc;
  margin-top: 10px;
}

.page-the-thao__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-the-thao__list-item::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-size: 1.2em;
  line-height: 1;
}

.page-the-thao__cta-box {
  background-color: var(--deep-red-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__cta-text {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

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

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

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

.page-the-thao__card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-the-thao__list--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

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

.page-the-thao__feature-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
}

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

.page-the-thao__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-the-thao__step-by-step {
  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-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: var(--deep-red-color);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 216, 106, 0.6);
}

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

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

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: var(--card-bg-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-the-thao__faq-question::-webkit-details-marker, 
.page-the-thao__faq-question::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: 0 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
  opacity: 1;
  max-height: 500px; /* Arbitrarily large value to allow content to show */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 0 30px;
  }

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

  .page-the-thao__hero-description {
    font-size: 1.1em;
  }

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

  .page-the-thao__sub-title {
    font-size: 1.6em;
  }

  .page-the-thao__list-item,
  .page-the-thao__text-block {
    font-size: 1em;
  }

  .page-the-thao__figure {
    max-width: 700px;
  }

  .page-the-thao__cta-text {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  /* 1. Top Section Title + Dual CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming shared body padding-top */
  }

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

  .page-the-thao__hero-content {
    width: 90%;
    padding: 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
    margin-bottom: 10px !important;
  }

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

  .page-the-thao__hero-cta {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 2. Single-Column Long Text Containers */
  .page-the-thao__section {
    padding: 40px 0 !important;
  }

  .page-the-thao__article-wrap {
    padding: 0 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: 30px !important;
  }

  .page-the-thao__sub-title {
    font-size: 1.4em !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .page-the-thao__text-block,
  .page-the-thao__list-item,
  .page-the-thao__card-text,
  .page-the-thao__feature-description,
  .page-the-thao__step-description,
  .page-the-thao__faq-answer p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .page-the-thao__cta-box {
    padding: 20px !important;
    margin-top: 30px !important;
  }

  .page-the-thao__cta-text {
    font-size: 1.1em !important;
    margin-bottom: 15px !important;
  }

  /* 3. Generic Images and Figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__figure {
    max-width: 100% !important;
    margin: 30px auto !important;
  }

  .page-the-thao__figure-caption {
    font-size: 0.85em !important;
  }

  /* 4. Buttons and Button Containers */
  .page-the-thao__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  .page-the-thao__hero-cta,
  .page-the-thao__cta-box {
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. Registration Tutorial and FAQ Blocks */
  .page-the-thao__grid-cards,
  .page-the-thao__features-grid,
  .page-the-thao__step-by-step {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__card,
  .page-the-thao__feature-item,
  .page-the-thao__step-item,
  .page-the-thao__faq-item {
    padding: 20px !important;
  }

  .page-the-thao__card-title,
  .page-the-thao__feature-title,
  .page-the-thao__step-title {
    font-size: 1.3em !important;
  }

  .page-the-thao__faq-question {
    font-size: 1.1em !important;
    padding: 15px !important;
  }

  .page-the-thao__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-the-thao__list--columns {
    grid-template-columns: 1fr !important;
  }

  .page-the-thao__list-item {
    margin-bottom: 10px !important;
  }
}