/* -------------------------------------------------------------------------- */
/*                              Base Page Styles                              */
/* -------------------------------------------------------------------------- */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Default text color for the page */
  background-color: #B71C1C; /* Page background color */
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-the-thao__intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #FFF5E1;
}

.page-the-thao__description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-the-thao__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-the-thao__card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF5E1;
}

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

/* -------------------------------------------------------------------------- */
/*                             Button Styles                                  */
/* -------------------------------------------------------------------------- */
.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.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: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  cursor: pointer;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-the-thao__btn-secondary {
  background: #C91F17;
  color: #FFF5E1;
  border: 2px solid #F2B544;
  box-shadow: 0 5px 15px rgba(201, 31, 23, 0.4);
}

.page-the-thao__btn-secondary:hover {
  background: #E53935;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
}

.page-the-thao__btn-tertiary {
  background: #F2B544;
  color: #7A0E0E;
  border: 2px solid #F4D34D;
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
}

.page-the-thao__btn-tertiary:hover {
  background: #FFD86A;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/*                               Hero Section                                 */
/* -------------------------------------------------------------------------- */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: #B71C1C;
}

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

.page-the-thao__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Desktop: cover to fill space */
  display: block;
  border-radius: 0;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but text is below image */
  background: rgba(183, 28, 28, 0.85); /* Semi-transparent background for text readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544;
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Responsive font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------------------- */
/*                             Why Choose Us Section                          */
/* -------------------------------------------------------------------------- */
.page-the-thao__why-choose-us-section {
  padding: 80px 0;
  background: #B71C1C;
}

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

.page-the-thao__feature-card {
  background: #D32F2F;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544;
}

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

.page-the-thao__feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                             Sports Types Section                           */
/* -------------------------------------------------------------------------- */
.page-the-thao__sports-types-section {
  padding: 80px 0;
  background: #7A0E0E;
}

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

.page-the-thao__category-item {
  background: #D32F2F;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-the-thao__category-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-the-thao__category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

/* -------------------------------------------------------------------------- */
/*                             Live Betting Section                           */
/* -------------------------------------------------------------------------- */
.page-the-thao__live-betting-section {
  padding: 80px 0;
  background: #B71C1C;
}

.page-the-thao__live-betting-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-the-thao__live-betting-text {
  flex: 1;
}

.page-the-thao__live-betting-image {
  flex: 1;
  min-width: 400px;
}

.page-the-thao__live-betting-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-the-thao__live-betting-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23F4D34D"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #FFF5E1;
}

/* -------------------------------------------------------------------------- */
/*                            Promotions Section                              */
/* -------------------------------------------------------------------------- */
.page-the-thao__promotions-section {
  padding: 80px 0;
  background: #7A0E0E;
}

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

.page-the-thao__promo-card {
  background: #D32F2F;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-the-thao__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* -------------------------------------------------------------------------- */
/*                             How To Bet Section                             */
/* -------------------------------------------------------------------------- */
.page-the-thao__how-to-bet-section {
  padding: 80px 0;
  background: #B71C1C;
}

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

.page-the-thao__step-card {
  background: #D32F2F;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-the-thao__step-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                                 */
/* -------------------------------------------------------------------------- */
.page-the-thao__faq-section {
  padding: 80px 0;
  background: #7A0E0E;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544;
  overflow: hidden;
  background: #C91F17; /* Use primary color for details background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #E53935; /* Lighter red on hover */
}

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

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

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: #D32F2F; /* Card BG color for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
}

.page-the-thao__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                          Call to Action Section                            */
/* -------------------------------------------------------------------------- */
.page-the-thao__call-to-action-section {
  padding: 80px 0;
  text-align: center;
  background: #B71C1C;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 32px;
  }

  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-the-thao__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-the-thao__live-betting-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__live-betting-image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* General Page Content */
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__intro-text {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .page-the-thao__description {
    font-size: 15px;
  }

  .page-the-thao__card-title {
    font-size: 20px;
  }

  .page-the-thao__card-description {
    font-size: 14px;
  }

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

  /* Buttons */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px;
    min-height: 450px;
  }

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

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Mobile: contain to show full image */
    aspect-ratio: unset !important;
  }

  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 10px;
  }

  .page-the-thao__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  /* Why Choose Us Section */
  .page-the-thao__why-choose-us-section {
    padding: 60px 0;
  }

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

  .page-the-thao__feature-card {
    padding: 25px;
  }

  .page-the-thao__feature-card img {
    
  }

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

  .page-the-thao__sport-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__category-item {
    padding: 20px;
  }

  .page-the-thao__category-item img {
    
  }

  .page-the-thao__category-title {
    font-size: 22px;
  }

  /* Live Betting Section */
  .page-the-thao__live-betting-section {
    padding: 60px 0;
  }

  .page-the-thao__live-betting-list li {
    font-size: 15px;
    padding-left: 25px;
    background-size: 18px;
  }

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

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

  .page-the-thao__promo-card {
    padding: 20px;
  }

  .page-the-thao__promo-card img {
    
  }

  /* How To Bet Section */
  .page-the-thao__how-to-bet-section {
    padding: 60px 0;
  }

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

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

  .page-the-thao__step-card img {
    
  }

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

  details.page-the-thao__faq-item {
    border-radius: 8px;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px 20px;
  }

  .page-the-thao__faq-qtext {
    font-size: 16px;
  }

  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

  .page-the-thao__faq-answer p {
    font-size: 14px;
  }

  /* Call to Action Section */
  .page-the-thao__call-to-action-section {
    padding: 60px 0;
  }
}