.machine-kontainer {
    background: #f8f9fa;
}

.machine-section {
    padding: 36px 20px;
    max-width: 1100px;
    margin: auto;
}

h1.title {
    text-align: center;
    font-size: 36px;
}

.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 10px auto 60px;
    color: #666;
}

h2#popup-title {
    font-size: 24px;
}

/* ===================== */
/* ROW */
/* ===================== */
.machine-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 80px 0;
}

/* REVERSE */
.machine-row.reverse {
    flex-direction: row-reverse;
}

/* IMAGE */
.machine-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
}

/* TEXT */
.machine-text {
    flex: 1;
}

.machine-text h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.machine-text p {
    color: #555;
    margin-bottom: 20px;
}

/* BUTTON */
.btn-popup {
    padding: 12px 24px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-popup:hover {
    background: #000;
    color: #fff;
}

/* ===================== */
/* POPUP */
/* ===================== */
.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* POPUP BOX */
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 80%;
    max-height: 90vh; /* 🔥 FIX OVERFLOW */
    overflow-y: auto; /* 🔥 SCROLL DALAM */
    animation: fadeUp 0.4s ease;
    position: relative;
}

/* SCROLLBAR */
.popup-content::-webkit-scrollbar {
    width: 4px;
}
.popup-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* LIST */
.popup-content ul {
    padding-left: 18px;
    margin-top: 10px;
}

.popup-content li {
    margin-bottom: 6px;
}

/* BODY LAYOUT */
.popup-body {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* IMAGE */
.popup-image {
    flex: 1.2;
}

.popup-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
}

/* TEXT */
.popup-text {
    flex: 2;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
}

/* ===================== */
/* ANIMATION */
/* ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== */
/* RESPONSIVE MOBILE */
/* ===================== */
@media (max-width: 768px) {

    /* SECTION */
    .machine-row {
        flex-direction: column;
        margin: 50px 0;
    }

    .machine-row.reverse {
        flex-direction: column;
    }

    .machine-img img {
        max-width: 100%;
    }

    /* POPUP POSITION */
    .popup {
        align-items: flex-end; /* 🔥 bottom style */
    }

    /* POPUP BOX */
    .popup-content {
        width: 95%;
        max-height: 85vh;
        padding: 20px;
        border-radius: 20px 20px 0 0; /* 🔥 premium */
        animation: slideUp 0.3s ease;
    }

    /* LAYOUT */
    .popup-body {
        flex-direction: column; /* 🔥 gambar di atas */
    }

    /* IMAGE */
    .popup-image img {
        height: 180px;
    }

    /* TEXT */
    .popup-text h2 {
        font-size: 18px;
        margin-top: 10px;
    }

    .popup-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .popup-text ul {
        font-size: 14px;
    }
}

/* MOBILE ANIMATION */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}