/* Biến màu sắc */
:root {
  --v8bet-primary: #C61F1F;
  --v8bet-secondary: #E53030;
  --v8bet-bg-dark: #140C0C;
  --v8bet-card-bg: #2A1212;
  --v8bet-text-main: #FFF1E8;
  --v8bet-border: #6A1E1E;
  --v8bet-gold: #F3C54D;
  --v8bet-deep-red: #7E0D0D;
  --v8bet-btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

/* Cấu trúc chung cho trang Thể Thao */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--v8bet-text-main); /* Text Main */
  background-color: var(--v8bet-bg-dark); /* Background */
}

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

.page-the-thao__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--v8bet-gold);
  line-height: 1.2;
}

.page-the-thao__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  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;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--v8bet-btn-gradient);
  color: var(--v8bet-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

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

.page-the-thao__btn-secondary:hover {
  background: var(--v8bet-gold);
  color: var(--v8bet-bg-dark);
  transform: translateY(-2px);
}

.page-the-thao__btn-tertiary {
  background: var(--v8bet-deep-red);
  color: var(--v8bet-text-main);
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-the-thao__btn-tertiary:hover {
  background: var(--v8bet-primary);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -150px; /* Pull content up over the image */
  padding: 0 15px;
  max-width: 900px;
}

.page-the-thao__hero-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--v8bet-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.page-the-thao__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--v8bet-text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 80px 0;
  background-color: var(--v8bet-card-bg);
  margin-bottom: 60px;
}

/* Sports Types Section */
.page-the-thao__sports-types {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-the-thao__sport-card {
  background-color: var(--v8bet-card-bg);
  border: 1px solid var(--v8bet-border);
  border-radius: 10px;
  padding: 25px;
  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 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__sport-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--v8bet-gold);
  margin-bottom: 10px;
}

.page-the-thao__sport-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
}

/* Betting Markets Section */
.page-the-thao__betting-markets {
  padding: 80px 0;
  background-color: var(--v8bet-card-bg);
  margin-bottom: 60px;
}

.page-the-thao__betting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-the-thao__betting-item {
  background-color: #200F0F; /* Slightly lighter dark for contrast */
  border: 1px solid var(--v8bet-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__betting-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--v8bet-gold);
  margin-bottom: 10px;
}

.page-the-thao__betting-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
}

/* Advantages Section */
.page-the-thao__advantages-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-the-thao__advantage-card {
  background-color: var(--v8bet-card-bg);
  border: 1px solid var(--v8bet-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__advantage-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--v8bet-gold);
  margin-bottom: 15px;
}

.page-the-thao__advantage-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 80px 0;
  background-color: var(--v8bet-card-bg);
  margin-bottom: 60px;
}

.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-card {
  background-color: #200F0F;
  border: 1px solid var(--v8bet-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--v8bet-btn-gradient);
  color: var(--v8bet-text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  border: 3px solid var(--v8bet-bg-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--v8bet-gold);
  margin-bottom: 15px;
}

.page-the-thao__step-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
  margin-bottom: 20px;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.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(--v8bet-card-bg);
  border: 1px solid var(--v8bet-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--v8bet-gold);
  margin-bottom: 15px;
}

.page-the-thao__promo-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
  margin-bottom: 20px;
}

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

/* Tips Section */
.page-the-thao__tips-section {
  padding: 80px 0;
  background-color: var(--v8bet-card-bg);
  margin-bottom: 60px;
}

.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-the-thao__tip-item {
  background-color: #200F0F;
  border: 1px solid var(--v8bet-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__tip-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--v8bet-gold);
  margin-bottom: 10px;
}

.page-the-thao__tip-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--v8bet-text-main);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--v8bet-border);
  overflow: hidden;
  background: var(--v8bet-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(255, 255, 255, 0.05);
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--v8bet-gold);
}
.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--v8bet-gold);
  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: #200F0F;
  border-radius: 0 0 5px 5px;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  color: var(--v8bet-text-main);
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-the-thao__cta-final {
  padding: 80px 0;
  background-color: var(--v8bet-card-bg);
  text-align: center;
}

.page-the-thao__cta-final .page-the-thao__section-title {
  font-size: 42px;
  margin-bottom: 30px;
}

.page-the-thao__cta-final .page-the-thao__text-block {
  font-size: 18px;
  margin-bottom: 40px;
}

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

/* Global image styles for content area */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: 44px;
  }
  .page-the-thao__hero-description {
    font-size: 18px;
  }
  .page-the-thao__hero-content {
    margin-top: -100px;
  }
  .page-the-thao__section-title {
    font-size: 32px;
  }
  .page-the-thao__text-block {
    font-size: 16px;
  }
  .page-the-thao__betting-list,
  .page-the-thao__advantage-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-list {
    gap: 20px;
  }
}

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

  /* Layout for two-column modules to single column */
  .page-the-thao__sport-grid,
  .page-the-thao__betting-list,
  .page-the-thao__advantage-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__hero-content {
    margin-top: -80px; /* Adjust pull-up for smaller screens */
  }

  .page-the-thao__hero-title {
    font-size: 34px;
    margin-bottom: 15px;
  }

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

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

  /* Buttons responsive */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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-left: 15px;
    padding-right: 15px;
  }

  /* Button containers responsive */
  .page-the-thao__hero-buttons,
  .page-the-thao__cta-final .page-the-thao__cta-buttons,
  .page-the-thao__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* General section padding */
  .page-the-thao__intro-section,
  .page-the-thao__sports-types,
  .page-the-thao__betting-markets,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__tips-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-final {
    padding: 40px 0;
    margin-bottom: 40px;
  }

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

  .page-the-thao__text-block {
    font-size: 15px;
    margin-bottom: 15px;
  }

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

  .page-the-thao__sport-name,
  .page-the-thao__betting-subtitle,
  .page-the-thao__advantage-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title,
  .page-the-thao__tip-subtitle {
    font-size: 20px;
  }

  .page-the-thao__faq-qtext {
    font-size: 16px;
  }
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-toggle { font-size: 24px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }

  /* Image responsive */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__hero-image {
    filter: brightness(0.6);
  }
  .page-the-thao__hero-image-wrapper,
  .page-the-thao__sport-card,
  .page-the-thao__betting-item,
  .page-the-thao__advantage-card,
  .page-the-thao__step-card,
  .page-the-thao__promo-card,
  .page-the-thao__tip-item,
  details.page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__container {
    padding: 0;
  }
}