/* Base styles for the-thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-the-thao__section-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button does not overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color for border */
}

.page-the-thao__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Background color */
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for common hero aspect ratios */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-the-thao__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 15px;
  position: relative; /* Ensure content is in normal flow */
  z-index: 2; /* Ensure content is above any potential overlays */
}

.page-the-thao__hero-title {
  font-weight: 700;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-the-thao__hero-description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 40px;
}

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

/* Sports Categories Section */
.page-the-thao__sports-categories {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-the-thao__category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-title {
  font-size: 24px;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-the-thao__card-description {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-the-thao__card-button {
  width: auto;
  min-width: 180px;
}

/* Why Choose Vin99 Section */
.page-the-thao__why-choose-vin99 {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.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-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-the-thao__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-the-thao__feature-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* Live Betting Features Section */
.page-the-thao__live-betting-features {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-the-thao__two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-the-thao__content-block {
  text-align: left;
}

.page-the-thao__content-block .page-the-thao__section-title {
  text-align: left;
}

.page-the-thao__content-block .page-the-thao__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.page-the-thao__feature-list li {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.page-the-thao__list-icon {
  color: #FFD36B; /* Glow color */
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-the-thao__image-block {
  text-align: center;
}

.page-the-thao__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.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: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* How To Bet Guide Section */
.page-the-thao__how-to-bet-guide {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-the-thao__guide-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-the-thao__guide-step-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
}

.page-the-thao__guide-list li p {
  font-size: 16px;
  color: #FFF6D6;
  text-align: left;
}

.page-the-thao__guide-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter than card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}

.page-the-thao__faq-answer p {
  text-align: left;
  margin-bottom: 0;
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-the-thao__cta-content {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.page-the-thao__cta-title {
  font-size: 38px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
}

.page-the-thao__cta-description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
/* @media (max-width: 1024px) - For tablets */
@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 500px;
  }

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

  .page-the-thao__hero-description {
    font-size: 18px;
  }

  .page-the-thao__section-title {
    font-size: 30px;
  }

  .page-the-thao__section-text {
    font-size: 17px;
  }

  .page-the-thao__two-column-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-the-thao__content-block .page-the-thao__section-title,
  .page-the-thao__content-block .page-the-thao__section-text {
    text-align: center;
  }

  .page-the-thao__feature-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }

  .page-the-thao__feature-list li {
    justify-content: center;
  }

  .page-the-thao__cta-title {
    font-size: 32px;
  }

  .page-the-thao__cta-description {
    font-size: 18px;
  }
}

/* @media (max-width: 768px) - For mobile phones */
@media (max-width: 768px) {
  /* 1. top-text首块顶距 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 30px;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-content {
    padding: 0 10px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 2. 落地页双栏模块单列堆叠 */
  .page-the-thao__category-grid,
  .page-the-thao__features-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__two-column-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-the-thao__section-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-the-thao__cta-title {
    font-size: 28px;
  }

  .page-the-thao__cta-description {
    font-size: 16px;
  }

  /* 3. 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__container,
  .page-the-thao__category-card,
  .page-the-thao__feature-item,
  .page-the-thao__promo-card,
  .page-the-thao__guide-list li,
  .page-the-thao__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__category-card,
  .page-the-thao__feature-item,
  .page-the-thao__promo-card,
  .page-the-thao__guide-list li,
  .page-the-thao__cta-content {
    padding: 20px;
  }

  /* 4. 按钮响应式 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for smaller screens */
    font-size: 16px;
  }

  .page-the-thao__hero-buttons,
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__hero-buttons a,
  .page-the-thao__cta-buttons a {
    margin-left: auto;
    margin-right: auto; /* Center buttons if they're still too narrow for full width */
  }
}