/* style/ththao.css */

/* Base styles for the page, assuming a dark body background from shared.css */
.page-ththao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Light text on dark background */
  background-color: var(--background, #08160F);
}

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

/* Section Titles */
.page-ththao__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ththao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

/* Buttons */
.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;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-ththao__btn-secondary:hover {
  background: var(--border, #2E7A4E);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

.page-ththao__btn-text {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.page-ththao__btn-text:hover {
  color: var(--gold, #F2C14E);
}

.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
  overflow: hidden;
}

.page-ththao__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-ththao__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-ththao__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* About Section */
.page-ththao__about-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

/* Features Section */
.page-ththao__features-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-ththao__feature-card {
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 12px;
  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: var(--text-main, #F2FFF6);
}

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

.page-ththao__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Smaller for icons, but still >= 200px */
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ththao__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

/* Guide Section */
.page-ththao__guide-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-ththao__guide-step {
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-ththao__step-title {
  font-size: 1.3em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ththao__step-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

/* Sports Types Section */
.page-ththao__sports-types-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-ththao__card {
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-ththao__card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 200px; /* Minimum size for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ththao__card .page-ththao__card-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ththao__card .page-ththao__card-title a:hover {
  color: var(--gold, #F2C14E);
}

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

/* Responsible Gaming Section */
.page-ththao__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  text-align: center;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-ththao__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__faq-item {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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(--text-main, #F2FFF6);
  cursor: pointer;
  background: var(--card-bg, #11271B);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-ththao__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold, #F2C14E);
  margin-left: 15px;
  user-select: none; /* Prevent text selection */
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-ththao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

.page-ththao__faq-item:not([open]) .page-ththao__faq-answer {
  display: none;
}

/* Contact CTA Section */
.page-ththao__contact-cta {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  text-align: center;
}

/* Image styles */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__section-title {
    font-size: 2em;
  }
  .page-ththao__hero-section {
    padding: 40px 15px;
  }
  .page-ththao__hero-image {
    margin-bottom: 30px;
  }
  .page-ththao__hero-description {
    font-size: 1.1em;
  }
  .page-ththao__features-grid,
  .page-ththao__sports-cards,
  .page-ththao__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile specific styles */
  .page-ththao__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-ththao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-ththao__text-block {
    font-size: 1em;
  }
  .page-ththao__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }
  .page-ththao__hero-image {
    margin-bottom: 20px;
  }
  .page-ththao__hero-cta {
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ththao__container {
    padding: 0 15px;
  }
  .page-ththao__features-grid,
  .page-ththao__guide-steps,
  .page-ththao__sports-cards,
  .page-ththao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ththao__feature-card,
  .page-ththao__guide-step,
  .page-ththao__card {
    padding: 20px;
  }
  .page-ththao__card-image {
    min-height: 150px; /* Adjust min-height for mobile if needed */
  }

  /* Mobile image specific styles */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ththao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-ththao__faq-answer {
    padding: 0 20px 15px;
  }
  /* Ensure video sections are properly padded and constrained */
  .page-ththao__video-section,
  .page-ththao__video-container,
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-ththao video,
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color contrast safety for dark backgrounds */
.page-ththao__dark-bg {
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}
.page-ththao__dark-section {
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

/* Default text color for general content */
.page-ththao p,
.page-ththao li,
.page-ththao__text-block {
  color: var(--text-secondary, #A7D9B8);
}

/* Ensure min image size in content area */
.page-ththao__features-section img,
.page-ththao__sports-types-section img,
.page-ththao__promotions-section img {
  min-width: 200px;
  min-height: 200px;
}