/* ==========================================================================
   B-ALERT TEMPLATE PART: SOLUTION SECTION
   ========================================================================== */

/* 1. SECTION WRAPPER */
.full-home-solution-section,
.full-datlich-process-solution {
    background-color: var(--color-navy-surface);
    /* Nền Blueprint / Kỹ thuật */
    padding: 112px 32px !important;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    /* Chống cuộn ngang */
}

@media (max-width: 1024px) {

    .full-home-solution-section,
    .full-datlich-process-solution {
        padding: 72px 24px !important;
    }
}

@media (max-width: 767px) {

    .full-home-solution-section,
    .full-datlich-process-solution {
        padding: 32px 16px !important;
    }

    .home-solution-header {
        margin-bottom: 24px !important;
    }
}

/* 2. HEADER & TYPOGRAPHY */
.home-solution-header {
    text-align: center;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.solution-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--color-stainless-steel);
    font-size: 14px;
}

.solution-title {
    text-transform: uppercase;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 20px;
    color: var(--color-information-white);
}

.solution-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-brushed-chrome);
    /* Xóa bỏ hover color vàng */
}

/* 3. GRID & LAYOUT */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1363px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* 4. CARDS / ITEMS */
.solution-item {
    position: relative;
    background-color: var(--panel-graphite) !important;
    border: 1px solid var(--ba-border) !important;
    border-radius: 0 !important;
    /* Ép vuông góc 100% */
    padding: 40px 24px;
    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 */
.solution-item:hover,
.solution-item.active {
    border-color: var(--color-brushed-chrome) !important;
    box-shadow: 0 0 24px var(--ba-chrome-glow) !important;
}

/* Dotted line with arrow between items (desktop only) */
@media (min-width: 1025px) {
    .solution-item {
        --card-pt: 40px;
        --icon-size: 80px;
        padding-top: var(--card-pt) !important;
    }

    .solution-item-icon {
        height: var(--icon-size) !important;
        margin-top: 0 !important;
    }

    .solution-item:not(:last-child)::after {
        content: '\f105';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 120px;
        right: -27px;
        color: var(--color-steel-silver);
        font-size: 21px;
        transform: translate(50%, -50%);
        opacity: 0.7;
        z-index: 2;
    }

    .solution-item:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 120px;
        /* Căn giữa thủ công */
        right: -32px;
        width: 32px;
        border-top: 2px dashed var(--color-steel-silver);
        transform: translateY(-50%);
        opacity: 0.4;
        z-index: 1;
    }
}

/* ICON KHỐI */
.solution-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-color: var(--color-carbon-black);
    border: 1px solid var(--ba-border) !important;
    border-radius: 0 !important;
    /* Không dùng icon tròn */
}

.solution-item-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    /* Đảm bảo icon màu trắng */
}

/* 5. ITEM CONTENT */
.solution-item-content {
    width: 100%;
}

.solution-item-title {
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--color-information-white);
}

.solution-item-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-brushed-chrome);
}

/* 6. RESPONSIVE */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .solution-title {
        font-size: 24px;
    }

    .solution-item {
        padding: 24px 12px 20px;
    }

    .solution-item-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .solution-item-icon img {
        max-width: 26px;
        max-height: 26px;
    }

    .solution-item-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .solution-item-desc {
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .solution-item {
        padding: 20px 8px 16px;
    }

    .solution-item-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .solution-item-icon img {
        max-width: 22px;
        max-height: 22px;
    }

    .solution-item-title {
        font-size: 13.5px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .solution-item-desc {
        font-size: 12px;
        line-height: 1.4;
    }
}
