.oelvas-news-wrapper {
    max-width: 1200px;
    margin: auto;
}

/* HERO */
.oelvas-hero {
    position: relative;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.oelvas-hero-image img {
    width: 100%;
    height: 500px!important;
    object-fit: cover;
}

.oelvas-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.oelvas-hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    max-width: 700px;
    z-index: 2;
}

.oelvas-hero-content h2 {
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* GRID */
.oelvas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.oelvas-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.oelvas-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.oelvas-card-image {
    position: relative;
    overflow: hidden;
}

.oelvas-card-image img {
    width: 100%;
    height: 200px!important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.oelvas-card-content h3 {
    font-size: 16px;
    margin: 10px 0px 14px 0px;
    font-weight: 700;
}

.oelvas-card-excerpt {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 15px;
    line-height: 1.5;
}
/* Hero excerpt - Desktop */
.oelvas-hero-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* Desktop lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.oelvas-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.oelvas-meta .oelvas-badge {
    background: #F59E0B;
    color: #1E3A8A;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}
.oelvas-card .oelvas-badge {
    position: absolute;
    top: 12px;
    left: 8px;
    background: #F59E0B;
    color: #1E3A8A;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.oelvas-meta .oelvas-date {
    font-size: 12px;
    color: rgb(156 163 175);
}
.oelvas-meta .oelvas-date img {
    width: 12px;
    margin-right: 6px;
}

.oelvas-hero-content a, .oelvas-readmore {
    color: #FBBF24;
    font-size: 14px;
}

.oelvas-hero-content a:hover {
    color: #FBBF24;
    font-size: 14px;
}


/* Smooth transition for everything */
.oelvas-card,
.oelvas-hero {
    transition: transform 0.3s ease;
}

/* Move entire card up */
.oelvas-card:hover,
.oelvas-hero:hover {
    transform: translateY(-4px);
}

/* IMAGE ZOOM EFFECT */
/* .oelvas-card-image,
.oelvas-hero-image {
    overflow: hidden;
} */

.oelvas-card-image img,
.oelvas-hero-image img {
    transition: transform 0.5s ease;
}

/* Zoom image on hover */
.oelvas-card:hover img,
.oelvas-hero:hover img {
    transform: scale(1.05);
}

/* TITLE COLOR CHANGE */
.oelvas-card h3,
.oelvas-hero h2 {
    transition: color 0.3s ease;
}

.oelvas-hero:hover h2 {
    color: #FBBF24; /* Yellow */
}
.oelvas-card:hover h3 {
     color: rgb(30 64 175);
}

.oelvas-card .oelvas-readmore {
     color: rgb(30 64 175);
}

.oelvas-hero-link,
.oelvas-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Responsive */

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  /* tablet styles here */

    .oelvas-hero-content {
        left: 30px;
        max-width: 600px;
    }

}

@media (max-width: 600px) {

    .events_card_wrapper {
        padding: 20px 12px 20px 12px!important;
    }

    .oelvas-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .oelvas-hero-content {
        left: 8px;
        max-width: 330px;
    }
    .oelvas-hero-content h2 {
        font-size: 20px;
    }
    .oelvas-hero-content p {
        font-size: 14px;
    }
    .oelvas-hero-content .oelvas-meta .oelvas-date {
        color: rgb(255 255 255);
    }
    .oelvas-hero-excerpt {
        -webkit-line-clamp: 2;   /* Shorter on mobile */
        font-size: 14px;
    }
    .oelvas-card-image img {
        height: 270px !important;
    }
    .oelvas-meta .oelvas-badge {
        font-size: 12px;
    }
}