/* card + general */
.blog-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: rgba(0,0,0,0.08) 0px 4px 8px;
    position: relative;
    background: #fff;
    margin-bottom: 20px;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0,0,0,0.15) 0px 6px 14px;
}
.card-body{
    padding:10px;
}
.blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* image wrapper for overlay */
.img-wrapper {
    position: relative;
    overflow: hidden;
}

/* date badge positioned top-left */
.date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-6px);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* show badge on hover / focus */
.blog-card:hover .date-badge,
.blog-card:focus-within .date-badge,
/* helpful for touch: make it visible when the image is tapped (we add .visible-date via JS) */
.blog-card .date-badge.visible-date {
    transform: translateY(0);
    opacity: 1;
}

/* small responsive tweak */
@media (max-width: 576px) {
    .date-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 12px; }
    .blog-img { height: 160px; }
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
}
.read-more {
    text-decoration:none;
    color: #fff;
    background: #0d6efd;
    border-radius: 6px;
    padding: 8px 14px;
    display: inline-block;
    font-weight:600;
}
.read-more:hover {
    text-decoration: none;
    opacity: .95;
}
.search-box {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}