/* style/the-thao.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --body-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --header-offset: 120px; /* Default value, overridden by shared.css if present */
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light body background */
  background-color: var(--body-bg);
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--primary-color);
  overflow: hidden;
}

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

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--card-bg);
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

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

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px;
  margin-top: 30px;
}

.page-the-thao__btn--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* General Section Styling */
.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

.page-the-thao__section:nth-of-type(even) {
  background-color: #F8FAFC;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__info-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-top: 40px;
  border: 1px solid var(--border-color);
}

.page-the-thao__card-title {
  font-size: 1.5rem;
  color: var(--text-black);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-the-thao__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-main);
}

.page-the-thao__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.1em;
  top: 0;
}

/* Sports Categories */
.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);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__sport-card .page-the-thao__card-title {
  font-size: 1.35rem;
  margin-bottom: 15px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn {
  margin-top: auto;
  align-self: center;
  width: fit-content;
  padding: 10px 25px;
}

/* Betting Guide */
.page-the-thao__betting-guide .page-the-thao__text-block {
  margin-bottom: 40px;
}

.page-the-thao__guide-step {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.page-the-thao__step-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-the-thao__step-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

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

.page-the-thao__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-card .page-the-thao__card-image {
  height: 220px;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn {
  margin-top: auto;
  align-self: center;
  width: fit-content;
  padding: 10px 25px;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-black);
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-the-thao__faq-question .page-the-thao__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary, not just text */
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--primary-color);
  margin-left: 15px;
  pointer-events: none; /* Allow click on entire summary */
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--card-bg);
}

/* App Download Section */
.page-the-thao__app-download .page-the-thao__container {
  background: var(--primary-color);
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.2);
}

.page-the-thao__app-download .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__app-download .page-the-thao__text-block {
  color: #e0e0e0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-the-thao__app-image {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.page-the-thao__app-download .page-the-thao__cta-buttons {
  margin-top: 30px;
}

.page-the-thao__app-download .page-the-thao__btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-the-thao__app-download .page-the-thao__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
}

/* Conclusion */
.page-the-thao__conclusion .page-the-thao__text-block {
  margin-bottom: 40px;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-image-wrapper {
    height: 500px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }
  .page-the-thao__sports-grid, .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-the-thao__btn {
    width: 80%;
  }
}

@media (max-width: 768px) {
  /* 1. Top section (title + CTAs) */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }
  .page-the-thao__hero-image-wrapper {
    height: 350px;
  }
  .page-the-thao__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
  }
  .page-the-thao__main-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__btn--large {
    padding: 14px 25px !important;
    font-size: 1rem !important;
  }
  .page-the-thao__btn--center {
    max-width: 100% !important;
  }

  /* 2. Single-column long text containers */
  .page-the-thao__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section {
    padding: 40px 0 !important;
  }
  .page-the-thao__section-title {
    font-size: 1.5rem !important;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-the-thao__info-card, .page-the-thao__guide-step, .page-the-thao__promo-card, .page-the-thao__sport-card {
    padding: 20px !important;
    border-radius: 10px !important;
  }
  .page-the-thao__card-title, .page-the-thao__step-title {
    font-size: 1.25rem !important;
    margin-bottom: 15px;
  }
  .page-the-thao__list-item, .page-the-thao__step-description, .page-the-thao__card-description {
    font-size: 0.9rem !important;
  }

  /* 3. General images and figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__card-image {
    height: 180px !important;
  }
  .page-the-thao__step-image {
    max-height: 300px !important;
  }
  .page-the-thao__app-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 4. Buttons and button containers (already covered in top section, reinforcing here) */
  .page-the-thao__cta-button, .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-buttons, .page-the-thao__button-group, .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* 5. FAQ Block */
  .page-the-thao__faq-question {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }
  .page-the-thao__faq-answer {
    padding: 15px 20px !important;
    font-size: 0.9rem !important;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.2rem !important;
  }

  /* Specific section adjustments */
  .page-the-thao__sports-grid, .page-the-thao__promo-grid {
    gap: 20px;
  }
  .page-the-thao__app-download .page-the-thao__container {
    padding: 40px 15px;
  }
}