html, body {
    margin: 0;
    height: 100%;
}
* {
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}
.icon-filled {
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.lexend-regular {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    height: 100%;
    display: flex;
    flex-direction:column;
    
}
.bg {
    height: 75%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("img/Nasi-Goreng-Fried-Rice.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    transition: background-position 0.2s ease-in-out;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 40%;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.container {
    padding: 2px 16px;
}

.main {
    text-align: center;
}
.sec-spotlight {
    background-color: #ffc956;
    padding: 20px;
    flex-basis: 25%;
}
.content {
    width: 80%;
    margin: auto;
    text-align: center;
    margin-bottom: 50px;
}
.content > h1 {
    margin-top: 10px;
    margin-bottom: 10px;
}
.subhead {
    margin-top: 0;
}

.sec-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.rate-card {
    padding: 30px;
    box-shadow: 0 0 4px gray;
    width: 400px;
    display: inline-block;
    margin: 18px;
    border-radius: 7px;
    word-wrap: break-word;
}

.quote {
    border-left: 8px solid purple;
    text-align: left;
    padding: 25px;
    background-color: #fbdfff;
    border-radius: 4px;
}
.main {
    margin-top: 40px;
}

.news-card {
    display: flex;
    box-shadow: 0 0 4px gray;
    cursor: pointer;
}
.news-card > .text {
    padding: 15px;
    text-align: left;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card > img {
    flex-basis: 45%;
    object-fit: cover;
    flex-shrink: 3
}
.news-card > .text {
    flex-basis: 55%;
}

.news-card > .text > button {
    bottom: 5px;
    right: 0;
}

.button-outlined {
    background: none;
    border: 2px solid #ffc956;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 20px;
    font-size: 15px;
    transition: background-color 0.2s;
}
.button-outlined:hover {
    background-color: #f1c40f;
    transition: background-color 0.2s;
}

.button-filled {
    background-color: #ffc956;
    border: 2px solid #ffc956;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 20px;
    font-size: 15px;
    transition: background-color 0.2s;
}
.button-filled:hover {
    background-color: white;
    border: 2px solid #ffc956;
    transition: background-color 0.2s;
}

button {
    cursor: pointer;
}

.button-gallery {
    width: 90%;
    color: white;
    border-color: white;
}
.button-gallery:hover {
    background-color: #2a2a2a;
}

.maps {
    width: 80%;
}

.darker {
    background-color: #f0f0f0;
    padding: 12px;
    margin-bottom: 40px;
}
.why-card {
    padding: 12px;
    display: inline-block;
    margin: 10px;
    background-color: white;
    border: 2px solid #ffc956;
    border-radius: 6px;
}

.black {
    background-color: black;
    padding: 24px;
    color: white;
    margin-bottom: 50px;
}

.top-gallery {
    object-fit: cover;
    margin: 12px;
    width: 71%;
}

.form-content {
    text-align: left;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 8px lightgray;
}
.field {
    width: 100%;
    padding: 12px;
    display: block;
}


/* --- BLOK MEDIA QUERY LAMA DIGANTI DENGAN YANG BARU INI --- */
@media only screen and (max-width: 768px) {
    .news-card {
        display: flex;
        flex-direction: column;
        box-shadow: 0 0 4px gray;
    }
    .news-card > img {
        width: 100%;
        object-fit: cover;
    }
    .rate-card {
        width: 90%;
    }
    .maps {
        width: 95%;
    }

    /* Penyesuaian untuk gallery di mobile */
    .top-gallery {
        width: 90%;
        max-width: none;
    }
    
    /* Penyesuaian untuk form di mobile */
    .form-content {
        width: 90%;
    }

    /* Memastikan footer juga tersusun rapi di mobile */
    footer {
        flex-direction: column;
        text-align: center;
    }
}


/* Tampilan dekstop */
@media only screen and (min-width: 600px) {
    .button-gallery {
        width: 85%;
    }
    .top-gallery {
        object-fit: cover;
        margin: 12px;
        max-width: 300px;
    }
    .form-content {
        width: 50%;
    }
    footer {
        flex-direction: row;
    }
}

/* firefox patch */
@supports (-moz-appearance:none) {
    
}