/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--background);
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__dark-section {
  background: var(--background);
  color: var(--text-main);
}

.page-sports__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description {
  color: #000000;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 10px 0 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-sports__main-title {
  font-size: 2.8em;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background: var(--deep-green);
  color: var(--text-main);
  transform: translateY(-2px);
}

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

.page-sports__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-sports__card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

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

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

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
}

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

.page-sports__card--small .page-sports__card-image {
  display: none; /* Hide image for smaller cards if not relevant */
}

/* How-to-play steps */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-sports__step-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
}

.page-sports__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 15px;
  background: var(--deep-green);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--glow);
}

.page-sports__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-sports__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

/* Mobile App Section */
.page-sports__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-sports__mobile-content,
.page-sports__responsible-content {
  flex: 1;
}

.page-sports__mobile-image-wrapper,
.page-sports__responsible-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__mobile-image,
.page-sports__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-sports__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #000000; /* Dark text for light background */
}

.page-sports__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-sports__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--glow);
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.page-sports__icon--check::before {
  content: '✓';
  color: #08160F;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 30px auto 0 auto;
  text-align: left;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  background: var(--deep-green);
  border-bottom: 1px solid var(--divider);
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid var(--divider);
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  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: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

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

/* Responsible Gambling Section */
.page-sports__responsible-gambling .page-sports__section-title,
.page-sports__responsible-gambling .page-sports__section-description {
  color: #000000; /* Dark text for light background */
}

/* Conclusion Section */
.page-sports__conclusion .page-sports__section-title {
  color: var(--gold);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-sports__main-title {
    font-size: 2.2em;
  }

  .page-sports__section-title {
    font-size: 2em;
  }

  .page-sports__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__mobile-content,
  .page-sports__responsible-content {
    order: 2;
  }

  .page-sports__mobile-image-wrapper,
  .page-sports__responsible-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-sports__app-features {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 0;
  }

  .page-sports__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-sports__main-title {
    font-size: 1.8em;
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    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__mobile-image-wrapper,
  .page-sports__responsible-image-wrapper,
  .page-sports__cta-buttons,
  .page-sports__faq-list,
  .page-sports__faq-item,
  .page-sports__steps-grid,
  .page-sports__grid,
  .page-sports__promo-cards {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-sports__hero-section {
    padding-top: 10px !important;
  }

  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-sports__card-title {
    font-size: 1.3em;
  }

  .page-sports__card-text {
    font-size: 0.95em;
  }

  .page-sports__app-features li {
    font-size: 1em;
  }

  .page-sports__icon {
    width: 18px;
    height: 18px;
  }

  .page-sports__icon--check::before {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.5em;
  }

  .page-sports__section-title {
    font-size: 1.5em;
  }

  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

/* Custom Colors */
:root {
  --main-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 contrast for light-bg sections */
.page-sports__light-bg {
  background: #ffffff;
  color: #333333; /* Dark text for light background */
}
.page-sports__light-bg .page-sports__section-title, 
.page-sports__light-bg .page-sports__section-description, 
.page-sports__light-bg .page-sports__app-features li {
  color: #333333;
}
.page-sports__light-bg .page-sports__btn-secondary {
  color: var(--main-color);
  border-color: var(--main-color);
}
.page-sports__light-bg .page-sports__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
}

/* Ensure content area images are at least 200px */
.page-sports__card-image,
.page-sports__mobile-image,
.page-sports__responsible-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-sports img {
  filter: none;
}