.page-sports {
    font-family: Arial, sans-serif;
    color: #FFFFFF; /* Default text color for dark background */
    background-color: #017439; /* Main background color, assuming body is also dark */
}

/* Container for content sections to limit width and center */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per requirement */
    padding-bottom: 50px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #017439, #005f2e); /* Dark green gradient */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px; /* Max width for the image itself */
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 8px;
    object-fit: cover;
}

.page-sports__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.page-sports__hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #FFFF00; /* Use yellow for H1 as per "注册和登录字体" for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* No fixed font-size, rely on weight and line-height */
}

.page-sports__hero-description {
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-sports__hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.page-sports__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
}

.page-sports__button--register,
.page-sports__button--login {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: none;
}

.page-sports__button--register:hover,
.page-sports__button--login:hover {
    background-color: #e00a0a;
    transform: translateY(-2px);
}

.page-sports__button--primary {
    background-color: #017439; /* Primary color for other CTAs */
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.page-sports__button--primary:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

.page-sports__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #017439;
    color: #FFFFFF;
    border: none;
}

.page-sports__button--small:hover {
    background-color: #005f2e;
}


/* General Section Styling */
.page-sports__about-section,
.page-sports__types-section,
.page-sports__features-section,
.page-sports__promotions-cta,
.page-sports__join-us-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Background for content sections */
    color: #333333; /* Dark text for light background */
    border-bottom: 1px solid #eee;
}

.page-sports__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #017439; /* Main color for section titles */
    text-align: center;
    margin-bottom: 30px;
}

.page-sports__section-text {
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
    color: #555555;
}

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

.page-sports__card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, will be object-fit cover */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-sports__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

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

.page-sports__feature-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__feature-icon {
    width: 250px; /* Adjusted to be >200px for visual significance */
    height: 187px; /* Maintain 4:3 aspect ratio (approx), >200px */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-sports__feature-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666666;
}

/* Promotions CTA */
.page-sports__promotions-cta {
    background-color: #017439; /* Use main brand color for emphasis */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-sports__promotions-cta .page-sports__section-title {
    color: #FFFF00; /* Yellow for title on dark background */
}

.page-sports__promotions-cta .page-sports__section-text {
    color: #FFFFFF;
}

.page-sports__promotions-cta .page-sports__button {
    margin: 15px 10px;
}

/* Join Us Section */
.page-sports__join-us-section {
    background-color: #f0f0f0; /* Light background for contrast */
    padding: 80px 0;
}

.page-sports__join-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.page-sports__join-us-image {
    width: 100%;
    max-width: 600px; /* Adjust max-width for visual balance */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__join-us-text {
    max-width: 700px;
}

.page-sports__join-us-text .page-sports__section-title {
    color: #017439;
}

.page-sports__join-us-text .page-sports__section-text {
    color: #555555;
    margin-bottom: 30px;
}

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


/* Responsive adjustments */
@media (max-width: 992px) {
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-sports__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__grid,
    .page-sports__features-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__card-image,
    .page-sports__feature-icon {
        width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-height: 200px; /* Enforce minimum size */
        object-fit: cover;
    }
    /* Enforce max-width for all images in content area */
    .page-sports img {
        max-width: 100%;
        height: auto;
    }
    .page-sports__join-us-content {
        flex-direction: column;
    }
    .page-sports__join-us-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-sports__container {
        padding: 15px;
    }
    .page-sports__hero-section {
        padding-bottom: 30px;
    }
    .page-sports__hero-title {
        font-size: 1.6em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.3em;
    }
}