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

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

/* Text colors based on body background (dark) and custom palette */
.page-the-thao {
  color: #F2FFF6; /* Text Main */
}

.page-the-thao__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-the-thao__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-the-thao__description-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #A7D9B8; /* Text Secondary */
}

.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-the-thao__feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #A7D9B8; /* Text Secondary */
}

.page-the-thao__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow */
  font-weight: bold;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: none;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
  margin-left: 15px;
}

.page-the-thao__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2FFF6; /* Text Main */
}

.page-the-thao__btn-small {
  padding: 8px 18px;
  font-size: 14px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-top: 15px;
}

.page-the-thao__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  padding-bottom: 50px;
}

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

.page-the-thao__hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin: -200px auto 0 auto; /* Pull up over image */
  position: relative;
  z-index: 1;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Use clamp for H1 */
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__intro-text {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Overview Section */
.page-the-thao__overview-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-the-thao__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-the-thao__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-the-thao__text-content {
  flex: 1;
}

.page-the-thao__image-content {
  flex: 1;
  text-align: center;
}

.page-the-thao__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-the-thao__category-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-the-thao__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-the-thao__card-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Live Betting Section */
.page-the-thao__live-betting-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

/* Strategy Section */
.page-the-thao__strategy-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-the-thao__strategy-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-the-thao__strategy-card .page-the-thao__card-title {
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-the-thao__strategy-card .page-the-thao__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  flex-grow: 1;
}

.page-the-thao__strategy-cta {
  text-align: center;
  margin-top: 60px;
}

.page-the-thao__strategy-cta img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-the-thao__promotion-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__promotion-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-the-thao__promotion-card .page-the-thao__card-title {
  color: #F2C14E; /* Gold */
}

.page-the-thao__promotion-card .page-the-thao__card-description {
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

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

/* Get Started Section */
.page-the-thao__get-started-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-the-thao__step-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-card .page-the-thao__card-title {
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-the-thao__step-card .page-the-thao__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  flex-grow: 1;
}

.page-the-thao__get-started-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #0A4B2C; /* Deep Green */
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Gold */
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
}

.page-the-thao__faq-section img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 50px auto 0 auto;
}

/* General image styling for content areas */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-the-thao__description-text {
    font-size: 17px;
  }
  .page-the-thao__section-title {
    font-size: 30px;
  }
  .page-the-thao__sub-title {
    font-size: 22px;
  }
  .page-the-thao__image-text-block {
    flex-direction: column;
    gap: 30px;
  }
  .page-the-thao__image-text-block--reverse {
    flex-direction: column-reverse;
  }
  .page-the-thao__hero-content {
    margin-top: -150px;
  }
}

@media (max-width: 849px) {
  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-section {
    padding-bottom: 30px;
  }

  .page-the-thao__hero-image {
    max-height: 400px;
  }
  
  .page-the-thao__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    padding: 20px 15px;
    margin-top: -100px;
  }

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

  .page-the-thao__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    margin-left: 0 !important; /* Remove margin for secondary button */
  }
  
  .page-the-thao__section-title {
    font-size: 26px;
    margin-bottom: 20px;
    padding-top: 15px;
  }

  .page-the-thao__description-text {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-the-thao__overview-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__live-betting-section,
  .page-the-thao__strategy-section,
  .page-the-thao__promotions-section,
  .page-the-thao__get-started-section,
  .page-the-thao__faq-section {
    padding: 50px 0;
  }

  .page-the-thao__image-text-block {
    margin-top: 30px;
  }

  .page-the-thao__image-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__categories-grid,
  .page-the-thao__strategy-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__category-card img,
  .page-the-thao__promotion-card img {
    
  }

  .page-the-thao__strategy-cta img,
  .page-the-thao__get-started-section img,
  .page-the-thao__faq-section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 16px;
  }

  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }

  .page-the-thao__hero-section .page-the-thao__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__overview-section .page-the-thao__container,
  .page-the-thao__sports-categories-section .page-the-thao__container,
  .page-the-thao__live-betting-section .page-the-thao__container,
  .page-the-thao__strategy-section .page-the-thao__container,
  .page-the-thao__promotions-section .page-the-thao__container,
  .page-the-thao__get-started-section .page-the-thao__container,
  .page-the-thao__faq-section .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}