/* style/the-thao.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --page-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

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

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

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

.page-the-thao__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-the-thao__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main);
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-the-thao__btn-text {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  color: var(--glow-color);
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming body has padding-top from shared.css */
  margin-bottom: 50px;
}

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

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

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--page-bg);
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-the-thao__intro-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-main);
}

/* Why Choose Us Section */
.page-the-thao__why-choose-us-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-the-thao__dark-bg {
  background-color: var(--card-bg);
}

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

.page-the-thao__feature-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.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);
  padding: 30px;
}

.page-the-thao__bet-type-card .page-the-thao__card-title {
  color: var(--secondary-color);
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

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

.page-the-thao__step-card {
  background-color: var(--page-bg);
  padding: 30px;
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-the-thao__promotions-grid {
  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);
  padding: 0; /* Remove padding for image to fill */
  overflow: hidden;
}

.page-the-thao__promo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__promo-card .page-the-thao__card-title,
.page-the-thao__promo-card .page-the-thao__card-text {
  padding: 0 25px;
  text-align: left;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  margin-top: 20px;
}

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

/* App Download Section */
.page-the-thao__app-download-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-the-thao__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-the-thao__app-text {
  flex: 1;
}

.page-the-thao__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-the-thao__app-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.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 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-the-thao__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  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.6;
  color: var(--text-main);
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  text-align: center;
}

.page-the-thao__conclusion-section .page-the-thao__section-description {
  margin-bottom: 30px;
}

.page-the-thao__copyright-info {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: rgba(255, 243, 230, 0.7);
  background-color: var(--page-bg);
  border-top: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 15px;
  }

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

  .page-the-thao__intro-text {
    font-size: 1.1em;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-the-thao__app-content {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .page-the-thao__app-text,
  .page-the-thao__app-image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-the-thao__hero-content {
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Section Titles & Descriptions */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  /* Feature Grid (Why Choose Us) */
  .page-the-thao__features-grid,
  .page-the-thao__bet-type-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-the-thao__feature-card img {
    max-width: 200px;
  }

  /* Guide Box - Not applicable for this specific page structure as it's not the home page */
  /* However, for completeness as per the prompt's general requirement, if a guide-box existed: */
  /* .page-the-thao__guide-grid { display: flex; flex-wrap: wrap; justify-content: center; } */
  /* .page-the-thao__guide-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); padding-top: 0 !important; } */
  /* .page-the-thao__guide-card img { aspect-ratio: 250/350; object-fit: contain; width: 100%; height: auto; } */

  /* Home Content Box - Not applicable for this specific page structure as it's not the home page */
  /* If it existed: */
  /* .page-the-thao__home-content-box { max-width: 100%; height: auto !important; padding: 10px; border-width: 2px; } */
  /* .page-the-thao__home-content-inner { height: auto !important; overflow: visible !important; } */

  /* Blog Card Section - Not applicable for this specific page structure as it's not the home page */
  /* If it existed: */
  /* .page-the-thao__blog-grid { grid-template-columns: 1fr; } */

  /* App Download Section */
  .page-the-thao__app-content {
    gap: 20px;
  }

  .page-the-thao__app-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__app-download-section,
  .page-the-thao__why-choose-us-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-the-thao__hero-content {
    padding: 20px 10px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-the-thao__intro-text {
    font-size: 0.9em;
  }
  .page-the-thao__section-title {
    font-size: 1.5em;
  }
  .page-the-thao__section-description {
    font-size: 0.85em;
  }
  .page-the-thao__cta-buttons {
    gap: 10px;
  }
  .page-the-thao__btn-primary, .page-the-thao__btn-secondary {
    padding: 10px 15px;
  }
}