/* style/the-thao.css */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--color-deep-navy);
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to slightly overlap the image for visual flow */
  background: var(--color-deep-navy);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--border-color);
  color: #ffffff;
}

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

/* General Section Styling */
.page-the-thao__section {
  padding: 80px 0;
  background-color: var(--color-deep-navy);
}

.page-the-thao__section:nth-of-type(even) {
  background-color: var(--deep-navy);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.page-the-thao__section-title--white {
  color: #ffffff;
}

.page-the-thao__section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-the-thao__section-intro--white {
  color: #e0e0e0;
}

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

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

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

.page-the-thao__feature-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

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

.page-the-thao__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

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

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

.page-the-thao__category-card h3,
.page-the-thao__category-card p,
.page-the-thao__category-card a {
  padding: 0 25px;
}

.page-the-thao__category-title {
  font-size: 1.5rem;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-the-thao__category-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-the-thao__category-card .page-the-thao__btn {
  margin-bottom: 25px;
}

/* How-to-Bet Section */
.page-the-thao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-the-thao__step-figure {
  margin: 0 0 20px 0;
}

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

.page-the-thao__step-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

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

/* Promotions Section */
.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: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-the-thao__promo-title {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 15px;
}

.page-the-thao__promo-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-the-thao__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-the-thao__faq-item {
  background: 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.1);
}

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--card-bg);
  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.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

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

.page-the-thao__faq-answer p {
  margin: 0;
  color: var(--text-secondary);
}

.page-the-thao__faq-answer a {
  color: var(--auxiliary-color);
  text-decoration: none;
}

.page-the-thao__faq-answer a:hover {
  text-decoration: underline;
}

/* Bottom CTA Section */
.page-the-thao__section--cta-bottom {
  padding: 100px 0;
  text-align: center;
}

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

/* Image global styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-the-thao__main-title {
    font-size: 2.8rem;
  }

  .page-the-thao__section {
    padding: 60px 0;
  }

  .page-the-thao__section-title {
    font-size: 2.2rem;
  }

  .page-the-thao__section-intro {
    margin-bottom: 40px;
  }

  .page-the-thao__feature-grid, .page-the-thao__categories-grid, .page-the-thao__steps-grid, .page-the-thao__promo-grid {
    gap: 25px;
  }

  .page-the-thao__feature-card, .page-the-thao__category-card, .page-the-thao__step-card, .page-the-thao__promo-card {
    padding: 25px;
  }

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

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

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

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

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

  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Single column long text container */
  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }

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

  /* General images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__feature-icon {
    max-width: 80px;
  }

  .page-the-thao__category-image,
  .page-the-thao__step-image {
    height: 150px;
  }

  .page-the-thao__step-caption {
    font-size: 0.85rem;
  }

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

  .page-the-thao__btn-small {
    width: auto !important;
    max-width: none !important;
    align-self: center; /* Center small buttons if in column */
  }

  .page-the-thao__cta-bottom .page-the-thao__btn {
    width: auto !important;
    max-width: 280px !important; /* Limit width for single CTA */
    margin: 0 auto;
  }

  /* Registration tutorial and FAQ blocks */
  .page-the-thao__feature-grid, .page-the-thao__categories-grid, .page-the-thao__steps-grid, .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-title, .page-the-thao__category-title, .page-the-thao__step-title, .page-the-thao__promo-title {
    font-size: 1.3rem;
  }

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

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

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