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

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

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FF8C1A; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-the-thao__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #D96800);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-the-thao__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF3E6;
  text-align: justify;
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-the-thao__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Primary color */
  border: 2px solid #A84F0C; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 50px;
  box-sizing: border-box;
  margin-top: 10px; /* Small top margin, assuming body padding-top handles header offset */
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(13, 14, 18, 0.7); /* Background with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-the-thao__main-title {
  font-size: 50px;
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.7);
}

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

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-the-thao__intro-section,
.page-the-thao__sports-types-section,
.page-the-thao__advantages-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section,
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
}

.page-the-thao__dark-bg {
  background-color: #17191F; /* Card BG */
}

.page-the-thao__learn-more {
  margin-top: 30px;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__sport-card.page-the-thao__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-the-thao__card-title {
  font-size: 24px;
  color: #FFB04D; /* Glow color */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-the-thao__card-description {
  font-size: 16px;
  color: #FFF3E6;
  padding: 0 15px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn-secondary {
  margin-top: 20px;
  align-self: center;
}

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

.page-the-thao__advantage-item {
  background: rgba(255, 140, 26, 0.1); /* Semi-transparent primary */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__advantage-title {
  font-size: 22px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-the-thao__center-cta {
  text-align: center;
  margin-top: 50px;
}

.page-the-thao__guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-the-thao__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-the-thao__step-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-number {
  background: #FF8C1A;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.page-the-thao__step-title {
  font-size: 20px;
  color: #FFA53A;
  margin: 0;
}

.page-the-thao__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao__start-betting {
  margin-top: 50px;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* 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, 140, 26, 0.1);
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05); /* Lighter semi-transparent primary */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

.page-the-thao__cta-bottom-section {
  text-align: center;
}

.page-the-thao__cta-bottom-section .page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    height: 500px;
  }

  .page-the-thao__main-title {
    font-size: 40px;
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
  }

  .page-the-thao__sports-grid,
  .page-the-thao__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .page-the-thao__guide-content {
    grid-template-columns: 1fr;
  }
  .page-the-thao__guide-image {
    order: -1; /* Image appears above steps on smaller screens */
  }
}

@media (max-width: 768px) {
  /* __top-text / hero-section top padding */
  .page-the-thao__hero-section {
    margin-top: 10px; /* Small top margin, relying on body padding for header offset */
    height: 400px;
    padding-bottom: 30px;
  }

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

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-the-thao__hero-cta-buttons .page-the-thao__btn-primary,
  .page-the-thao__hero-cta-buttons .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__intro-section,
  .page-the-thao__sports-types-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 40px 0;
  }

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

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

  /* Two-column layouts stacking (casino/sports/rating sections) */
  .page-the-thao__sports-grid,
  .page-the-thao__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-the-thao__guide-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__step-item {
    padding: 15px;
    gap: 10px;
  }

  .page-the-thao__step-number {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-the-thao__step-title {
    font-size: 18px;
  }

  /* General images for content area */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-the-thao__container,
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons specific mobile adaptation */
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__cta-bottom-section .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* FAQ specific mobile adaptation */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 16px; }
  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
}