/* style/sports.css */

/* Base styles for the page content */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  line-height: 1.6;
}

/* Container for consistent padding and max-width */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-sports__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-sports__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-sports__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(139,0,0,0.6)); /* Gradient with dark red */
  z-index: 1;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 20px;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  color: #ffffff;
  border-color: #e6c200;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

/* Sections */
.page-sports__section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background from body */
}

/* Content wrapper for text and image blocks */
.page-sports__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-sports__text-block {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.page-sports__image-block {
  flex: 1;
  text-align: center;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* Cards Grid */
.page-sports__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

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

.page-sports__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-sports__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 15px;
  width: 100%; /* Ensure card images fill width */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* How-to-bet Steps */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-item {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold background for steps */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFD700; /* Gold circle */
  color: #8B0000; /* Dark red number */
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__step-text {
  font-size: 0.9em;
  color: #f0f0f0;
}

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

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

.page-sports__promo-card {
  background-color: rgba(139, 0, 0, 0.2); /* Dark red transparent background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.4);
}

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

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promo-title {
  font-size: 1.4em;
  color: #FFD700;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-sports__promo-text {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

/* Benefits Section */
.page-sports__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-sports__benefit-icon {
  width: 100px; /* Icon size */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow for icons */
  min-width: 100px;
  min-height: 100px;
}

.page-sports__benefit-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__benefit-text {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent background */
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 215, 0, 0.1); /* Gold tint for question background */
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  font-weight: bold;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  color: #FFD700;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3.5em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__image-block {
    order: -1; /* Image above text on smaller screens */
  }
  .page-sports__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-sports__cards-grid,
  .page-sports__steps-grid,
  .page-sports__promotions-grid,
  .page-sports__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto; /* Adjust height for mobile */
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }
  .page-sports__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    display: block; /* Stack buttons vertically */
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}