/* style/ththao.css */

/* Global styles for the page, ensuring text color contrast */
.page-ththao {
  background-color: var(--background-color, #08160F); /* Fallback to dark green if var not set */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

.page-ththao h1,
.page-ththao h2,
.page-ththao h3 {
  color: var(--text-main-color, #F2FFF6);
  font-weight: bold;
  margin-bottom: 1rem;
}

.page-ththao h1 {
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem); 
  line-height: 1.2;
}

.page-ththao h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.page-ththao h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color, #11A84E), var(--auxiliary-color, #22C768));
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.page-ththao h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-ththao p {
  margin-bottom: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

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

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

/* Sections */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  overflow: hidden; /* Ensure content doesn't overflow */
  background-color: var(--background-color, #08160F);
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-ththao__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-ththao__subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.page-ththao__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-ththao__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-ththao__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* General section styling */
.page-ththao__intro-section,
.page-ththao__sports-types,
.page-ththao__benefits-section,
.page-ththao__guide-section,
.page-ththao__tips-section,
.page-ththao__faq-section,
.page-ththao__conclusion-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-ththao__intro-section {
  padding-top: 10px; /* Small top padding as per instruction */
}

.page-ththao__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-ththao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__image-wrapper--inline {
  margin: 20px auto;
  max-width: 800px; /* Constrain width for inline images */
}

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

.page-ththao__card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

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

.page-ththao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ththao__card-title {
  color: var(--gold-color, #F2C14E); /* Gold for card titles */
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

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

/* Benefits section */
.page-ththao__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ththao__benefit-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__benefit-title {
  color: var(--glow-color, #57E38D); /* Glow color for benefit titles */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-ththao__benefit-description {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Guide section */
.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-ththao__step-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

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

.page-ththao__step-description {
  color: var(--text-secondary-color, #A7D9B8);
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 20px;
}

/* Tips section */
.page-ththao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.page-ththao__tip-title {
  color: var(--glow-color, #57E38D);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.page-ththao__tip-description {
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-ththao__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  font-size: 1.1rem;
}

.page-ththao__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome's default marker */
}

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

.page-ththao__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color, #F2C14E);
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
  transition: transform 0.3s ease;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile hero */
    padding-bottom: 40px !important;
  }

  .page-ththao h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-ththao h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-ththao h3 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .page-ththao p {
    font-size: 1rem;
  }

  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__benefits-section,
  .page-ththao__guide-section,
  .page-ththao__tips-section,
  .page-ththao__faq-section,
  .page-ththao__conclusion-section {
    padding: 40px 0 !important;
  }

  .page-ththao__container {
    padding: 0 15px !important; /* Add padding to container on mobile */
  }

  /* Mobile image responsiveness */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness for elements containing images/videos/buttons */
  .page-ththao__hero-section,
  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__benefits-section,
  .page-ththao__guide-section,
  .page-ththao__tips-section,
  .page-ththao__faq-section,
  .page-ththao__conclusion-section,
  .page-ththao__card,
  .page-ththao__step-card,
  .page-ththao__benefit-item,
  .page-ththao__tip-item,
  .page-ththao__faq-item,
  .page-ththao__image-wrapper,
  .page-ththao__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific adjustment for hero content to not have extra padding */
  .page-ththao__hero-content {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  /* Mobile button responsiveness */
  .page-ththao__cta-button,
  .page-ththao__cta-button--small,
  .page-ththao__cta-button--large,
  .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 !important; /* Ensure text inside button has padding */
    padding-right: 15px !important;
    margin-bottom: 10px !important; /* Space between stacked buttons */
  }

  .page-ththao__cta-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important; /* Space between buttons if multiple */
  }

  .page-ththao__grid,
  .page-ththao__steps-grid {
    grid-template-columns: 1fr !important; /* Stack cards on mobile */
  }

  .page-ththao__card-image {
    height: auto !important; /* Allow image to scale */
  }
}

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