/* Blog listing and article page, rendered by assets/js/blog.js from the Laravel API. */

.marlett-blog-loading {
    opacity: .55;
    transition: opacity .2s ease;
}

.marlett-blog-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(24, 32, 46, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.marlett-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(24, 32, 46, .12);
}

.marlett-blog-thumb {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #f1f3f6;
}

.marlett-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.marlett-blog-card:hover .marlett-blog-thumb img {
    transform: scale(1.05);
}

.marlett-blog-noimage {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #e8ecf3 0%, #f6f8fb 100%);
}

.marlett-blog-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px 24px;
}

.marlett-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8a94a6;
}

.marlett-blog-cat {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1f5fa8;
    background: #eaf1fa;
    border-radius: 999px;
}

.marlett-blog-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
}

.marlett-blog-title a {
    color: #1d2531;
}

.marlett-blog-title a:hover {
    color: #1f5fa8;
}

.marlett-blog-intro {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #5c6675;
    flex-grow: 1;
}

.marlett-blog-more {
    font-size: 14px;
    font-weight: 600;
    color: #1f5fa8;
}

.marlett-blog-more:hover {
    color: #17497f;
}

.marlett-blog-more .fa {
    margin-left: 4px;
    transition: transform .2s ease;
}

.marlett-blog-more:hover .fa {
    transform: translateX(3px);
}

.marlett-blog-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marlett-blog-pagination li a {
    display: block;
    min-width: 38px;
    padding: 8px 12px;
    font-size: 15px;
    color: #3d4757;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    text-align: center;
}

.marlett-blog-pagination li a:hover {
    border-color: #1f5fa8;
    color: #1f5fa8;
}

.marlett-blog-pagination li.active a {
    color: #fff;
    background: #1f5fa8;
    border-color: #1f5fa8;
}

/* ---- Article page ---- */

.marlett-post-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.marlett-post-back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #1f5fa8;
}

.marlett-post-back:hover {
    color: #17497f;
}

.marlett-post-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d2531;
}

.marlett-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 14px;
    color: #8a94a6;
}

.marlett-post-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

.marlett-post-intro {
    margin: 0 0 28px;
    font-size: 19px;
    line-height: 1.6;
    color: #4a5568;
}

.marlett-post-body {
    font-size: 17px;
    line-height: 1.75;
    color: #37414f;
}

.marlett-post-body h2 {
    margin: 34px 0 14px;
    font-size: 24px;
    font-weight: 600;
    color: #1d2531;
}

.marlett-post-body h3 {
    margin: 28px 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d2531;
}

.marlett-post-body p {
    margin: 0 0 18px;
}

.marlett-post-body ul,
.marlett-post-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.marlett-post-body li {
    margin-bottom: 8px;
}

.marlett-post-body a {
    color: #1f5fa8;
    text-decoration: underline;
}

.marlett-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.marlett-post-body blockquote {
    margin: 0 0 20px;
    padding: 14px 20px;
    border-left: 4px solid #1f5fa8;
    background: #f5f8fc;
    color: #4a5568;
}

.marlett-post-empty {
    padding: 26px 24px;
    background: #f7f9fc;
    border: 1px dashed #d5dbe5;
    border-radius: 8px;
    color: #5c6675;
}

@media (max-width: 767.98px) {
    .marlett-post-wrap {
        padding: 34px 16px 56px;
    }

    .marlett-post-title {
        font-size: 26px;
    }

    .marlett-post-body {
        font-size: 16px;
    }

    .marlett-blog-thumb {
        height: 170px;
    }
}
