/* =========================================================
   ACP - INTEGRATED MINING PROCESS
   ========================================================= */

/* =========================================================
   SECTION
   ========================================================= */

.mining-process-section {
    padding: 70px 0 80px;
    background: #fff;
}

.mining-process-section .section-title {
    text-align: center;
    margin-bottom: 55px;
}

.mining-process-section .section-title h2 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.mining-process-section .section-title p {
    margin: 0;
    font-size: 15px;
    color: #777;
}


/* =========================================================
   PROCESS FLOW
   ========================================================= */

.mining-process-flow {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}


/* =========================================================
   PROCESS ROW
   ========================================================= */

.mining-process-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    position: relative;
}


/* =========================================================
   PROCESS CARD
   ========================================================= */

.mining-process-card {
    width: 300px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 0 300px;
}

.mining-process-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   IMAGE
   ========================================================= */

.mining-process-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #f3f3f3;
}

.mining-process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mining-process-card:hover .mining-process-image img {
    transform: scale(1.04);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.mining-process-body {
    padding: 20px 22px 22px;
    text-align: left;
}


/* =========================================================
   NUMBER
   ========================================================= */

.mining-process-number {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    background: #89371d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}


/* =========================================================
   TITLE
   ========================================================= */

.mining-process-body h3 {
    margin: 3px 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #333;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.mining-process-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
}


/* =========================================================
   HORIZONTAL ARROW
   ========================================================= */

.mining-process-arrow {
    flex: 0 0 auto;
    font-size: 28px;
    color: #89371d;
}


/* =========================================================
   SECOND ROW
   06 <- 05 <- 04
   ========================================================= */

.mining-process-row.reverse {
    margin-top: 45px;
    flex-direction: row-reverse;
}


/* =========================================================
   VERTICAL CONNECTORS
   ========================================================= */

.mining-process-connector {
    height: 45px;
    display: flex;
    align-items: center;
    color: #89371d;
    font-size: 28px;
}


/*
 * Row 1 connector
 *
 * Positioned at the center of card 03.
 */
.connector-after-row-1 {
    justify-content: flex-end;
    padding-right: 138px;
}


/*
 * Row 2 connector
 *
 * Positioned at the center of card 06.
 */
.connector-after-row-2 {
    justify-content: flex-start;
    padding-left: 138px;
}


/* =========================================================
   FINAL PROCESS
   07
   ========================================================= */

.mining-process-final {
    display: flex;
    justify-content: flex-start;
    margin-top: 45px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .mining-process-row {
        gap: 20px;
    }

    .mining-process-card {
        width: 280px;
        flex: 0 0 280px;
    }

    .mining-process-arrow {
        font-size: 22px;
    }

    /*
     * Recalculate connector positions for
     * the smaller 280px cards.
     */
    .connector-after-row-1 {
        padding-right: 125px;
    }

    .connector-after-row-2 {
        padding-left: 125px;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .mining-process-section {
        padding: 50px 15px 60px;
    }

    .mining-process-section .section-title {
        margin-bottom: 40px;
    }

    .mining-process-section .section-title h2 {
        font-size: 27px;
    }


    /* =====================================================
       FLOW
       ===================================================== */

    .mining-process-flow {
        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       ALL ROWS - FORCE NORMAL VERTICAL DIRECTION
       ===================================================== */

    .mining-process-row,
    .mining-process-row.reverse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        gap: 0;
        margin-top: 0;
    }


    /* =====================================================
       CARD
       ===================================================== */

    .mining-process-card {
        width: 100%;
        max-width: 420px;
        flex: 0 0 auto;
    }


    /* =====================================================
       IMAGE
       ===================================================== */

    .mining-process-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .mining-process-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* =====================================================
       BODY
       ===================================================== */

    .mining-process-body {
        padding: 18px 20px 20px;
    }

    .mining-process-body h3 {
        font-size: 18px;
    }

    .mining-process-body p {
        font-size: 13px;
        line-height: 1.6;
    }


    /* =====================================================
       ALL ARROWS
       ===================================================== */

    .mining-process-arrow {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 100%;
        height: 45px;

        margin: 0;

        font-size: 24px;
        color: #89371d;

        /*
         * Override desktop row-reverse arrow direction.
         * Every arrow on mobile must point DOWN.
         */
        transform: rotate(90deg) !important;
    }


    /* =====================================================
       DESKTOP CONNECTORS
       ===================================================== */

    .mining-process-connector {
        display: none !important;
    }


    /* =====================================================
       FINAL CARD
       ===================================================== */

    .mining-process-final {
        display: flex;

        justify-content: center;
        align-items: center;

        width: 100%;

        margin-top: 0;
        padding: 0;
    }
/* =========================================================
   MOBILE - FORCE ALL PROCESS ARROWS DOWN
   ========================================================= */

@media (max-width: 767px) {

    /* Semua row menjadi vertikal */
    .mining-process-row,
    .mining-process-row.reverse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin-top: 0 !important;
    }

    /* Sembunyikan icon FontAwesome asli */
    .mining-process-arrow i {
        display: none !important;
    }

    /* Buat panah baru menggunakan CSS */
    .mining-process-arrow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 45px !important;

        margin: 0 !important;
        padding: 0 !important;

        position: relative !important;
        transform: none !important;

        color: #89371d !important;
    }

    .mining-process-arrow::after {
        content: "↓";

        display: block;

        font-size: 28px;
        line-height: 1;

        color: #89371d;
        font-weight: 700;
    }

    /* Connector desktop tetap hilang di mobile */
    .mining-process-connector {
        display: none !important;
    }

    /* Final card */
    .mining-process-final {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}
/* =========================================================
   MOBILE - CONNECTORS BETWEEN ROWS
   ========================================================= */

@media (max-width: 767px) {

    .mining-process-connector {
        display: flex !important;

        width: 100% !important;
        height: 45px !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #89371d !important;
        font-size: 28px !important;
    }

    .mining-process-connector i {
        display: none !important;
    }

    .mining-process-connector::after {
        content: "↓";

        display: block;

        font-size: 28px;
        line-height: 1;

        color: #89371d;
        font-weight: 700;
    }

}
