/* style/the-thao.css */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --section-bg: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --dark-text-on-light: #333333;
  --light-text-on-dark: #ffffff;
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-on-dark); /* Default text color for dark sections */
  background-color: var(--section-bg); /* Default background for dark sections */
}

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

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

.page-the-thao__light-bg {
  background-color: var(--light-text-on-dark);
  color: var(--dark-text-on-light);
  padding: 60px 0;
}

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 1px 1px 2px var(--deep-red-color);
}

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

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

.page-the-thao__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  position: relative; /* Ensure content is above any background layers */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--gold-color);
  text-shadow: 2px 2px 4px var(--deep-red-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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: var(--dark-text-on-light); /* Dark text on gold gradient */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border-color: var(--gold-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__about-section .page-the-thao__paragraph {
  color: var(--dark-text-on-light);
}

.page-the-thao__sports-diversity,
.page-the-thao__features-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section {
  background-color: var(--section-bg);
  color: var(--text-main);
}

.page-the-thao__promotions-section,
.page-the-thao__betting-types,
.page-the-thao__strategies-section,
.page-the-thao__conclusion-section {
  background-color: var(--light-text-on-dark);
  color: var(--dark-text-on-light);
}

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

.page-the-thao__sport-item,
.page-the-thao__promo-item,
.page-the-thao__strategy-item {
  padding: 20px;
}

.page-the-thao__sport-image,
.page-the-thao__promo-image,
.page-the-thao__strategy-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

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

.page-the-thao__sport-description,
.page-the-thao__promo-description,
.page-the-thao__strategy-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-the-thao__promotions-section .page-the-thao__promo-description {
  color: var(--dark-text-on-light);
}

.page-the-thao__betting-types .page-the-thao__paragraph,
.page-the-thao__strategies-section .page-the-thao__paragraph,
.page-the-thao__conclusion-section .page-the-thao__paragraph {
  color: var(--dark-text-on-light);
}

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

.page-the-thao__type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--dark-text-on-light);
  border: 1px solid #eee;
}

.page-the-thao__type-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-the-thao__type-name {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__type-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-the-thao__features-section .page-the-thao__feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

.page-the-thao__feature-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

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

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

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

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

.page-the-thao__step-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--gold-color);
  padding: 10px;
}

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

.page-the-thao__step-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: var(--gold-color);
  background-color: var(--deep-red-color);
}

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

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

.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: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-answer p {
  color: var(--text-main);
  margin-bottom: 0;
}

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

/* Button container responsiveness */
.page-the-thao__cta-buttons,
.page-the-thao__button-group,
.page-the-thao__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 15px;
  }

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

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

  .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: 12px 20px;
  }

  .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__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

  .page-the-thao__paragraph {
    font-size: 0.95em;
    line-height: 1.7;
  }

  .page-the-thao__sport-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__strategy-list,
  .page-the-thao__type-grid,
  .page-the-thao__feature-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .page-the-thao__sport-item,
  .page-the-thao__promo-item,
  .page-the-thao__strategy-item,
  .page-the-thao__type-item,
  .page-the-thao__feature-item,
  .page-the-thao__step-item {
    padding: 20px;
  }

  .page-the-thao__sport-name,
  .page-the-thao__promo-title,
  .page-the-thao__strategy-title,
  .page-the-thao__type-name,
  .page-the-thao__feature-title,
  .page-the-thao__step-title {
    font-size: 1.3em;
  }

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

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

  /* General image and container responsiveness */
  .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__sport-item,
  .page-the-thao__promo-item,
  .page-the-thao__strategy-item,
  .page-the-thao__type-item,
  .page-the-thao__feature-item,
  .page-the-thao__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* No winner list for this page, so skip that specific media query. */
  /* Other content modules' padding/font size for readability: */
  .page-the-thao__about-section, .page-the-thao__conclusion-section {
    padding: 40px 0;
  }
}