/* style/ththao.css */

/* Base styles for page-ththao */
.page-ththao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-color); /* From shared.css */
}

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

/* Sections */
.page-ththao__section {
  padding: 60px 20px;
  text-align: center;
}

.page-ththao__dark-bg {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

.page-ththao__card-bg {
  background-color: var(--background-color-card);
  color: var(--text-main);
}

.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for general container padding */
  box-sizing: border-box;
}

.page-ththao__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-glow);
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-ththao__text-block, .page-ththao__text-secondary {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-ththao__text-main {
  color: var(--text-main);
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  overflow: hidden;
  min-height: 600px; /* Ensure sufficient height */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px; /* Space between image and content */
  display: flex;
  justify-content: center;
}

.page-ththao__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: var(--text-main);
}

.page-ththao__main-title {
  font-size: clamp(32px, 5vw, 60px); /* Clamp for responsive H1 */
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
}

.page-ththao__hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* CTA Buttons */
.page-ththao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

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

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

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

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-ththao__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--color-glow);
  color: var(--background-color-page);
  transform: translateY(-2px);
}

/* General content image */
.page-ththao__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Grid containers for cards */
.page-ththao__grid-container,
.page-ththao__feature-grid,
.page-ththao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card styles */
.page-ththao__card {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-ththao__card-title, .page-ththao__feature-title, .page-ththao__promo-title {
  font-size: 24px;
  color: var(--color-glow);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-ththao__card-text, .page-ththao__feature-description, .page-ththao__promo-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* List items */
.page-ththao__list-items {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-ththao__list-items li {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.page-ththao__list-items li:hover {
  transform: translateX(5px);
}

.page-ththao__list-title {
  font-size: 22px;
  color: var(--color-glow);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ththao__list-items p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Guide section */
.page-ththao__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ththao__steps-list li {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  counter-increment: step-counter;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-ththao__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background: var(--color-gold);
  color: var(--background-color-page);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-ththao__step-title {
  font-size: 24px;
  color: var(--color-glow);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ththao__step-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Promotions section */
.page-ththao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-ththao__promo-card {
  padding: 20px;
}

.page-ththao__promo-title {
  font-size: 20px;
  margin-top: 0;
}

.page-ththao__promo-description {
  font-size: 15px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

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

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

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

.page-ththao__faq-qtext {
  flex-grow: 1;
}

.page-ththao__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-glow);
}

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

/* Final CTA Section */
.page-ththao__final-cta {
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-ththao__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-ththao__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }

  .page-ththao__hero-description {
    font-size: 18px;
  }

  .page-ththao__section {
    padding: 50px 15px;
  }
}

@media (max-width: 768px) {
  /* Mobile base font size and line height for readability */
  .page-ththao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Force responsive for images, videos, buttons and their containers */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller images if needed for layout, but still no tiny icons */
    min-height: unset !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__hero-image-wrapper,
  .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; /* Ensure no overflow */
  }

  .page-ththao__cta-button,
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao a[class*="button"],
  .page-ththao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Full width buttons on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for stacked buttons */
  }

  .page-ththao__hero-section {
    padding: 10px 15px 40px;
    min-height: auto;
  }

  .page-ththao__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-ththao__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

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

  .page-ththao__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-ththao__text-block, .page-ththao__text-secondary {
    font-size: 15px;
  }

  .page-ththao__grid-container,
  .page-ththao__feature-grid,
  .page-ththao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card {
    padding: 20px;
  }

  .page-ththao__card-title, .page-ththao__feature-title, .page-ththao__promo-title {
    font-size: 20px;
  }

  .page-ththao__list-items li {
    padding: 15px 20px;
  }

  .page-ththao__list-title {
    font-size: 18px;
  }

  .page-ththao__steps-list li {
    padding: 20px 20px 20px 60px;
  }

  .page-ththao__steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
    left: 15px;
    top: 15px;
  }

  .page-ththao__step-title {
    font-size: 20px;
  }

  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-ththao__faq-toggle {
    font-size: 20px;
  }

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

  .page-ththao__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  /* Ensure content images meet minimum display size or scale down responsibly */
  .page-ththao__content-image {
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: 200px !important;
  }
}

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

  .page-ththao__section-title {
    font-size: 24px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
}