/* style/sports.css */

/* --- Base Styles & Typography --- */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-sports__section-title {
  font-size: clamp(24px, 4vw, 38px); /* Responsive font size */
  color: #F2C14E; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #11A84E, #22C768);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-sports__card-title,
.page-sports__step-title,
.page-sports__promotion-heading {
  font-size: clamp(20px, 3vw, 28px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-sports__text-block,
.page-sports__card-text,
.page-sports__step-description,
.page-sports__promotion-description,
.page-sports__mobile-features li,
.page-sports__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  font-size: 16px;
}

.page-sports a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports a:hover {
  color: #F2C14E; /* Gold on hover */
}

/* --- Buttons --- */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Button color */
  border: 2px solid #2AD16F; /* Border color */
  box-shadow: 0 2px 10px rgba(34, 199, 104, 0.2);
}

.page-sports__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6; /* Text Main for contrast */
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
  transform: translateY(-2px);
}

.page-sports__hero-cta-buttons,
.page-sports__cta-wrapper .page-sports__btn-primary,
.page-sports__conclusion-cta .page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex; /* Use flex for image-content layout */
  flex-direction: column; /* Image on top, content below */
  align-items: center; /* Center content horizontally */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green for hero background */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size for images */
}

.page-sports__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-sports__main-title {
  color: #F2C14E; /* Gold */
  font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 100%; /* Ensure H1 does not overflow */
}

.page-sports__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Advantages Section --- */
.page-sports__advantages-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
}

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

.page-sports__advantage-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__advantage-card .page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size for images */
  min-height: 200px;
}

/* --- How-To-Bet Section --- */
.page-sports__how-to-bet-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-sports__step-by-step {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.page-sports__step-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  flex: 1 1 calc(33% - 25px); /* Three cards per row on desktop */
  min-width: 280px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__step-card:nth-child(even) {
  background-color: #1E3A2A; /* Slightly different background for visual distinction */
}

/* --- Promotions Section --- */
.page-sports__promotions-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
}

.page-sports__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__promotion-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #2AD16F; /* Accent border */
}

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

/* --- Mobile Section --- */
.page-sports__mobile-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-sports__mobile-image {
  width: 100%;
  max-width: 600px; /* Max width for mobile image */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum size for images */
  min-height: 200px;
}

.page-sports__mobile-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__mobile-features li {
  background-color: #11271B; /* Card BG */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 17px;
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__mobile-features li::before {
  content: '✓';
  color: #2AD16F; /* Button color */
  font-weight: bold;
  font-size: 20px;
}

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

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

.page-sports__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #1E3A2A; /* Divider color for question background */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details */
}

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

.page-sports__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #2AD16F; /* Button color */
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

.page-sports__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* --- Conclusion CTA Section --- */
.page-sports__conclusion-cta {
  padding: 60px 0 80px;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__step-card {
    flex: 1 1 calc(50% - 20px); /* Two cards per row on tablet */
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 15px;
  }

  .page-sports__section-title {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .page-sports__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-sports__hero-cta-buttons,
  .page-sports__conclusion-cta .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .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__advantages-section,
  .page-sports__how-to-bet-section,
  .page-sports__promotions-section,
  .page-sports__mobile-section,
  .page-sports__faq-section,
  .page-sports__conclusion-cta {
    padding: 40px 0;
  }

  .page-sports__grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-sports__step-card {
    flex: 1 1 100%; /* Single column on mobile */
  }

  .page-sports__advantage-card .page-sports__card-image {
    height: auto !important; /* Auto height for mobile images */
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-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 {
    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;
  }

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

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

@media (max-width: 480px) {
  .page-sports__hero-image-wrapper {
    max-height: 200px;
  }
  .page-sports__hero-content {
    padding: 15px;
  }
  .page-sports__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .page-sports__hero-description {
    font-size: clamp(14px, 3.5vw, 16px);
  }
}

/* Minimum size enforcement for all content images */
.page-sports img {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure they fill their container */
    height: auto;
}
.page-sports__advantage-card .page-sports__card-image {
    height: 250px; /* Fixed height for consistency on desktop */
}
@media (max-width: 768px) {
    .page-sports__advantage-card .page-sports__card-image {
        height: auto !important; /* Override fixed height for mobile */
    }
}