/* style/sports.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #8B0000; /* Đỏ sẫm */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0d0d0d; /* Giả định từ shared.css, body background là dark */
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-sports {
  color: var(--text-light); /* Đảm bảo chữ sáng trên nền tối của body */
  background-color: transparent; /* Body background sẽ được quản lý bởi shared.css */
  padding-top: 10px; /* Desktop: Adjust based on fixed header height */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust padding-top for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.2)), url('[GALLERY:hero_bg:18win1,sports,stadium_lights]') no-repeat center center/cover; /* Placeholder background */
  min-height: 550px;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-container {
  max-width: 900px;
  margin: 0 auto;
  z-index: 10;
}

.page-sports__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 5px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
  font-weight: 700;
}

.page-sports__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-sports__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-sports__cta-button--secondary:hover {
  background: #a30000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--center {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-weight: 700;
}

.page-sports p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-sports strong {
  color: var(--primary-color);
}

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

.page-sports__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

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

/* Popular Sports Section */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__sports-card {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-sports__sports-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-sports__card-image {
  width: 150px; /* Min size 200x200 for content, but these are more illustrative */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* Ensure responsiveness */
}

.page-sports__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__card-description {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.page-sports__card-button {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__card-button:hover {
  background: #a30000;
  transform: translateY(-2px);
}

/* Bet Types Section */
.page-sports__bet-types-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__bet-types-list li {
  background-color: var(--card-bg-dark);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__bet-types-list li strong {
  color: var(--primary-color);
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
}

.page-sports__guide-list li {
  background-color: var(--card-bg-dark);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__guide-list li h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__guide-list li p {
  font-size: 1.05em;
  color: var(--text-light);
  line-height: 1.7;
}

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

.page-sports__promo-card {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-sports__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__feature-item {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
}

.page-sports__feature-image {
  width: 100px; /* Min size 200x200 for content, these are illustrative icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 100%;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__feature-item p {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
}

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

/* FAQ container style */
.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ default state - answer hidden */
.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;
  background-color: var(--card-bg-dark);
  color: var(--text-light);
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* 🚨 Ensure enough space for content */
  padding: 20px !important;
  opacity: 1;
  background-color: var(--card-bg-dark);
}

/* Question style */
.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
}

.page-sports__faq-question:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}