/* style/ththao.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-bg-card: #11271B;
  --color-bg-body: #08160F;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-ththao {
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  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;
}

/* Sections */
.page-ththao__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-ththao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-ththao__section-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.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;
  overflow: hidden;
  text-align: center;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-ththao__hero-title {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-ththao__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

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

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

.page-ththao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--color-glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--color-glow);
  color: var(--color-bg-body);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-tertiary {
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 14px;
}

.page-ththao__btn-tertiary:hover {
  background-color: var(--color-border);
  color: #ffffff;
}

.page-ththao__btn-lg {
  padding: 18px 35px;
  font-size: 20px;
}

/* Cards */
.page-ththao__card {
  background-color: var(--color-bg-card);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-border);
}

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

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

.page-ththao__card-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-ththao__sport-card {
  text-align: center;
  align-items: center;
}

.page-ththao__sport-card .page-ththao__btn-tertiary {
  width: auto;
  margin-top: auto;
}

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

.page-ththao__feature-item {
  text-align: center;
  padding: 25px;
}

.page-ththao__feature-item .page-ththao__card-title {
  font-size: 22px;
  color: var(--color-gold);
}

.page-ththao__feature-item .page-ththao__card-text {
  font-size: 15px;
  color: var(--color-text-secondary);
}

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

.page-ththao__promotion-card {
  text-align: left;
}

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

.page-ththao__security-item {
  text-align: center;
  padding: 20px;
}

.page-ththao__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__security-title {
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 10px;
}

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

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

.page-ththao__step-item {
  text-align: center;
  align-items: center;
  padding-top: 50px;
  position: relative;
}

.page-ththao__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid var(--color-glow);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__centered-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

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

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

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

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

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

.page-ththao__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ththao__faq-item.active .page-ththao__faq-answer {
  max-height: 2000px; /* Arbitrarily large value for smooth transition */
  padding: 20px 25px;
}

/* Details tag specific styles */
.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: none;
  padding: 20px 25px;
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  background-color: var(--color-border);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-image-wrapper {
    max-height: 50vh;
  }
  .page-ththao__hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-ththao__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-ththao__section {
    padding: 40px 0;
  }
  .page-ththao__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-ththao__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-ththao__hero-image-wrapper {
    max-height: 40vh;
  }
  .page-ththao__hero-content {
    padding: 30px 15px;
    margin-top: 10px;
  }
  .page-ththao__hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .page-ththao__hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-tertiary,
  .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;
    padding-right: 15px;
  }

  .page-ththao__sport-cards-grid,
  .page-ththao__features-grid,
  .page-ththao__promotions-grid,
  .page-ththao__security-features,
  .page-ththao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card {
    padding: 20px;
    text-align: center;
    align-items: center;
  }
  .page-ththao__card-image {
    height: 200px;
  }
  .page-ththao__card-title {
    font-size: 20px;
  }
  .page-ththao__card-text {
    font-size: 14px;
  }

  .page-ththao__security-icon {
    width: 80px;
    height: 80px;
  }
  .page-ththao__security-title {
    font-size: 18px;
  }

  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-ththao__faq-answer {
    padding: 15px 20px;
    font-size: 14px;
  }

  /* General image responsiveness */
  .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,
  .page-ththao__hero-image-wrapper,
  .page-ththao__cta-buttons,
  .page-ththao__sport-cards-grid,
  .page-ththao__features-grid,
  .page-ththao__promotions-grid,
  .page-ththao__security-features,
  .page-ththao__steps-grid,
  .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__video-section {
    padding-top: 10px !important;
  }
  .page-ththao__video-wrapper,
  .page-ththao__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}