/* style/ththao.css */
/* body đã padding-top: var(--header-offset) từ shared.css */

:root {
  --page-bg-color: #08160F;
  --page-card-bg-color: #11271B;
  --page-text-main-color: #F2FFF6;
  --page-text-secondary-color: #A7D9B8;
  --page-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-border-color: #2E7A4E;
  --page-glow-color: #57E38D;
  --page-gold-color: #F2C14E;
  --page-divider-color: #1E3A2A;
  --page-deep-green-color: #0A4B2C;
}

.page-ththao {
  background-color: var(--page-bg-color);
  color: var(--page-text-main-color);
  font-family: 'Arial', sans-serif;
  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;
  text-align: center;
}

.page-ththao__dark-section {
  background-color: var(--page-card-bg-color);
}

.page-ththao__section-title {
  font-size: clamp(2em, 2.5vw, 3em);
  font-weight: 700;
  color: var(--page-text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ththao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--page-gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-ththao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-text-secondary-color);
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây là phần đệm nhỏ */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* HTML width/height for layout, not for generation size */
  width: 1200px; 
  height: 675px;
}

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

.page-ththao__main-title {
  font-size: clamp(2.5em, 4.5vw, 3.5em); /* Sử dụng clamp cho responsive H1 */
  font-weight: 800;
  color: var(--page-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-ththao__hero-description {
  font-size: 1.2em;
  color: var(--page-text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: var(--page-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-ththao__btn-secondary {
  background: transparent;
  color: var(--page-glow-color);
  border: 2px solid var(--page-glow-color);
}

.page-ththao__btn-secondary:hover {
  background: var(--page-glow-color);
  color: var(--page-bg-color);
  transform: translateY(-3px);
}

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

/* Feature List */
.page-ththao__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-ththao__feature-item {
  background-color: var(--page-card-bg-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: var(--page-text-secondary-color);
  position: relative;
  padding-left: 45px;
  border: 1px solid var(--page-border-color);
}

.page-ththao__feature-item::before {
  content: '✅';
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 1.2em;
}

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

.page-ththao__card {
  background-color: var(--page-card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--page-border-color);
}

.page-ththao__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  /* HTML width/height for layout, not for generation size */
  width: 400px; 
  height: 300px;
}

.page-ththao__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-gold-color);
  margin-bottom: 10px;
}

.page-ththao__card-description {
  font-size: 1em;
  color: var(--page-text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Đảm bảo mô tả chiếm đủ không gian */
}

.page-ththao__sport-card .page-ththao__btn-primary {
  width: auto;
  align-self: flex-start;
}

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

.page-ththao__promo-card .page-ththao__card-image {
  height: 180px; /* Adjusted height for promo images */
}

/* How-To Section */
.page-ththao__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__step-item {
  background-color: var(--page-card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: left;
  border: 1px solid var(--page-border-color);
}

.page-ththao__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-gold-color);
  margin-bottom: 15px;
}

.page-ththao__step-item p {
  color: var(--page-text-secondary-color);
  margin-bottom: 20px;
}

.page-ththao__step-item .page-ththao__btn-primary,
.page-ththao__step-item .page-ththao__btn-secondary {
  width: auto;
  display: inline-block;
}

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

.page-ththao__faq-item {
  background-color: var(--page-card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--page-border-color);
  text-align: left;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-text-main-color);
  cursor: pointer;
  list-style: none;
}

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

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom: 1px solid var(--page-divider-color);
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-glow-color);
  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 20px;
  font-size: 1em;
  color: var(--page-text-secondary-color);
}

/* CTA Bottom */
.page-ththao__cta-bottom {
  padding: 80px 0;
  background-color: var(--page-deep-green-color);
  border-top: 2px solid var(--page-glow-color);
}

.page-ththao__cta-container {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-ththao__section-title {
    font-size: 2em;
  }

  .page-ththao__sub-title {
    font-size: 1.5em;
  }

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

  .page-ththao__hero-section {
    padding-top: 10px !important; /* body đã có padding-top, đây là phần đệm nhỏ */
    padding-bottom: 40px;
  }
  
  .page-ththao__hero-image-wrapper {
    max-height: 300px;
  }

  .page-ththao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao a[class*="button"],
  .page-ththao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__sport-grid,
  .page-ththao__promo-grid,
  .page-ththao__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-ththao__cta-bottom {
    padding: 60px 0;
  }
}

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

  .page-ththao__hero-description {
    font-size: 0.95em;
  }

  .page-ththao__feature-item {
    padding-left: 35px;
  }

  .page-ththao__feature-item::before {
    left: 10px;
    font-size: 1em;
  }
}