:root {
  --primary-color: #0A2342;
  --secondary-color: #FFC107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-sports {
  background-color: var(--bg-dark); /* Body background is dark, so main content text should be light */
  color: var(--text-light); /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__main-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-sports__description {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__cta-center {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--secondary-color); /* Amber/Gold for CTA */
  color: var(--primary-color); /* Dark blue text on amber */
  border: 2px solid var(--secondary-color);
}

.page-sports__btn-primary:hover {
  background: #e6b000;
  border-color: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-sports__btn-secondary:hover {
  background: #071a33;
  border-color: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-sports__mt-20 { margin-top: 20px; }
.page-sports__mt-40 { margin-top: 40px; }

/* Sections */
.page-sports__hero-section {
  padding: 80px 0;
  background-image: url('[GALLERY:bg:lucky88 fun, cá cược thể thao, sân vận động, không khí sôi động]');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-sports__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-sports__hero-section .page-sports__container {
  position: relative;
  z-index: 2;
}

.page-sports__features-section,
.page-sports__bet-types-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  color: var(--text-light);
}

.page-sports__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-sports__promotions-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Card Styles */
.page-sports__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__card h3 {
  color: var(--secondary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 22px;
}

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

/* Feature Grid */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Guide Steps */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__step-icon {
  width: 120px; /* Increased size */
  height: 120px; /* Increased size */
  object-fit: contain;
  margin: 0 auto 20px auto;
}

.page-sports__step-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-sports__step-button {
  width: auto;
  padding: 10px 20px;
  font-size: 16px;
}

/* Bet Types Grid */
.page-sports__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.page-sports__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

.page-sports__promo-button {
  width: auto;
  padding: 10px 20px;
  font-size: 16px;
}

/* FAQ Styles */
.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-sports__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--secondary-color);
}

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

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

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X */
}

.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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

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

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-sports__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__text-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-light);
}

.page-sports__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 40px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
  .page-sports__description,
  .page-sports__section-description {
    font-size: 17px;
  }
  .page-sports__feature-image {
    height: 180px;
  }
  .page-sports__promo-image {
    height: 200px;
  }
  .page-sports__faq-question h3 {
    font-size: 17px;
  }
  .page-sports__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__main-title {
    font-size: 32px;
  }
  .page-sports__section-title {
    font-size: 26px;
  }
  .page-sports__description,
  .page-sports__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__feature-grid,
  .page-sports__steps-grid,
  .page-sports__bet-type-grid,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card h3 {
    font-size: 20px;
  }
  .page-sports__feature-image {
    height: 160px;
  }
  .page-sports__step-icon {
    width: 100px; /* Adjusted size */
    height: 100px; /* Adjusted size */
  }
  .page-sports__step-title {
    font-size: 20px;
  }
  .page-sports__promo-image {
    height: 180px;
  }
  .page-sports__faq-question {
    padding: 15px;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
  }
  .page-sports__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
  .page-sports__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__text-content p {
    font-size: 15px;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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__responsible-gambling-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-sports__cta-buttons,
  .page-sports__cta-center {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 28px;
  }
  .page-sports__section-title {
    font-size: 24px;
  }
  .page-sports__description,
  .page-sports__section-description {
    font-size: 14px;
  }
  .page-sports__card h3 {
    font-size: 18px;
  }
  .page-sports__step-title {
    font-size: 18px;
  }
  .page-sports__promo-title {
    font-size: 18px;
  }
  .page-sports__faq-question h3 {
    font-size: 15px;
  }
  .page-sports__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
}