/* style/ththao.css */
/* 
  Body background color is var(--background) which is #08160F (dark green/almost black).
  Therefore, text colors should be light: #F2FFF6 (Text Main) and #A7D9B8 (Text Secondary).
*/

.page-ththao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Ensure body background is respected */
}

/* Typography */
.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-ththao__list-title,
.page-ththao__card-title,
.page-ththao__step-title,
.page-ththao__feature-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-ththao__hero-description,
.page-ththao__text-block,
.page-ththao__list-item,
.page-ththao__card-text,
.page-ththao__step-text,
.page-ththao__feature-text,
.page-ththao__faq-qtext,
.page-ththao__faq-answer p {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-ththao__list-item strong {
  color: var(--text-main, #F2FFF6);
}

/* Sections & Containers */
.page-ththao__section {
  padding: 60px 20px;
  background-color: var(--background, #08160F); /* Ensure consistent dark background */
}

.page-ththao__section:nth-of-type(odd) {
  background-color: var(--deep-green, #0A4B2C); /* Alternate background for visual break */
}

.page-ththao__dark-section {
  background-color: var(--deep-green, #0A4B2C) !important; /* Explicitly use deep green for dark sections */
  color: var(--text-main, #F2FFF6);
}

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

.page-ththao__container--center {
  text-align: center;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
  overflow: hidden;
}

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

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-ththao__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

/* Buttons */
.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-ththao__cta-buttons--center {
  justify-content: center;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button adapts to container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  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-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6); /* Text Main */
  border: 2px solid var(--border, #2E7A4E);
  box-shadow: 0 4px 10px rgba(46, 122, 78, 0.2);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 122, 78, 0.4);
}

/* Images */
.page-ththao__image-content {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Recommended content image max-width */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Grid Layout for Cards */
.page-ththao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  transition: transform 0.3s ease;
  color: var(--text-secondary, #A7D9B8); /* Card text color */
}

.page-ththao__card:hover {
  transform: translateY(-5px);
}

.page-ththao__card-title {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

/* Steps List */
.page-ththao__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__step-item {
  background-color: var(--card-bg, #11271B);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--divider, #1E3A2A);
  text-align: center;
}

.page-ththao__step-title {
  color: var(--gold, #F2C14E);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Feature List */
.page-ththao__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__feature-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-secondary, #A7D9B8);
}

.page-ththao__feature-title {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-ththao__faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  font-size: 1.2rem;
  list-style: none; /* For details/summary */
}

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

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

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold, #F2C14E);
}

.page-ththao__faq-answer {
  padding-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-section {
    padding: 40px 15px;
  }
  .page-ththao__section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-ththao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-ththao__main-title {
    font-size: 2.2rem;
  }

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

  .page-ththao__list-title,
  .page-ththao__card-title,
  .page-ththao__step-title,
  .page-ththao__feature-title {
    font-size: 1.3rem;
  }

  .page-ththao__hero-description,
  .page-ththao__text-block,
  .page-ththao__list-item,
  .page-ththao__card-text,
  .page-ththao__step-text,
  .page-ththao__feature-text,
  .page-ththao__faq-qtext,
  .page-ththao__faq-answer p {
    font-size: 1rem;
  }

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

  .page-ththao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__image-content,
  .page-ththao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-ththao__faq-question {
    font-size: 1.1rem;
  }
}

/* Ensure no images smaller than 200px in content area */
.page-ththao img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-ththao img {
  filter: none;
}