/* ==========================================================================
   Blog listing page only.
   Loaded from resources/views/frontend/blog.blade.php through the layout's
   styles section, so every rule here is scoped to its bl-* classes.
   ========================================================================== */

.bl-section {
    background-color: #fff;
    padding: 60px 0 80px;
}

.bl-grid {
    --bs-gutter-x: 26px;
    --bs-gutter-y: 26px;
}

/* --------------------------------------------------- card */
.bl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    border-radius: 22px;
    background-color: #f1eee9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
}

/* tints taken from the site palette, rotating across the grid:
   the warm sand used on the home page, the theme's light neutral,
   and a soft wash of the brand red */
.bl-card-1 { background-color: #f1eee9; }
.bl-card-2 { background-color: #eff3f6; }
.bl-card-3 { background-color: #fceeee; }

.bl-card-img {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 14px;
    background-color: #fff;
}

/* the whole image is shown: full width, natural height, never cropped */
.bl-card-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.bl-card:hover .bl-card-img img {
    transform: scale(1.03);
}

.bl-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-family: "Lora", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    color: #14181d;
}

.bl-card-title a {
    color: inherit;
    transition: color 0.25s ease;
}

.bl-card:hover .bl-card-title a {
    color: var(--color-orange1);
}

.bl-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #5b6169;
}

.bl-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.bl-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.bl-card-date i {
    color: var(--color-orange1);
}

.bl-read-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 30px;
    background-color: var(--color-orange1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.bl-read-more:hover {
    background-color: #14181d;
    color: #fff;
}

/* --------------------------------------------------- empty state */
.bl-empty {
    margin: 0;
    padding: 40px 0;
    text-align: center;
    font-size: 17px;
    color: #6b7280;
}

/* --------------------------------------------------- responsive */
@media (max-width: 1199px) {
    .bl-card-title {
        font-size: 19px;
    }
}

@media (max-width: 991px) {
    .bl-section {
        padding: 45px 0 60px;
    }
}

@media (max-width: 575px) {
    .bl-section {
        padding: 35px 0 50px;
    }

    .bl-card {
        padding: 14px;
        border-radius: 18px;
    }

    .bl-card-title {
        font-size: 20px;
    }

    .bl-card-meta {
        gap: 10px;
    }
}
