/* style/sports.css */

/* Base Styles for .page-sports content */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #111111; /* Consistent with body background */
}

.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: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-sports__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
}

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

.page-sports__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* CTA Button */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text for gold button */
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background-color: #000080;
  color: #FFD700; /* Gold text for dark blue button */
  border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
  background-color: #000050;
  color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

.page-sports__card {
  background-color: #1a1a1a; /* Slightly lighter dark for cards */
  color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-sports__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sports__card-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Content Layout (text + image) */
.page-sports__content-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-sports__content-text {
  flex: 1;
}

.page-sports__content-image {
  flex: 1;
  min-width: 300px; /* Ensure image has enough space */
}

.page-sports__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
}

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

.page-sports__step-card {
  background-color: #1a1a1a;
  color: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-sports__step-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Button Group */
.page-sports__button-group {
  text-align: center;
  margin-top: 40px;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background-color: #1a1a1a; /* Dark background for FAQ items */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #000080; /* Dark blue for question header */
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background-color: #0000a0;
  color: #FFD700;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff;
}

.page-sports__faq-item.active .page-sports__faq-question h3 {
  color: #FFD700; /* Gold text when active */
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #ffffff;
  transform: rotate(180deg);
}

.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-color: #111111; /* Dark background for answer */
  color: #cccccc;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-sports__faq-answer p {
  margin: 0;
  color: #cccccc;
}

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

/* Responsive Design */

/* All images responsive by default */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons responsive by default */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__button-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 42px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__section-title {
    font-size: 32px;
  }

  .page-sports__content-layout {
    flex-direction: column;
  }

  .page-sports__content-text,
  .page-sports__content-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding: 30px 15px;
  }

  .page-sports__hero-section {
    height: 500px;
  }

  .page-sports__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 15px;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__card-title {
    font-size: 20px;
  }

  .page-sports__card-description {
    font-size: 15px;
  }

  .page-sports__content-layout {
    gap: 30px;
    margin-top: 30px;
  }

  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__step-card {
    padding: 25px 15px;
  }

  .page-sports__step-title {
    font-size: 20px;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
  }

  .page-sports__faq-question h3 {
    font-size: 16px;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }

  /* Force responsive for all images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }

  /* Force responsive for all containers */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__features-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__safety-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons specific mobile adapt */
  .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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}