.gyms {
    padding: 4rem 1rem;
    background-color: var(--light-bg);
    text-align: center;
}

.gyms h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.gym-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gym-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.gym-card:hover {
    transform: translateY(-5px);
}

.gym-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gym-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


.hero {
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--accent-color) 70%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Images/info_hero.jpg') no-repeat center center/cover; 
    opacity: 0.4; 
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2; 
}

@media (max-width: 768px) {
    .gym-list {
        grid-template-columns: 1fr;
    }

    .gyms h2 {
        font-size: 1.8rem;
    }

    .gym-card {
        padding: 1.5rem;
    }

    .gym-card h3 {
        font-size: 1.3rem;
    }

    .gym-card p {
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
