/* Blog Card Hover Effect - Replicated from adlercentraleurope.com */

.blog-card {
    position: relative;
    margin-bottom: 30px;
    height: 400px;
    /* Fixed height for uniformity */
}

.blog-card .inner-box {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    background-color: #fff;
}

/* Gradient Overlay to ensure text readability over images */
.blog-card .inner-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
    transition: all 500ms ease;
}

.blog-card .inner-box:hover::after {
    height: 100%;
    background: rgba(0,0,0,0.7);
}

/* Image Box */
.blog-card .image-box {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}

.blog-card .image-box>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 500ms ease;
    opacity: 1;
}

.blog-card .inner-box:hover .image-box>* {
    opacity: 0.25;
    /* Dim image on hover */
    transform: scale(1.1);
    /* Slight zoom */
}

/* Content Box (Initially Visible) */
.blog-card .content-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    z-index: 2;
    transition: all 500ms ease;
}

.blog-card .inner-box:hover .content-box {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.blog-card .content-box .inner h4 {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability over image */
}

.blog-card .content-box .link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Overlay Content (Revealed on Hover) */
.blog-card .overlay-content {
    position: absolute;
    top: 50px;
    /* Start slightly lower */
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: all 500ms ease;
}

.blog-card .inner-box:hover .overlay-content {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.blog-card .overlay-content .inner h4 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-card .overlay-content .inner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-card .overlay-content .link {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 300ms ease;
    text-decoration: none;
}

.blog-card .overlay-content .link:hover {
    background-color: #fff;
    color: #000;
}