/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Matches body default */
}

/* Sections */
.page-sports__section {
  padding: 60px 0;
}

.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-sports__container {
  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;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, more bottom */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsive on desktop as well */
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

.page-sports__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
}

.page-sports__btn-link:hover {
  text-decoration: underline;
}

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #ffffff;
}

.page-sports__light-bg .page-sports__section-title {
  color: #333333;
}

/* Text Blocks */
.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__text-block a:hover {
  color: #1a7bbd;
}

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

/* Cards */
.page-sports__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-sports__dark-bg .page-sports__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__dark-bg .page-sports__card-title {
  color: #ffffff;
}

.page-sports__card-text {
  font-size: 1em;
  color: #555555;
}

.page-sports__dark-bg .page-sports__card-text {
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.page-sports__live-betting-image {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__list {
  flex: 1 1 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sports__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-sports__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #26A9E0; /* Brand color for checkmark */
}

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

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

.page-sports__step-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
}

.page-sports__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: contain;
}

.page-sports__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__feature-text a {
  color: #ffffff;
  text-decoration: underline;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-sports__faq-item details {
  border: none;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff; /* Lighter background for summary */
  border-bottom: 1px solid #d9edf7;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-sports__faq-item[open] > .page-sports__faq-question {
  border-bottom: 1px solid #d9edf7;
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question::marker {
  display: none;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-sports__faq-answer {
  padding: 20px 25px;
  background-color: #fcfdff;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

/* Final CTA */
.page-sports__cta-final {
  text-align: center;
  padding-bottom: 80px;
}

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

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

  .page-sports__description {
    font-size: 1.1em;
  }

  .page-sports__live-betting-wrapper {
    flex-direction: column;
  }
}

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

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

  .page-sports__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

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

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  /* Force responsive for all images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All containers with images/content */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__hero-image-wrapper,
  .page-sports__live-betting-wrapper,
  .page-sports__promotions-grid,
  .page-sports__steps-grid,
  .page-sports__security-features,
  .page-sports__faq-list,
  .page-sports__cta-buttons,
  .page-sports__step-card,
  .page-sports__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure padding for hero section on mobile */
  .page-sports__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important; /* Small top padding */
  }

  /* Button specific mobile styles */
  .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__btn-link {
    width: 100%;
  }

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

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

  .page-sports__faq-toggle {
    font-size: 1.2em;
  }

  .page-sports__feature-icon {
    min-width: 150px; /* Adjust min size for smaller screens if necessary, still >200px if scaled */
    min-height: 150px;
    width: 100%; /* Ensure it scales within its container */
    height: auto;
  }

  .page-sports__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}