/* style/sports.css */

/* Global styles for page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--background); /* Dark background from custom colors */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-sports__card {
  background-color: var(--card-bg); /* Custom Card BG: #11271B */
  border: 1px solid var(--border); /* Custom Border: #2E7A4E */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-sports__dark-bg {
  background-color: var(--background); /* Custom Background: #08160F */
  color: var(--text-main); /* Custom Text Main: #F2FFF6 */
}

.page-sports__light-bg {
  background-color: #1a362a; /* Slightly lighter shade of Deep Green, still dark for light text */
  color: var(--text-main); /* Custom Text Main: #F2FFF6 */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff;
  border: none;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow); /* Custom Glow: #57E38D */
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* Custom Text Main: #F2FFF6 */
  border: 2px solid var(--deep-green); /* Custom Deep Green: #0A4B2C */
}

.page-sports__btn-secondary:hover {
  background-color: var(--deep-green); /* Custom Deep Green: #0A4B2C */
  color: #ffffff;
  box-shadow: 0 0 10px var(--glow);
}

.page-sports__btn-link {
  background-color: transparent;
  color: var(--text-main);
  text-decoration: underline;
  padding: 5px 0;
  border: none;
}

.page-sports__btn-link:hover {
  color: var(--glow);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image block first, then content block */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--background); /* Ensure dark background for the section */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-sports__hero-content {
  position: relative; /* Not absolute, to flow below image */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

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

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

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

.page-sports__feature-item {
  text-align: center;
}

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

.page-sports__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-sports__feature-text {
  color: var(--text-secondary);
}

/* Categories Section */
.page-sports__categories-section {
  padding: 80px 0;
}

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

.page-sports__category-card {
  text-align: center;
}

.page-sports__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-sports__category-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-sports__category-text {
  color: var(--text-secondary);
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-sports__live-betting-text {
  flex: 1;
}

.page-sports__live-betting-video-wrapper {
  flex: 1;
  position: relative;
  width: 100%; /* Important for desktop */
  max-width: 600px; /* Max width for video */
  padding-bottom: 56.25%; /* 16:9 aspect ratio for 800x450 video (450/800 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* Ensure link covers video */
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


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

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

.page-sports__promotion-card {
  text-align: center;
}

.page-sports__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
}

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

.page-sports__step-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-sports__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--primary-color); /* Use a primary color for numbers */
  margin-bottom: 15px;
  line-height: 1;
}

.page-sports__step-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
}

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

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

.page-sports__responsible-gaming-section .page-sports__content-area {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 40px;
  margin-top: 40px;
}

.page-sports__responsible-gaming-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

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

.page-sports__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider); /* Custom Divider: #1E3A2A */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--glow); /* Custom Glow: #57E38D */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

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

.page-sports__cta-bottom-section .page-sports__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-text {
    order: 2; /* Text below video */
  }
  .page-sports__live-betting-video-wrapper {
    order: 1; /* Video above text */
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 2em;
    padding-top: 30px;
  }
  .page-sports__section-description {
    font-size: 1em;
  }
  .page-sports__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__live-betting-video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Videos responsive */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Video container padding adjustment for mobile */
  .page-sports__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsive */
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__hero-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-sports__sub-title {
    font-size: 1.5em;
  }
  .page-sports__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Custom Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Ensure all images meet minimum size requirements */
.page-sports img:not(.shared-logo, .shared-icon) { /* Exclude shared small icons/logos */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}