/* style/sports.css */

/* Custom Colors */
:root {
  --page-sports-card-bg: #11271B;
  --page-sports-bg: #08160F;
  --page-sports-text-main: #F2FFF6;
  --page-sports-text-secondary: #A7D9B8;
  --page-sports-border: #2E7A4E;
  --page-sports-glow: #57E38D;
  --page-sports-gold: #F2C14E;
  --page-sports-divider: #1E3A2A;
  --page-sports-deep-green: #0A4B2C;
  --page-sports-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-sports {
  background-color: var(--page-sports-bg);
  color: var(--page-sports-text-main); /* Dark background, so light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-weight: 700;
  color: var(--page-sports-text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-sports__text-block {
  margin-bottom: 20px;
  color: var(--page-sports-text-secondary);
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 675px; /* Limit height for hero image */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-sports__hero-title {
  color: var(--page-sports-gold);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  color: var(--page-sports-text-main);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--page-sports-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-sports__btn-secondary:hover {
  background-color: var(--page-sports-glow);
  color: var(--page-sports-bg);
  transform: translateY(-2px);
}

.page-sports__intro-section,
.page-sports__popular-sports,
.page-sports__registration-guide,
.page-sports__bet-types,
.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__tips-section,
.page-sports__faq-section,
.page-sports__conclusion-cta {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-sports-divider);
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__popular-sports .page-sports__section-title,
.page-sports__registration-guide .page-sports__section-title,
.page-sports__bet-types .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__security-section .page-sports__section-title,
.page-sports__tips-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title,
.page-sports__conclusion-cta .page-sports__section-title {
  color: var(--page-sports-text-main);
  font-size: 2.5em;
}

.page-sports__feature-list,
.page-sports__tips-list,
.page-sports__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__list-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-sports-text-secondary);
}

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

.page-sports__list-item strong {
  color: var(--page-sports-text-main);
}

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

.page-sports__sport-card,
.page-sports__bet-type-card,
.page-sports__feature-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover,
.page-sports__bet-type-card:hover,
.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.4em;
  color: var(--page-sports-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-sports__card-title a:hover {
  color: var(--page-sports-glow);
}

.page-sports__card-description {
  color: var(--page-sports-text-secondary);
  font-size: 0.95em;
  padding: 0 15px;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-sports__guide-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-sports__guide-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--page-sports-glow);
  color: var(--page-sports-deep-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-sports__guide-step-title {
  color: var(--page-sports-text-main);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.page-sports__guide-item p {
  color: var(--page-sports-text-secondary);
}

.page-sports__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-sports__promotion-title,
.page-sports__tip-title {
  color: var(--page-sports-text-main);
  font-size: 1.25em;
  margin-bottom: 10px;
}

.page-sports__security-features .page-sports__feature-image {
  height: 180px;
}

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

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

.page-sports__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--page-sports-text-main);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-item summary:hover {
  background-color: var(--page-sports-deep-green);
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-sports-glow);
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  color: var(--page-sports-text-secondary);
  font-size: 0.95em;
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

.page-sports__faq-answer a {
  color: var(--page-sports-glow);
  text-decoration: underline;
}

.page-sports__faq-answer a:hover {
  color: var(--page-sports-gold);
}

.page-sports__conclusion-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 1.8em !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em !important;
  }
  .page-sports__hero-description {
    font-size: 1em !important;
  }
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  .page-sports__hero-image {
    max-height: 400px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-sports__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__intro-section,
  .page-sports__popular-sports,
  .page-sports__registration-guide,
  .page-sports__bet-types,
  .page-sports__promotions-section,
  .page-sports__security-section,
  .page-sports__tips-section,
  .page-sports__faq-section,
  .page-sports__conclusion-cta {
    padding: 40px 0 !important;
  }
  .page-sports__sport-grid,
  .page-sports__bet-type-grid,
  .page-sports__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__feature-image {
    height: 150px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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__video-section {
    padding-top: 10px !important; /* body đã đảm nhận --header-offset */
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__faq-item summary {
    font-size: 1em !important;
    padding: 15px !important;
  }
  .page-sports__faq-answer {
    padding: 0 15px 15px !important;
  }
}