.programs-header {
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid #e0e6f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #010180;
}

.event-card-img {
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 20px;
}

.event-card-content h5 {
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    font-size: var(--h5);
}

.event-card-content h5 a {
    color: var(--heading_dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-content h5 a:visited {
    color: var(--heading_dark); /* Fix for visited vs unvisited color difference */
}

.event-card-content h5 a:hover {
    color: var(--hover_color);
}

.event-card-content p {
    color: #555;
    font-size: var(--bs);
    line-height: 1.6;
    margin-bottom: 0;
}

.date {
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Pagination Styles have been moved to global style.css */

/* Nav Tabs Styles */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary_color, #010180);
    background: transparent;
}

.nav-tabs .nav-link.active {
    background: transparent;
    color: var(--primary_color, #010180);
    border-bottom-color: var(--hover_color, #f47920);
    box-shadow: none;
}

@media (max-width: 576px) {
    .nav-tabs {
        gap: 10px;
        padding: 0 5px;
    }
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
