/* Responsive Fix untuk EduAll Template */

/* Pastikan container tidak fixed width di layar kecil */
@media (max-width: 767px) {

    .container,
    .container-fluid,
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Gambar / video jangan lebih besar dari layar */
img,
video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Hapus scroll horizontal akibat elemen overflow */
html,
body {
    overflow-x: hidden;
}

/* Perbaikan navbar di HP */
@media (max-width: 767px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        width: 100% !important;
        z-index: 9999;
        padding: 10px 20px;
    }

    .navbar-collapse a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
}

/* Slider / Hero Section agar ikut lebar layar */
@media (max-width: 767px) {

    .hero-slider,
    .hero-slider .slide,
    .hero-slider .slide img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Card / Box jangan fixed, biar stack ke bawah */
@media (max-width: 767px) {

    .card,
    .course-item,
    .feature-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
}
