#hobbies {
    background-color: #f4f4f4;
    padding: 60px 0;
    color: #333;
    text-align: center;
}

#hobbies .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

#hobbies h2 {
    color: #501f3a;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

#hobbies h2::after {
    content: '';
    width: 50px;
    height: 5px;
    background: #cb2d6f;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

#hobbies p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.hobby {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 45%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.hobby:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hobby-icon {
    font-size: 3rem;
    color: #cb2d6f;
    margin-bottom: 15px;
    position: relative;
}

.hobby-icon::before {
    content: '';
    width: 60px;
    height: 60px;
    background: rgba(203, 45, 111, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hobby h3 {
    color: #501f3a;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.hobby p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.hobby:hover .hobby-icon::before {
    background: rgba(203, 45, 111, 0.2);
}

@media (max-width: 992px) {
    .hobbies-grid {
        flex-direction: column;
        align-items: center;
    }

    .hobby {
        width: 80%;
        margin-bottom: 20px;
    }
}
