/* ============================================
   SUB CLUBS SECTION - BLUE PURPLE THEME
   ============================================ */
#clubs {
    background: #ffffff;
    padding: 80px 0;
}

.section-title {
    color: #1a1a2e;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.club-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
    z-index: 0;
}

.club-card:hover::before {
    opacity: 1;
}

.club-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.15);
}

.club-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Adds a safe margin around the image inside the box */
    background: #ffffff;
}

.club-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.club-card:hover img {
    transform: scale(1.05);
}

/* Image Overlay */
.club-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.club-overlay i {
    font-size: 50px;
    color: #ffffff;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.club-card:hover .club-overlay {
    opacity: 1;
}

.club-card:hover .club-overlay i {
    transform: scale(1);
}

.club-card h4 {
    margin-top: 20px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 18px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.club-card h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 8px auto 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.club-card:hover h4::after {
    width: 50px;
}

.club-card p {
    padding: 0 20px 15px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.6;
    min-height: 70px;
    position: relative;
    z-index: 1;
}

.btn-club {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.btn-club:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.btn-club i {
    transition: transform 0.3s ease;
}

.btn-club:hover i {
    transform: translateX(5px);
}

/* ============================================
   SUB CLUBS - RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    #clubs {
        padding: 60px 0;
    }
    .section-title {
        font-size: 34px;
    }
    .club-image-wrapper {
        height: 190px;
    }
}

@media (max-width: 768px) {
    #clubs {
        padding: 50px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .club-card {
        margin-bottom: 25px;
    }
    .club-image-wrapper {
        height: 180px;
    }
    .club-card h4 {
        font-size: 16px;
    }
    .club-card p {
        font-size: 13px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    .club-image-wrapper {
        height: 160px;
    }
    .club-card h4 {
        font-size: 15px;
    }
    .btn-club {
        padding: 8px 20px;
        font-size: 12px;
    }
    .club-overlay i {
        font-size: 35px;
    }
}