/* ==========================================================================
   B-ALERT TEMPLATE PART: PROCESS SECTION
   ========================================================================== */

/* 1. SECTION WRAPPER */
.full-home-process-section {
    background-color: var(--color-deep-navy, #071629);
    /* Nền nhận diện sâu: Quy trình */
    padding: 112px 32px !important;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .full-home-process-section {
        padding: 72px 24px !important;
    }
}

@media (max-width: 767px) {
    .full-home-process-section {
        padding: 32px 16px !important;
    }

    .home-process-header {
        margin-bottom: 24px !important;
    }
}

/* 2. HEADER & TYPOGRAPHY */
.home-process-header {
    text-align: center;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.process-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--color-stainless-steel);
    font-size: 14px;
}

.process-title {
    text-transform: uppercase;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 20px;
    color: var(--color-information-white);
}

.process-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-brushed-chrome);
    /* Xóa màu hover vàng */
}

/* 3. GRID & LAYOUT */
.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    /* Giữ nguyên gap 15px */

    margin: 0 auto;
    box-sizing: border-box;
}

/* 4. CARDS / ITEMS */
.process-item {
    --card-pt: 30px;
    --icon-size: 60px;

    position: relative;
    background-color: var(--color-obsidian-black, #02050A) !important;
    border: 1px solid var(--ba-border) !important;
    border-radius: 0 !important;
    /* Triệt tiêu góc bo tròn */
    padding: var(--card-pt) 15px 30px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Trạng thái hover / active */
.process-item:hover,
.process-item.active {
    border-color: var(--color-brushed-chrome) !important;
    box-shadow: 0 0 24px var(--ba-chrome-glow) !important;
}

.process-item:hover .process-item-icon {
    color: var(--color-brushed-chrome);
    /* Thay màu hover vàng bằng kim loại */
    border-color: var(--color-brushed-chrome) !important;
}

/* Dotted line between items (desktop only) */
@media (min-width: 1200px) {
    .process-item:not(:last-child)::after {
        content: '';
        position: absolute;
        /* Căn chính giữa icon bằng biến CSS */
        top: 110px;
        /* Căn giữa thủ công do grid rendering */
        right: -15px;
        /* Kết nối tới mép trái của thẻ kế tiếp */
        width: 15px;
        /* Kéo dài qua khoảng gap 15px */
        border-top: 2px dashed #B8B8B8;
        /* Stainless Steel */
        transform: translateY(-50%);
        opacity: 0.4;
        z-index: 1;
    }
}

/* ICON KHỐI */
.process-item-icon {
    position: relative;
    z-index: 2;
    width: var(--icon-size) !important;
    height: var(--icon-size) !important;
    margin: 0 auto 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-carbon-black);
    border: 1px solid var(--ba-border) !important;
    border-radius: 0 !important;
    /* Không dùng icon tròn */
    color: var(--color-information-white);
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.process-item-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Đảm bảo icon màu trắng */
}

/* 5. ITEM CONTENT */
.process-item-content {
    width: 100%;
}

.process-item-title {
    margin-bottom: 12px;
    margin-top: 0;
    color: var(--color-information-white);
    font-size: 16px;
}

.process-item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-brushed-chrome);
}

/* 6. RESPONSIVE */
@media (max-width: 1199px) and (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 15px;
    }

    .process-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -15px;
        width: 15px;
        border-top: 2px dashed #B8B8B8;
        transform: translateY(-50%);
        opacity: 0.4;
        z-index: 1;
    }

    .process-item:nth-child(3n)::after {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .process-title {
        font-size: 24px;
    }

    .process-item {
        --card-pt: 22px;
        --icon-size: 46px;
        padding: var(--card-pt) 10px 18px !important;
    }

    .process-item-icon {
        font-size: 16px;
        margin-bottom: 12px !important;
    }

    .process-item-icon img {
        max-width: 24px;
        max-height: 24px;
    }

    .process-item-title {
        font-size: 14.5px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .process-item-desc {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .process-item::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .process-item {
        --card-pt: 18px;
        --icon-size: 40px;
        padding: var(--card-pt) 8px 14px !important;
    }

    .process-item-icon {
        font-size: 15px;
        margin-bottom: 10px !important;
    }

    .process-item-icon img {
        max-width: 20px;
        max-height: 20px;
    }

    .process-item-title {
        font-size: 13.5px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    .process-item-desc {
        font-size: 11.5px;
        line-height: 1.4;
    }
}
