.mg-section {
    background: #fff;
    padding: 60px 0;
}

.mg-wrapper {
    max-width: 1080px; /* 3 cards + gaps */
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
}
/* .mg-scroll {
    display: flex;
    gap: 30px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
} */
.mg-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;   /* global */
}

.mg-scroll::-webkit-scrollbar {
    display: none;
}


/* .mg-card {
    flex: 0 0 340px;  
    width: 340px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
} */
.mg-card {
    flex: 0 0 340px;
    width: 340px;
    scroll-snap-align: start;        /* global */
}

.mg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.mg-card img {
    width: 100%;
    height: 393px;
    object-fit: cover;
    border-radius: 4px;
}

.mg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #e30613;
    background: #ffffff;
    color: #e30613;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hover Effect */
.mg-arrow:hover {
    background: #e30613;
    color: #ffffff;
}

/* Position */
.mg-arrow.left {
    left: -30px;
}

.mg-arrow.right {
    right: -30px;
}

/* ================================
   RESPONSIVE FIX
================================ */

/* Tablet */
@media (max-width: 992px) {
    .mg-wrapper {
        max-width: 700px;
    }

    .mg-card {
        flex: 0 0 300px;
        width: 300px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .mg-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }

    .mg-scroll {
        gap: 20px;
        overflow: hidden;
    }

    .mg-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .mg-card img {
        height: 350px;
    }

    /* Keep arrows inside on mobile */
     .mg-arrow.left {
        left: 0px;
    }

    .mg-arrow.right {
        right: 0px;
    } 
	
}
@media (max-width: 576px) {

    .mg-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .mg-scroll {
        gap: 0;          /* important */
        padding: 0;      /* remove side padding */
    }

    .mg-card {
        flex: 0 0 100%;
        width: 100%;
    }



    .mg-arrow.left {
        left: 10px;
    }

    .mg-arrow.right {
        right: 10px;
    }
}