/* style/ththao.css */

/* Base styles for the page, assuming a dark body background from shared.css */
.page-ththao {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  line-height: 1.6;
  background-color: #08160F; /* Background */
}

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

.page-ththao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ththao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #11A84E; /* Main Color */
  border-radius: 2px;
}

.page-ththao__description,
.page-ththao__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
}

.page-ththao__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  margin: 10px;
  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%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ththao__btn-secondary {
  background: none;
  color: #11A84E; /* Main Color */
  border: 2px solid #11A84E; /* Main Color */
}

.page-ththao__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Text Main */
}

/* Card styles */
.page-ththao__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

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

.page-ththao__card-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #08160F;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure image is large enough */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 30px 20px;
}

.page-ththao__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 900;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-ththao__hero-content .page-ththao__description {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-ththao__intro-section,
.page-ththao__promotions-section,
.page-ththao__cta-final-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-ththao__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6;
}

/* Sports Grid */
.page-ththao__sports-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Features Section */
.page-ththao__features-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

/* Guide Section */
.page-ththao__guide-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__guide-step-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-ththao__guide-step p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

.page-ththao__promotion-note {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-top: 30px;
}

/* Security Section */
.page-ththao__security-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-ththao__security-image {
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  min-height: 200px; /* Enforce min size */
}

.page-ththao__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-ththao__security-text .page-ththao__text-block {
  text-align: left;
  margin-bottom: 20px;
}

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

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

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B;
  list-style: none; /* For details tag */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.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: #11A84E; /* Main Color */
}

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

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__section-title {
    font-size: 2em;
  }

  .page-ththao__description,
  .page-ththao__text-block {
    font-size: 1em;
  }

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

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

  .page-ththao__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-ththao__security-text {
    min-width: unset;
    text-align: center;
  }
  .page-ththao__security-text .page-ththao__text-block {
    text-align: center;
  }
}

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

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

  .page-ththao__description,
  .page-ththao__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 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__sport-card,
  .page-ththao__feature-card,
  .page-ththao__guide-step,
  .page-ththao__promo-card,
  .page-ththao__security-image,
  .page-ththao__hero-content,
  .page-ththao__cta-buttons,
  .page-ththao__security-content,
  .page-ththao__faq-list,
  .page-ththao__intro-section,
  .page-ththao__sports-section,
  .page-ththao__features-section,
  .page-ththao__guide-section,
  .page-ththao__promotions-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content does not overflow */
  }

  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-ththao__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 20px !important;
  }

  .page-ththao__sport-grid,
  .page-ththao__feature-grid,
  .page-ththao__guide-steps,
  .page-ththao__promo-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-ththao__faq-toggle {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-ththao__section-title {
    font-size: 1.5em;
  }

  .page-ththao__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }

  .page-ththao__hero-content .page-ththao__description {
    font-size: 0.9em;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
}