/* Base styles */
.page-sports {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    padding-bottom: 30px; /* Adjust for footer */
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-sports__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-sports p {
    margin-bottom: 1em;
    font-size: 16px;
    text-align: justify;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(to bottom, #f0f8ff, #ffffff); /* Light gradient background */
}

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

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

.page-sports__hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.page-sports__main-title {
    font-size: 42px;
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-sports__intro-text {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
    text-align: center;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

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

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87c0;
    border-color: #1e87c0;
}

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

.page-sports__sport-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.page-sports__sport-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-sports__sport-card h3 {
    font-size: 22px;
    color: #26A9E0;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.page-sports__sport-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 15px 20px;
    text-align: left;
}

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

.page-sports__feature-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.page-sports__feature-item:hover {
    transform: translateY(-3px);
}

.page-sports__feature-icon {
    width: 200px;
    height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.page-sports__feature-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Promotions Section */
.page-sports__section--promotions {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for dark background */
}

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

.page-sports__section--promotions p {
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.page-sports__promo-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    color: #333333; /* Dark text for white card background */
}

.page-sports__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-sports__promo-card h3 {
    font-size: 22px;
    color: #26A9E0;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.page-sports__promo-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 15px;
    text-align: left;
}

.page-sports__promo-card .page-sports__btn-secondary {
    margin: 15px auto 20px;
    display: block;
    width: fit-content;
    padding: 10px 20px;
    font-size: 15px;
}

/* Guide Section */
.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-sports__step-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    text-align: center;
}

.page-sports__step-number {
    font-size: 48px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__step-title {
    font-size: 22px;
    color: #333333;
    margin-bottom: 15px;
}

.page-sports__step-item p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    text-align: center;
}

.page-sports__step-item .page-sports__btn-primary {
    padding: 10px 20px;
    font-size: 15px;
}

/* Security Section */
.page-sports__section--security {
    background-color: #f8f8f8; /* Light gray background */
}

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

.page-sports__section--security p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.page-sports__security-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.page-sports__security-icon {
    width: 200px;
    height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

/* Mobile App CTA */
.page-sports__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 15px;
    background: linear-gradient(to right, #26A9E0, #1e87c0);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-sports__mobile-content {
    flex: 1;
    text-align: left;
}

.page-sports__mobile-cta .page-sports__section-title {
    color: #ffffff;
    text-align: left;
    margin-bottom: 20px;
}

.page-sports__mobile-cta p {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-sports__mobile-cta .page-sports__btn-primary {
    background-color: #EA7C07; /* Login color for download */
    border-color: #EA7C07;
    margin-right: 15px;
}

.page-sports__mobile-cta .page-sports__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-sports__mobile-cta .page-sports__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}
.page-sports__mobile-cta .page-sports__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #f0f0f0;
}

.page-sports__mobile-image-wrapper {
    flex-shrink: 0;
    width: 350px;
    height: auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-sports__mobile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* FAQ Section */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Contact CTA */
.page-sports__contact-box {
    text-align: center;
    background: #f0f8ff;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    margin-top: 50px;
}

.page-sports__contact-box .page-sports__section-title {
    margin-bottom: 20px;
}

.page-sports__contact-box p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 17px;
}

/* Responsive styles */
@media (max-width: 1023px) {
    .page-sports__main-title {
        font-size: 38px;
    }
    .page-sports__intro-text {
        font-size: 17px;
    }
    .page-sports__section-title {
        font-size: 28px;
    }
    .page-sports__mobile-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .page-sports__mobile-content {
        text-align: center;
    }
    .page-sports__mobile-cta .page-sports__section-title {
        text-align: center;
    }
    .page-sports__mobile-image-wrapper {
        width: 100%;
        max-width: 300px; /* Adjust max width for mobile image */
        margin-top: 30px;
    }
    .page-sports__mobile-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__section {
        padding: 30px 0;
    }
    .page-sports__hero-section {
        padding-top: 0; /* Body padding-top handles header offset */
    }
    .page-sports__main-title {
        font-size: 30px;
    }
    .page-sports__intro-text {
        font-size: 16px;
    }
    .page-sports__section-title {
        font-size: 24px;
    }

    /* Images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-sports__hero-image-wrapper,
    .page-sports__mobile-image-wrapper,
    .page-sports__sport-card,
    .page-sports__promo-card,
    .page-sports__feature-item,
    .page-sports__step-item,
    .page-sports__security-item,
    .page-sports__contact-box,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
        margin: 0; /* Reset margin for full width */
    }
    .page-sports__mobile-cta .page-sports__btn-primary {
        margin-right: 0; /* Remove right margin */
        margin-bottom: 15px; /* Add bottom margin between buttons */
    }

    /* Grids */
    .page-sports__sports-grid,
    .page-sports__features-grid,
    .page-sports__promo-grid,
    .page-sports__guide-steps,
    .page-sports__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__sport-card img,
    .page-sports__promo-card img {
        
    }
    
    /* FAQ */
    details.page-sports__faq-item summary.page-sports__faq-question { padding: 15px; }
    .page-sports__faq-qtext { font-size: 15px; }
    details.page-sports__faq-item .page-sports__faq-answer { padding: 0 15px 15px; }
}