.group-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.group {
    flex: 1 1 calc(25% - 20px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for gloss/shine */
.group:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.group::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 250%;
    height: 250%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(45deg);
    transition: top 0.5s ease, left 0.5s ease;
}

.group:hover::before {
    top: 0;
    left: 0;
}

.group h3 {
    background: #d32f2f;
    color: #fff;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
}

.team:last-child {
    border-bottom: none;
}

.team img {
    width: 30px;
    height: 36px;
    border-radius: 50%;
}

.team span {
    flex: 1;
    text-align: left;
    margin-left: 10px;
}

.team.inactive {
    background-color: #f0f0f0;
    color: #999;
}

.coming-soon-image img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .groups {
        flex-wrap: wrap;
    }

    .group {
        flex: 1 1 calc(50% - 20px);
    }
}
