@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-radius: 40px;
}

.event-row .single-blog-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.event-row .single-blog-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(57, 56, 56, 0.08);
}



.event-row .single-blog-box .blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    opacity: 0; /* initial state */
    animation: fadeSlideIn 0.6s ease-out forwards;
    animation-delay: 0.2s;
}


.event-row .single-blog-box h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #183056;
}

.event-row .single-blog-box .blog-title p {
    flex-grow: 1;
    margin-bottom: 10px;
    color: #555;
}

.event-row .single-blog-box .custom-event-btn {
    margin-top: auto;
}

.event-row .single-blog-box .custom-event-btn a,
.event-row .single-blog-box .custom-event-btn span {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}

.event-row .single-blog-box .custom-event-btn a {
    background-color: #183056;
    color: #fff;
    border: 1px solid transparent;
}

.event-row .single-blog-box .custom-event-btn a:hover {
    transform: scale(1.05);
    border-color: #8b0e3a;
    background-color: #10223e;
}

.event-row .single-blog-box .custom-event-btn a i.flaticon-right-arrow {
    margin-left: 5px;
    font-size: 0.9rem;
}

.event-row .single-blog-box .custom-event-btn span {
    background-color: #e5e5e5;
    color: #666;
    border: 1px solid #e5e5e5;
    cursor: default;
}

.single-blog-box {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;

}

.single-blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title h3 {
    font-size: 18px;
    line-height: 1.4;
    min-height: 50px;
}

.blog_btn {
    margin-top: auto;
    text-align: left;
}


/* Ensure responsiveness */
@media (max-width: 991px) {
    .event-row .single-blog-box {
        min-height: 250px;
    }
    .event-row .single-blog-box .custom-event-btn a,
    .event-row .single-blog-box .custom-event-btn span {
        padding: 8px 15px;
    }
}

@media (max-width: 767px) {
    .event-row .single-blog-box {
        min-height: 200px;
    }
    .event-row .single-blog-box .custom-event-btn a,
    .event-row .single-blog-box .custom-event-btn span {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
