/* style/sports.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0A2463;
  --border-light: #e0e0e0;
}

/* Thiết lập chung cho trang Thể Thao */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Mặc định chữ đen trên nền trắng */
  line-height: 1.6;
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
}

.page-sports__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-sports__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Kế thừa màu từ section cha */
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

/* Hero Section */
.page-sports__hero-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-sports__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-sports__btn-primary:hover {
  background: darken(var(--secondary-color), 10%);
  color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-sports__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 20px;
}

.page-sports__features-container,
.page-sports__guide-container,
.page-sports__bet-types-container,
.page-sports__promotions-container,
.page-sports__faq-container,
.page-sports__about-clb88 club-container,
.page-sports__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-sports__feature-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__step-number {
  font-size: 50px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-sports__step-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-sports__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-sports__step-button:hover {
  background: darken(var(--secondary-color), 10%);
}

.page-sports__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  object-fit: cover;
}

/* Bet Types Section */
.page-sports__bet-types-section {
  padding: 80px 20px;
}

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

.page-sports__bet-type-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.page-sports__bet-type-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__bet-type-text {
  font-size: 16px;
  color: var(--text-dark);
}

.page-sports__bet-types-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: 60px;
  object-fit: cover;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-sports__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-sports__promo-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-sports__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-sports__promo-button:hover {
  background: darken(var(--secondary-color), 10%);
}

.page-sports__all-promos-cta {
  margin-top: 60px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 20px;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid var(--border-light);
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
}

/* About clb88 club Section */
.page-sports__about-clb88 club-section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__about-content {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
}

.page-sports__about-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Blog Section */
.page-sports__blog-section {
  padding: 80px 20px;
}

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

.page-sports__blog-item {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-sports__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-sports__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.page-sports__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-sports__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px;
  margin-bottom: 15px;
  height: 75px; /* Giới hạn chiều cao cho đoạn trích */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-sports__blog-item-date {
  font-size: 14px;
  color: #777;
  display: block;
  padding: 0 20px 20px;
}

.page-sports__all-blog-cta {
  margin-top: 60px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 42px;
  }
  .page-sports__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px !important; /* Khoảng cách cho header cố định trên mobile */
    font-size: 16px;
    line-height: 1.5;
  }

  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__guide-section,
  .page-sports__bet-types-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__about-clb88 club-section,
  .page-sports__blog-section {
    padding: 60px 15px;
  }

  .page-sports__hero-container,
  .page-sports__features-container,
  .page-sports__guide-container,
  .page-sports__bet-types-container,
  .page-sports__promotions-container,
  .page-sports__faq-container,
  .page-sports__about-clb88 club-container,
  .page-sports__blog-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__main-title {
    font-size: 32px;
  }

  .page-sports__hero-description {
    font-size: 17px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title {
    font-size: 28px;
  }

  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__feature-card,
  .page-sports__step-item,
  .page-sports__promo-card,
  .page-sports__bet-type-card,
  .page-sports__blog-item {
    padding: 20px;
  }

  .page-sports__feature-title,
  .page-sports__step-title,
  .page-sports__promo-title,
  .page-sports__bet-type-title {
    font-size: 20px;
  }

  .page-sports__step-number {
    font-size: 40px;
  }

  .page-sports__guide-image,
  .page-sports__bet-types-image,
  .page-sports__about-image {
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-sports__faq-question h3 {
    font-size: 16px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  .page-sports__blog-item-title {
    font-size: 18px;
  }

  .page-sports__blog-item-excerpt {
    font-size: 14px;
  }
}