.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Default text color for dark sections */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light if shared.css doesn't define */
}

.page-the-thao .page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #B71C1C; /* Background color for the hero section */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  color: #FFF5E1;
}

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

.page-the-thao__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-the-thao__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold text on dark red background */
  border: 2px solid #FFD86A;
}

.page-the-thao__btn-secondary:hover {
  background: #FFD86A;
  color: #7A0E0E; /* Deep Red for contrast on gold */
  transform: translateY(-2px);
}

.page-the-thao__btn-tertiary {
  background: #F4D34D;
  color: #7A0E0E;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #F4D34D; /* Gold color for section titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__about-sports-section {
  padding: 60px 0;
  background-color: var(--background-color, #f5f5f5); /* Use body background or fallback light */
  color: #333333; /* Dark text for light background */
}

.page-the-thao__about-sports-section .page-the-thao__section-title {
  color: #C91F17; /* Main brand color for titles on light background */
}

.page-the-thao__about-sports-section .page-the-thao__section-intro {
  color: #333333;
}

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

.page-the-thao__feature-card {
  background: #ffffff; /* White background for features */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-the-thao__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #C91F17;
}

.page-the-thao__feature-description {
  font-size: 1rem;
  color: #555555;
}

.page-the-thao__sports-types-section {
  padding: 60px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

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

.page-the-thao__sport-card {
  background: #D32F2F; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__sport-title {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: #FFCC66; /* Glow color for titles */
}

.page-the-thao__sport-description {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: #FFF5E1;
}

.page-the-thao__view-all-button {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__betting-guide-section {
  padding: 60px 0;
  background-color: var(--background-color, #f5f5f5);
  color: #333333;
}

.page-the-thao__betting-guide-section .page-the-thao__section-title {
  color: #C91F17;
}

.page-the-thao__betting-guide-section .page-the-thao__section-intro {
  color: #333333;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-the-thao__guide-step {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-the-thao__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #C91F17;
}

.page-the-thao__step-description {
  font-size: 1rem;
  color: #555555;
}

.page-the-thao__promotions-section {
  padding: 60px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

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

.page-the-thao__promo-card {
  background: #D32F2F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
  text-align: center;
}

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

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

.page-the-thao__promo-title {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: #FFCC66;
}

.page-the-thao__promo-description {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: #FFF5E1;
}

.page-the-thao__responsible-gambling-section {
  padding: 60px 0;
  background-color: var(--background-color, #f5f5f5);
  color: #333333;
}

.page-the-thao__responsible-gambling-section .page-the-thao__section-title {
  color: #C91F17;
}

.page-the-thao__responsible-gambling-section .page-the-thao__section-intro {
  color: #333333;
}

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

.page-the-thao__responsible-point {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-the-thao__point-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #C91F17;
}

.page-the-thao__point-description {
  font-size: 1rem;
  color: #555555;
}

.page-the-thao__view-more-button {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__faq-section {
  padding: 60px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #D32F2F; /* Card BG for FAQ item */
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border color */
}

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;
  font-weight: 600;
}

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: #7A0E0E; /* Deep Red on hover */
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow color for toggle */
  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: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 8px 8px;
  color: #FFF5E1;
}

/* General image styling for content sections */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-the-thao__sport-image {
    height: 180px;
  }
  .page-the-thao__promo-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__hero-section {
    padding: 10px 0 40px;
  }
  .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: 0.95rem;
    margin-bottom: 25px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-the-thao__about-sports-section,
  .page-the-thao__sports-types-section,
  .page-the-thao__betting-guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__responsible-gambling-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }
  .page-the-thao__container {
    padding: 0 10px;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 20px;
  }
  .page-the-thao__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-cards-grid,
  .page-the-thao__responsible-points-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__feature-card,
  .page-the-thao__sport-card,
  .page-the-thao__guide-step,
  .page-the-thao__promo-card,
  .page-the-thao__responsible-point {
    padding: 25px;
  }
  .page-the-thao__sport-image {
    height: 160px;
  }
  .page-the-thao__promo-image {
    height: 180px;
  }
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__hero-image-wrapper,
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-cards-grid,
  .page-the-thao__responsible-points-grid,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
}