/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light background sections */
  background-color: var(--background-color, #08160F); /* Fallback if shared.css doesn't define */
}

/* Base styles for sections */
.page-sports__hero-section,
.page-sports__video-section,
.page-sports__intro-section,
.page-sports__popular-sports,
.page-sports__how-to-start,
.page-sports__promotions,
.page-sports__betting-tips,
.page-sports__faq-section,
.page-sports__cta-final {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    background-color: #08160F; /* Background color for hero */
    color: #F2FFF6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-sports__hero-content {
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.9); /* Card B G with opacity */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-sports__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Video Section */
.page-sports__video-section {
    padding-top: 10px; /* Small top padding */
    background-color: #08160F; /* Background */
    color: #F2FFF6;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.page-sports__video-caption {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports__video-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #F2FFF6;
    margin-bottom: 15px;
}

.page-sports__video-description {
    font-size: 1rem;
    color: #A7D9B8;
}

/* General Section Styling */
.page-sports__intro-section,
.page-sports__how-to-start,
.page-sports__betting-tips,
.page-sports__cta-final {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-sports__popular-sports,
.page-sports__promotions,
.page-sports__faq-section {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 25px;
  color: #11A84E; /* Primary color for section titles */
}

.page-sports__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  color: #333333; /* Default for light background */
}

/* Text colors for dark background sections */
.page-sports__popular-sports .page-sports__section-title,
.page-sports__promotions .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-sports__popular-sports .page-sports__text-block,
.page-sports__promotions .page-sports__text-block,
.page-sports__faq-section .page-sports__text-block {
    color: #A7D9B8; /* Text Secondary */
}

.page-sports__text-main {
    color: #F2FFF6; /* Text Main */
}

.page-sports__text-secondary {
    color: #A7D9B8; /* Text Secondary */
}


/* Grid Layouts */
.page-sports__features-grid,
.page-sports__sports-grid,
.page-sports__steps-grid,
.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

/* Card Styles */
.page-sports__card {
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

/* Specific card backgrounds based on section */
.page-sports__intro-section .page-sports__card,
.page-sports__how-to-start .page-sports__card,
.page-sports__betting-tips .page-sports__card {
    background-color: #ffffff; /* White background for cards in light sections */
    color: #333333;
}

.page-sports__popular-sports .page-sports__card,
.page-sports__promotions .page-sports__card,
.page-sports__faq-section .page-sports__card {
    background-color: #11271B; /* Card B G for cards in dark sections */
    color: #F2FFF6;
}

.page-sports__dark-card-bg { /* Explicit class for dark card background */
    background-color: #11271B; /* Card B G */
    color: #F2FFF6; /* Text Main */
}


.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__step-title,
.page-sports__promo-title,
.page-sports__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #11A84E; /* Primary color for card titles in light sections */
}

.page-sports__dark-card-bg .page-sports__feature-title,
.page-sports__dark-card-bg .page-sports__sport-title,
.page-sports__dark-card-bg .page-sports__step-title,
.page-sports__dark-card-bg .page-sports__promo-title,
.page-sports__dark-card-bg .page-sports__tip-title {
    color: #57E38D; /* Glow color for titles in dark cards */
}

.page-sports__feature-text,
.page-sports__sport-description,
.page-sports__step-description,
.page-sports__promo-description,
.page-sports__tip-description {
  font-size: 0.95rem;
  color: #555555; /* Default for light background */
}

.page-sports__dark-card-bg .page-sports__feature-text,
.page-sports__dark-card-bg .page-sports__sport-description,
.page-sports__dark-card-bg .page-sports__step-description,
.page-sports__dark-card-bg .page-sports__promo-description,
.page-sports__dark-card-bg .page-sports__tip-description {
    color: #A7D9B8; /* Text Secondary for dark cards */
}

.page-sports__sport-image,
.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__step-icon {
  width: 50px;
  height: 50px;
  background-color: #11A84E;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

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

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

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

.page-sports__btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #2AD16F; /* Lighter green for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
    color: #57E38D; /* Glow color on hover */
    text-decoration: underline;
}

.page-sports__btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* List styles */
.page-sports__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.page-sports__tip-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 5px solid #11A84E;
}

.page-sports__tip-item .page-sports__tip-title {
    color: #11A84E;
    margin-bottom: 10px;
}

.page-sports__tip-item .page-sports__tip-description {
    color: #555555;
}

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

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

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green for hover */
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Divider */
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-image-wrapper {
        margin-bottom: 0;
    }
    .page-sports__hero-content {
        margin-top: -60px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section,
    .page-sports__video-section,
    .page-sports__intro-section,
    .page-sports__popular-sports,
    .page-sports__how-to-start,
    .page-sports__promotions,
    .page-sports__betting-tips,
    .page-sports__faq-section,
    .page-sports__cta-final {
        padding: 40px 15px;
    }

    .page-sports__hero-content {
        margin-top: -40px;
        padding: 15px;
    }

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

    .page-sports__description {
        font-size: 1rem;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100%;
        max-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__video-wrapper {
        margin-bottom: 20px;
    }

    .page-sports__video-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-sports__text-block {
        margin-bottom: 30px;
    }

    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__steps-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__sport-image,
    .page-sports__promo-image {
        height: 180px;
    }

    .page-sports__tip-item {
        padding: 20px;
    }

    .page-sports__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    /* Mobile image and video responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .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; /* Ensure no overflow */
    }

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

@media (max-width: 480px) {
    .page-sports__hero-content {
        margin-top: -20px;
    }
    .page-sports__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
    .page-sports__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}