:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg: #2A1212;
  --background-main: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Sử dụng màu chữ chính cho nền tối */
  background-color: var(--background-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ỏ gọn hơn, tránh trùng với padding-top của body */
  overflow: hidden; /* Đảm bảo hình ảnh không tràn */
}

.page-ththao__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng có thể */
}

.page-ththao__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-ththao__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-ththao__hero-content h1 {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--gold-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 5vw, 3.5rem); /* Sử dụng clamp cho responsive font-size */
}

.page-ththao__hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* General Section Styles */
.page-ththao__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-ththao__section h2 {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-ththao__section p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

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

.page-ththao__feature-item,
.page-ththao__sport-card,
.page-ththao__promo-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__feature-item:hover,
.page-ththao__sport-card:hover,
.page-ththao__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-ththao__feature-item img,
.page-ththao__sport-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-ththao__feature-item h3,
.page-ththao__sport-card h3,
.page-ththao__promo-item h3 {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ththao__feature-item p,
.page-ththao__sport-card p,
.page-ththao__promo-item p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-ththao__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-ththao__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--card-bg);
}

/* Live Betting Section */
.page-ththao__live-betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

/* FAQ Section */
details.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-ththao__faq-item summary.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color);
}
details.page-ththao__faq-item summary.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ththao__faq-item summary.page-ththao__faq-question:hover {
  background: rgba(var(--gold-color-rgb), 0.1); /* Sử dụng rgba của màu vàng */
}
.page-ththao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-ththao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ththao__faq-item .page-ththao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg-rgb), 0.5); /* Nền nhẹ hơn cho câu trả lời */
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
  }
  .page-ththao__section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-ththao__hero-image img {
    border-radius: 4px;
  }
  
  .page-ththao__hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px;
  }
  
  .page-ththao__hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .page-ththao__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__section {
    padding: 50px 0;
  }

  .page-ththao__section h2 {
    font-size: 1.8rem;
  }

  .page-ththao__features-grid,
  .page-ththao__sports-grid,
  .page-ththao__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__feature-item,
  .page-ththao__sport-card,
  .page-ththao__promo-item {
    padding: 20px;
  }

  .page-ththao__feature-item img,
  .page-ththao__sport-card img,
  .page-ththao__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  details.page-ththao__faq-item summary.page-ththao__faq-question {
    padding: 15px;
  }
  .page-ththao__faq-qtext {
    font-size: 1rem;
  }
  details.page-ththao__faq-item .page-ththao__faq-answer {
    padding: 0 15px 15px;
  }

  .page-ththao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Buttons in flex containers */
  .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-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-content h1 {
    font-size: clamp(1.2rem, 7vw, 2rem) !important;
  }
  .page-ththao__section h2 {
    font-size: 1.5rem;
  }
  .page-ththao__feature-item h3,
  .page-ththao__sport-card h3,
  .page-ththao__promo-item h3 {
    font-size: 1.2rem;
  }
}