/* CSS cho trang Thể Thao của Club789 */

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

.page-the-thao {
  font-family: 'Arial', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
}

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

.page-the-thao__section-spacing {
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: var(--color-deep-red);
  color: var(--color-text-main);
}

.page-the-thao__section-title {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--color-text-main);
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-background);
  position: relative;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-the-thao__hero-description {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.3);
}

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

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-background);
  transform: translateY(-2px);
}

.page-the-thao__btn-lg {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* General Cards */
.page-the-thao__feature-card,
.page-the-thao__sport-card,
.page-the-thao__promo-card,
.page-the-thao__step-card,
.page-the-thao__faq-item {
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-the-thao__card-dark-bg {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.page-the-thao__card-light-bg {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.page-the-thao__card-title {
  font-size: 1.7rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--color-gold);
}

.page-the-thao__text-gold {
  color: var(--color-gold);
}

.page-the-thao__text-main {
  color: var(--color-text-main);
}

/* Grid Layouts */
.page-the-thao__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

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

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

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* How to Start Section */
.page-the-thao__step-card {
  text-align: center;
  padding-bottom: 20px; /* Space for button */
}

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

.page-the-thao__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  color: var(--color-primary);
}

/* Security Section */
.page-the-thao__security-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  max-width: 800px;
}

.page-the-thao__list-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.page-the-thao__list-item strong {
  color: var(--color-gold);
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  margin-bottom: 20px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
}

.page-the-thao__faq-question {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 20px;
  color: var(--color-gold);
  margin: 0;
  position: relative;
}

.page-the-thao__faq-answer {
  font-size: 1rem;
  padding: 0 20px 20px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--color-text-main);
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

.page-the-thao__faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item.active .page-the-thao__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__container {
    padding: 0 15px;
  }

  .page-the-thao__section-spacing {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-the-thao__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding */
  }

  .page-the-thao__hero-content {
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .page-the-thao__hero-description {
    font-size: 1.05rem;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__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;
  }

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

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 长文区 (General text blocks) */
  .page-the-thao__about-section .page-the-thao__feature-card p,
  .page-the-thao__sport-card p,
  .page-the-thao__promo-card p,
  .page-the-thao__step-card p,
  .page-the-thao__list-item,
  .page-the-thao__faq-answer {
    font-size: 0.95rem;
  }

  .page-the-thao__grid-2-cols,
  .page-the-thao__grid-3-cols,
  .page-the-thao__promo-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__sport-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card,
  .page-the-thao__faq-item {
    padding: 20px;
  }

  .page-the-thao__card-title {
    font-size: 1.4rem;
  }

  .page-the-thao__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-the-thao__faq-question::after {
    right: 15px;
    font-size: 1.3rem;
  }
}