/* ====================================================
   1. KHUNG SECTION NGOÀI CÙNG
   ==================================================== */
.core-values {
    position: relative;
    background: #ffffff !important;
    width: 100%;
    overflow: hidden;
    cursor: default;
}

/* ====================================================
   2. KHUNG CONTAINER (THU GỌN CHIỀU CAO - GẦN NHAU HƠN)
   ==================================================== */
.core-values-container {
    position: relative;
    min-height: 580px; /* Thu gọn từ 850px xuống 580px để xóa khoảng trống thừa */
    padding-top: 40px;  /* Tiêu đề nằm gần hơn */
    margin: 0 auto;
}

/* Tiêu đề chính */
.core-values-header {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}
.core-values-header .title-section {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color); /* Xanh đậm sang trọng */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ====================================================
   3. DANH SÁCH 6 CỘT
   ==================================================== */
.core-values-list {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    z-index: 2;
}

.core-values-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 55px; /* Giảm đệm đáy để các tiêu chí nằm gọn gàng */
    height: 100%;
}

/* Vạch kẻ ngăn giữa các cột (độ cao vừa vặn tỉ lệ mới) */
.core-values-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.core-values-item:nth-child(1)::after { height: 45%; }
.core-values-item:nth-child(2)::after { height: 55%; }
.core-values-item:nth-child(3)::after { height: 68%; }
.core-values-item:nth-child(4)::after,
.core-values-item:nth-child(5)::after,
.core-values-item:nth-child(6)::after { height: 85%; }

/* KHỐI NỘI DUNG */
.core-values-item .child {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 15px;
    /* Hiệu ứng trượt vút lên */
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Vạch vàng kim */
.core-values-item .child::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    display: inline-block;
    width: 3px;
    height: 48px;
    background-color: #b88e3f;
}

/* Icon */
.core-values-item .child .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.core-values-item .child .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(60%) sepia(35%) saturate(750%) hue-rotate(5deg) brightness(90%) contrast(90%);
}

/* Tiêu đề & Chữ mô tả */
.core-values-item .child .group-content {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    padding: 10px 15px 0 20px;
}
.core-values-item .child .group-content .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2341;
    margin-bottom: 10px;
    white-space: nowrap;
}
.core-values-item .child .group-content .desc {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: justify;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    max-height: 200px;
}
.core-values-item .child .group-content .desc p {
    margin: 0;
}

/* ====================================================
   4. HOVER: CẢ 6 CỘT VÚT LÊN ĐỀU ĐẶN LẤP ĐẦY KHOẢNG TRỐNG
   ==================================================== */
.core-values:hover .core-values-item:nth-child(1) .child {
    transform: translateY(-150px);
}
.core-values:hover .core-values-item:nth-child(2) .child {
    transform: translateY(-185px); /* Tăng đều 35px */
}
.core-values:hover .core-values-item:nth-child(3) .child {
    transform: translateY(-220px);
}
.core-values:hover .core-values-item:nth-child(4) .child {
    transform: translateY(-255px);
}
.core-values:hover .core-values-item:nth-child(5) .child {
    transform: translateY(-290px);
}
.core-values:hover .core-values-item:nth-child(6) .child {
    transform: translateY(-325px);
}

.core-values:hover .core-values-item .child .group-content .desc {
    opacity: 1;
    visibility: visible;
}

/* ====================================================
   5. RESPONSIVE MOBILE & TABLET
   ==================================================== */
@media (max-width: 1024px) {
    .core-values-container {
        min-height: auto;
        padding-top: 30px;
        padding-bottom: 40px;
    }
    .core-values-list {
        position: static;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }
    .core-values-item {
        padding-bottom: 0;
        min-height: auto;
    }
    .core-values-item::after {
        display: none;
    }
    .core-values-item .child {
        transform: none !important;
    }
    .core-values-item .child .group-content {
        position: static;
        padding: 8px 0 0 0;
    }
    .core-values-item .child .group-content .desc {
        opacity: 1 !important;
        visibility: visible !important;
    }
}