/* style/sports.css */

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

/* Base styles for the page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--r86-text-main); /* Light text on dark body background */
  background-color: var(--r86-background); /* Explicitly set to match body if needed, but body handles it */
}

.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(--r86-gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--r86-secondary-color);
  border-radius: 2px;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--r86-text-main);
  text-align: justify;
}

.page-sports__description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--r86-text-main);
}

/* HERO Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: var(--r86-background);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 400px; /* Ensure image is not too small */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-weight: 700;
  color: var(--r86-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px; /* Ensure buttons are not too small */
}

.page-sports__btn-primary {
  background: var(--r86-button-gradient);
  color: #ffffff;
  border: 2px solid var(--r86-secondary-color);
}

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

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

.page-sports__btn-secondary:hover {
  background: var(--r86-secondary-color);
  color: var(--r86-background);
  box-shadow: 0 0 15px var(--r86-glow-color);
}

/* Intro Section */
.page-sports__intro-section {
  background-color: var(--r86-light-bg, #ffffff);
  padding: 60px 0;
  color: var(--r86-dark-text, #333333);
}

.page-sports__intro-section .page-sports__section-title {
  color: var(--r86-deep-green);
}

.page-sports__intro-section .page-sports__text-block {
  color: var(--r86-dark-text, #333333);
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Featured Games Section */
.page-sports__featured-games {
  background-color: var(--r86-background);
  padding: 60px 0;
  color: var(--r86-text-main);
}

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

.page-sports__game-card {
  background-color: var(--r86-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--r86-border-color);
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--r86-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 0.95em;
  color: var(--r86-text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-sports__card-link {
  display: inline-block;
  background: var(--r86-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-sports__card-link:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Live Betting Section */
.page-sports__live-betting {
  background-color: var(--r86-light-bg, #ffffff);
  padding: 60px 0;
  color: var(--r86-dark-text, #333333);
}

.page-sports__live-betting .page-sports__section-title {
  color: var(--r86-deep-green);
}

.page-sports__live-betting .page-sports__text-block {
  color: var(--r86-dark-text, #333333);
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: var(--r86-background);
  padding: 60px 0;
  color: var(--r86-text-main);
}

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

.page-sports__promo-card {
  background-color: var(--r86-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--r86-border-color);
  transition: transform 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

.page-sports__promo-card .page-sports__card-title {
  color: var(--r86-gold-color);
}

.page-sports__promo-card .page-sports__card-description {
  color: var(--r86-text-secondary);
}

/* Why Choose Us Section */
.page-sports__why-choose-us {
  background-color: var(--r86-light-bg, #ffffff);
  padding: 60px 0;
  color: var(--r86-dark-text, #333333);
}

.page-sports__why-choose-us .page-sports__section-title {
  color: var(--r86-deep-green);
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8; /* Light background for features */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 80px;
  min-height: 80px;
}

.page-sports__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--r86-deep-green);
  margin-bottom: 10px;
}

.page-sports__feature-description {
  font-size: 0.95em;
  color: var(--r86-dark-text, #333333);
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: var(--r86-background);
  padding: 60px 0;
  color: var(--r86-text-main);
}

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

.page-sports__faq-item {
  background-color: var(--r86-card-bg);
  border: 1px solid var(--r86-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--r86-gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: var(--r86-deep-green);
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--r86-secondary-color);
}

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

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--r86-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 0.5s ease-in;
}

/* Bottom CTA Section */
.page-sports__cta-bottom {
  background-color: var(--r86-light-bg, #ffffff);
  padding: 60px 0;
  text-align: center;
  color: var(--r86-dark-text, #333333);
}

.page-sports__cta-bottom .page-sports__section-title {
  color: var(--r86-deep-green);
}

.page-sports__cta-bottom .page-sports__description {
  color: var(--r86-dark-text, #333333);
}

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

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-sports__hero-image {
    min-height: 250px;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-sports__description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__game-grid,
  .page-sports__promo-cards,
  .page-sports__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__featured-games,
  .page-sports__live-betting,
  .page-sports__promotions-section,
  .page-sports__why-choose-us,
  .page-sports__faq-section,
  .page-sports__cta-bottom,
  .page-sports__game-card,
  .page-sports__promo-card,
  .page-sports__feature-item,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right handled by .page-sports__container */
  }
  .page-sports__hero-section .page-sports__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    font-size: 0.95em;
  }
  .page-sports__feature-icon {
    min-width: 60px;
    min-height: 60px;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}