/* style/the-thao.css */

:root {
  --color-primary: #F2C14E;
  --color-secondary: #FFD36B;
  --color-background-dark: #0A0A0A;
  --color-card-bg: #111111;
  --color-text-light: #FFF6D6;
  --color-border: #3A2A12;
  --color-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  background-color: var(--color-background-dark); /* Assuming shared.css body background is dark */
  color: var(--color-text-light);
}

.page-the-thao__section-spacing {
  padding: 60px 0;
}

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

.page-the-thao__section-title {
  font-size: 2.8em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-the-thao__section-title--light {
  color: var(--color-text-light);
}

.page-the-thao__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.page-the-thao__text-block--light {
  color: var(--color-text-light);
}

/* --- Hero Section --- */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  background-color: var(--color-background-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure sufficient height */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--color-text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--btn-gradient);
  color: var(--color-text-light);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-the-thao__btn-secondary {
  background-color: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-card-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.5);
}

.page-the-thao__btn-secondary--small {
  padding: 10px 20px;
  font-size: 1em;
  min-width: unset;
}

/* --- General Content Image --- */
.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* --- Intro Section --- */
.page-the-thao__intro-section .page-the-thao__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Bet Types Section --- */
.page-the-thao__bet-types-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-light);
}

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

.page-the-thao__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-light);
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-glow);
}

.page-the-thao__card-title {
  font-size: 1.6em;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-the-thao__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--color-text-light);
}

.page-the-thao__card-title--dark {
  color: var(--color-primary);
}

.page-the-thao__card-text--dark {
  color: #333333; /* Specific for light cards on medium background */
}

/* --- Guide Section --- */
.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.page-the-thao__guide-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  counter-increment: guide-step;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-the-thao__guide-item::before {
  content: "0" counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 2.5em;
  font-weight: 900;
  color: var(--color-secondary);
  opacity: 0.7;
  line-height: 1;
}

.page-the-thao__guide-step-title {
  font-size: 1.4em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-the-thao__guide-step-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--color-text-light);
}

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

/* --- Promo Section --- */
.page-the-thao__promo-section {
  background-color: var(--color-secondary);
  color: #333333; /* Dark text on medium background */
}

.page-the-thao__promo-section .page-the-thao__section-title {
  color: #333333;
}

.page-the-thao__promo-section .page-the-thao__text-block {
  color: #333333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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: #ffffff; /* Light background for promo cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  color: var(--color-primary);
}

.page-the-thao__promo-card .page-the-thao__card-text {
  color: #333333;
  margin-bottom: 20px;
}

/* --- Why Choose Section --- */
.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-the-thao__feature-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-glow);
}

.page-the-thao__feature-title {
  font-size: 1.4em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-the-thao__feature-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* --- Latest Articles Section (Blog) --- */
.page-the-thao__latest-articles {
  background-color: var(--color-card-bg);
  color: var(--color-text-light);
}

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

.page-the-thao__blog-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-glow);
}

.page-the-thao__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-the-thao__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
}

.page-the-thao__blog-title {
  font-size: 1.3em;
  color: var(--color-primary);
  margin: 15px 20px 10px;
  font-weight: 700;
  line-height: 1.4;
}

.page-the-thao__blog-meta {
  font-size: 0.9em;
  color: #999;
  margin: 0 20px 10px;
}

.page-the-thao__blog-excerpt {
  font-size: 0.95em;
  color: var(--color-text-light);
  margin: 0 20px 20px;
  flex-grow: 1;
}

/* --- Final CTA Section --- */
.page-the-thao__cta-final {
  background: var(--btn-gradient);
  color: #333333;
}

.page-the-thao__cta-final-inner {
  text-align: center;
}

.page-the-thao__cta-final .page-the-thao__section-title {
  color: #333333;
}

.page-the-thao__cta-final .page-the-thao__text-block {
  color: #333333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-final .page-the-thao__btn-primary {
  background-color: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.page-the-thao__cta-final .page-the-thao__btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-card-bg);
  box-shadow: none;
}

.page-the-thao__cta-final .page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.page-the-thao__cta-final .page-the-thao__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: none;
}

/* ================================================= */
/*            Responsive Styles (max-width: 768px)   */
/* ================================================= */
@media (max-width: 768px) {
  .page-the-thao__section-spacing {
    padding: 40px 0 !important;
  }

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

  .page-the-thao__section-title {
    font-size: 2em !important;
    margin-bottom: 30px !important;
  }

  .page-the-thao__text-block {
    font-size: 1em !important;
    text-align: left !important;
  }

  /* --- Hero Section Mobile --- */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    min-height: auto !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding to buttons container */
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    min-width: unset !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* --- General Content Image Mobile --- */
  .page-the-thao__content-image {
    margin: 30px auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* --- Bet Types Section Mobile --- */
  .page-the-thao__grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__card {
    padding: 20px !important;
  }

  .page-the-thao__card-title {
    font-size: 1.4em !important;
  }

  /* --- Guide Section Mobile --- */
  .page-the-thao__guide-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__guide-item {
    padding: 20px 20px 20px 60px !important;
  }

  .page-the-thao__guide-item::before {
    font-size: 2em !important;
    left: 15px !important;
    top: 20px !important;
  }

  .page-the-thao__guide-step-title {
    font-size: 1.2em !important;
  }

  /* --- Promo Section Mobile --- */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

  /* --- Why Choose Section Mobile --- */
  .page-the-thao__feature-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__feature-item {
    padding: 20px !important;
  }

  .page-the-thao__feature-title {
    font-size: 1.2em !important;
  }

  /* --- Latest Articles Section (Blog) Mobile --- */
  .page-the-thao__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__blog-image {
    height: 180px !important;
  }

  .page-the-thao__blog-title {
    font-size: 1.1em !important;
    margin: 15px 15px 10px !important;
  }

  .page-the-thao__blog-meta,
  .page-the-thao__blog-excerpt {
    margin: 0 15px 15px !important;
  }

  /* --- Fixed Header Spacing (Mobile) --- */
  /* Assuming body padding-top is handled by shared.css, no additional padding here */
  /* If shared.css does NOT handle it, uncomment below: */
  /* .page-the-thao { padding-top: var(--header-offset, 120px) !important; } */

  /* --- Mobile Image Rules (Mandatory) --- */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-image-wrapper,
  .page-the-thao__container,
  .page-the-thao__grid-layout,
  .page-the-thao__promo-grid,
  .page-the-thao__feature-list,
  .page-the-thao__blog-grid,
  .page-the-thao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Additional mobile-specific styles for the list of mandatory items */
  /* 1. Top Carousel (Hero Section) - already handled above */
  /* 2. Guide Box + Five Team Cards (Not applicable to this page type based on outline, but if present, would follow specific layout) */
  /*    Since this is not homepage, no 5 vertical guide cards */
  /* 3. Home Content Box (Not applicable to this page type based on outline, but if present, would follow specific layout) */
  /* 4. Blog Card Area - handled above */
  /* 5. Generic Images and Buttons - handled above */
}

@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 30px;
  }

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

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

  .page-the-thao__grid-layout,
  .page-the-thao__promo-grid,
  .page-the-thao__feature-list,
  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-the-thao__guide-list {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}