/* style/sports.css */
.page-sports {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for default white body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

/* Mobile Responsiveness for main content padding-top */
@media (max-width: 768px) {
    .page-sports {
        padding-top: var(--header-offset, 80px); /* Adjust for potential smaller mobile header */
    }
}

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

.page-sports__section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__section--dark-bg {
    background-color: #007bff; /* Primary color as background */
    color: #ffffff; /* Light text for dark background */
}

.page-sports__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #007bff; /* Primary color for titles on light background */
    font-weight: bold;
}

.page-sports__section-title--light {
    color: #ffc107; /* Secondary color for titles on dark background */
}

.page-sports__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

.page-sports__text-content--light {
    color: #ffffff;
}

.page-sports__inline-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}

.page-sports__inline-link--light {
    color: #ffc107;
}

.page-sports__inline-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.page-sports__inline-link--light:hover {
    color: #ffd700;
    text-decoration: none;
}


/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 100px 0; /* Adjusted for hero content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    text-align: center;
    background-color: #007bff; /* Fallback background */
    color: #ffffff;
}

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

.page-sports__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Slightly dim the background image */
    display: block;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px; /* Ensure minimum image size */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Secondary color for main title */
    font-weight: bold;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #ffffff;
}

.page-sports__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-sports__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 200px; /* Ensure minimum button width */
}

.page-sports__button--primary {
    background-color: #ffc107; /* Secondary color */
    color: #007bff; /* Primary color */
    border: 2px solid #ffc107;
}

.page-sports__button--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-sports__button--secondary {
    background-color: transparent;
    color: #ffc107; /* Secondary color */
    border: 2px solid #ffc107;
}

.page-sports__button--secondary:hover {
    background-color: #ffc107;
    color: #007bff;
}

.page-sports__button--inverted {
    background-color: #ffffff;
    color: #007bff;
    border: 2px solid #ffffff;
}

.page-sports__button--inverted:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}


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

.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__card:hover {
    transform: translateY(-5px);
}

.page-sports__card--light-text {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
}

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

.page-sports__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #007bff;
    font-weight: bold;
}

.page-sports__card--light-text .page-sports__card-title {
    color: #ffc107;
}

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

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

.page-sports__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.page-sports__feature-item {
    background-color: #f8f9fa;
    border-left: 5px solid #007bff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-sports__image-container {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Promo Card */
.page-sports__promo-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
}

.page-sports__promo-image {
    width: 100%;
    height: 300px; /* Fixed height for promo image */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__promo-content {
    padding: 30px;
    text-align: left;
    color: #ffffff;
}

.page-sports__promo-title {
    font-size: 2em;
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__promo-text {
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Advantage List */
.page-sports__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-sports__advantage-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-top: 4px solid #007bff;
}

.page-sports__advantage-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Steps List */
.page-sports__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    counter-reset: step-counter;
}

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    color: #ffffff;
}

.page-sports__step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #ffc107;
    color: #007bff;
    font-size: 2em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    z-index: 1;
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #ffc107;
    margin-top: 20px; /* Space for the counter */
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-sports__mobile-feature-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid #ffc107;
}

.page-sports__mobile-feature-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-sports__details-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__details-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffc107;
    font-weight: bold;
}

.page-sports__details-title a {
    color: #ffc107;
    text-decoration: none;
}

.page-sports__details-title a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-sports__details-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Call to Action */
.page-sports__cta-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.page-sports__cta-container {
    max-width: 900px;
}

.page-sports__cta-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-sports__hero-section h1 {
        font-size: 2.8em;
    }

    .page-sports__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 60px 0;
    }

    .page-sports__hero-section h1 {
        font-size: 2.2em;
    }

    .page-sports__hero-description {
        font-size: 1.1em;
    }

    .page-sports__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__button {
        width: 100%;
        max-width: 300px;
    }

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

    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__text-content {
        font-size: 1em;
    }

    .page-sports__grid,
    .page-sports__feature-grid,
    .page-sports__advantage-list,
    .page-sports__steps-list,
    .page-sports__mobile-features-grid,
    .page-sports__details-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__promo-card {
        flex-direction: column;
    }

    .page-sports__promo-image {
        height: 200px;
    }

    .page-sports__promo-content {
        padding: 20px;
    }

    .page-sports__promo-title {
        font-size: 1.6em;
    }

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

    /* Ensure all images within .page-sports do not overflow on mobile */
    .page-sports img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Maintain minimum size even on mobile */
        min-height: 200px;
    }
    .page-sports__card-image,
    .page-sports__content-image,
    .page-sports__promo-image,
    .page-sports__hero-image img {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure no image filters are used */
.page-sports img {
    filter: none;
}