/* style/sports.css */

/* Base styles for the page-sports class */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-sports__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.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;
  display: block;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text */
  border-radius: 10px;
}

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
}

.page-sports__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border: none;
}

.page-sports__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

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

.page-sports__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-sports__btn-link {
  background: none;
  border: none;
  color: #57E38D; /* Glow */
  padding: 0;
  text-decoration: underline;
  font-size: 16px;
}

.page-sports__btn-link:hover {
  color: #F2FFF6;
}

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

/* About Sports Betting Section */
.page-sports__about-sports-betting {
  background-color: #08160F; /* Background */
}

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

.page-sports__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-sports__feature-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Bet Types Section */
.page-sports__bet-types {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-sports__bet-type-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-sports__card-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__card-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* How to Bet Section */
.page-sports__how-to-bet {
  background-color: #08160F; /* Background */
}

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

.page-sports__step-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-sports__step-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__step-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Promotions Section */
.page-sports__promotions {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-sports__promo-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Platform Features Section */
.page-sports__platform-features {
  background-color: #08160F; /* Background */
}

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

.page-sports__feature-item-small {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

/* Top Leagues Section */
.page-sports__top-leagues {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-sports__league-card {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

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

/* FAQ Section */
.page-sports__faq-section {
  background-color: #08160F; /* Background */
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  position: relative;
  list-style: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* 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 for content */
  transition: max-height 0.5s ease-in;
}

/* Global image rules for content area */
.page-sports img {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 15px;
  }
  .page-sports__main-title {
    font-size: clamp(30px, 4vw, 50px);
  }
  .page-sports__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }
  .page-sports__hero-description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-sports__features-grid,
  .page-sports__bet-types-grid,
  .page-sports__steps-grid,
  .page-sports__promo-cards-grid,
  .page-sports__features-list,
  .page-sports__league-cards-grid {
    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;
  }
  /* Specific image containers for mobile */
  .page-sports__hero-image-wrapper,
  .page-sports__feature-icon,
  .page-sports__promo-image,
  .page-sports__league-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* All containing elements for images/buttons/videos */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .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;
    overflow: hidden !important;
  }
  
  /* Video responsiveness (if any video is added) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  .page-sports__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }
}