/* Previous Events Section */
.past-events {
    padding: 100px 0;
    background: #f8f9fa;
}
/* .past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    /* grid-template-columns: repeat(2, 1fr);  */
    /* gap: 30px;
} */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    justify-content: center;
}

.past-event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    border-left: 5px solid #00abb7;
}
.past-event-thumbnail {
    width: 150px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}
.past-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.past-event-date {
    background: linear-gradient(135deg, #95a5a6, #17838b);
    padding: 20px;
    color: white;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.past-event-date .day {
    font-size: 2rem;
    font-weight: bold;
}
.past-event-date .month {
    font-size: 1rem;
    opacity: 0.9;
}
.past-event-content {
    padding: 30px;
    flex: 1;
}
.past-event-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.3rem;
}
.past-event-location {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.past-event-location i {
    margin-right: 5px;
}
.event-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.btn-blog {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.gallery-modal.show {
    display: block;
}
.gallery-modal-content {
    position: relative;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}
.gallery-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}
.gallery-close:hover {
    color: #333;
}
.gallery-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-item {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 3rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.gallery-item-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.gallery-item-placeholder .fa-image {
    font-size: 2rem;
    margin-bottom: 5px;
}
.gallery-item-placeholder span {
    font-size: 0.8rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .past-event-card {
        flex-direction: column;
    }
    .past-event-date {
        min-width: unset;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }
    .past-event-thumbnail {
        width: 100%;
        height: 150px;
    }
    .event-actions {
        flex-direction: column;
    }
    .gallery-modal-content {
        margin: 20px auto;
        width: 95%;
    }
}