/* style/ththao.css */

/* Base styles for the page content, ensuring text color contrasts with dark body background */
.page-ththao {
  background-color: var(--background-color); /* Inherit from shared.css, which is #08160F */
  color: #F2FFF6; /* Text Main, contrasts with dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  background-color: #0A4B2C; /* Deep Green for hero section background */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
}

.page-ththao__hero-content {
  position: relative; /* Not absolute, to flow below image */
  padding: 40px 20px 0;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-ththao__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-ththao__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.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.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ththao__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-ththao__btn-secondary:hover {
  background: #2E7A4E; /* Border color as background on hover */
  color: #ffffff;
}

.page-ththao__btn-secondary--light {
  color: #F2FFF6;
  border-color: #A7D9B8;
}

.page-ththao__btn-secondary--light:hover {
  background: #A7D9B8;
  color: #08160F;
}

.page-ththao__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* General Section Styling */
.page-ththao__section {
  padding: 60px 0;
  text-align: center;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-ththao__section:nth-of-type(even) {
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-ththao__section-title--light {
  color: #F2FFF6; /* Text Main */
}

.page-ththao__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  text-align: left;
}

.page-ththao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 800px; /* Example max-width, adjust as needed */
  object-fit: cover;
}

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

.page-ththao__card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-ththao__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ththao__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ththao__promo-card .page-ththao__btn-primary,
.page-ththao__promo-card .page-ththao__btn-secondary {
  margin-top: auto;
  width: auto;
}

/* List Styling (How-To & Features) */
.page-ththao__step-list,
.page-ththao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__list-item {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.page-ththao__list-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ththao__list-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-ththao__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #2E7A4E; /* Border color */
}

.page-ththao__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-ththao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ththao__faq-item.active .page-ththao__faq-answer {
  max-height: 2000px;
  padding-top: 15px;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 2000px;
  padding-top: 15px;
}

/* Final CTA Section */
.page-ththao__final-cta {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
}

.page-ththao__final-cta .page-ththao__container {
  padding: 40px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__container {
    padding: 30px 15px;
  }

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

  .page-ththao__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-ththao__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.2em);
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

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

  .page-ththao__hero-content {
    padding: 20px 15px 0;
  }

  .page-ththao__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-ththao__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-ththao__section {
    padding: 40px 0;
  }

  .page-ththao__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 25px;
  }

  .page-ththao__text-block,
  .page-ththao__card-text,
  .page-ththao__list-text,
  .page-ththao__faq-answer p {
    font-size: 0.95em;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__hero-image-wrapper,
  .page-ththao__image-content-wrapper,
  .page-ththao__card,
  .page-ththao__section,
  .page-ththao__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,
  .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;
  }
  .page-ththao__video-section {
    padding-top: 10px !important;
  }

  .page-ththao__grid-cards,
  .page-ththao__step-list,
  .page-ththao__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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