/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap'); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', Georgia, 'Times New Roman', Times, serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background: #ebfff1;
}

header {
    margin-top: -415px;
    width: 100%;
    background: rgba(255, 255, 255, 0.10);
    /* Warna putih dengan transparansi */
    color: #050505;
    display: flex;
    align-items: center;
    /* Tambahkan padding untuk ruang */
    backdrop-filter: blur(10px);
    /* Efek blur kaca */
    -webkit-backdrop-filter: blur(10px);
    /* Dukungan untuk Safari */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Tambahkan bayangan lembut */
    position: fixed;
    z-index: 10;
}


.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    width: 150px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Gaya untuk daftar navbar */
nav ul.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

/* Gaya untuk item navbar */
nav ul.nav-list li {
    margin: 0;
    padding: 0;
}

/* Gaya untuk tautan */
nav ul.nav-list li a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    font-family: 'poppins', 'Arial', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav ul.nav-list li a:hover {
    background-color: #35bd82;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Gaya untuk hamburger */
.menu-toggle {
    display: none;
    /* Default: disembunyikan untuk layar besar */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    z-index: 11;
}

.menu-toggle .bar {
    height: 4px;
    width: 100%;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.5s ease;
}

/* Animasi perubahan ke ikon "X" */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    /* Sembunyikan garis tengah */
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hover pada keseluruhan ikon hamburger */
.menu-toggle:hover {
    transform: scale(1.1);
    /* Perbesar sedikit saat hover */
    transition: transform 0.3s ease;
    /* Animasi halus */
}

/* Hover pada setiap garis */
.menu-toggle .bar {
    background-color: #333;
    /* Warna default */
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Animasi warna dan transformasi */
}

.menu-toggle:hover .bar {
    background-color: #000000;
    /* Ubah warna garis saat hover */
}

/* Efek unik pada garis tertentu saat hover */
.menu-toggle:hover .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    /* Geser garis pertama ke atas sedikit */
}

.menu-toggle:hover .bar:nth-child(2) {
    opacity: 0;
    display: none;
    /* Sembunyikan garis tengah */
}

.menu-toggle:hover .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    /* Geser garis terakhir ke bawah sedikit */
}

/* Responsif: tampilkan hamburger di layar kecil */
@media (max-width: 800px) {
    .menu-toggle {
        display: flex;
    }

    nav ul.nav-list {
        display: none;
        /* Sembunyikan menu secara default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #f8f9fa;
        /* Sesuai style Anda */
        border: 1px solid #ddd;
        border-radius: 10px;
        width: 200px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.nav-list.show {
        display: flex;
        /* Tampilkan menu saat diaktifkan */
    }

    nav ul.nav-list li {
        margin: 10px 0;
        /* Spasi antar item */
    }
}


.hero {
    width: 100%;
    height: 500px;
    /* Adjust to your desired height */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(4, 4, 4, 0.40)), url(../Asset/pexels-pixabay-51947.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 0;
    /* Remove padding to avoid height increase */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero h2 {
    font-size: 36px;
    margin-top: 30px;
}

.hero .logo1 {
    margin-top: 20px;
    width: 250px;
}

.search-box {
    max-width: 500px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;

}

.search-box input {
    width: 1000px;
    padding: 10px;
    outline: none;
    border: 0;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    margin-top: 20px;
}

.search-box button {
    padding: 10px 20px;
    outline: none;
    border: 0;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background: #000000;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.search-box button:hover {
    background: linear-gradient(45deg, #35bd82, #198556);
    /* Gradasi warna */
    color: #000;
    transform: scale(1.1);
    /* Sedikit perbesar tombol */
    box-shadow: 0 4px 15px rgba(53, 189, 130, 0.778);
    /* Tambahkan bayangan */
}


/* about us */

.about-us {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-us .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    flex-direction: row;
    align-items: flex-start;
    max-width: fit-content;
}

/* Content styling */
.about-us .content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-us .content p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Image styling */
.about-us .image {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}

.about-us .image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/*button pdf*/
.cta-button {
            text-align: center;
            margin-top: 30px;
            margin-bottom: 15px;
            width:250px;
            align-items: center;
        }
        

        .cta-button a {
            padding: 15px 30px;
            font-size: 18px;
            color: #fff;
            background-color: #35bd82; /* Warna hijau */
            transition: background-color 0.3s ease;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none; /* Menghilangkan garis bawah dari link */
        }

        .cta-button a i {
            margin-right: 10px;
            font-size: 24px;
        }

        .cta-button a:hover {
            background-color: #128C7E; /* Warna hijau gelap */
        }




/* Responsive styles */
@media (max-width: 1200px) {
    .about-us .container {
        flex-direction: column;
        align-items: center;
    }

    .about-us .content h1 {
        font-size: 2em;
    }


    .about-us .content p {
        font-size: 1em;


    }
}

/* about us */

/* ...advantages... */
.advantages {
    padding: 50px 0;
}

.advantages h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.advantage-sect {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    column-gap: 20px;
    row-gap: 30px;
}

.adva-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin: 10px;
    transition: transform 0.2s;
    height: 100%;
}


.adva-card img {
    width: 100%;
    height: auto;
}

.adva-card p {
    font-size: 16px;
    line-height: 1.5;
    padding: 15px;
    min-height: 80px;
    text-align: center;
}

.adva-card h2 {
    margin: 15px 0;
    font-size: 20px;
    text-align: center;
    min-height: 50px;
}

#adva1 h2 {
    margin-top: -32px;
}

#adva3 h2 {
    margin-top: -9px;
}

