/* style/ththao.css */

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

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

.page-ththao__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

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

.page-ththao__light-bg {
  background-color: var(--page-ththao-card-bg); /* Use card bg for lighter section contrast */
  color: var(--page-ththao-text-main);
}

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

.page-ththao__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--page-ththao-text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-ththao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  position: relative;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

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

.page-ththao__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: var(--page-ththao-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.page-ththao__hero-description {
  font-size: 1.2em;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 40px;
}

.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-btn-gradient);
  color: var(--page-ththao-text-main);
  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-ththao-text-main);
  border: 2px solid var(--page-ththao-border);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-deep-green);
  transform: translateY(-3px);
}

/* General Image Styling */
.page-ththao__image {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Sports List Section */
.page-ththao__sports-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  text-align: left;
}

.page-ththao__list-item {
  background-color: var(--page-ththao-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-ththao-border);
}

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

.page-ththao__list-item p {
  color: var(--page-ththao-text-secondary);
  font-size: 1em;
}

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

.page-ththao__feature-card {
  background-color: var(--page-ththao-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-ththao-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have enough space for image and text */
}

.page-ththao__card-title {
  font-size: 1.8em;
  color: var(--page-ththao-gold);
  margin-bottom: 15px;
}

.page-ththao__feature-card p {
  color: var(--page-ththao-text-secondary);
  font-size: 1em;
  flex-grow: 1;
}

.page-ththao__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Adjusted max-width for card images */
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* How-to-Start Section */
.page-ththao__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-ththao__steps-list .page-ththao__list-item {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
  border: none;
  box-shadow: none;
  background: none;
}

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

.page-ththao__steps-list .page-ththao__list-title {
  color: var(--page-ththao-text-main);
}

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

.page-ththao__promotion-card {
  background-color: var(--page-ththao-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-ththao-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.page-ththao__promotion-card p {
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ththao__promotion-card .page-ththao__btn-secondary {
  width: auto; /* Allow button to size to content */
  align-self: flex-start;
}

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

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  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);
}

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-ththao-gold);
}

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

.page-ththao__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-ththao-text-secondary);
  border-top: none;
}

/* Call to Action Section */
.page-ththao__call-to-action {
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__section-title {
    font-size: 2.5em;
  }

  .page-ththao__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.2em);
  }
}

@media (max-width: 768px) {
  .page-ththao__section {
    padding: 60px 0;
  }

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

  .page-ththao__main-title {
    font-size: clamp(2em, 6vw, 2.8em);
  }

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

  .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: 1em;
    margin: 0 auto;
    display: block;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-ththao__cta-buttons {
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-ththao__image,
  .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__hero-image-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .page-ththao__container,
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__faq-item,
  .page-ththao__promotion-card,
  .page-ththao__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important; /* body has padding-top, this is for visual spacing */
    padding-bottom: 40px;
  }

  .page-ththao__hero-content {
    padding: 0 15px;
  }

  .page-ththao__sports-list,
  .page-ththao__feature-grid,
  .page-ththao__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__list-item,
  .page-ththao__feature-card,
  .page-ththao__promotion-card {
    padding: 20px;
  }

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

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