/* style/ththao.css */

/* Body background from shared.css is var(--neon-bg-dark), which is dark. Text should be light. */
.page-ththao {
  color: #FFF3E6; /* Text Main color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-ththao__section {
  padding: 60px 0;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-ththao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-ththao__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: #FFF3E6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-ththao__subtitle {
  font-size: clamp(1em, 2.5vw, 1.3em);
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-ththao__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-ththao__cta-button--secondary {
  background: #17191F;
  border: 2px solid #A84F0C;
  color: #FFF3E6;
}

.page-ththao__cta-button--secondary:hover {
  background: #2a2d36;
  border-color: #FF8C1A;
}

.page-ththao__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-ththao__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #FF8C1A;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-ththao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
  text-align: justify;
}

.page-ththao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-ththao__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-ththao__card-title {
  font-size: 1.5em;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ththao__card-text {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-ththao__benefit-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-ththao__benefit-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-ththao__benefit-description {
  font-size: 1em;
  color: #FFF3E6;
}

.page-ththao__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-ththao__guide-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px 25px 25px 60px;
  margin-bottom: 20px;
  position: relative;
  color: #FFF3E6;
}

.page-ththao__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background: #FF8C1A;
  color: #FFF3E6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-ththao__guide-title {
  font-size: 1.3em;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-ththao__guide-description {
  font-size: 1em;
  color: #FFF3E6;
}

.page-ththao__promotion-list {
  list-style: none;
  padding: 0;
}

.page-ththao__promotion-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-ththao__promotion-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-ththao__promotion-description {
  font-size: 1em;
  color: #FFF3E6;
}

.page-ththao__faq-list {
  margin-top: 40px;
}

.page-ththao__faq-item {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.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: #FF8C1A;
  background: #17191F;
  border-bottom: 1px solid transparent; /* default */
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom-color: #A84F0C;
}

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

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

.page-ththao__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #FFF3E6;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-ththao__subtitle {
    font-size: 1em;
  }

  .page-ththao__cta-button {
    width: 100% !important;
    max-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__section {
    padding: 40px 0;
  }

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

  .page-ththao__text-block {
    font-size: 0.95em;
  }

  .page-ththao__image-content,
  .page-ththao__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ththao__container,
  .page-ththao__hero-image-wrapper,
  .page-ththao__grid-container,
  .page-ththao__benefit-list,
  .page-ththao__guide-list,
  .page-ththao__promotion-list,
  .page-ththao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-ththao__benefit-list {
    grid-template-columns: 1fr;
  }

  .page-ththao__guide-item {
    padding-left: 50px;
  }

  .page-ththao__guide-item::before {
    left: 15px;
  }

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

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

/* Contrast fix for body background var(--neon-bg-dark) */
.page-ththao__dark-bg {
  color: #ffffff;
  background: #FF8C1A;
}

.page-ththao__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-ththao__medium-bg {
  color: #000000;
  background: #FFA53A;
}

.page-ththao__content-area, .page-ththao__text-block {
  color: #FFF3E6;
}

.page-ththao p, .page-ththao li {
  color: #FFF3E6;
}

.page-ththao__dark-section {
  background: #FF8C1A;
  color: #ffffff;
}

.page-ththao__btn-primary {
  background: #FF8C1A;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-ththao__btn-secondary {
  background: #ffffff;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

/* Ensure the main content background blends or is explicitly set if needed */
.page-ththao__introduction-section,
.page-ththao__sports-types-section,
.page-ththao__benefits-section,
.page-ththao__guide-section,
.page-ththao__promotions-section,
.page-ththao__faq-section {
  background-color: transparent; /* Allow body background to show */
}