/* style/ththao.css */

/* Assume body background is dark from shared.css (e.g., #08160F) */
.page-ththao {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  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;
}

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

.page-ththao__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-ththao__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #08160F;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

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

.page-ththao__hero-content {
  position: relative; /* Changed from absolute to relative to follow 'image above, text below' */
  text-align: center;
  color: #F2FFF6;
  padding: 40px 20px;
  z-index: 2;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the bottom of the image for visual flow */
  background: linear-gradient(0deg, #08160F 0%, rgba(8, 22, 15, 0.8) 70%, rgba(8, 22, 15, 0) 100%);
  border-radius: 15px;
  padding-top: 120px;
}

.page-ththao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-ththao__subtitle {
  font-size: clamp(1em, 1.5vw, 1.3em);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-ththao__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(46, 122, 78, 0.2);
}

.page-ththao__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2FFF6;
  border-color: #57E38D;
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
  transform: translateY(-2px);
}

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

.page-ththao__sport-card {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(34, 199, 104, 0.5);
}

.page-ththao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ththao__sport-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-ththao__sport-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

/* Odds & Bet Types Section */
.page-ththao__bet-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-ththao__bet-type-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__bet-type-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-ththao__bet-type-description {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

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

.page-ththao__feature-item {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-ththao__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-ththao__feature-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

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

.page-ththao__promo-card {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ththao__promo-title {
  font-size: 1.6em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-ththao__promo-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How-To-Bet Section */
.page-ththao__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-ththao__step-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__step-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-ththao__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-ththao__step-button {
  margin-top: 10px;
  display: inline-block;
}

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

.page-ththao__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  color: #57E38D; /* Glow */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-ththao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 500px; /* Arbitrary large value */
  padding: 0 25px 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-ththao__faq-answer p {
  margin: 0;
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    margin-top: -80px;
  }
}

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

  .page-ththao__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  .page-ththao__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

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

  .page-ththao__subtitle {
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__sport-categories,
  .page-ththao__bet-types-list,
  .page-ththao__feature-grid,
  .page-ththao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__sport-title,
  .page-ththao__bet-type-title,
  .page-ththao__feature-title,
  .page-ththao__promo-title,
  .page-ththao__step-title {
    font-size: 1.4em;
  }

  .page-ththao__sport-description,
  .page-ththao__bet-type-description,
  .page-ththao__feature-description,
  .page-ththao__promo-description,
  .page-ththao__step-description {
    font-size: 0.9em;
  }

  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__container,
  .page-ththao__hero-section,
  .page-ththao__hero-image-wrapper,
  .page-ththao__hero-content,
  .page-ththao__sport-card,
  .page-ththao__bet-type-item,
  .page-ththao__feature-item,
  .page-ththao__promo-card,
  .page-ththao__step-item,
  .page-ththao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-ththao__hero-section {
    padding-top: 10px !important;
  }

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

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

/* Desktop video container width rule */
.page-ththao__video-container {
  width: 100%; /* Ensure width: 100% is present for desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}