/* Shared component: Đãi ngộ & Phúc lợi (Views/Shared/_DaiNgoPhucLoi.cshtml) — Home + Chính sách nhân sự */

.benefits {
    padding: 60px 24px;
}

.benefits__inner {
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #034EA208;
}

.benefits__grid {
    margin-top: 32px;
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.benefits__inner.benefits__inner--grid {
    max-width: 1600px;
    margin: 30px auto;
}

.benefits__grid {
    margin-top: 0px;
}

.luong-thuong-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    height: 100%;
    min-height: 200px;
    padding: 20px;
}

.luong-thuong-card-first {

}

.luong-thuong-card-second {
    border-left: 2px dashed #4d70dd;
    border-right: 2px dashed #4d70dd;
}

.luong-thuong-card-third {

}

.luong-thuong-card-fourth {
    margin-top: 40px;
    border-top: 2px dashed #4d70dd;
}

.luong-thuong-card-fifth {
    margin-top: 40px;
    border-left: 2px dashed #4d70dd;
    border-right: 2px dashed #4d70dd;
    border-top: 2px dashed #4d70dd;
}

.luong-thuong-card-sixth {
    margin-top: 40px;
    border-top: 2px dashed #4d70dd;
}

.luong-thuong-icon {
    margin-top: 10px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luong-thuong-icon img {
    width: 87px;
    height: 94px;
    object-fit: contain;
    display: block;
}

.thuong-luong-content {
    width: 100%;
}

.luong-thuong-text {
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.luong-thuong-compact {
    padding: 10px 24px 0px;
}

.benefit-card__title {
}

.benefits__inner.benefits__inner--grid {
    border-radius: 30px;
}

@media (max-width: 1024px) {

    .benefits__grid--lines {
        background: #F8FAFC;
        border-radius: 18px;
        overflow: hidden;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .luong-thuong-card {
        grid-column: auto;
    }

    .luong-thuong-card-second {
        border-right: none;
    }

    .luong-thuong-card-third {
        margin-top: 40px;
        border-top: 2px dashed #4d70dd;
    }

    .luong-thuong-card-fourth {
        border-left: 2px dashed #4d70dd;
    }

    .luong-thuong-card-fifth {
        border-left: none;
        border-right: none;
    }

    .luong-thuong-card-sixth {
        position: relative;
    }

    .luong-thuong-card-sixth::before {
        content: "";
        position: absolute;
        top: 45px;
        bottom: 0;
        left: 0px;
        border-left: 2px dashed #4d70dd;
    }
}

@media (max-width: 768px) {

    .luong-thuong-card {
        padding: 10px;
    }

    .benefit-card__title {
    }

    .luong-thuong-text {
    }

    .luong-thuong-icon img {
        width: 70px;
        height: 80px;
    }

    .luong-thuong-card-third {
        margin-top: 20px;
    }

    .luong-thuong-card-fourth {
        margin-top: 20px;
    }

    .luong-thuong-card-sixth::before {
        top: 0;
    }
}

@media (max-width: 500px) {

    .luong-thuong-compact {
        padding: 0 24px;
    }

    .luong-thuong-icon img {
        width: 72px;
        height: 70px;
    }

    .benefit-card__title {
    }

    .luong-thuong-text {
    }

    .luong-thuong-card-fifth {
        margin-top: 20px;
    }

    .luong-thuong-card-sixth {
        margin-top: 20px;
    }

    .luong-thuong-card-sixth::before {
        top: 15px;
    }
}

@media (max-width: 344px) {

    .luong-thuong-card {
        grid-column: none;
    }

    .luong-thuong-card-second {
        border-top: 2px dashed #4d70dd;
        border-left: none;
        border-right: none;
    }

    .luong-thuong-card-third {
        margin-top: 0px;
    }

    .luong-thuong-card-fourth {
        margin-top: 0px;
        border-left: none;
    }

    .luong-thuong-card-fifth {
        margin-top: 0px;
    }

    .luong-thuong-card-sixth {
        margin-top: 0px;
        border-left: none;
    }

    .luong-thuong-card-sixth::before {
        content: none;
    }
}

@media (min-width: 768px) {

    .benefits__inner.benefits__inner--grid {
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .benefits.luong-thuong-compact {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {

    .benefits__inner.benefits__inner--grid {
        max-width: 1252px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .benefits__inner.benefits__inner--grid {
        max-width: 945px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .benefits__inner.benefits__inner--grid {
        max-width: 705px;
    }
}

/* Điện thoại ≤440 (Figma "Trang chủ Mobile"): 1 cột, icon trái (85px) – chữ phải, bỏ đường kẻ đứt giữa các thẻ.
   Cỡ chữ: typography.css (tiêu đề 16, mô tả 14). */
@media (max-width: 440px) {
    .luong-thuong-compact {
        padding: 0 17px;
    }

    /* Figma: nền trắng, không khung bo */
    .luong-thuong-compact .benefits__inner {
        margin: 16px auto;
        background: none;
        border-radius: 0;
    }

    /* thắng '.benefits__grid--lines' (≤1024: nền xám, gap 0; home.css ép gap 0 !important) */
    .luong-thuong-compact .benefits__grid.benefits__grid--lines {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px !important;
        background: none;
        border-radius: 0;
    }

    .luong-thuong-compact .luong-thuong-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 25px;
        grid-column: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        text-align: left;
    }

        .luong-thuong-compact .luong-thuong-card::before,
        .luong-thuong-compact .luong-thuong-card::after {
            content: none;
        }

    .luong-thuong-compact .luong-thuong-icon {
        flex: 0 0 85px;
    }

        .luong-thuong-compact .luong-thuong-icon img {
            width: 85px;
            height: auto;
        }

    .luong-thuong-compact .thuong-luong-content {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .luong-thuong-compact .benefit-card__title {
        margin-bottom: 8px;
        color: #2B2945;
    }
}
