/* Section Cards */
.section-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.section-card .card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

/* Member List */
.member-avatar {
    transition: all 0.3s ease;
}

.list-group-item {
    transition: background-color 0.2s ease;
    border-left: 0;
    border-right: 0;
}

.list-group-item:first-child {
    border-top: 0;
}

.list-group-item:last-child {
    border-bottom: 0;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:hover .member-avatar {
    background-color: #e9ecef !important;
    transform: scale(1.05);
}

/* Section Gallery */
.section-gallery .ratio {
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.section-gallery a:hover .ratio {
    transform: scale(1.03);
}

.section-gallery img {
    transition: transform 0.5s ease;
}

.section-gallery a:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .section-card {
        margin-bottom: 1.5rem;
    }
    
    .section-gallery .col-3 {
        padding: 0.25rem;
    }
}

/* Animation for the +X overlay */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.position-absolute {
    animation: fadeIn 0.3s ease-in-out;
}
