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

  /* Default text color for light backgrounds */
  --ththao-default-dark-text: #333333;
  /* Default text color for dark backgrounds */
  --ththao-default-light-text: #ffffff;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-ththao {
  background-color: var(--ththao-bg); /* Use the specified background color */
  color: var(--ththao-text-main); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-ththao__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* Ensure content does not overflow */
}

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

.page-ththao__section-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 rules applied to H2 for responsiveness */
  font-weight: bold;
  color: var(--ththao-gold-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-ththao__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--ththao-text-main);
  text-align: center;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--ththao-bg);
}

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

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

.page-ththao__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-ththao__main-title {
  font-size: clamp(36px, 5vw, 60px); /* Using clamp for responsive H1 */
  font-weight: 700;
  color: var(--ththao-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-ththao__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ththao__btn-primary {
  background: var(--ththao-button-gradient);
  color: var(--ththao-text-main);
  border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-ththao__btn-secondary:hover {
  background: var(--ththao-gold-color);
  color: var(--ththao-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Image styles within content sections */
.page-ththao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* List styles */
.page-ththao__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
}

.page-ththao__list-item {
  background-color: var(--ththao-card-bg);
  color: var(--ththao-text-main);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid var(--ththao-primary-color);
  border-radius: 8px;
  font-size: 17px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__list-item strong {
  color: var(--ththao-gold-color);
}

/* Dark section specific styles */
.page-ththao__dark-section {
  background-color: var(--ththao-deep-green); /* Example: using a darker green for contrast */
  color: var(--ththao-text-main);
}

/* Light background section */
.page-ththao__light-bg {
  background-color: var(--ththao-bg); /* Still using the main dark background */
  color: var(--ththao-text-main); /* Main text color */
}

/* Promo Cards */
.page-ththao__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__card {
  background-color: var(--ththao-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--ththao-text-main); /* Ensure text is visible on card background */
  border: 1px solid var(--ththao-border-color);
}

.page-ththao__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-ththao__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--ththao-gold-color);
  padding: 20px 20px 10px;
}

.page-ththao__card-text {
  font-size: 16px;
  color: var(--ththao-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-ththao__card .page-ththao__btn-primary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: calc(100% - 40px);
}

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

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--ththao-gold-color);
  cursor: pointer;
  background-color: var(--ththao-deep-green); /* Darker background for question */
  border-bottom: 1px solid var(--ththao-border-color);
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Standard property */
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom: 1px solid var(--ththao-border-color);
}

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

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

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

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

.page-ththao__faq-item summary {
  list-style: none;
}

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

.page-ththao__conclusion-section .page-ththao__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ththao-text-secondary);
}

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

@media (max-width: 768px) {
  .page-ththao__section {
    padding: 40px 0;
  }

  .page-ththao__container {
    padding: 0 15px;
  }

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

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

  .page-ththao__main-title {
    font-size: 32px;
  }

  .page-ththao__description {
    font-size: 18px;
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-ththao__text-block,
  .page-ththao__list-item,
  .page-ththao__faq-answer {
    font-size: 16px;
  }

  .page-ththao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card-image {
    height: 200px;
  }

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

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

  /* Mobile image 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__promo-cards,
  .page-ththao__faq-list,
  .page-ththao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: 28px;
  }
  .page-ththao__description {
    font-size: 16px;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
}