/* style/sports.css */

/* Global styles for .page-sports scope */
.page-sports {
  background-color: #0D0E12; /* Custom background color */
  color: #FFF3E6; /* Text Main color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Responsive font size for titles */
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content {
  position: relative; /* Not absolute, to be below image */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(13, 14, 18, 0.8); /* Slightly transparent background for readability */
  border-radius: 10px;
  margin-top: -80px; /* Pull up slightly over image for visual flow */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #A84F0C; /* Border color */
}

.page-sports__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive H1 font size */
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-sports__lead-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF3E6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  opacity: 0.9;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFB04D; /* Glow color for text */
  border: 2px solid #FF8C1A; /* Main brand color for border */
  box-shadow: 0 2px 10px rgba(255, 140, 26, 0.2);
}

.page-sports__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-sports__btn-tertiary {
  background-color: #FF8C1A; /* Main brand color */
  color: #FFF3E6;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-sports__btn-tertiary:hover {
  background-color: #FFA53A; /* Auxiliary color */
  opacity: 0.9;
}

/* Dark Section */
.page-sports__dark-section {
  background-color: #17191F; /* Card BG color */
  padding: 60px 0;
}

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

.page-sports__card {
  background-color: #17191F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #A84F0C; /* Border color */
  color: #FFF3E6; /* Text Main color */
}

.page-sports__card-image {
  width: 100%;
  height: auto; /* Allow height to adjust */
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 22px;
  color: #FFB04D; /* Glow color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 16px;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Odds & Live Section */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-sports__feature-item {
  background-color: #0D0E12; /* Background color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border color */
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 200px; /* Ensure it doesn't become smaller than 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size requirement for all images */
  min-height: 200px; /* Min size requirement for all images */
  object-fit: cover;
}

.page-sports__feature-title {
  font-size: 20px;
  color: #FFB04D;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-description {
  font-size: 16px;
  color: #FFF3E6;
}

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

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

.page-sports__promo-card {
  background-color: #17191F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #A84F0C; /* Border color */
  color: #FFF3E6;
}

.page-sports__promo-image {
  width: 100%;
  height: auto; /* Allow height to adjust */
  display: block;
  margin-bottom: 15px;
  min-height: 200px; /* Min size requirement */
  min-width: 200px; /* Min size requirement */
  object-fit: cover;
}

.page-sports__promo-title {
  font-size: 22px;
  color: #FFB04D;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__promo-description {
  font-size: 16px;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__guide-list li {
  background-color: #0D0E12; /* Background color */
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FF8C1A; /* Accent with main brand color */
}

.page-sports__guide-step-title {
  font-size: 20px;
  color: #FFB04D;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__guide-step-description {
  font-size: 16px;
  color: #FFF3E6;
}

/* Why Choose Section */
.page-sports__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-sports__advantage-item {
  background-color: #17191F; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

.page-sports__advantage-icon {
  width: 100%;
  max-width: 200px; /* Ensure it doesn't become smaller than 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size requirement for all images */
  min-height: 200px; /* Min size requirement for all images */
  object-fit: cover;
}

.page-sports__advantage-title {
  font-size: 20px;
  color: #FFB04D;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__advantage-description {
  font-size: 16px;
  color: #FFF3E6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 30px 15px;
  }

  .page-sports__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 20px;
  }

  .page-sports__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-sports__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-sports__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 15px;
  }

  .page-sports__lead-text {
    font-size: 17px;
    margin-bottom: 25px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    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;
    overflow: hidden !important;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__grid-layout,
  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__advantages-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__card-image,
  .page-sports__promo-image {
    height: auto !important; /* Allow height to adjust */
  }
  
  .page-sports__feature-icon,
  .page-sports__advantage-icon {
    max-width: 100% !important; /* Allow smaller icons to scale up */
    min-width: 200px !important; /* Still enforce min size */
    min-height: 200px !important; /* Still enforce min size */
  }
}

/* Ensure no CSS filter is used on images */
.page-sports img {
  filter: none !important;
}

/* Content area image size check: Ensure no image inside .page-sports is smaller than 200px */
.page-sports img:not(.shared-logo, .shared-social-icon, .shared-payment-icon, .shared-game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}