/* ==========================================================================
   SECTION: PEONY CAM KẾT & DANH MỤC - BEM STANDARD
   Sử dụng toàn bộ Design Tokens từ global.css
   ========================================================================== */

/* TĂNG ĐỘ ƯU TIÊN SPECIFICITY ĐỂ GHI ĐÈ QUY TẮC GLOBAL 30PX */
body main > section.sec-commitment,
body .site-main > section.sec-commitment,
body main > section[style*="background"].sec-commitment,
body .site-main > section:last-child.sec-commitment,
section.sec-commitment,
.sec-commitment {
    width: 100% !important;
    background-image: var(--bg-commitment) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 689px !important;
    min-height: 689px !important;
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 50px !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
}

.sec-commitment__container {
    width: 100%;
    max-width: var(--container-max-w, 1200px);
    margin: 0 auto;
    padding-left: var(--container-pad-x, 15px);
    padding-right: var(--container-pad-x, 15px);
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

/* KHỐI NỘI DUNG NẰM BÊN PHẢI (CHIẾM 54% CHIỀU RỘNG) */
.sec-commitment__content {
    flex: 0 0 54%;
    max-width: 54%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 20px 0 40px;
}

/* TIÊU ĐỀ SECTION (CÁCH LỀ TRÊN 50PX, CÁCH DANH MỤC 50PX) */
.sec-commitment__title {
    font-family: var(--ff-h2-m, var(--font-lexend)), sans-serif;
    font-size: var(--fs-h2-m, 28px);
    font-weight: 500 !important;
    line-height: 1.25;
    color: #382418;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0;
    margin-bottom: 50px !important;
    text-align: left;
    align-self: flex-start;
}

/* LƯỚI 4 DANH MỤC TRÒN (2 HÀNG X 2 CỘT) */
.sec-commitment__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    width: 100%;
    max-width: 460px;
    margin: 0;
    box-sizing: border-box;
}

.sec-commitment__item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

/* CARD DANH MỤC TRÒN: CĂN THẲNG HÀNG TRÁI */
.commitment-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.commitment-card__thumb {
    width: 108px;
    height: 108px;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-bottom: 12px;
    margin-left: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    position: relative;
    border: 2.5px solid #ffffff;
}

.commitment-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50% !important;
    transition: transform 0.35s ease;
}

.commitment-card:hover .commitment-card__img {
    transform: scale(1.1);
}

.commitment-card__name {
    font-family: var(--font-lexend), sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1A1A1A;
    text-align: left;
    margin-left: 0;
    transition: color 0.3s ease;
}

.commitment-card:hover .commitment-card__name {
    color: var(--color-accent, #0084C7);
}

/* NÚT CTA: CĂN CHÍNH GIỮA Ở DƯỚI ĐÁY CỦA TOÀN BỘ SECTION */
.sec-commitment__action {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
}

.sec-commitment__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background-color: var(--color-accent, #0084C7) !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    border-radius: var(--radius-atom, 4px) !important;
    font-family: var(--font-lexend), sans-serif !important;
    font-size: var(--fs-btn-m, 14px) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 132, 199, 0.3) !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    white-space: nowrap !important;
}

.sec-commitment__btn:hover {
    background-color: var(--color-accent-dark, #006AA0) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   RESPONSIVE TABLET & MOBILE
   ========================================================================== */
@media screen and (max-width: 1024px) {
    body main > section.sec-commitment,
    body .site-main > section.sec-commitment,
    section.sec-commitment,
    .sec-commitment {
        height: auto !important;
        min-height: 560px !important;
        padding-top: 40px !important;
        padding-bottom: 80px !important;
    }

    .sec-commitment__content {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        padding-left: 15px !important;
    }

    .sec-commitment__grid {
        gap: 20px 32px;
        max-width: 440px;
    }

    .commitment-card__thumb {
        width: 96px;
        height: 96px;
    }

    .sec-commitment__action {
        bottom: 25px !important;
    }
}

@media screen and (max-width: 767px) {
    body main > section.sec-commitment,
    body .site-main > section.sec-commitment,
    body main > section[style*="background"].sec-commitment,
    body .site-main > section:last-child.sec-commitment,
    section.sec-commitment,
    .sec-commitment {
        height: auto !important;
        min-height: auto !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        background-position: center center !important;
        background-size: cover !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .sec-commitment__container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .sec-commitment__content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .sec-commitment__title {
        font-size: 22px !important;
        margin-bottom: 22px !important;
        text-align: center !important;
        align-self: center !important;
    }

    .sec-commitment__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .sec-commitment__item {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .commitment-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .commitment-card__thumb {
        width: 78px !important;
        height: 78px !important;
        margin: 0 auto 8px auto !important;
    }

    .commitment-card__name {
        font-size: 13.5px !important;
        text-align: center !important;
        margin: 0 auto !important;
        line-height: 1.35 !important;
    }

    .sec-commitment__action {
        position: static !important;
        transform: none !important;
        margin-top: 24px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        left: auto !important;
        bottom: auto !important;
    }

    .sec-commitment__btn {
        width: 100% !important;
        max-width: 290px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13.5px !important;
    }
}