/* style/ththao.css */

/* Base styles for page-ththao */
.page-ththao {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-ththao__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.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.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2AD16F;
}

.page-ththao__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

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

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

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

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

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-ththao__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Introduction Section */
.page-ththao__introduction-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for dark section */
}

.page-ththao__introduction-section .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__introduction-section .page-ththao__text-block {
  color: #F2FFF6; /* Text Main for better contrast on Deep Green */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Sports Categories Section */
.page-ththao__sports-categories {
  padding: 80px 0;
  background-color: #11271B; /* Card BG for light section */
}

.page-ththao__sports-categories .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__sports-categories .page-ththao__text-block {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ththao__sport-card {
  background-color: #08160F; /* Background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__sport-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-ththao__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-ththao__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px;
}

/* Live Betting Section */
.page-ththao__live-betting-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__live-betting-section .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__live-betting-section .page-ththao__text-block {
  color: #F2FFF6; /* Text Main */
}

.page-ththao__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ththao__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-ththao__text-content {
  flex: 1;
}

.page-ththao__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-ththao__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-ththao__promotions-section .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__promotions-section .page-ththao__text-block {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ththao__promo-card {
  background-color: #08160F; /* Background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-ththao__promo-card .page-ththao__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-ththao__promo-card .page-ththao__card-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* How to Bet Section */
.page-ththao__how-to-bet-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__how-to-bet-section .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__how-to-bet-section .page-ththao__text-block {
  color: #F2FFF6; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__betting-steps {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-ththao__betting-steps li {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__step-title {
  font-size: 1.6rem;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-ththao__betting-steps li p {
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* Security Section */
.page-ththao__security-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-ththao__security-section .page-ththao__section-title {
  color: #F2C14E;
}

.page-ththao__security-section .page-ththao__text-block {
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__faq-section .page-ththao__section-title {
  color: #F2C14E;
}

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

.page-ththao__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-ththao__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Lighter border color with transparency */
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

/* Remove default details arrow */
.page-ththao__faq-item > summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__section-title {
    font-size: 2rem;
  }
  .page-ththao__hero-description {
    font-size: 1.1rem;
  }
  .page-ththao__content-wrapper {
    flex-direction: column;
  }
  .page-ththao__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-ththao__text-content, .page-ththao__image-content {
    flex: none;
    width: 100%;
  }
  .page-ththao__image-responsive {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-ththao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-ththao__container {
    padding: 0 15px;
  }

  .page-ththao__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

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

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

  .page-ththao__hero-section,
  .page-ththao__introduction-section,
  .page-ththao__sports-categories,
  .page-ththao__live-betting-section,
  .page-ththao__promotions-section,
  .page-ththao__how-to-bet-section,
  .page-ththao__security-section,
  .page-ththao__faq-section {
    padding: 40px 0;
  }

  .page-ththao__grid-layout,
  .page-ththao__promo-grid,
  .page-ththao__betting-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__sport-image,
  .page-ththao__promo-image {
    height: 180px; /* Adjust height for mobile */
  }

  .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-section,
  .page-ththao__introduction-section,
  .page-ththao__sports-categories,
  .page-ththao__live-betting-section,
  .page-ththao__promotions-section,
  .page-ththao__how-to-bet-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__hero-image-wrapper,
  .page-ththao__content-wrapper,
  .page-ththao__text-content,
  .page-ththao__image-content,
  .page-ththao__sport-card,
  .page-ththao__promo-card,
  .page-ththao__betting-steps li,
  .page-ththao__faq-item {
    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;
  }

  .page-ththao__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-ththao__faq-toggle {
    font-size: 1.2rem;
  }
}