* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ebebeb;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
}


.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav>li {
    position: relative;
}

.nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-menu {
    width: 250px;
    height: 500px;
    overflow: auto;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: white;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
}

.dropdown-menu a:hover {
    background-color: #3f3f3f;
    color: white;
}


.dropdown-menu li a {
    padding: 10px;
    display: block;
}

.dropdown-menu a {
    border-bottom: 1px solid #ccc;
    font-size: smaller;
    border-bottom: 1px solid #ccc;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


.sidebar {
    width: 100%;
    padding: 20px 60px;
    /* background: linear-gradient(to right, #1cb5c0, skyblue); */
    background: linear-gradient(to left, #858585, #3b3b3b);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.side {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
}




.tombol>nav>ul>li>a {
    text-align: center;
    background-color: #ffffff;
    width: 100px;
    height: 35px;
    padding: 0 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-decoration: none;
    color: rgb(48, 48, 48);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


.tombol>nav>ul>li>a:hover {
    transform: scale(1.1);
    /* background-color: #d7d7d7; */
    background-color: #3f3f3f;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    padding: 20px;
    color: #3f3f3f;
}

.heading {
    padding: 20px 40px 70px 40px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: large;
    /* box-shadow: 4px 0px 4px rgba(0, 0, 0, 0.4); */
}



.head {
    margin: auto;
    text-align: center;
    color: #3b3b3b;
    font-weight: 700;
    font-size: 40px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

li {
    list-style: none;

}

.grid-content {
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.item {

    /* background-color: aqua; */
    text-align: center;
    height: auto;
    padding: 10px;
}


.list {
    background: linear-gradient(to bottom, #ffffff, #d3d3d3);
    margin: auto;
    padding: 10px 30px 30px 30px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

}


h4 {
    padding: 10px;
    margin: 0;
    font-size: 15px;

}

a {
    text-decoration: none;
    color: #3f3f3f;
    font-size: 1.5rem;

}


.grid-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
}

img:hover {
    opacity: 1.0;
}


.animate__animated .animate__fadeInDown {
    animation-duration: 2s;
}

.item .animate__animated .animate__fadeInUp+ {
    animation-duration: 2s;
}


footer {
    background: #343434;
    color: white;
    padding: 15px 0;
    width: 100%;
}

footer img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.f-content {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: auto;
    gap: 20px;
}



.menu-toggle {
    display: none;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1001;
    background: #33333300;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mobile-sidebar {
    display: none;
}


@media (max-width: 1150px) {
    .list {
        padding: 10px 20px 20px 20px;
    }

    .sidebar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .grid-content {
        gap: 30px;
        padding-top: 0;
        grid-template-columns: 1fr 1fr;
    }

    .grid-content img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .list>h4 {
        font-size: 18px;
    }

    h2 {
        font-size: 30px;
        padding: 10px;
    }
}

@media (max-width: 950px) {
    .list {
        height: 520px;
        margin: auto;
        padding: 10px 20px 20px 20px;
    }

    .grid-content img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

    .list>h4 {
        font-size: 15px;
    }


}


@media (max-width: 690px) {

    .tombol {
        display: none;
    }

    .logo-f {
        width: 30px;
    }

    .f-content {
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin: auto;
        width: auto;
        height: 20px;
    }

    .f-content p {
        font-size: 10px;
    }

    .tombol {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        display: none;
    }

    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 220px;
        height: 100%;
        background: linear-gradient(to top, #7d7d7d, #3b3b3b);
        padding: 2rem 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

    .mobile-sidebar ul {
        list-style: none;
        margin-top: 40px;
        padding: 0;
    }

    .mobile-sidebar li {
        margin-bottom: 1rem;
    }

    .mobile-sidebar a {
        display: flex;
        /* justify-content: center; */
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid #ccc;
        font-weight: 600;
        /* color: #242424; */
        color: #e3e3e3;
        text-decoration: none;
        font-size: 15px;
        padding: 10px;
        font-family: Arial, Helvetica, sans-serif;
    }

    .mobile-sidebar a:hover {
        background-color: #4f4f4f;
        color: #ededed;
    }

    .menu-toggle {
        display: block;
    }

    h4 {
        font-size: 14px;
    }


}



@media (max-width: 660px) {

    h2 {
        font-size: 1.5rem;
        padding: 10px;
    }

    .grid-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .side {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 20px;
    }
}



@media (max-width: 502px) {
    .tombol {
        display: none;
    }


    h2 {
        padding: 5px;
    }

    .list {
        width: 300px;
        padding: 10px 20px 20px 20px;
        height: 440px;
    }

    .grid-content img {
        width: 100%;
        height: 350px;
    }


}

@media (max-width: 380px) {

    .heading {
        padding: 20px;
    }

}