/* ============================================================
   PAGE: Hygiene Insights — Blog Listing
   Figma node 758:10202
   ============================================================ */

.bl-page {
    background: var(--whc-white);
}

/* ============================================================
   SECTION — Recent Updates listing (758:10229 / 1475:9543)
   ============================================================ */
.bl-listing {
    background: var(--whc-white);
    padding: 155px 0 120px;
}

.bl-listing__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.bl-listing__title {
    margin: 0 0 95px;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.96px;
    color: var(--whc-black);
}

.bl-listing__grid {
    display: grid;
    grid-template-columns: repeat(3, 400px);   /* Figma: fixed 400px cards */
    justify-content: space-between;            /* Figma row: 1240px (3*400 + 2*20) inside ~1280 inner */
    gap: 60px 20px;
}

/* ----- Card (663:7684) ----- */
.bl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 12px;
    background: var(--whc-white);
    border: 1px solid #C7C7C7;
    border-radius: 12px;
}

.bl-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
    margin-top: 24px;
}

.bl-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;     /* Figma: 352x352 */
    overflow: hidden;
    background: #f5f5f5;
}

.bl-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bl-card__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bl-card__date {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 21.6px;
    color: var(--whc-grey-dark);
}

.bl-card__excerpt {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
    color: var(--whc-grey-dark);
    /* Lock to exactly 3 lines so Read More aligns across cards.
       Shorter excerpts still reserve the full 3-line block;
       longer excerpts truncate with an ellipsis. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(21.6px * 3);
}

.bl-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    width: 153px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 21.6px;
    color: var(--whc-orange);
}

.bl-card__cta-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
}

.bl-card__cta-icon img,
.bl-card__cta-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Orange accent line — uses Figma's exact SVG paths inline so the
   upward hook at the left (rest, 663:7707) and the symmetric
   hooks at both ends (hover, 1472:9392) render precisely. The
   SVG stretches via preserveAspectRatio="none", so the same
   path covers any width. */
.bl-card__underline {
    display: block;
    width: 166px;
    height: 8px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 166 8' preserveAspectRatio='none'><path d='M10 1C10 4.31371 12.6863 7 16 7H54.1209H156' stroke='%23FF8400' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
    transition: width 0.35s var(--ease);
}

.bl-card:has(.bl-card__cta:hover) .bl-card__underline {
    width: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 378 8' preserveAspectRatio='none'><path d='M1 1C1 4.31371 3.68629 7 7 7H198H371C374.314 7 377 4.31371 377 1' stroke='%23FF8400' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
    .bl-listing__grid {
        grid-template-columns: repeat(2, 400px);
        justify-content: center;
        gap: 40px 24px;
    }
}

@media (max-width: 880px) {
    .bl-listing {
        padding: 80px 0 80px;
    }

    .bl-listing__title {
        font-size: 36px;
        margin-bottom: 48px;
        letter-spacing: -0.72px;
    }

    .bl-listing__grid {
        grid-template-columns: minmax(0, 400px);
        gap: 32px;
    }
}
