/* style/ththao.css */

/* Base styles for the page */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main from custom palette, contrasts with body background #08160F */
  background-color: #08160F; /* Body background */
}

/* General container for content */
.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-ththao__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

/* Main title for hero section */
.page-ththao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
  font-weight: 900;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
}

/* General text blocks */
.page-ththao__text-block {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-ththao__description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero background, good contrast with image */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image */
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow color */
}

.page-ththao__btn-secondary {
  background: none;
  color: #57E38D; /* Glow color */
  border: 2px solid #57E38D;
}

.page-ththao__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background color for contrast */
}

.page-ththao__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  max-width: 300px; /* Limit width for center button */
}

.page-ththao__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Introduction Section */
.page-ththao__intro-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

/* Features Section (Grid Layout) */
.page-ththao__features-section {
  padding: 60px 0;
  background-color: #08160F; /* Body background */
}

.page-ththao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-ththao__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-ththao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(87, 227, 141, 0.5); /* Glow on hover */
}

.page-ththao__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-ththao__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-ththao__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* Promotion Section */
.page-ththao__promotion-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-ththao__promotion-banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 15px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-ththao__guide-section {
  padding: 60px 0;
  background-color: #08160F; /* Body background */
}

.page-ththao__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  counter-reset: step-counter;
}

.page-ththao__guide-list li {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 20px 20px 20px 60px;
  margin-bottom: 20px;
  position: relative;
  color: #A7D9B8; /* Text Secondary */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ththao__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  background-color: #2AD16F; /* Button primary color */
  color: #08160F; /* Background color for contrast */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-ththao__guide-list li strong {
  color: #F2FFF6; /* Text Main */
  display: block;
  margin-bottom: 5px;
}

/* Why Choose Section */
.page-ththao__why-choose-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__advantage-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-ththao__advantage-list li {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 20px;
  color: #A7D9B8; /* Text Secondary */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ththao__advantage-list li strong {
  color: #F2FFF6; /* Text Main */
  display: block;
  margin-bottom: 5px;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Body background */
}

.page-ththao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-ththao__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ththao__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1rem;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color */
}

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

.page-ththao__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

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

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

/* Global image styles */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 15px;
  }

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

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

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

  .page-ththao__hero-content {
    margin-top: -40px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .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: 1rem;
  }

  .page-ththao__btn-center {
    max-width: 100%;
  }

  .page-ththao__btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-ththao__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-ththao__feature-card,
  .page-ththao__advantage-list li,
  .page-ththao__faq-item {
    padding: 20px;
  }

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

  .page-ththao__guide-list li {
    padding: 15px 15px 15px 50px;
  }

  .page-ththao__guide-list li::before {
    left: 15px;
    top: 15px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__hero-image-wrapper,
  .page-ththao__promotion-banner,
  .page-ththao__guide-image,
  .page-ththao__feature-card,
  .page-ththao__faq-list,
  .page-ththao__advantage-list,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Ensure content areas don't overflow */
  .page-ththao__intro-section,
  .page-ththao__features-section,
  .page-ththao__promotion-section,
  .page-ththao__guide-section,
  .page-ththao__why-choose-section,
  .page-ththao__faq-section,
  .page-ththao__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }
}