/* style/sports.css */
/* Body background is #000000 (dark), so main text color should be light (#ffffff). */

.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

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

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

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFF00; /* Register and login font color, used for main title as well for emphasis */
  margin-bottom: 20px;
}

.page-sports__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-sports__cta-buttons--center {
  margin-top: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Section Titles and Descriptions */
.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom font color for emphasis */
}

.page-sports__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Card Styles */
.page-sports__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Emphasize card titles */
}

.page-sports__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

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

/* Specific Section Styles */
.page-sports__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Dark background with lighter text for readability */
  color: #ffffff;
}

.page-sports__advantages .page-sports__section-title,
.page-sports__guide .page-sports__section-title,
.page-sports__security .page-sports__section-title,
.page-sports__conclusion .page-sports__section-title {
  color: #FFFF00;
}

.page-sports__bet-types .page-sports__card {
  background: #017439; /* Brand color as background */
  color: #ffffff;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-sports__step-number {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-sports__step-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-sports__promotions-grid .page-sports__card {
  text-align: left;
  background: rgba(1, 116, 57, 0.8); /* Primary brand color with transparency */
}

.page-sports__security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-sports__icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-sports__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-sports__item-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #017439; /* Brand primary color for question background */
  color: #ffffff;
  list-style: none; /* For <summary> tag */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* For <summary> tag */
}

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

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-sports__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #015c2d; /* Slightly darker brand color when open */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 30px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__section {
    padding: 40px 0;
  }

  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__cta-buttons,
  .page-sports__grid,
  .page-sports__guide-steps,
  .page-sports__promotions-grid,
  .page-sports__security-item,
  .page-sports__faq-list,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

  .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: 12px 20px;
  }

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

  .page-sports__card-image,
  .page-sports__icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
  }

  .page-sports__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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