/* style/sports.css */
:root {
  --primary-color: #1a0033;
  --secondary-color: #ffcc00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #1a0033;
  --border-color: #e0e0e0;
}

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

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-sports__section-text {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  color: var(--text-light);
  background: var(--bg-dark);
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-sports__hero-description {
  font-size: 22px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

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

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

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

.page-sports__btn-primary:hover {
  background: #ffdb4d; /* Lighter gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-sports__btn-secondary:hover {
  background: #0d001a; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-sports__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-sports__dark-section .page-sports__section-title {
  color: var(--secondary-color);
}

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

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

.page-sports__light-bg .page-sports__section-title {
  color: var(--primary-color);
}

/* Intro Section */
.page-sports__intro-section .page-sports__section-text {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}

/* Sports Variety Section */
.page-sports__sports-variety-section {
  padding-bottom: 60px;
}

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

.page-sports__card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

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

.page-sports__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-text {
  font-size: 15px;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__btn-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-sports__btn-link:hover {
  background: #ffdb4d;
}

/* Live Betting & Security Sections */
.page-sports__content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-sports__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-sports__text-content .page-sports__section-text {
  text-align: left;
  font-size: 17px;
}

.page-sports__image-content {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
}

.page-sports__image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__live-betting-section .page-sports__btn-primary,
.page-sports__security-section .page-sports__btn-secondary {
  margin-top: 25px;
}

/* Promotions Section */
.page-sports__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__promo-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--text-light);
}

.page-sports__promotions-section .page-sports__btn-primary {
  margin-top: 20px;
}

/* Get Started Section */
.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  counter-reset: step-counter;
}

.page-sports__step-item {
  position: relative;
  padding: 20px 20px 20px 70px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 18px;
  color: var(--text-light);
  text-align: left;
}

.page-sports__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.page-sports__get-started-section .page-sports__btn-primary {
  margin-top: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section .page-sports__btn-secondary {
  margin-top: 25px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding-bottom: 60px;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a0050; /* Darker than primary for contrast */
  border: 1px solid #3a0070;
  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: #3a0070;
  border-color: #4a0090;
}

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

.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-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 25px;
  opacity: 0;
  background: #1a0033; /* Same as dark section background */
  color: var(--text-light);
}

.page-sports__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #3a0070;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--secondary-color);
}

/* CTA Bottom Section */
.page-sports__cta-bottom-section {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

.page-sports__cta-bottom-section .page-sports__btn-primary {
  margin-top: 30px;
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 32px;
  }
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__hero-description {
    font-size: 20px;
  }
  .page-sports__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-sports__image-content {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 20px 15px;
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-sports__section-text {
    font-size: 16px;
  }
  .page-sports__card img {
    
  }
  .page-sports__card-title {
    font-size: 20px;
  }
  .page-sports__card-text {
    font-size: 14px;
  }
  .page-sports__promo-item,
  .page-sports__step-item {
    font-size: 16px;
    padding: 15px 15px 15px 60px;
  }
  .page-sports__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
    left: 15px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  /* FAQ specific mobile styles */
  .page-sports__faq-question {
    padding: 15px;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
  }
  .page-sports__faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
}