/* style/the-thao.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --bg-dark: #0A0A0A;
  --card-bg: #111111;
  --text-main: #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);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

.page-the-thao__hero-section {
  padding-top: 10px;
  padding-bottom: 60px;
  background-color: var(--bg-dark);
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 40px;
}

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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 {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

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

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

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

.page-the-thao__intro-section,
.page-the-thao__advantages-section,
.page-the-thao__guide-section,
.page-the-thao__promo-section,
.page-the-thao__faq-section,
.page-the-thao__contact-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.page-the-thao__features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__feature-item {
  flex: 1 1 300px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  font-size: 1rem;
  color: var(--text-main);
}

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

.page-the-thao__advantage-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
}

.page-the-thao__card-text {
  font-size: 1rem;
  color: var(--text-main);
  padding: 0 20px 20px;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 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 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__step-text {
  font-size: 0.95rem;
  color: var(--text-main);
}

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

.page-the-thao__promo-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(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-the-thao__card-link {
  display: block;
  text-align: center;
  padding: 15px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  transition: background 0.3s ease;
}

.page-the-thao__card-link:hover {
  background: #E0B042;
}

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

.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.2);
}

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-item[open] summary {
  background-color: rgba(255, 211, 107, 0.1);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
  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: 1rem;
  color: var(--text-main);
}

.page-the-thao__faq-answer p {
  margin: 0;
}

.page-the-thao__contact-section {
  text-align: center;
}

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

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

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

  .page-the-thao__hero-description {
    font-size: 1rem;
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

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

  .page-the-thao__intro-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-section {
    padding: 50px 0;
  }

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

  .page-the-thao__feature-item,
  .page-the-thao__advantage-card,
  .page-the-thao__promo-card {
    flex: 1 1 280px;
  }

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

  .page-the-thao__promo-image {
    height: 180px;
  }
}

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

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

  .page-the-thao__hero-content {
    order: 2;
    text-align: center;
    flex: 1 1 100%;
  }

  .page-the-thao__hero-image-wrapper {
    order: 1;
    flex: 1 1 100%;
  }

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  /* General container & sections */
  .page-the-thao__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-the-thao__intro-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-section {
    padding: 40px 0;
  }

  /* Module 1: Three-column icon boxes */
  .page-the-thao__features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__feature-item {
    flex: 1 1 100%;
    padding: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 140px !important;
    height: 140px !important;
    margin-bottom: 15px;
  }

  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }

  .page-the-thao__feature-text {
    font-size: 0.9rem;
  }

  /* Advantages grid */
  .page-the-thao__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__advantage-image {
    height: 180px;
  }

  .page-the-thao__card-title {
    font-size: 1.2rem;
    padding: 15px 15px 8px;
  }

  .page-the-thao__card-text {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* Guide section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__step-item {
    padding: 25px;
  }

  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

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

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

  .page-the-thao__cta-center {
    margin-top: 30px;
    padding: 0 15px;
  }

  /* Promo section */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__promo-image {
    height: 150px;
  }

  .page-the-thao__card-link {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

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

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

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

  /* Contact section */
  .page-the-thao__contact-section .page-the-thao__btn-primary {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto;
    display: block;
    padding: 12px 20px;
  }

  /* Generic image rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure content containers don't overflow */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-the-thao__feature-item, .page-the-thao__advantage-card, .page-the-thao__promo-card, .page-the-thao__step-item, .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}