/* style/the-thao.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --card-bg: #10233F;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  background-color: var(--deep-navy); /* Body background from shared.css is deep-navy (dark), so main content text should be light */
  color: var(--text-main);
  line-height: 1.6;
}

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

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--deep-navy);
  position: relative;
}

.page-the-thao__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-the-thao__section-title {
  font-size: 2.5rem;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* Buttons */
.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.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.8);
  transform: translateY(-2px);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Intro Section */
.page-the-thao__intro-section,
.page-the-thao__guide-section,
.page-the-thao__bet-types-section,
.page-the-thao__promotions-section,
.page-the-thao__tips-section,
.page-the-thao__why-choose-section,
.page-the-thao__faq-section,
.page-the-thao__conclusion-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

/* Platforms Section */
.page-the-thao__platforms-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-the-thao__platforms-section .page-the-thao__section-title {
  color: var(--gold-color);
}

.page-the-thao__platforms-section .page-the-thao__text-block {
  color: var(--text-secondary);
}

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

.page-the-thao__platform-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__platform-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-the-thao__platform-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__platform-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-the-thao__platform-features {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  color: var(--text-main);
}

.page-the-thao__platform-features li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-the-thao__platform-features li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-the-thao__guide-step {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

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

.page-the-thao__guide-step p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.page-the-thao__guide-step .page-the-thao__btn-primary,
.page-the-thao__guide-step .page-the-thao__btn-secondary {
  margin-top: auto;
  width: 100%;
  max-width: 250px;
}

/* Bet Types Section */
.page-the-thao__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__bet-type-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__bet-type-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__bet-type-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Promotions Section */
.page-the-thao__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--text-main);
}

.page-the-thao__promo-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.page-the-thao__promo-list li strong {
  color: var(--glow-color);
}

.page-the-thao__promo-list li::before {
  content: '⭐';
  position: absolute;
  left: 0;
  top: 0;
}

/* Tips Section */
.page-the-thao__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--text-main);
}

.page-the-thao__tip-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.page-the-thao__tip-list li strong {
  color: var(--glow-color);
}

.page-the-thao__tip-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  top: 0;
}

/* Why Choose Section */
.page-the-thao__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--text-main);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-the-thao__benefits-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.page-the-thao__benefits-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

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

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

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

.page-the-thao__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: left;
  background-color: var(--card-bg);
}

/* Conclusion Section */
.page-the-thao__conclusion-section .page-the-thao__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 15px;
  }
  .page-the-thao__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-the-thao__section-title {
    font-size: 2rem;
  }
  .page-the-thao__platforms-section .page-the-thao__platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-the-thao__benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Fixed header offset handling - body handles it, so small top padding for hero */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }

  /* Hero Section */
  .page-the-thao__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* General Section Titles and Text Blocks */
  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block {
    font-size: 1rem;
  }

  /* Platforms Section */
  .page-the-thao__platform-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__platform-image {
    max-height: 150px;
  }

  /* Guide Section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__guide-step .page-the-thao__btn-primary,
  .page-the-thao__guide-step .page-the-thao__btn-secondary {
    max-width: 100%;
  }

  /* Bet Types Section */
  .page-the-thao__bet-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Promotions & Tips List */
  .page-the-thao__promo-list li,
  .page-the-thao__tip-list li,
  .page-the-thao__benefits-list li {
    font-size: 1rem;
  }

  /* Why Choose Section */
  .page-the-thao__benefits-list {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-the-thao__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-the-thao__faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }

  /* Conclusion Section */
  .page-the-thao__conclusion-section .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Universal Image Responsiveness for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Universal Container Responsiveness for mobile */
  .page-the-thao__container,
  .page-the-thao__platform-card,
  .page-the-thao__guide-step,
  .page-the-thao__bet-type-card,
  .page-the-thao__faq-item,
  .page-the-thao__hero-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Universal Button Responsiveness for mobile */
  .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__hero-cta-buttons,
  .page-the-thao__conclusion-section .page-the-thao__cta-buttons {
    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;
  }
}