/* style/ththao.css */

/* Biến màu sắc */
:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-card-bg: #11271B;
  --page-ththao-background: #08160F;
  --page-ththao-text-main: #F2FFF6;
  --page-ththao-text-secondary: #A7D9B8;
  --page-ththao-border-color: #2E7A4E;
  --page-ththao-glow-color: #57E38D;
  --page-ththao-gold-color: #F2C14E;
  --page-ththao-divider-color: #1E3A2A;
  --page-ththao-deep-green: #0A4B2C;
}

/* General Styles */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-ththao-text-main); /* Default text color for dark backgrounds */
  background-color: var(--page-ththao-background); /* Default background */
}

.page-ththao__dark-bg {
  background-color: var(--page-ththao-background);
  color: var(--page-ththao-text-main);
}

.page-ththao__light-bg {
  background-color: #f8f9fa; /* A light background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-ththao__section-title {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--page-ththao-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ththao__text-block {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__light-bg .page-ththao__text-block {
  color: #555555;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space for content below image */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
}

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

.page-ththao__hero-content {
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap with image slightly for visual flow */
  background-color: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  padding: 30px;
}

.page-ththao__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ththao__description {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 150, 0, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 150, 0, 0.6);
}

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

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-gold-color);
  color: var(--page-ththao-background);
}

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

/* Sports Types Section */
.page-ththao__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ththao-text-main);
  padding-bottom: 20px;
}

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

.page-ththao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ththao__card-title {
  font-size: 24px;
  color: var(--page-ththao-gold-color);
  margin: 0 15px 10px;
  font-weight: bold;
}

.page-ththao__card-text {
  font-size: 15px;
  color: var(--page-ththao-text-secondary);
  padding: 0 15px;
}

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

.page-ththao__list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #333333;
}

.page-ththao__list-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.page-ththao__list-title {
  font-size: 20px;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ththao__list-text {
  font-size: 15px;
  color: #555555;
}

/* Guide Section */
.page-ththao__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-ththao__guide-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-ththao__guide-steps {
  flex: 1 1 400px;
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-ththao__step-item {
  margin-bottom: 25px;
  position: relative;
  padding-left: 45px;
}

.page-ththao__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--page-ththao-gold-color);
  color: var(--page-ththao-background);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.page-ththao__step-title {
  font-size: 20px;
  color: var(--page-ththao-gold-color);
  margin-bottom: 5px;
}

.page-ththao__step-text {
  font-size: 15px;
  color: var(--page-ththao-text-secondary);
}

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

.page-ththao__promo-card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-ththao__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ththao__promo-title {
  font-size: 22px;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ththao__promo-text {
  font-size: 15px;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-ththao-text-main);
  cursor: pointer;
  background-color: var(--page-ththao-deep-green);
  border-bottom: 1px solid var(--page-ththao-divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-ththao__faq-question:hover {
  background-color: var(--page-ththao-primary-color);
}

.page-ththao__faq-qtext {
  flex-grow: 1;
  color: var(--page-ththao-text-main);
}

.page-ththao__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-ththao-gold-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-ththao__faq-answer {
  padding: 15px 20px 20px;
  font-size: 16px;
  color: var(--page-ththao-text-secondary);
}

/* Conclusion Section */
.page-ththao__conclusion-section {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    margin-top: -80px;
    padding: 25px;
  }
  .page-ththao__main-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }
  .page-ththao__description {
    font-size: clamp(15px, 2.2vw, 18px);
  }
  .page-ththao__grid, .page-ththao__promo-grid, .page-ththao__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important; /* body has header-offset, this is for visual spacing */
    padding-bottom: 40px;
  }
  .page-ththao__hero-content {
    margin-top: -60px;
    padding: 20px;
    width: calc(100% - 30px); /* Adjust for padding on container */
  }
  .page-ththao__main-title {
    font-size: clamp(26px, 6vw, 36px);
  }
  .page-ththao__description {
    font-size: clamp(14px, 3vw, 16px);
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary, .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-ththao__container,
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__promo-card,
  .page-ththao__list-item,
  .page-ththao__guide-content,
  .page-ththao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__guide-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-ththao__guide-image {
    flex: none;
    width: 100%;
  }
  .page-ththao__guide-steps {
    flex: none;
    width: 100%;
  }
  .page-ththao__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-ththao__list-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .page-ththao__list-icon {
    margin-bottom: 10px;
  }
  .page-ththao__section-title {
    font-size: clamp(24px, 6vw, 30px);
    margin-bottom: 30px;
  }
  .page-ththao__faq-question {
    font-size: 16px;
    padding: 15px;
  }
  .page-ththao__faq-answer {
    padding: 10px 15px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-content {
    margin-top: -40px;
  }
  .page-ththao__main-title {
    font-size: clamp(24px, 7vw, 30px);
  }
  .page-ththao__description {
    font-size: clamp(14px, 3.5vw, 15px);
  }
  .page-ththao__card-title {
    font-size: 20px;
  }
  .page-ththao__promo-title {
    font-size: 18px;
  }
}