/* Scoped CSS for vibrant professional design with simplified small date/address */
.upcoming_event_section {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e6e9ff 0%, #f0f4ff 100%);
    padding: 80px 0;
    overflow: hidden;
}

.upcoming_event_section .section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.upcoming_event_section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.upcoming_event_section .section-header p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.upcoming_event_section .upcoming_event {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.upcoming_event_section .event-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(0.2s * var(--index));
}

.upcoming_event_section .event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.upcoming_event_section .event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.upcoming_event_section .event-card:hover .event-image {
    transform: scale(1.03);
}

.upcoming_event_section .event-content {
    padding: 25px;
}

.upcoming_event_section .event-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.upcoming_event_section .event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Reduced gap for compact layout */
    margin-bottom: 15px;
}

.upcoming_event_section .event-date,
.upcoming_event_section .event-address {
    font-size: 0.85rem;
    /* Smaller font size for simplicity */
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.upcoming_event_section .event-date:hover,
.upcoming_event_section .event-address:hover {
    color: #1e3a8a;
    /* Darker indigo on hover, no underline */
}

.upcoming_event_section .event-date i,
.upcoming_event_section .event-address i {
    font-size: 0.9rem;
    /* Smaller icon size */
    color: #f43f5e;
    /* Vibrant rose for date icon */
}

.upcoming_event_section .event-address i {
    color: #065f46;
    /* Deep teal for address icon */
}

.upcoming_event_section .event-description {
    font-size: 1rem;
    color: #475569;
    margin: 15px 0 20px;
    line-height: 1.6;
}

.upcoming_event_section .btn-event {
    background-color: #fb923c;
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

.upcoming_event_section .btn-event:hover {
    transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .upcoming_event_section .section-header h2 {
        font-size: 2.5rem;
    }

    .upcoming_event_section .event-image {
        height: 180px;
    }

    .upcoming_event_section .event-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .upcoming_event_section {
        padding: 50px 0;
    }

    .upcoming_event_section .section-header h2 {
        font-size: 2rem;
    }

    .upcoming_event_section .section-header p {
        font-size: 1rem;
    }

    .upcoming_event_section .event-image {
        height: 160px;
    }

    .upcoming_event_section .event-title {
        font-size: 1.4rem;
    }

    .upcoming_event_section .event-content {
        padding: 20px;
    }

    .upcoming_event_section .event-info {
        flex-direction: column;
        gap: 6px;
        /* Further reduced gap for mobile */
    }

    .upcoming_event_section .event-date,
    .upcoming_event_section .event-address {
        font-size: 0.8rem;
    }

    .upcoming_event_section .event-date i,
    .upcoming_event_section .event-address i {
        font-size: 0.85rem;
    }
}