/* style/ththao.css */

:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --page-ththao-text-main: #F2FFF6;
  --page-ththao-text-secondary: #A7D9B8;
  --page-ththao-card-bg: #11271B;
  --page-ththao-background: #08160F;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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;
}

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

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

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

.page-ththao__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.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;
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 10;
  padding-top: 40px; /* Space between image and content */
  max-width: 900px;
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ththao__subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-ththao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.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.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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);
  transform: translateY(-2px);
}

.page-ththao__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-ththao__cta-center {
  margin-top: 50px;
}

/* General Sections */
.page-ththao__introduction-section,
.page-ththao__live-betting-section,
.page-ththao__how-to-start,
.page-ththao__promotions-section,
.page-ththao__faq-section,
.page-ththao__cta-final {
  padding: 60px 0;
}

.page-ththao__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section for contrast */
}

.page-ththao__introduction-section .page-ththao__section-title,
.page-ththao__live-betting-section .page-ththao__section-title,
.page-ththao__promotions-section .page-ththao__section-title,
.page-ththao__cta-final .page-ththao__section-title {
  color: #333333;
}

.page-ththao__introduction-section .page-ththao__subtitle,
.page-ththao__live-betting-section .page-ththao__subtitle,
.page-ththao__promotions-section .page-ththao__subtitle,
.page-ththao__cta-final .page-ththao__subtitle {
  color: #555555;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Sports Categories Grid */
.page-ththao__sports-categories {
  padding: 80px 0;
}

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

.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Ensure content spacing */
}

.page-ththao__card-dark {
  background-color: var(--page-ththao-card-bg);
  color: var(--page-ththao-text-main);
  border: 1px solid var(--page-ththao-border-color);
}

.page-ththao__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-ththao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ththao__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--page-ththao-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-ththao__link-text {
  color: var(--page-ththao-secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-ththao__link-text:hover {
  color: var(--page-ththao-glow-color);
  text-decoration: underline;
}

/* How To Start Section */
.page-ththao__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-ththao__step-item {
  background-color: var(--page-ththao-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-ththao-border-color);
}

.page-ththao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--page-ththao-button-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__step-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
}

.page-ththao__step-description {
  font-size: 1rem;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
}

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

.page-ththao__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-ththao__promo-card .page-ththao__promo-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--page-ththao-primary-color);
  margin-bottom: 15px;
}

.page-ththao__promo-card .page-ththao__promo-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 900px;
  margin: 40px auto 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-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-ththao-text-main);
  background-color: var(--page-ththao-deep-green);
  transition: background-color 0.2s ease;
}

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

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

.page-ththao__faq-qtext {
  flex-grow: 1;
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-ththao-gold-color);
}

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

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  animation: fadein 0.3s ease-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final CTA Section */
.page-ththao__cta-final {
  text-align: center;
  padding: 80px 0;
}

.page-ththao__cta-final .page-ththao__subtitle {
  margin-bottom: 40px;
}

/* Global Image Rules (Content area images must be >= 200px) */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filters changing image color */
}

.page-ththao__card-image,
.page-ththao__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
  .page-ththao__subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-ththao__hero-content {
    padding-top: 20px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .page-ththao__subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__container,
  .page-ththao__hero-image-wrapper,
  .page-ththao__grid-layout,
  .page-ththao__step-grid,
  .page-ththao__promo-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__introduction-section,
  .page-ththao__live-betting-section,
  .page-ththao__how-to-start,
  .page-ththao__promotions-section,
  .page-ththao__faq-section,
  .page-ththao__cta-final {
    padding: 40px 0;
  }

  .page-ththao__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 20px;
  }

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

  .page-ththao__card-image {
    height: 180px; /* Adjust for smaller screens */
  }

  .page-ththao__step-title {
    font-size: 1.5rem;
  }

  .page-ththao__promo-card .page-ththao__promo-title {
    font-size: 1.4rem;
  }

  .page-ththao__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-ththao__faq-answer {
    padding: 15px;
  }
  
  /* All content area images */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-ththao__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .page-ththao__subtitle {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-ththao__introduction-section,
  .page-ththao__live-betting-section,
  .page-ththao__how-to-start,
  .page-ththao__promotions-section,
  .page-ththao__faq-section,
  .page-ththao__cta-final {
    padding: 30px 0;
  }

  .page-ththao__container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-ththao__card-title {
    font-size: 1.4rem;
  }

  .page-ththao__step-title {
    font-size: 1.3rem;
  }

  .page-ththao__promo-card .page-ththao__promo-title {
    font-size: 1.2rem;
  }
}