.container {
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    height: 100%;
}

.event-card {
    background-color: #fff;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    display: none;
    /* Initially hide cards, JS will show them */
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.event-date {
    background-color: hsl(0, 94%, 21%);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.event-title {
    font-family: "Times New Roman";
    font-size: 1.8rem;
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    color: #5c0005;
}

.event-content {
    padding: 1rem 1.5rem 1.5rem;
    color: #555;
}

.event-content p {
    margin-bottom: 1rem;
    font-family: "Poppins";
}

.event-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* Image Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 450px;
    /* Adjust height as needed */
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upcoming Events Sidebar Styles */
.upcoming-events-sidebar {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid #8B0000;
}

.upcoming-events-sidebar h2 {
    color: #800000;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.upcoming-events-sidebar h2:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e74c3c;
}

.upcoming-event-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(109, 1, 1, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.upcoming-event-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.upcoming-event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.upcoming-event-date {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 12px;
}

.upcoming-event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.upcoming-event-desc {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.upcoming-event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.upcoming-event-time,
.upcoming-event-location {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.upcoming-event-time i,
.upcoming-event-location i {
    margin-right: 5px;
    color: #3498db;
}

.upcoming-event-cta {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.upcoming-event-cta:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.no-upcoming-events {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    font-style: italic;
}

.no-upcoming-events i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* Additional styles for upcoming event images */
.som-upcoming-event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.som-upcoming-event-image:hover {
    transform: scale(1.02);
}

.som-upcoming-event-item {
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .upcoming-events-sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* Custom Pagination Styles */
.pagination .page-link {
    color: #5c0005;
    /* Dark purple text */
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #b42e2e;
    /* Light purple background on hover */
    color: #5c0005;
}

.pagination .page-item.active .page-link {
    background-color: #5c0005;
    /* Dark purple background for active page */
    border-color: #5c0005;
    color: #fff;
    /* White text for active page */
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}