#adva4 h2 {
    margin-top: -30px;
}

/* advantages */

/* ...article... */
.articles {
    padding: 50px 0;
}

.articles h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.article-sect {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;

}

.article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 15px;
    position: relative;
    /* Pastikan posisi relatif hanya di elemen ini */
}

.article {
    position: relative;
    width: 100%;
    /* Sesuaikan dengan lebar card */
    height: 200px;
    overflow: hidden;
    /* Hanya elemen ini yang menggunakan overflow */
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Agar gambar proporsional */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Awalnya setengah foto */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
    /* Animasi hover */
}

.article-card:hover .overlay {
    height: 100%;
    /* Penuhi foto saat hover */
}

.article-title {
    text-align: center;
    font-size: 1.2rem;
    margin: 0;
}



/* article */

/*.............Resep............*/

.recipes {
    padding: 50px 0;
}

.recipes h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.recipe-section {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    /* Empat kolom */
    column-gap: 20px;
    row-gap: 30px;
}

@media (max-width: 1200px) {
    .recipe-section {
        grid-template-columns: repeat(3, 1fr);
        /* Tiga kolom pada layar lebih kecil */
    }

    .article-title {
        font-size: 1.2rem;
    }

}

@media (max-width: 800px) {
    .article-sect {
        grid-template-columns: repeat(2, 1fr);

    }

    .article-title {
        font-size: 1.0rem;
    }


}

@media (max-width: 600px) {
    .recipe-section {
        grid-template-columns: repeat(2, 1fr);
        /* Dua kolom pada layar lebih kecil */
    }

    .advantage-sect {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        max-width: 250px !important;
    }

    .search-box input {
        width: 100%;
    }

    #adva1 {
        margin-top: -2px;
    }

    #adva4 {
        margin-top: -15px;
    }

    .article-sect {
        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 400px) {
    .recipe-section {
        grid-template-columns: 1 fr;
        /* Satu kolom pada layar kecil */
    }
}

.recipe-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 15px;
    transition: transform 0.2s;
}

.recipe-card:hover {
    transform: scale(1.05);
}

.recipe-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.recipe-card h2 {
    margin: 15px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.recipe-card p {
    font-family: 'poppins', 'Roboto', sans-serif;
    /* Menggunakan font Roboto */
    font-size: 16px;
    /* Ukuran font lebih kecil */
    line-height: 1.5;
    color: #555;
    padding: 15px;
}

.recipe-card a {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: rgba(27, 24, 24, 0.9);
    color: #fff;
    padding: 15px 0;
    font-weight: bold;
    transition: background 0.3s ease;
    border-top: 1px solid #333;
}

.recipe-card a:hover {
    background-color: #0056b3;
    z-index: 1;
}



footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.recipe-card p {
    font-family: 'poppins', 'Roboto', sans-serif;
    /* Menggunakan font Roboto */
    font-size: 16px;
    /* Ukuran font lebih kecil */
    line-height: 1.5;
    color: #555;
    padding: 15px;
}

footer .col {
    flex-basis: 30%;
    /* Setiap kolom akan menggunakan 30% dari lebar kontainer */
    max-width: 30%;
    /* Batas maksimum lebar kolom */
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo {
    margin-bottom: 30px;
    width: 150px;
    /* Menentukan ukuran logo */
}

footer h4 {
    font-size: 16px;
    /* Ukuran font lebih besar untuk heading */
    margin-bottom: 15px;
    color: #222;
}

footer p,
footer a {
    font-size: 14px;
    margin: 0 0 10px;
    color: #555;
    line-height: 1.6;
}

footer a {
    text-decoration: none;
    color: #088178;
    /* Warna tautan */
    transition: color 0.3s ease;
}

footer a:hover {
    color: #555;
    /* Warna berubah saat hover */
}

footer p strong {
    color: #222;
    /* Warna teks tebal untuk detail kontak */
}

.copyright {
    background: #333;
    padding: 20px 0;
    color: #fff;
    text-align: center;
}





/* ****************KATALOG RESEP**************** */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.recipe-detail {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s;
}

.recipe-detail:hover {
    transform: scale(1.05);
}

.recipe-image {
    width: 100%;
    border-radius: 5px;
}

h2 {
    font-size: 20px;
    margin: 10px 0;
}

h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

ul {
    margin: 10px 0;
    padding-left: 20px;
}

ol {
    margin: 10px 0;
    padding-left: 20px;
}

@media (max-width: 1024px) {
    .recipe-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recipe-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recipe-details {
        grid-template-columns: 1fr;
    }
}

.center-container {
    display: flex;
    justify-content: center; /* Untuk memusatkan secara horizontal */
    align-items: center; /* Untuk memusatkan secara vertikal */
    height: 100vh; /* Tinggi penuh layar */
}


