/* style/ththao.css */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Sử dụng màu văn bản chính */
  background-color: var(--background); /* Sử dụng màu nền chính */
}

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

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

.page-ththao__light-bg {
  background-color: #f2fff6; /* Sử dụng màu Text Main làm nền sáng */
  color: #08160F; /* Sử dụng màu Background làm màu chữ tối */
}

.page-ththao__card-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với var(--header-offset) */
  overflow: hidden;
}

.page-ththao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Làm mờ ảnh nền để chữ nổi bật */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Nền tối nhẹ cho nội dung */
  border-radius: 10px;
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-ththao__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

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

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

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ththao__btn-secondary {
  background: none;
  color: var(--text-main);
  border: 2px solid var(--deep-green);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--deep-green);
  color: #ffffff;
}

/* General Sections */
.page-ththao__intro-section,
.page-ththao__why-choose-section,
.page-ththao__sports-types,
.page-ththao__how-to-start-section,
.page-ththao__promotions-section,
.page-ththao__live-betting-section,
.page-ththao__mobile-app-section,
.page-ththao__security-section,
.page-ththao__faq-section,
.page-ththao__cta-final-section {
  padding: 80px 0;
}

.page-ththao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

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

.page-ththao__card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-ththao__card:hover {
  transform: translateY(-10px);
}

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

.page-ththao__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow);
}

.page-ththao__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

.page-ththao__sport-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg);
  color: var(--text-main);
  transition: transform 0.3s ease;
  height: 100%;
}

.page-ththao__sport-item:hover {
  transform: translateY(-10px);
}

.page-ththao__sport-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-ththao__sport-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 15px 20px 0;
  color: var(--glow);
}

.page-ththao__sport-description {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

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

.page-ththao__step-item {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

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

.page-ththao__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

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

/* Mobile App Section */
.page-ththao__app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-ththao__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

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

.page-ththao__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--glow);
}

.page-ththao__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
}

.page-ththao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border);
}

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

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

.page-ththao__faq-question .page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-ththao__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

.page-ththao__faq-answer p {
  margin-bottom: 0;
}

/* Copyright */
.page-ththao__copyright-info {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--background);
  border-top: 1px solid var(--divider);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ththao__section-title {
    font-size: 2rem;
  }
  .page-ththao__intro-section,
  .page-ththao__why-choose-section,
  .page-ththao__sports-types,
  .page-ththao__how-to-start-section,
  .page-ththao__promotions-section,
  .page-ththao__live-betting-section,
  .page-ththao__mobile-app-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__cta-final-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-ththao__hero-content {
    padding: 15px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-ththao__subtitle {
    font-size: 1rem;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-ththao__card-image,
  .page-ththao__sport-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ththao__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ththao__container,
  .page-ththao__card,
  .page-ththao__sport-item,
  .page-ththao__step-item,
  .page-ththao__feature-item,
  .page-ththao__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ththao__feature-grid,
  .page-ththao__sport-list,
  .page-ththao__steps-grid,
  .page-ththao__promo-grid,
  .page-ththao__app-features {
    gap: 20px;
  }

  /* Mobile image specific rules */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
}

/* Custom Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-ththao__faq-question {
  background-color: var(--deep-green);
}