/* style/ththao.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

:root {
  --page-ththao-primary-color: #11A84E;
  --page-ththao-secondary-color: #22C768;
  --page-ththao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ththao-background-color: #08160F;
  --page-ththao-card-bg: #11271B;
  --page-ththao-text-main: #F2FFF6;
  --page-ththao-text-secondary: #A7D9B8;
  --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); /* Mặc định cho toàn bộ trang */
  background-color: var(--page-ththao-background-color);
}

.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);
  color: var(--page-ththao-text-main);
}

.page-ththao__light-bg {
  background-color: #f0f0f0; /* Một màu nền sáng an toàn cho văn bản tối */
  color: #333333; /* Văn bản tối cho nền sáng */
}

/* HERO Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ */
  margin-bottom: 40px;
  overflow: hidden;
}

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

.page-ththao__hero-content {
  position: relative; /* Không absolute để tránh chồng lấn */
  text-align: center;
  padding: 40px 20px;
  background-color: var(--page-ththao-deep-green); /* Nền riêng cho nội dung */
  width: 100%;
  max-width: 1200px;
  margin-top: -80px; /* Kéo lên một chút để tạo hiệu ứng */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 1px;
}

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

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
}

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

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  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;
}

.page-ththao__btn-tertiary {
  background-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-text-main);
  border: 1px solid var(--page-ththao-border-color);
  font-size: 0.9rem;
  padding: 10px 20px;
}

.page-ththao__btn-tertiary:hover {
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
  border-color: var(--page-ththao-primary-color);
}

/* General Sections */
.page-ththao__intro-section,
.page-ththao__sports-categories,
.page-ththao__benefits-section,
.page-ththao__how-to-join,
.page-ththao__promotions-section,
.page-ththao__responsible-gambling,
.page-ththao__faq-section,
.page-ththao__final-cta-section,
.page-ththao__video-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ththao__section-title {
  font-size: 2.5rem;
  color: var(--page-ththao-gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ththao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-ththao-primary-color);
  border-radius: 2px;
}

.page-ththao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Video Section */
.page-ththao__video-section {
  padding-top: 10px; /* Body đã có padding, chỉ cần một khoảng đệm nhỏ */
}

.page-ththao__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-ththao__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Sports Categories */
.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);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-ththao-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-ththao__feature-title {
  font-size: 1.4rem;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
}

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

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

.page-ththao__step-item {
  background-color: #ffffff; /* Nền trắng cho các bước trên nền sáng */
  color: #333333; /* Văn bản tối */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-ththao__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--page-ththao-button-gradient);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-ththao__step-title {
  font-size: 1.4rem;
  color: var(--page-ththao-primary-color);
  margin-bottom: 10px;
}

.page-ththao__step-description {
  font-size: 1rem;
  color: #555555;
}

/* Promotions Section */
.page-ththao__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-ththao__promo-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-divider-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--page-ththao-text-main);
  display: flex;
  align-items: center;
}

.page-ththao__promo-item::before {
  content: '★';
  color: var(--page-ththao-gold-color);
  font-size: 1.5rem;
  margin-right: 15px;
}

/* Responsible Gambling */
.page-ththao__responsibility-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-ththao__responsibility-item {
  background-color: #ffffff; /* Nền trắng */
  color: #333333; /* Văn bản tối */
  border: 1px solid #e0e0e0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1rem;
}

.page-ththao__responsibility-item::before {
  content: '✓';
  color: var(--page-ththao-primary-color);
  font-weight: bold;
  margin-right: 10px;
}

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

.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  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: bold;
  color: var(--page-ththao-text-main);
  cursor: pointer;
  background-color: var(--page-ththao-deep-green);
  border-bottom: 1px solid var(--page-ththao-divider-color);
  transition: background-color 0.3s ease;
}

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

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-ththao-gold-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  background-color: var(--page-ththao-primary-color);
  color: #ffffff;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  color: #ffffff;
}

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

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

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

.page-ththao__faq-item summary {
  list-style: none;
}

/* Final CTA Section */
.page-ththao__final-cta-section {
  text-align: center;
  padding: 80px 0;
  margin-top: 40px;
  background-image: linear-gradient(135deg, var(--page-ththao-deep-green) 0%, var(--page-ththao-primary-color) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ththao__final-cta-section .page-ththao__section-title {
  color: #ffffff;
}

.page-ththao__final-cta-section .page-ththao__text-block {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-ththao__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 0 15px;
  }
  
  .page-ththao__hero-section {
    margin-bottom: 20px;
  }

  .page-ththao__hero-content {
    margin-top: -60px;
    padding: 30px 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: 15px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-ththao__intro-section,
  .page-ththao__sports-categories,
  .page-ththao__benefits-section,
  .page-ththao__how-to-join,
  .page-ththao__promotions-section,
  .page-ththao__responsible-gambling,
  .page-ththao__faq-section,
  .page-ththao__final-cta-section,
  .page-ththao__video-section {
    padding: 40px 0;
  }

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

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

  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__image-content,
  .page-ththao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ththao__video-section {
    padding-top: 10px !important; /* body đã có padding, chỉ cần một khoảng đệm nhỏ */
  }
  
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__grid-layout,
  .page-ththao__feature-list,
  .page-ththao__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__promo-item,
  .page-ththao__responsibility-item {
    font-size: 0.95rem;
    padding: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-ththao__hero-content {
    margin-top: -40px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-ththao__section-title {
    font-size: 1.5rem;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}