/* style/the-thao.css */

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

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

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

/* Top Section - H1 and CTA */
.page-the-thao__top-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background: var(--page-the-thao-deep-red);
  color: var(--page-the-thao-text-main);
}

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

.page-the-thao__intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn--primary {
  background: var(--page-the-thao-btn-gradient);
  color: var(--page-the-thao-deep-red);
  border: 2px solid var(--page-the-thao-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__btn--secondary {
  background-color: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  border: 2px solid var(--page-the-thao-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__btn--tertiary {
  background-color: transparent;
  color: var(--page-the-thao-gold);
  border: 2px solid var(--page-the-thao-gold);
  box-shadow: none;
}

.page-the-thao__btn--tertiary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-the-thao__btn--small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-the-thao__btn--large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.page-the-thao__cta-buttons--center {
  margin-top: 30px;
}

/* Content Sections */
.page-the-thao__content-section {
  padding: 50px 0;
}

.page-the-thao__dark-section {
  background-color: var(--page-the-thao-deep-red);
  color: var(--page-the-thao-text-main);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-the-thao-gold);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-the-thao__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--page-the-thao-text-main);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__text-block a {
  color: var(--page-the-thao-gold);
  text-decoration: underline;
}

.page-the-thao__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__list-item strong {
  color: var(--page-the-thao-gold);
}

/* Images */
.page-the-thao__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-the-thao__image-caption {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--page-the-thao-text-main);
  margin-top: 10px;
}

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

.page-the-thao__sports-card {
  background-color: var(--page-the-thao-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--page-the-thao-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__sports-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__sports-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--page-the-thao-border);
  margin-bottom: 15px;
}

.page-the-thao__sports-card .page-the-thao__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-the-thao-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-the-thao__sports-card .page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--page-the-thao-text-main);
  padding: 0 15px;
}

/* Step-by-Step Guide */
.page-the-thao__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__step-card {
  background-color: var(--page-the-thao-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--page-the-thao-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--page-the-thao-btn-gradient);
  color: var(--page-the-thao-deep-red);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  border: 2px solid var(--page-the-thao-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--page-the-thao-gold);
  margin-bottom: 10px;
}

.page-the-thao__step-description {
  font-size: 0.95rem;
  color: var(--page-the-thao-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-the-thao__feature-card {
  background-color: var(--page-the-thao-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: center;
  padding: 25px;
  border: 1px solid var(--page-the-thao-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__feature-card img {
   /* Smaller icon-like images for features, but still >=200px if they were content images */
  
  object-fit: contain;
  margin-bottom: 15px;
}

.page-the-thao__feature-card .page-the-thao__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--page-the-thao-gold);
  margin-bottom: 10px;
}

.page-the-thao__feature-card .page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--page-the-thao-text-main);
  flex-grow: 1;
}

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-the-thao-gold);
  cursor: pointer;
  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-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
  color: var(--page-the-thao-gold);
}

.page-the-thao__faq-answer {
  padding: 0 20px 15px;
  font-size: 0.95rem;
  color: var(--page-the-thao-text-main);
  line-height: 1.6;
}

/* Final CTA */
.page-the-thao__final-cta {
  text-align: center;
  padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }

  .page-the-thao__sub-title {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  }

  .page-the-thao__sports-grid, .page-the-thao__step-by-step, .page-the-thao__features-grid {
    gap: 20px;
    padding: 0 15px;
  }

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

@media (max-width: 768px) {
  .page-the-thao__top-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-bottom: 10px;
  }

  .page-the-thao__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  /* Single-column long text container */
  .page-the-thao__content-section {
    padding: 30px 0;
  }

  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-the-thao__sub-title {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .page-the-thao__text-block, .page-the-thao__list-item, .page-the-thao__image-caption {
    font-size: 0.95rem;
  }

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

  .page-the-thao__image-figure {
    margin: 20px auto;
  }

  /* Buttons and Button Containers */
  .page-the-thao__cta-buttons, .page-the-thao__button-group, .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* Sports Card specific adjustments */
  .page-the-thao__sports-card img {
    
  }

  .page-the-thao__sports-card .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  .page-the-thao__sports-card .page-the-thao__card-description {
    font-size: 0.9rem;
  }

  /* Registration Tutorial (Step-by-Step) */
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

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

  .page-the-thao__step-description {
    font-size: 0.9rem;
  }

  /* FAQ Block */
  .page-the-thao__faq-question {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-the-thao__faq-toggle {
    font-size: 1.3rem;
  }

  .page-the-thao__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 12px;
  }

  .page-the-thao__feature-card img {
    
    
  }

  .page-the-thao__feature-card .page-the-thao__card-title {
    font-size: 1.2rem;
  }

  .page-the-thao__feature-card .page-the-thao__card-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-the-thao__cta-buttons {
    flex-direction: column;
  }

  .page-the-thao__sports-grid, .page-the-thao__step-by-step, .page-the-thao__features-grid {
    grid-template-columns: 1fr;
  }
}