/* =====================================================
   BLOG — LATEST ARTICLES
   ====================================================== */

.blog {
    padding: var(--section-pad) 24px;
    background: #fffdf8;
}

.bl-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* ---- Header: centred badge above a title / subtitle split ---- */
.bl-header {
    margin-bottom: var(--header-gap);
}

.bl-badge-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.bl-header-text {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.bl-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .09);
    border: 1px solid rgba(254, 111, 1, .2);
    color: var(--orange-dark, #cb5901);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.bl-title {
    max-width: 620px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.3px;
    color: var(--black, #171714);
}

.bl-subtitle {
    max-width: 360px;
    padding-bottom: 6px;
    color: var(--gray, #706b61);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- Grid ---- */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bl-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #ece6da;
    overflow: hidden;
    transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
                box-shadow 380ms cubic-bezier(.2, .8, .2, 1),
                border-color 380ms ease;
}

.bl-card:hover {
    transform: translateY(-5px);
    border-color: rgba(254, 111, 1, .4);
    box-shadow: 0 24px 48px rgba(23, 23, 20, .09);
}

.bl-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3ede1;
}

.bl-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.bl-card:hover .bl-media img {
    transform: scale(1.06);
}

/* Studio product shots sit on a warm panel instead of being cropped. */
.bl-media-contain {
    background: linear-gradient(160deg, #fdf8ee 0%, #f3ede1 100%);
}

.bl-media-contain img {
    object-fit: contain;
    padding: 18px;
    mix-blend-mode: multiply;
}

.bl-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--orange, #fe6f01);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.bl-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 18px;
}

.bl-name {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.4px;
    color: var(--black, #171714);
}

.bl-desc {
    flex: 1;
    margin-top: 10px;
    color: var(--gray, #706b61);
    font-size: 13.5px;
    line-height: 1.68;
}

.bl-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--orange-dark, #cb5901);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: gap 280ms cubic-bezier(.2, .8, .2, 1), color 280ms ease;
}

.bl-more i,
.bl-more svg {
    width: 15px;
    height: 15px;
}

.bl-card:hover .bl-more {
    gap: 11px;
    color: var(--orange, #fe6f01);
}

/* ---- Through to the full blog listing ---- */
.bl-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.bl-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    background: var(--orange, #fe6f01);
    color: var(--black, #171714);
    font-size: 14px;
    font-weight: 700;
    transition: all 320ms cubic-bezier(.2, .8, .2, 1);
}

.bl-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(254, 111, 1, .35);
}

.bl-all svg,
.bl-all i {
    width: 16px;
    height: 16px;
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.bl-all:hover svg {
    transform: translateX(3px);
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
/* Four dense cards need real width — drop to two well before tablet. */
@media (max-width: 1100px) {
    .bl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    /* .bl-header is a plain block now — the split row is .bl-header-text. */
    .bl-header-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .bl-subtitle {
        max-width: 100%;
    }
    .bl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog {
        padding: var(--section-pad) 20px;
    }
    .bl-grid {
        grid-template-columns: 1fr;
    }
}
