/* Blog listing page (Pages/Blog/Index.cshtml) */

.nims-blog__intro {
    max-width: 640px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 17px;
    line-height: 1.7;
}

.nims-blog__empty {
    color: #555;
    font-size: 17px;
    padding: 40px 0;
}

.nims-blog__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e3eadf;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nims-blog__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Fixed 16:10 frame so mixed-size cover images line up */
.nims-blog__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef5ea;
}

.nims-blog__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nims-blog__card:hover .nims-blog__media img {
    transform: scale(1.04);
}

/* Used when a post has no cover image or the image fails to load */
.nims-blog__media img.is-fallback {
    object-fit: contain;
    padding: 18%;
    opacity: 0.85;
}

.nims-blog__date {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--theme-color2, #ffcb24);
    color: #010101;
    font-family: var(--title-font, "Jost", sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.nims-blog__date strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.nims-blog__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 28px;
}

.nims-blog__title {
    min-height: calc(1.35em * 2);
    margin: 0 0 12px;
    font-family: var(--title-font, "Jost", sans-serif);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.nims-blog__title a {
    color: var(--title-color, #010101);
    text-decoration: none;
}

.nims-blog__title a:hover {
    color: var(--theme-color, #47b32d);
}

.nims-blog__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}

.nims-blog__more {
    margin-top: auto;
    color: var(--theme-color, #47b32d);
    font-weight: 700;
    text-decoration: none;
}

.nims-blog__more i {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nims-blog__more:hover {
    color: var(--theme-color-light, #2f9916);
}

.nims-blog__more:hover i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .nims-blog__intro {
        margin-bottom: 35px;
        font-size: 16px;
    }

    .nims-blog__title {
        min-height: 0;
        font-size: 19px;
    }

    .nims-blog__body {
        padding: 20px 20px 24px;
    }
}
