/* style/the-thao.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient-start: #FFD86A;
  --button-gradient-end: #E6B800;
  --card-bg: #D32F2F;
  --background-section-dark: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --default-text-color-light-bg: #333333;
  --default-text-color-dark-bg: #ffffff;
}

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

.page-the-thao__dark-bg {
  background-color: var(--background-section-dark);
  color: var(--default-text-color-dark-bg);
}

.page-the-thao__light-bg {
  background-color: #ffffff; /* Explicitly white for light sections */
  color: var(--default-text-color-light-bg);
}

.page-the-thao__dark-section {
  background-color: var(--background-section-dark);
  color: var(--text-main-color);
  padding: 40px 0;
}

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

.page-the-thao__light-bg .page-the-thao__section-title {
  color: var(--primary-color);
}

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

.page-the-thao__light-bg .page-the-thao__section-description {
  color: var(--default-text-color-light-bg);
}

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

.page-the-thao__text-block p,
.page-the-thao__text-block li {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: var(--default-text-color-light-bg);
}

.page-the-thao__dark-section .page-the-thao__text-block p,
.page-the-thao__dark-section .page-the-thao__text-block li {
  color: var(--text-main-color);
}

.page-the-thao__text-center {
  text-align: center;
}

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

.page-the-thao__btn-primary {
  background: var(--primary-color);
  color: var(--default-text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-primary.page-the-thao__btn-gradient {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: #333333; /* Dark text for contrast on gold gradient */
  border: 2px solid var(--border-color);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--default-text-color-dark-bg);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has padding-top */
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(var(--deep-red-color), 0.85); /* Slightly transparent dark red */
  border-radius: 15px;
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Introduction Section */
.page-the-thao__introduction-section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__introduction-section .page-the-thao__text-block {
  padding: 0 20px;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Types of Bets Section */
.page-the-thao__types-of-bets-section {
  padding: 60px 0;
}

.page-the-thao__bet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.page-the-thao__bet-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__bet-item p {
  color: var(--text-main-color);
  font-size: 1em;
}

/* Advantages Section */
.page-the-thao__advantages-section {
  padding: 60px 0;
}

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

.page-the-thao__advantage-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-the-thao__advantage-card .page-the-thao__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__advantage-card .page-the-thao__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__advantage-card p {
  color: var(--text-main-color);
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
}

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

.page-the-thao__step-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  background: var(--deep-red-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--border-color);
}

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

.page-the-thao__step-card p {
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__step-card .page-the-thao__btn-primary,
.page-the-thao__step-card .page-the-thao__btn-secondary {
  width: 100%;
  margin-top: auto;
}

/* Strategies Section */
.page-the-thao__strategies-section {
  padding: 60px 0;
}

.page-the-thao__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__strategy-list li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: var(--default-text-color-light-bg);
}

.page-the-thao__strategy-list li p {
  margin: 0;
  color: inherit;
}

.page-the-thao__strategy-list li strong {
  color: var(--primary-color);
}

.page-the-thao__strategies-section a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-the-thao__strategies-section a:hover {
  color: var(--primary-color);
}

/* Tournaments Section */
.page-the-thao__tournaments-section {
  padding: 60px 0;
}

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

.page-the-thao__tournament-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-the-thao__tournament-card .page-the-thao__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__tournament-card .page-the-thao__card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__tournament-card p {
  color: var(--text-main-color);
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
}

.page-the-thao__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__promotion-list li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: var(--default-text-color-light-bg);
}

.page-the-thao__promotion-list li p {
  margin: 0;
  color: inherit;
}

.page-the-thao__promotion-list li strong {
  color: var(--secondary-color);
}

.page-the-thao__promotions-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-the-thao__promotions-section a:hover {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
}

.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: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  outline: none;
  list-style: none;
}

.page-the-thao__faq-item summary::-webkit-details-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;
  text-align: left;
}

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

.page-the-thao__faq-answer p {
  margin-bottom: 1em;
  color: inherit;
}

.page-the-thao__faq-answer .page-the-thao__btn-primary,
.page-the-thao__faq-answer .page-the-thao__btn-secondary {
  margin-top: 15px;
  display: inline-block;
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__conclusion-section .page-the-thao__cta-buttons {
  margin-top: 30px;
}

.page-the-thao__conclusion-section .page-the-thao__cta-buttons a {
  margin: 0 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

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

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

  .page-the-thao__bet-list,
  .page-the-thao__advantage-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__tournament-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.5;
  }

  /* General Image & Container Adaption */
  .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,
  .page-the-thao__hero-section,
  .page-the-thao__introduction-section,
  .page-the-thao__types-of-bets-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__strategies-section,
  .page-the-thao__tournaments-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 !important;
    padding-right: 15px !important;
  }

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

  .page-the-thao__hero-content {
    margin-top: -40px; /* Less overlap on mobile */
    padding: 25px 15px;
    border-radius: 10px;
  }

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

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

  /* Advantage Grid */
  .page-the-thao__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-the-thao__step-title {
    font-size: 1.4em;
  }

  /* Strategy List */
  .page-the-thao__strategy-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
  }

  /* Tournament Grid */
  .page-the-thao__tournament-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Promotion List */
  .page-the-thao__promotion-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
  }

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

  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-the-thao__conclusion-section .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__conclusion-section .page-the-thao__cta-buttons a {
    margin: 0;
  }
}