/* style/the-thao.css */

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

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Light text on dark body background */
  background-color: var(--deep-navy);
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.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: 1.05em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 4px 15px rgba(79, 168, 255, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(79, 168, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 168, 255, 0.4);
}

.page-the-thao__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__intro-section,
.page-the-thao__bet-types-section,
.page-the-thao__guide-section,
.page-the-thao__promo-section,
.page-the-thao__why-choose-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-the-thao__features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__feature-item {
  flex: 1 1 30%;
  min-width: 280px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--glow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is circular */
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-the-thao__bet-type-card,
.page-the-thao__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-the-thao__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: var(--text-main);
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-the-thao__card-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.page-the-thao__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(79, 168, 255, 0.5), 0 0 10px var(--glow-color);
}

.page-the-thao__step-icon img {
  
  
  object-fit: contain;
  display: block;
}

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

.page-the-thao__step-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-the-thao__btn-text-link {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-the-thao__btn-text-link:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

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

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

.page-the-thao__benefits-list li {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05em;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-the-thao__list-icon {
  color: var(--glow-color);
  font-size: 1.2em;
  font-weight: bold;
}

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

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

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--glow-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
  max-height: 500px; /* Arbitrary large value to allow content to show */
  padding-top: 10px;
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 30px;
  }

  .page-the-thao__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

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

  .page-the-thao__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }

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

  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-the-thao__intro-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }

  /* Module 1 three-column feature images */
  .page-the-thao__features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__feature-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    margin-bottom: 15px;
  }
  
  .page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
  }

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

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

  .page-the-thao__card-title {
    font-size: 1.2em;
    padding: 15px 15px 8px;
  }

  .page-the-thao__card-text {
    font-size: 0.9em;
    padding: 0 15px 15px;
  }

  /* Guide section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__step-item {
    padding: 25px;
  }

  .page-the-thao__step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-the-thao__step-icon img {
    
    
  }

  .page-the-thao__step-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .page-the-thao__step-text {
    font-size: 0.9em;
  }

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

  .page-the-thao__promo-card .page-the-thao__btn-primary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }

  /* Why Choose section */
  .page-the-thao__benefits-list li {
    font-size: 0.95em;
    padding: 12px 15px;
    gap: 10px;
  }

  .page-the-thao__list-icon {
    font-size: 1.1em;
  }

  /* FAQ section */
  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-the-thao__faq-toggle {
    font-size: 1.3em;
  }

  .page-the-thao__faq-answer {
    font-size: 0.9em;
    padding: 0 20px 15px;
  }

  /* Universal image and container rules 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
  }
}