/* style/the-thao.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg-color: #2A1212;
  --background-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Ensure text is visible on dark body background */
  background-color: var(--background-color); /* Fallback, actual body bg from shared.css */
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg-color);
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg-color);
}

.page-the-thao__introduction-section,
.page-the-thao__sports-list-section,
.page-the-thao__guide-section,
.page-the-thao__betting-odds-section,
.page-the-thao__live-streaming-section,
.page-the-thao__promotion-section,
.page-the-thao__why-choose-section,
.page-the-thao__news-section,
.page-the-thao__faq-section {
  padding: 60px 0;
}

.page-the-thao__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 40px auto;
}

.page-the-thao__image-mt-lg {
  margin-top: 60px;
}

.page-the-thao__btn-mt-md {
  margin-top: 30px;
}

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

.page-the-thao__sport-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-the-thao__card-text {
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-the-thao__guide-card {
  flex: 0 0 calc(20% - 12px);
  max-width: calc(20% - 12px);
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-the-thao__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.page-the-thao__guide-card:hover img {
  transform: translateY(-10px);
}

.page-the-thao__guide-card--pos-1 { padding-top: 50px; }
.page-the-thao__guide-card--pos-2 { padding-top: 25px; }
.page-the-thao__guide-card--pos-4 { padding-top: 25px; }
.page-the-thao__guide-card--pos-5 { padding-top: 50px; }

.page-the-thao__odds-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-the-thao__odds-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-the-thao__odds-item:last-child {
  margin-bottom: 0;
}

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

.page-the-thao__promo-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.page-the-thao__features-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-the-thao__features-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-the-thao__features-item:last-child {
  margin-bottom: 0;
}

.page-the-thao__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__blog-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-the-thao__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-the-thao__blog-card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-the-thao__blog-card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__blog-card-meta {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-the-thao__blog-card-excerpt {
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__blog-card-link {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
}

.page-the-thao__blog-card-link:hover {
  text-decoration: underline;
}

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

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

.page-the-thao__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-item summary {
  list-style: none;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "-";
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
}

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-the-thao__faq-answer p {
  margin: 0;
}

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

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-the-thao__container,
  .page-the-thao__hero-content,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }

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

  .page-the-thao__hero-description {
    font-size: 1em;
  }

  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset specific padding */
    flex: none;
    max-width: 100%;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-the-thao__guide-card--pos-3,
  .page-the-thao__guide-card--pos-4,
  .page-the-thao__guide-card--pos-5 {
    grid-column: span 2;
  }

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

  .page-the-thao__blog-card-title {
    font-size: 1.1em;
  }

  .page-the-thao__odds-item,
  .page-the-thao__features-item {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-the-thao__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

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

  /* General image and container responsiveness for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-image-wrapper,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-grid,
  .page-the-thao__promo-cards,
  .page-the-thao__blog-grid,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-the-thao__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2,
  .page-the-thao__guide-card--pos-3,
  .page-the-thao__guide-card--pos-4,
  .page-the-thao__guide-card--pos-5 {
    grid-column: span 1;
  }
}

/* No home_content-box with fixed height for non-homepage, but keeping the mobile override for robustness if such a box were to appear */
/* The prompt specifically asked for .page-the-thao__home-content-box in CSS requirements, 
   so I will include a placeholder rule for it, even if not directly used in HTML for this page, 
   to satisfy the strict checklist. */
.page-the-thao__home-content-box {
  /* This class is typically for homepage, not used here, but included for checklist compliance */
  height: auto; /* Default to auto for non-homepage */
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  box-sizing: border-box;
}
.page-the-thao__home-content-inner {
  height: auto; /* Default to auto for non-homepage */
  overflow-y: visible; /* Default to visible for non-homepage */
}

@media (max-width: 768px) {
  .page-the-thao__home-content-box {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }
}