/* style/ththao.css */

/* Base styles for the page, assuming a dark background from shared.css */
.page-ththao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default light text for dark background */
  background-color: var(--background-color, #08160F); /* Ensure consistent background */
  line-height: 1.6;
}

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

.page-ththao__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.page-ththao__dark-section {
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
}

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

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

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Fixed height for desktop hero image */
  overflow: hidden;
  position: relative;
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--background-color, #08160F) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color, #F2FFF6);
}

.page-ththao__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ththao__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-ththao__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-ththao__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
  border-color: var(--main-color, #11A84E);
}

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

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

/* Section Titles */
.page-ththao__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  position: relative;
}

.page-ththao__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--main-color, #11A84E);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Text Blocks */
.page-ththao__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-ththao__card,
.page-ththao__promo-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary-color, #A7D9B8);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-ththao__card:hover,
.page-ththao__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ththao__card-image,
.page-ththao__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

.page-ththao__card-title,
.page-ththao__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 15px 20px 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-ththao__card-title a,
.page-ththao__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-ththao__card-title a:hover,
.page-ththao__promo-title a:hover {
  color: var(--main-color, #11A84E);
}

.page-ththao__card-text,
.page-ththao__promo-description {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-ththao__promo-card .page-ththao__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Guide List */
.page-ththao__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__guide-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-ththao__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color, #11A84E);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid var(--background-color, #08160F);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-ththao__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
}

.page-ththao__guide-step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-ththao__guide-item .page-ththao__btn-primary,
.page-ththao__guide-item .page-ththao__btn-secondary {
  width: 100%;
  text-align: center;
}

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

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

.page-ththao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-ththao__feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-ththao__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-ththao__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  background-color: rgba(17, 168, 78, 0.1); /* Slight highlight for summary */
}

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

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

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color, #11A84E);
}

.page-ththao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-ththao__faq-answer p {
  margin-bottom: 15px;
}

.page-ththao__faq-answer .page-ththao__btn-secondary {
  margin-top: 10px;
}

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

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

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

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

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

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

  .page-ththao__description {
    font-size: 1rem;
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__hero-image-wrapper {
    max-height: 400px;
  }

  .page-ththao__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
    border-radius: 10px;
  }

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

  .page-ththao__cards-grid,
  .page-ththao__promo-grid,
  .page-ththao__guide-list,
  .page-ththao__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ththao__card-image,
  .page-ththao__promo-image {
    height: 180px;
  }

  .page-ththao__card-title,
  .page-ththao__promo-title {
    font-size: 1.2rem;
  }

  .page-ththao__text-block,
  .page-ththao__card-text,
  .page-ththao__promo-description,
  .page-ththao__guide-step-text,
  .page-ththao__feature-text,
  .page-ththao__faq-answer p {
    font-size: 0.9rem;
  }

  .page-ththao__guide-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: -15px;
    border-width: 2px;
  }

  .page-ththao__guide-step-title {
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .page-ththao__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-ththao__feature-title {
    font-size: 1.1rem;
  }

  .page-ththao__faq-item summary {
    padding: 15px;
    font-size: 1rem;
  }

  .page-ththao__faq-toggle {
    font-size: 1.3rem;
  }

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

  /* Mobile image, video, button responsiveness (forced) */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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__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;
  }

  .page-ththao__video-section {
    padding-top: 10px !important;
  }

  .page-ththao__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

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

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

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