/*---------------------------------------
      ACTIVITIES PAGE GALLERY
-----------------------------------------*/

.gallery-filter {
    padding: 0;
    margin-bottom: 50px;
    list-style: none;
    text-align: center;
}

.gallery-filter li {
    display: inline-block;
    margin: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    color: #999;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Professional pill-shaped active state */
.gallery-filter li.active, 
.gallery-filter li:hover {
    color: #147bd7;
    background: #f0f8ff;
    border-color: #147bd7;
}

.activity-item {
    margin-bottom: 30px;
    position: relative;
}

.activity-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: #eee; /* Placeholder color while loading */
}

.activity-image img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-overlay {
    position: absolute;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient goes from solid blue at bottom to transparent at top */
    background: linear-gradient(to top, rgba(20, 123, 215, 0.95) 0%, rgba(20, 123, 215, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: bottom 0.5s ease-in-out;
}

.activity-item:hover .activity-overlay {
    bottom: 0;
}

.activity-item:hover img {
    transform: scale(1.15);
}

.activity-details h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
}

.activity-details span {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Admin Delete Button Overlay */
.admin-delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    z-index: 10;
    font-size: 14px;
    transition: 0.3s;
}

.admin-delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
    color: #fff;
}


/* Grid animation for when filtering happens */
.activity-card {
    transition: all 0.4s ease;
}