/* Lumik Posts Cards */

/* Grid layout */
.lumik-posts-grid {
    display: grid;
    grid-template-columns: repeat(var(--lp-columns, 4), 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Card */
.lumik-post {
    display: flex;
    margin: 0;
    padding: 0;
}

.lumik-post__card {
    background-color: #fff;
    border: 0 solid #69727d;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.25s;
    width: 100%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
}

.lumik-post__card:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14);
}

/* Thumbnail */
.lumik-post__thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
}

.lumik-post__thumbnail {
    position: relative;
    overflow: hidden;
}

.lumik-post__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    transition: filter 0.3s, transform 0.3s;
}

.lumik-post__card:hover .lumik-post__thumbnail img {
    transform: scale(1.03);
}

/* Badge */
.lumik-post__badge {
    background: #69727d;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    margin: 20px;
    padding: 0.6em 1.2em;
    position: absolute;
    top: 0;
    right: 0;
    text-transform: uppercase;
}

/* Avatar */
.lumik-post__avatar {
    height: 0;
    padding: 0 30px;
    pointer-events: none;
    position: relative;
    top: -25px;
    width: 100%;
}

.lumik-post__avatar img {
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: block;
    width: 50px;
    height: 50px;
}

/* Text area */
.lumik-post__text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 20px;
    padding: 0 30px;
}

/* Title */
.lumik-post__title {
    font-size: 21px;
    margin: 0 0 25px;
    line-height: 1.3;
}

.lumik-post__title a {
    color: inherit;
    text-decoration: none;
}

.lumik-post__title a:hover {
    opacity: 0.7;
}

/* Excerpt */
.lumik-post__excerpt {
    margin-bottom: 10px;
    line-height: 1.7;
}

.lumik-post__excerpt p {
    color: #777;
    font-size: 14px;
    line-height: 1.5em;
    margin: 0;
}

/* Read More */
.lumik-post__read-more {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-bottom: 20px;
}

.lumik-post__read-more:hover {
    opacity: 0.7;
}

/* Auto-align read more to bottom */
.lumik-posts--align-buttons .lumik-post__text {
    display: flex;
    flex-direction: column;
}

.lumik-posts--align-buttons .lumik-post__read-more-wrapper {
    margin-top: auto;
}

.lumik-posts--align-buttons .lumik-post__excerpt {
    flex-grow: 1;
}

/* Meta data */
.lumik-post__meta-data {
    color: #adadad;
    font-size: 12px;
    line-height: 1.3em;
    margin-bottom: 0;
    padding: 15px 30px;
    border-top: 1px solid #eaeaea;
}

.lumik-post__meta-data .lumik-meta-sep {
    margin: 0 5px;
}

/* Pagination */
.lumik-posts-pagination {
    margin-top: 2rem;
    text-align: center;
}

.lumik-posts-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.lumik-posts-pagination .page-numbers li {
    list-style: none;
}

.lumik-posts-pagination .page-numbers li a,
.lumik-posts-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, color 0.2s;
}

.lumik-posts-pagination .page-numbers li a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.lumik-posts-pagination .page-numbers li .current {
    font-weight: 700;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .lumik-posts-grid {
        grid-template-columns: repeat(var(--lp-columns-tablet, 2), 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .lumik-posts-grid {
        grid-template-columns: repeat(var(--lp-columns-mobile, 1), 1fr);
        gap: 20px;
    }

    .lumik-post__text {
        padding: 0 20px;
    }

    .lumik-post__meta-data {
        padding: 12px 20px;
    }

    .lumik-post__title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}