.life-at-valuelabs-block {
    padding: 120px 0 0;
}

.life-at-valuelabs-title {
    margin-bottom: 20px !important;
}

.life-at-valuelabs-header {
    margin-bottom: 40px;
}

/* ── Shared grid item ── */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.08);
}

/* Gradient overlay */
.grid-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(rgba(0, 0, 0, 0.02) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    transition: all 0.5s ease-in-out;
    mask-image: linear-gradient(180deg, transparent 0%, black 42%);
}

.grid-item-text {
    position: absolute;
    left: 28px;
    bottom: 20px;
    color: #FFF;
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    z-index: 1;
}

/* ============================================================
   ROW 1 & ROW 3 — image-row with dynamic count
   ============================================================ */

.image-row {
    display: flex;
    align-items: stretch;
    gap: 19px;
    margin-bottom: 20px;
}

/* All items share height */
.image-row .grid-item {
    height: 255px;
}

/* --- 1 image: full width --- */
.image-row.count-1 .grid-item {
    flex: 1 1 100%;
}

/* --- 2 images: 50/50 --- */
.image-row.count-2 .grid-item {
    flex: 1 1 0;
}

/* --- 3 images: small | large | small ---
   Ratio: 288 : 388 : 288                  */
.image-row.count-3 .grid-item {
    flex: 288 1 0;
}

.image-row.count-3 .grid-item.item-large {
    flex: 388 1 0;
}

/* ============================================================
   ROW 2 — middle row: 50% image + 50% ratings
   ============================================================ */

.middle-row {
    display: flex;
    align-items: stretch;
    gap: 19px;
}

.middle-image {
    flex: 1 1 0;
    max-width: 388px;
    max-height: 256px;
}

/* ── Ratings ── */
.ratings-column {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-item {
    border-radius: 12px;
    background: linear-gradient(93deg, #C5C3FF 60.16%, #C6FAF7 100%);
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 20px 30px;
    flex: 1;
    gap: 62px;
}

.rating-label {
    color: #000;
    font-size: 23px;
    font-weight: 400;
    line-height: 140%;
    display: flex;
    align-items: center;
    min-width: 300px;
    position: relative;
}

.rating-label::after {
    position: absolute;
    content: '';
    display: block;
    width: 2px;
    height: 60px;
    background: rgba(0, 0, 0, 0.20);
    flex-shrink: 0;
    right: 0;
}

.rating-value {
    color: #000;
    font-size: 48px;
    font-weight: 500;
    line-height: 140%;
}

.grid-item[data-scroll-target] {
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE — show/hide per breakpoint
   ============================================================ */

/* Desktop default: only desktop visible */
.lav-tablet { display: none; }
.lav-mobile  { display: none; }
.lav-desktop { display: block; }

/* ============================================================
   TABLET — 768px to 1199px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1199.98px) {

    .life-at-valuelabs-block {
        padding: 80px 0 0;
    }

    .life-at-valuelabs-title {
        margin-bottom: 8px;
    }

    .life-at-valuelabs-header {
        margin-bottom: 32px;
    }

    .lav-desktop { display: none; }
    .lav-mobile  { display: none; }
    .lav-tablet  { display: block; }

    /* 2x2 image grid */
    .tab-grid {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .tab-grid .grid-item {
        max-height: 200px;
        width: 100%;
    }

    /* Ratings: 2 columns neeche */
    .tab-ratings {
        display: grid;
        flex-direction: column;
        gap: 20px;
    }

    .tab-ratings .rating-item {
        padding: 20px 46px;
        gap: 147px;
        flex: 1;
    }

    .tab-ratings .rating-label {
        font-size: 22px;
        max-width: 356px;
    }

    .tab-ratings .rating-value {
        font-size: 44px;
    }
}

/* ============================================================
   MOBILE — max 767px
   ============================================================ */
@media (max-width: 767.98px) {

    .life-at-valuelabs-block {
        padding: 60px 0 0;
    }
    .life-at-valuelabs-header {
        margin-bottom: 28px;

    }
    .life-at-valuelabs-title {
        margin-bottom: 8px !important;
    }

    .lav-desktop { display: none; }
    .lav-tablet  { display: none; }
    .lav-mobile  { display: flex; flex-direction: column; gap: 20px; }

    .lav-mobile .grid-item {
        max-height: 220px;
        width: 100%;
    }

    /* Ratings: single column */
    .mob-ratings {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mob-ratings .rating-item {
        padding: 10px 15px;
        gap: 27px;
    }

    .mob-ratings .rating-label {
        font-size: 20px;
        min-width: unset;
        width: 61%;
        flex-shrink: 0;
        padding-right: 23px;
    }

    .mob-ratings .rating-value {
        font-size: 40px;
    }

    .life-at-valuelabs-title {
        font-size: 32px;
        line-height: 40px;
    }

    .life-at-valuelabs-description {
        font-size: 16px;
    }

    .grid-item-text {
        font-size: 20px;
        left: 16px;
    }
}