.fix {
    margin-top: 6%;
}

@media (max-width: 768px) {
    .fix {
        margin-top: 20%;
    }
}

.events-section {
    background-color: #4f859b;
    padding: 60px 15px;
}

.events-title {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (max-width: 915px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0b3d51;
    line-height: 1.4;
}

.event-title a {
    text-decoration: none;
    color: inherit;
}

.event-link {
    text-decoration: none;
    color: inherit;
}

.event-link a:hover {
    color: #0b3d51;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    background-color: #eef5f7;
    border: 1px solid #d3e2e6;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #0b3d51;
    padding: 5px 10px;
    gap: 6px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-tag i {
    flex-shrink: 0;
}

.event-desc {
    color: #555;
    font-size: 0.95rem;
    margin-top: auto;
    line-height: 1.5;
}

.text-primary {
    color: #0b3d51 !important;
    font-weight: 600;
    cursor: pointer;
}