/* style/ththao.css */

/* Custom Colors */
:root {
  --page-ththao-bg-color: #08160F;
  --page-ththao-card-bg: #11271B;
  --page-ththao-text-main: #F2FFF6;
  --page-ththao-text-secondary: #A7D9B8;
  --page-ththao-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-border-color: #2E7A4E;
  --page-ththao-glow-color: #57E38D;
  --page-ththao-gold-color: #F2C14E;
  --page-ththao-divider-color: #1E3A2A;
  --page-ththao-deep-green: #0A4B2C;
  --page-ththao-light-bg: #f8f9fa; /* For contrast on light sections */
  --page-ththao-dark-text: #333333; /* For contrast on light sections */
}

.page-ththao {
  background-color: var(--page-ththao-bg-color);
  color: var(--page-ththao-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-ththao__section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--page-ththao-gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--page-ththao-text-secondary);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ththao-text-main);
  height: 100%; /* Ensure cards in a grid have equal height */
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-ththao-glow-color);
}

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

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--page-ththao-glow-color);
  border: 2px solid var(--page-ththao-glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-glow-color);
  color: var(--page-ththao-bg-color);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
  transform: translateY(-2px);
}

/* Section Styles */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding */
  text-align: center;
  overflow: hidden;
}

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

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow */
  background-color: var(--page-ththao-card-bg); /* Dark background for text readability */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-ththao-border-color);
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--page-ththao-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-ththao__hero-description {
  font-size: 1.2rem;
  color: var(--page-ththao-text-main);
  margin-bottom: 30px;
  line-height: 1.8;
}

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

.page-ththao__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

/* Intro Section */
.page-ththao__intro-section,
.page-ththao__promotions-section,
.page-ththao__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg);
  color: var(--page-ththao-dark-text);
}

.page-ththao__intro-section .page-ththao__section-title,
.page-ththao__intro-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text);
}

.page-ththao__intro-section .page-ththao__feature-card {
  background-color: #ffffff;
  color: var(--page-ththao-dark-text);
  border-color: #e0e0e0;
}

.page-ththao__intro-section .page-ththao__card-title {
  color: var(--page-ththao-deep-green);
}

.page-ththao__intro-section .page-ththao__card-description {
  color: var(--page-ththao-dark-text);
}

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

.page-ththao__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Sports Section */
.page-ththao__sports-section,
.page-ththao__guide-section,
.page-ththao__features-highlight-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-ththao-bg-color);
  color: var(--page-ththao-text-main);
}

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

.page-ththao__sport-image,
.page-ththao__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Betting Types Section */
.page-ththao__betting-types-section {
  padding: 80px 0;
  background-color: var(--page-ththao-light-bg);
  color: var(--page-ththao-dark-text);
}

.page-ththao__betting-types-section .page-ththao__section-title,
.page-ththao__betting-types-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text);
}

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

.page-ththao__type-card {
  background-color: #ffffff;
  color: var(--page-ththao-dark-text);
  border-color: #e0e0e0;
}

.page-ththao__type-card .page-ththao__card-title {
  color: var(--page-ththao-deep-green);
}

.page-ththao__type-card .page-ththao__card-description {
  color: var(--page-ththao-dark-text);
}

/* Guide Section */
.page-ththao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-ththao__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-ththao__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--page-ththao-glow-color);
  color: var(--page-ththao-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid var(--page-ththao-gold-color);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

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

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

/* Promotions Section */
.page-ththao__promotions-section .page-ththao__section-title,
.page-ththao__promotions-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text);
}

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

.page-ththao__promo-card {
  background-color: #ffffff;
  color: var(--page-ththao-dark-text);
  border-color: #e0e0e0;
}

.page-ththao__promo-card .page-ththao__card-title {
  color: var(--page-ththao-deep-green);
}

.page-ththao__promo-card .page-ththao__card-description {
  color: var(--page-ththao-dark-text);
}

.page-ththao__promo-card .page-ththao__btn-secondary {
  margin-top: 20px;
  border-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-deep-green);
}

.page-ththao__promo-card .page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-deep-green);
  color: #ffffff;
}

/* Features Highlight Section */
.page-ththao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__list-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--page-ththao-text-main);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-ththao__list-item::before {
  content: '✔';
  color: var(--page-ththao-glow-color);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsible Gaming Section */
.page-ththao__responsible-gaming-section .page-ththao__section-title,
.page-ththao__responsible-gaming-section .page-ththao__text-block {
  color: var(--page-ththao-dark-text);
}

.page-ththao__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__responsible-list .page-ththao__list-item {
  background-color: #ffffff;
  color: var(--page-ththao-dark-text);
  border-color: #e0e0e0;
}

.page-ththao__responsible-list .page-ththao__list-item::before {
  color: var(--page-ththao-deep-green);
}

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

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

.page-ththao__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-ththao-gold-color);
  position: relative;
  user-select: none;
}

.page-ththao__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-ththao__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-ththao-glow-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−';
}

.page-ththao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__faq-answer p {
  margin-bottom: 15px;
  color: var(--page-ththao-text-secondary);
  text-align: left;
}

.page-ththao__faq-link {
  color: var(--page-ththao-glow-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-ththao__faq-link:hover {
  color: var(--page-ththao-gold-color);
}

/* Conclusion Section */
.page-ththao__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__conclusion-section .page-ththao__text-block {
  margin-bottom: 40px;
}

/* General Image Styling */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-ththao__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-ththao__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-ththao__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-ththao__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-ththao__main-title {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 15px;
  }

  .page-ththao__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  .page-ththao__intro-section,
  .page-ththao__sports-section,
  .page-ththao__betting-types-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__features-highlight-section,
  .page-ththao__responsible-gaming-section,
  .page-ththao__faq-section,
  .page-ththao__conclusion-section {
    padding: 50px 0;
  }

  .page-ththao__features-grid,
  .page-ththao__sports-grid,
  .page-ththao__betting-types-grid,
  .page-ththao__guide-steps,
  .page-ththao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-ththao__feature-icon {
    width: 100px;
    height: 100px;
  }

  .page-ththao__card-title {
    font-size: 1.3rem;
  }

  .page-ththao__card-description {
    font-size: 0.95rem;
  }

  .page-ththao__sport-image,
  .page-ththao__promo-image {
    height: 200px;
  }

  .page-ththao__step-item {
    padding-top: 50px;
  }

  .page-ththao__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .page-ththao__list-item {
    font-size: 1rem;
    padding: 15px;
  }

  .page-ththao__faq-item summary {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-ththao__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image and video responsiveness */
  .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__hero-section,
  .page-ththao__intro-section,
  .page-ththao__sports-section,
  .page-ththao__betting-types-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__features-highlight-section,
  .page-ththao__responsible-gaming-section,
  .page-ththao__faq-section,
  .page-ththao__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-ththao__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-ththao__hero-image-wrapper {
    overflow: hidden !important;
  }

  .page-ththao__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-ththao__video-section {
    padding-top: 10px !important;
  }

  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-content {
    margin-top: -60px;
  }
}