/* style/sports.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-sports {
  background-color: var(--c88-bg-dark);
  color: var(--c88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--c88-text-main);
}

.page-sports__description,
.page-sports__text-secondary {
  color: var(--c88-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.page-sports__text-main {
  color: var(--c88-text-main);
}

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

.page-sports__center-cta {
  text-align: center;
  margin-top: 50px;
}

/* Buttons */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--c88-btn-gradient);
  color: var(--c88-text-main);
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-sports__btn-secondary:hover {
  background-color: var(--c88-gold);
  color: var(--c88-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Cards */
.page-sports__card {
  background-color: var(--c88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--c88-text-main);
  border: 1px solid var(--c88-border);
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--c88-text-main);
}

.page-sports__card-description {
  color: var(--c88-text-secondary);
  font-size: 1rem;
  flex-grow: 1;
}

.page-sports__card-link {
  margin-top: 20px;
  width: auto; /* Allow button to size naturally */
  padding: 10px 20px;
  font-size: 0.95rem;
}

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

.page-sports__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.2) 50%, rgba(8, 22, 15, 0.8) 100%);
}

.page-sports__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.page-sports__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-section .page-sports__description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
}

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

.page-sports__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min-size */
  min-height: 200px;
}

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  width: 100%; /* Ensure width is 100% on desktop */
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
  min-width: 200px; /* Ensure min-size */
  min-height: 200px;
}

.page-sports__video-cta {
  margin-top: 30px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min-size */
  min-height: 200px;
}

/* Get Started Section */
.page-sports__get-started-section {
  padding: 80px 0;
}

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

.page-sports__step-card {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-sports__step-icon {
  font-size: 3rem;
  font-weight: 700;
  color: var(--c88-gold);
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 80px 0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 20px;
  text-align: left;
  padding: 20px 30px;
  border: 1px solid var(--c88-border);
}

.page-sports__faq-item summary {
  list-style: none; /* Remove default marker for details tag */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

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

.page-sports__faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c88-text-main);
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c88-gold);
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding-top: 15px;
  border-top: 1px solid var(--c88-divider);
  margin-top: 15px;
  color: var(--c88-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Image sizing for content images */
.page-sports img:not(.page-sports__hero-image) {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-image-wrapper {
    height: 400px;
  }

  .page-sports__hero-content {
    padding: 15px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

  .page-sports__hero-section .page-sports__description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 25px;
  }

  .page-sports__description,
  .page-sports__text-secondary {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-sports__container,
  .page-sports__hero-content-wrapper,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-sports__faq-question {
    font-size: 1.1rem;
  }

  .page-sports__faq-answer {
    font-size: 0.9rem;
  }

  .page-sports__feature-image,
  .page-sports__promotion-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  .page-sports__card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-image-wrapper {
    height: 300px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .page-sports__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-sports__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-sports__step-icon {
    font-size: 2.5rem;
  }
}