/* style/ththao.css */
:root {
  --page-ththao-primary-color: #2F6BFF;
  --page-ththao-secondary-color: #6FA3FF;
  --page-ththao-text-main: #1F2D3D;
  --page-ththao-text-dark: #000000;
  --page-ththao-bg-card: #FFFFFF;
  --page-ththao-bg-light: #F4F7FB;
  --page-ththao-border-color: #D6E2FF;
  --page-ththao-glow-color: #A5C4FF;
  --page-ththao-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

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

.page-ththao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-ththao-text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.page-ththao__section-description {
  font-size: 1.1em;
  color: var(--page-ththao-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-ththao__text-white {
  color: #ffffff !important;
}

.page-ththao__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--page-ththao-primary-color);
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-ththao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ththao__hero-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 90%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ththao__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-ththao__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.6);
}

.page-ththao__btn-secondary {
  background-color: #ffffff;
  color: var(--page-ththao-primary-color);
  border: 2px solid var(--page-ththao-primary-color);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-ththao__btn-link {
  background: none;
  color: var(--page-ththao-primary-color);
  border: none;
  padding: 8px 0;
  text-decoration: underline;
  font-weight: 500;
}

.page-ththao__btn-link:hover {
  color: var(--page-ththao-secondary-color);
}

.page-ththao__card {
  background-color: var(--page-ththao-bg-card);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ththao-text-main);
  border: 1px solid var(--page-ththao-border-color);
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Why Choose Section */
.page-ththao__why-choose-section {
  padding: 60px 0;
  background-color: var(--page-ththao-bg-light);
}

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

.page-ththao__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-ththao__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
}

.page-ththao__feature-text {
  font-size: 1em;
  color: var(--page-ththao-text-main);
}

/* Sports Variety Section */
.page-ththao__sports-variety-section {
  padding: 60px 0;
  background: var(--page-ththao-primary-color);
}

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

.page-ththao__sport-card {
  overflow: hidden;
  padding: 0;
}

.page-ththao__sport-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 15px;
}

.page-ththao__sport-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-ththao__sport-text {
  font-size: 0.95em;
  color: var(--page-ththao-text-main);
  padding: 0 20px 20px;
}

/* Live Betting Section */
.page-ththao__live-betting-section {
  padding: 60px 0;
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
}

.page-ththao__live-betting-section .page-ththao__section-title,
.page-ththao__live-betting-section .page-ththao__section-description {
  color: #ffffff;
}

.page-ththao__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ththao__live-betting-text {
  flex: 1;
}

.page-ththao__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ththao__live-betting-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-ththao__live-betting-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ththao__live-betting-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-ththao__live-betting-item::before {
  content: '✔';
  color: var(--page-ththao-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 60px 0;
  background-color: var(--page-ththao-bg-light);
}

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

.page-ththao__promo-card {
  padding: 0;
}

.page-ththao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 15px;
}

.page-ththao__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-ththao__promo-text {
  font-size: 0.95em;
  color: var(--page-ththao-text-main);
  padding: 0 20px 20px;
}

.page-ththao__cta-center {
  text-align: center;
}

/* How To Start Section */
.page-ththao__how-to-start-section {
  padding: 60px 0;
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
}

.page-ththao__how-to-start-section .page-ththao__section-title,
.page-ththao__how-to-start-section .page-ththao__section-description {
  color: #ffffff;
}

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

.page-ththao__step-item {
  padding: 30px 20px;
}

.page-ththao__step-number {
  font-size: 3em;
  font-weight: 800;
  color: var(--page-ththao-secondary-color);
  margin-bottom: 15px;
}

.page-ththao__step-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
}

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

/* Support & Security Section */
.page-ththao__support-security-section {
  padding: 60px 0;
  background-color: var(--page-ththao-bg-light);
}

.page-ththao__support-security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ththao__support-security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ththao__support-security-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-ththao__support-security-text {
  flex: 1;
}

.page-ththao__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ththao__security-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--page-ththao-text-main);
}

.page-ththao__security-item::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 60px 0;
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
}

.page-ththao__faq-section .page-ththao__section-title,
.page-ththao__faq-section .page-ththao__section-description {
  color: #ffffff;
}

.page-ththao__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-ththao__faq-item {
  background-color: var(--page-ththao-bg-card);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--page-ththao-text-main);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid var(--page-ththao-border-color);
  color: var(--page-ththao-text-dark);
  list-style: none; /* For details/summary native styling */
}

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

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

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

.page-ththao__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-ththao-primary-color);
  margin-left: 15px;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−';
}

.page-ththao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-ththao-text-main);
}

/* Final CTA Section */
.page-ththao__cta-final-section {
  padding: 60px 0;
  background-color: var(--page-ththao-bg-light);
}

.page-ththao__cta-final-section .page-ththao__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* General Image Styling */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-title {
    font-size: 2.8em;
  }

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

  .page-ththao__live-betting-content,
  .page-ththao__support-security-content {
    flex-direction: column;
  }

  .page-ththao__live-betting-image-wrapper,
  .page-ththao__support-security-image-wrapper {
    order: -1;
    margin-bottom: 30px;
  }

  .page-ththao__sport-image,
  .page-ththao__promo-image {
    height: 180px;
  }
}

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

  .page-ththao__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-ththao__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-ththao__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-ththao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 其他内容模块 */
  .page-ththao__why-choose-section,
  .page-ththao__sports-variety-section,
  .page-ththao__live-betting-section,
  .page-ththao__promotions-section,
  .page-ththao__how-to-start-section,
  .page-ththao__support-security-section,
  .page-ththao__faq-section,
  .page-ththao__cta-final-section {
    padding: 30px 0;
  }

  .page-ththao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-ththao__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  /* 通用图片与容器 */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-image-wrapper,
  .page-ththao__live-betting-image-wrapper,
  .page-ththao__support-security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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__cta-buttons,
  .page-ththao__button-group,
  .page-ththao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* Sản phẩm/Gameshow (Sports Grid) */
  .page-ththao__sports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__sport-image {
    height: 180px;
  }

  .page-ththao__promo-image {
    height: 160px;
  }

  .page-ththao__features-grid,
  .page-ththao__promotions-grid,
  .page-ththao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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