:root {
    --primary: #0073B9;
    --primary-hover: #000f40;
    --header-height-normal: 80px;   /* Chiều cao khi ở đầu trang */
    --header-height-scrolled: 70px; /* Chiều cao khi cuộn xuống */
    --speed-shrink: 0.4s;           /* Tốc độ thu nhỏ (Scroll Down) */
    --speed-expand: 0.1s;           /* Tốc độ bung ra (Scroll Up - Fix lỗi hở) */

    --header-scrolled-bg: #ffffff;
    --header-scrolled-text: #2C3338;
    --header-scrolled-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --text-main: #5f676d;

    --primary-rgba: rgba(0,115,185,0.95);
    --tooltip-bg: rgba(10, 61, 98, 0.95);
    --tooltip-border-c--tooltip-bgolor: rgba(255, 255, 255, 0.1);
    --text-color: #5f676d;
    --primary-color: #0073B9;
    --secondary-color: #113163;
    --light-bg: #f8f9fa;
    --hsafe-primary: #0ea5e9;
}
/*Start for scroll*/
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.35);   /* Màu sky/blue của bạn */
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.6);
}
body, html {
    overflow-y: overlay;
}
/*End for scroll*/
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.text-main {
    color: var(--text-color);
}
.text-justify {
    text-align: justify;
}
.banner-sm {
    position: relative;
    height: 245px;
    background-image: url('/assets/hsafe/images/background/bg.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.banner-sm::after {
    content: "";
    position: absolute;
    top: 50%; /* Căn giữa theo phương dọc */
    transform: translateY(-50%);
    right: 0;
    width: 20%;
    height: 70%; /* Nên đặt một height cụ thể hoặc dùng aspect-ratio để ảnh không bị méo */
    background-image: url('/assets/hsafe/images/background/helmet.png');
    background-repeat: no-repeat;
    background-position: center right; /* Quan trọng: Giữ ảnh luôn ở giữa khung của nó */
    background-size: contain;    /* Chuyển từ cover sang contain để thấy toàn bộ icon nếu muốn */
    opacity: 0.7;
    z-index: 4;
}
.banner-sm::before {
    content: "";
    position: absolute;
    top: 50%; /* Căn giữa theo phương dọc */
    transform: translateY(-50%); /* Kết hợp scaleX để lật và translateY để căn giữa */
    left: 0;
    width: 20%;
    height: 100%;
    background-image: url('/assets/hsafe/images/background/anchor_pole.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 0.7;
    z-index: 4;
}
.blobs-overlay-sm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/hsafe/images/background/blobs_small.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.3;
    z-index: 5;
}
.banner-sm .container {
    position: relative;
    z-index: 2;
}
.section-title {
    font-weight: 700;
    color: #222;
    margin-bottom: 2rem;
}
.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.benefit-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    height: 100%;
}
.img-placeholder {
    background-color: #e9ecef;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-style: italic;
    color: #6c757d;
}
.workflow-step {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}
.workflow-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
@media (min-width: 992px) {
    .workflow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -20%;
        width: 40%;
        height: 2px;
        background: var(--primary-color);
        opacity: 0.5;
        z-index: -1;
    }
}
/* Style cho ul trong benefit-card */
.benefit-card ul {
    list-style-type: none; /* Bỏ bullet mặc định */
    padding-left: 0; /* Bỏ khoảng cách trái */
    margin-top: 1rem;
}
.benefit-card ul li {
    position: relative;
    padding-left: 1.5rem; /* Tạo khoảng cách cho icon */
    margin-bottom: 0.5rem; /* Khoảng cách giữa các li */
    font-size: 1rem;
    line-height: 1.6;
    color: var(secondary-color);
}
.benefit-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 7 Free";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
}
.benefit-card ul li:last-child {
    margin-bottom: 0; /* Bỏ khoảng cách dưới li cuối */
}
.btn-contact {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 700;
    background: var(--hsafe-primary);
    border: none;
    color: white;
    transition: all 0.3s;
}
.btn-contact:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}
