/* Base layout (desktop unchanged) */
.blog-post {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.blog-post:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

/* Image */
.blog-post-image {
    width: 240px;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.blog-post-content {
    display: flex;
    flex-direction: column;
}

.blog-post-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.blog-post-date {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.blog-post-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-tag {
    padding: 4px 10px;
    background: var(--frame-bg);
    border: 1px solid var(--frame-border);
    border-radius: 8px;
    font-size: 12px;
    opacity: 0.85;
}

.blog-post-excerpt {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}

/* Pagination */
#blog-pagination {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.blog-page-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 6px 10px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.blog-page-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* -------------------------------------- */
/* 📱 MOBILE BREAKPOINT */
/* -------------------------------------- */

@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;       /* stack image + text */
        padding: 16px;
        gap: 16px;
    }

    .blog-post-image {
        width: 100%;                  /* full width */
        height: 200px;                /* taller for mobile */
    }

    .blog-post-content {
        text-align: center;           /* center text */
    }

    .blog-post-tags {
        justify-content: center;      /* center tags */
        flex-wrap: wrap;
    }

    .blog-post-title {
        font-size: 20px;
    }

    .blog-post-excerpt {
        font-size: 15px;
    }

    /* Pagination moves below content */
    #blog-pagination {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .blog-post-image {
        height: 160px;
    }

    .blog-post {
        padding: 14px;
    }

    .blog-post-title {
        font-size: 18px;
    }
}


