/* General styles for the Thể Thao page */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Defaults to #F2FFF6, adjust based on body background */
  background-color: var(--background-color); /* From shared.css, assuming dark */
}

/* Color variables from provided palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-page-color: #08160F; /* Specific background for page sections */
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Body background from shared.css, assuming it's dark based on provided colors */
/* If body background is dark, text should be light (var(--text-main-color)) */
.page-ththao {
  color: var(--text-main-color); /* Light text for dark background */
}

/* Sections with specific backgrounds */
.page-ththao__dark-bg {
  background-color: var(--background-page-color); /* #08160F */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-ththao__light-bg {
  background-color: var(--card-bg-color); /* #11271B, slightly lighter dark */
  color: var(--text-main-color); /* #F2FFF6 */
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-ththao__hero-content {
  position: relative; /* Not absolute, to be in normal flow below image */
  text-align: center;
  max-width: 900px;
  margin-top: 30px; /* Spacing between image and content */
  padding: 0 20px;
}

.page-ththao__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold-color); /* Gold for title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-ththao__hero-description {
  font-size: 1.25rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

/* General containers and content wrappers */
.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-ththao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-ththao__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ththao__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-ththao__content-image {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-ththao__content-image--left {
  margin-right: 20px; /* Adjust for spacing */
}

.page-ththao__content-image--right {
  margin-left: 20px; /* Adjust for spacing */
}

.page-ththao__content-image--center {
  margin: 30px auto;
  max-width: 800px; /* Constrain width for center image */
}

.page-ththao__text-block {
  flex: 2;
  font-size: 1.1rem;
  color: var(--text-main-color);
}

.page-ththao__text-block p {
  margin-bottom: 15px;
}

.page-ththao__text-block--center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-ththao__btn-primary {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__cta-group {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

/* Grid Layout for Bet Types */
.page-ththao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ththao__card {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-ththao__card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-ththao__benefits-item {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__benefits-heading {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* How-to steps */
.page-ththao__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__step-card {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__step-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Strategy List */
.page-ththao__strategy-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-ththao__strategy-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-ththao__strategy-list strong {
  color: var(--gold-color);
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-ththao__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-ththao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05rem;
  color: var(--text-secondary-color);
}

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

/* Conclusion */
.page-ththao__conclusion-section .page-ththao__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-ththao__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ththao__hero-description {
    font-size: 1.1rem;
  }
  .page-ththao__content-wrapper {
    flex-direction: column;
  }
  .page-ththao__content-image--left,
  .page-ththao__content-image--right {
    margin: 0 auto 20px auto;
  }
  .page-ththao__content-image {
    max-width: 100%;
  }
  .page-ththao__text-block {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 30px 15px;
  }
  .page-ththao__hero-section {
    padding-bottom: 40px;
  }
  .page-ththao__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-ththao__hero-description {
    font-size: 1rem;
  }
  .page-ththao__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  /* Responsive images */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__content-wrapper,
  .page-ththao__grid-layout,
  .page-ththao__benefits-list,
  .page-ththao__step-by-step,
  .page-ththao__faq-list,
  .page-ththao__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video section specific padding for mobile (no video on this page, but keeping rule) */
  .page-ththao__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive buttons */
  .page-ththao__btn-primary {
    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-ththao__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex; /* For multiple buttons */
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-ththao__content-wrapper {
    gap: 20px;
  }
  .page-ththao__grid-layout,
  .page-ththao__benefits-list,
  .page-ththao__step-by-step {
    gap: 20px;
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-ththao__card,
  .page-ththao__benefits-item,
  .page-ththao__step-card {
    padding: 20px;
  }
  .page-ththao__card-title,
  .page-ththao__benefits-heading,
  .page-ththao__step-title {
    font-size: 1.3rem;
  }
  .page-ththao__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-ththao__faq-answer {
    padding: 0 20px 15px 20px;
  }
}