/* style/ththao.css */

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

.page-ththao {
  font-family: 'Arial', sans-serif;
  background-color: var(--page-ththao-background);
  color: var(--page-ththao-text-main); /* Default text color for dark background */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-ththao-deep-green);
  overflow: hidden;
}

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

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

.page-ththao__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-ththao__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  color: var(--page-ththao-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-ththao__description {
  font-size: 1.1em;
  color: var(--page-ththao-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default width */
}

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

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--page-ththao-text-main);
  border: 2px solid var(--page-ththao-primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

.page-ththao__btn-text {
  display: inline-block;
  color: var(--page-ththao-primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-ththao__btn-text:hover {
  color: var(--page-ththao-gold);
  text-decoration: underline;
}

.page-ththao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--page-ththao-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-ththao__section-description {
  font-size: 1.1em;
  color: var(--page-ththao-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-ththao__advantages-section,
.page-ththao__bet-types-section,
.page-ththao__guide-section,
.page-ththao__promotions-section,
.page-ththao__security-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-ththao-background);
}

.page-ththao__advantages-section {
  background-color: var(--page-ththao-deep-green);
}

.page-ththao__advantage-grid,
.page-ththao__bet-type-grid,
.page-ththao__guide-steps,
.page-ththao__promotion-cards,
.page-ththao__security-features {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-ththao__advantage-card,
.page-ththao__bet-type-card,
.page-ththao__step-card,
.page-ththao__promotion-card,
.page-ththao__feature-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__advantage-card:hover,
.page-ththao__bet-type-card:hover,
.page-ththao__step-card:hover,
.page-ththao__promotion-card:hover,
.page-ththao__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-ththao__advantage-icon,
.page-ththao__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--page-ththao-primary-color);
  margin-bottom: 15px;
  display: block;
}

.page-ththao__card-title {
  font-size: 1.5em;
  color: var(--page-ththao-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ththao__card-text {
  color: var(--page-ththao-text-secondary);
  font-size: 0.95em;
}

.page-ththao__faq-list {
  margin-top: 40px;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--page-ththao-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-ththao__faq-item summary::-webkit-details-marker { /* Hide default marker */
  display: none;
}

.page-ththao__faq-question:hover {
  background-color: rgba(var(--page-ththao-primary-color-rgb), 0.1);
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-ththao-primary-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg);
}

.page-ththao__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--page-ththao-text-secondary);
  font-size: 1em;
}

.page-ththao__faq-answer p {
  margin: 0;
}

.page-ththao__security-cta,
.page-ththao__faq-cta,
.page-ththao__final-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

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

@media (max-width: 768px) {
  .page-ththao {
    font-size: 15px;
  }

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

  .page-ththao__hero-image-wrapper {
    max-height: 400px;
  }

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

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

  .page-ththao__description {
    font-size: 1em;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-ththao__section-title {
    font-size: 1.8em;
  }

  .page-ththao__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-ththao__advantages-section,
  .page-ththao__bet-types-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__conclusion-section {
    padding: 50px 0;
  }

  .page-ththao__advantage-grid,
  .page-ththao__bet-type-grid,
  .page-ththao__guide-steps,
  .page-ththao__promotion-cards,
  .page-ththao__security-features {
    grid-template-columns: 1fr;
  }

  .page-ththao__advantage-icon,
  .page-ththao__promotion-image {
    height: 180px;
  }

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

  .page-ththao__card-text {
    font-size: 0.9em;
  }

  .page-ththao__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-ththao__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-ththao__security-cta,
  .page-ththao__faq-cta,
  .page-ththao__final-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  /* Mobile image, video, container responsive rules */
  .page-ththao img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper,
  .page-ththao__cta-buttons,
  .page-ththao__button-group,
  .page-ththao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-ththao__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: 1.8em;
  }

  .page-ththao__section-title {
    font-size: 1.6em;
  }

  .page-ththao__hero-content {
    margin-top: -60px;
  }
}