.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 50px auto;
}

.blog-item {
    display: flex;
    align-items: stretch;
    gap: 30px;
    position: relative;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    min-height: 160px;
    background-color: transparent;
}

.image-container {
    position: relative;
    width: 250px;
    height: 160px;
    flex-shrink: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.border-accent {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-top: 3px solid #00e676;
    border-left: 3px solid #00e676;
}

/* Alternate border colors */
.blog-item:nth-child(2) .border-accent {
    border-top-color: #ffea00;
    border-left-color: #ffea00;
}
.blog-item:nth-child(3) .border-accent {
    border-top-color: #2979ff;
    border-left-color: #2979ff;
}
.blog-item:nth-child(4) .border-accent {
    border-top-color: #ff1744;
    border-left-color: #ff1744;
}

.blog-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.blog-text h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

.blog-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #444;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-arrow a {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #00e676;
    font-size: 18px;
    transition: color 0.3s;
}

.blog-item:nth-child(2) .blog-arrow a {
    color: #ffea00;
}
.blog-item:nth-child(3) .blog-arrow a {
    color: #2979ff;
}
.blog-item:nth-child(4) .blog-arrow a {
    color: #ff1744;
}

.blog-arrow a:hover {
    text-decoration: underline;
}

/* --------------------------- */
/* ✅ RESPONSIVE STYLING HERE */
/* --------------------------- */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .image-container {
        width: 100%;
        height: auto;
    }

    .image-container img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .border-accent {
        top: 10px;
        left: 10px;
    }

    .blog-text {
        padding: 0;
        width: 100%;
    }

    .blog-text h2 {
        font-size: 20px;
    }

    .blog-text p {
        -webkit-line-clamp: 5;
        font-size: 15px;
        margin-bottom: 10px;
    }

    .blog-arrow a {
        font-size: 16px;
    }
}
