/* style/the-thao.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #001f4d; /* Darker shade of primary for contrast */
  --border-color: #e0e0e0;
}

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

.page-the-thao .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-the-thao h1, .page-the-thao h2, .page-the-thao h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-the-thao h1 {
  font-size: 2.8em;
  color: var(--text-light);
}

.page-the-thao h2 {
  font-size: 2.2em;
  margin-top: 40px;
}

.page-the-thao h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-the-thao p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-the-thao a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-the-thao a:hover {
  color: var(--secondary-color);
}

.page-the-thao .cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-the-thao .cta-button:hover {
  background: #e6b000; /* Slightly darker secondary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-the-thao .button-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background: var(--primary-color);
  color: var(--text-light);
  transition: background-color 0.3s ease;
}

.page-the-thao .button-small:hover {
  background: #0056b3; /* Darker primary */
}

.page-the-thao .button-outline {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.page-the-thao .button-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Hero Banner */
.page-the-thao .hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-color);
  padding: 60px 0;
}

.page-the-thao .hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-the-thao .hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao .hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  margin-top: 30px;
}

.page-the-thao .hero-content h1 {
  margin-bottom: 20px;
  font-size: 3.5em;
  line-height: 1.2;
  color: var(--text-light);
}

.page-the-thao .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

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

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

.page-the-thao .feature-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-the-thao .feature-icon {
  width: 100px; /* Minimum 200x200 requirement, scale down for display */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-the-thao .feature-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* Section Sports Types */
.page-the-thao .section-sports-types {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-the-thao .section-sports-types h2 {
  color: var(--secondary-color);
}

.page-the-thao .section-sports-types p {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-the-thao .sport-card {
  background: var(--background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao .sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-the-thao .sport-card h3 {
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.page-the-thao .sport-card h3 a {
  color: var(--primary-color);
}

.page-the-thao .sport-card h3 a:hover {
  color: var(--secondary-color);
}

.page-the-thao .sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.page-the-thao .sport-card p {
  color: var(--text-dark);
  font-size: 0.95em;
  text-align: justify;
}

.page-the-thao .call-to-action {
  text-align: center;
  margin-top: 50px;
}

.page-the-thao .call-to-action p {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 25px;
}

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

.page-the-thao .guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-the-thao .guide-list li {
  background: var(--text-light);
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 80px;
}

.page-the-thao .guide-list li::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-the-thao .guide-list li h3 {
  text-align: left;
  margin-top: 0;
  color: var(--primary-color);
}

.page-the-thao .guide-list li p {
  text-align: justify;
}

/* Section Promotions */
.page-the-thao .section-promotions {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-the-thao .section-promotions h2 {
  color: var(--secondary-color);
}

.page-the-thao .section-promotions p {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-the-thao .promo-card {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao .promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-the-thao .promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao .promo-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-the-thao .promo-card p {
  color: var(--text-dark);
  font-size: 0.95em;
  text-align: justify;
  margin-bottom: 20px;
}

/* Section Tips */
.page-the-thao .section-tips {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-the-thao .tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-the-thao .tips-list li {
  background: var(--text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-the-thao .tip-icon {
  width: 80px; /* Minimum 200x200 requirement, scale down for display */
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-the-thao .tips-list li strong {
  color: var(--primary-color);
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

/* FAQ Section */
.page-the-thao .section-faq {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-the-thao .section-faq h2 {
  color: var(--secondary-color);
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #0056b3;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  text-align: left;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 25px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

.faq-answer p {
  margin-bottom: 10px;
  text-align: justify;
}

.faq-answer .button-small {
  margin-top: 10px;
  display: inline-block;
}

/* Section Contact */
.page-the-thao .section-contact {
  padding: 60px 0;
  background-color: var(--background-light);
  text-align: center;
}

.page-the-thao .section-contact p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-the-thao .hero-content h1 {
    font-size: 2.8em;
  }
  .page-the-thao .hero-content p {
    font-size: 1.1em;
  }
  .page-the-thao h2 {
    font-size: 2em;
  }
  .page-the-thao h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-the-thao .hero-banner {
    padding: 40px 0;
  }
  .page-the-thao .hero-content h1 {
    font-size: 2.2em;
  }
  .page-the-thao .hero-content p {
    font-size: 1em;
  }
  .page-the-thao .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-the-thao .features-grid, .page-the-thao .sport-cards-grid, .page-the-thao .promo-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao .feature-item, .page-the-thao .sport-card, .page-the-thao .promo-card {
    padding: 20px;
  }
  .page-the-thao .feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-the-thao .sport-image, .page-the-thao .promo-image {
    height: 180px;
  }
  .page-the-thao .guide-list li {
    padding: 20px;
    padding-left: 65px;
  }
  .page-the-thao .guide-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    left: 20px;
    top: 20px;
  }
  .page-the-thao .tips-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-the-thao .tip-icon {
    margin-bottom: 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-the-thao .hero-content h1 {
    font-size: 1.8em;
  }
  .page-the-thao .hero-content p {
    font-size: 0.9em;
  }
  .page-the-thao h2 {
    font-size: 1.8em;
  }
  .page-the-thao h3 {
    font-size: 1.2em;
  }
  .page-the-thao .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-the-thao .container {
    padding: 15px;
  }
  .page-the-thao .guide-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1.1em;
    left: 15px;
    top: 15px;
  }
  .page-the-thao .guide-list li {
    padding-left: 55px;
  }
}