/* style/the-thao.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
}

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

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--card-bg);
}

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

.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.2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  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;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--primary-color);
}

.page-the-thao__hero-image {
  flex: 1 1 40%;
  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);
  display: block;
  margin: 0 auto;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--gold-color);
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

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

.page-the-thao__why-choose-section,
.page-the-thao__sports-options-section,
.page-the-thao__live-betting-section,
.page-the-thao__promo-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section,
.page-the-thao__contact-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

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

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

.page-the-thao__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

.page-the-thao__sport-title {
  font-size: 1.6em;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--gold-color);
}

.page-the-thao__sport-text {
  font-size: 1em;
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

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

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

.page-the-thao__live-feature-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-the-thao__live-feature-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.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 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--gold-color);
}

.page-the-thao__promo-text {
  font-size: 0.95em;
  padding: 0 20px 15px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-the-thao__btn-text {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  display: inline-block;
}

.page-the-thao__btn-text:hover {
  text-decoration: underline;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-the-thao__guide-step {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  border: 4px solid var(--gold-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.page-the-thao__step-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-the-thao__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-the-thao__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

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

.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 4px 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;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  list-style: none;
  user-select: none;
  position: relative;
}

.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(--gold-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "−";
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
}

.page-the-thao__contact-section {
  padding-bottom: 80px;
}

.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

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

  .page-the-thao__guide-step {
    padding: 30px 20px;
  }

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

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

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

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

  .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: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
  }

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

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

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

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__live-features,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__live-feature-item,
  .page-the-thao__promo-card,
  .page-the-thao__guide-step {
    padding: 25px 15px;
  }

  .page-the-thao__feature-icon {
    width: 120px;
    height: 120px;
  }

  .page-the-thao__sport-image,
  .page-the-thao__live-feature-image,
  .page-the-thao__promo-image,
  .page-the-thao__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__sport-title,
  .page-the-thao__live-feature-title,
  .page-the-thao__promo-title,
  .page-the-thao__step-title {
    font-size: 1.3em;
  }

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

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

  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-the-thao__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }

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