*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


body{
    font-family:'Times New Roman', Times, serif;
    background:#F8FAF7;
    color:#2D3436;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/*للهيدر واللوجو*/

header{
    background:#FFFFFF;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:85px;
}

.logo{
    font-size:32px;
    font-weight:700;
    color:#5E8B7E;
    cursor:pointer;
}

.logo span{
    color:#F2C94C;
}


nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav a{
    text-decoration:none;
    color:#2D3436;
    font-weight:500;
    position:relative;
    transition:.5s;
}

nav a::after{
    position:absolute;
    left:0; 
    bottom:-6px;
    width:0;
    height:2px;
    background:#5E8B7E;
    transition:.5s;
}

nav a:hover{
    color:#5E8B7E;
}

nav a:hover::after{
    width:100%;
}





.hero{
    background:#EEF5EF;
    padding:90px 0;
}

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
}


.hero-text{
    flex:1;
}

.hero-text h1{
    font-size:60px;
    line-height:1.5;
    margin-bottom:20px;
}

.hero-text p{
    font-size:18px;
    color:#636E72;
    line-height:1.5;
    margin-bottom:35px;
}



.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    border-radius: 50px;
    width:100%;
    max-width:500px;
}




/*للسيرش بار*/

.search-section{
    padding:40px 0;
    background:#F8FAF7;
}

.search-box{
    width:100%;
    max-width:700px;
    margin:auto;
    display:flex;
    background:#fff;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:18px 25px;
    font-size:16px;
}

.search-btn{
    width:65px;
    border:none;
    background:#5E8B7E;
    color:white;
    transition:.3s;
}

.search-btn:hover{
    background:#4C7367;
}


/*للريسيبيز*/

.recipes{
    padding:50px 0;
}

.recipes-container{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.recipe-card{
    display:flex;
    align-items:center;
    gap:30px;
    background:#fff;
    padding:25px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.5s;
}

.recipe-card:hover{
    transform:translateY(-5px);
}

.recipe-card img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
}

.recipe-info{
    flex:1;
}

.recipe-info h3{
    margin-bottom:15px;
    font-size:28px;
}

.recipe-info p{
    margin-bottom:15px;
    line-height:1.5;
    color:#636E72;
}

.recipe-info a{
    text-decoration:none;
    color:#5E8B7E;
    font-weight:600;
    transition:.3s;
}

.recipe-info a:hover{
    color:#4C7367;
}

/*للفوتر*/

footer{
    background:#2D3436;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:50px;
}

footer p{
    font-size:16px;
    letter-spacing:.5px;
}

footer span{
    color:#F2C94C;
    font-weight:600;
}


/*الميديا كويري واجربها كذا مره علشان 50% من الريت عليها*/

@media (max-width: 992px){

    .recipe-card{
        flex-direction:column;
        text-align:center;
    }

    .recipe-card img{
        width:160px;
        height:160px;
    }

    .search-box{
        max-width:100%;
    }

}

@media (max-width:768px){

    header .container{
        flex-direction:column;
        justify-content:center;
        height:auto;
        padding:20px 0;
        gap:20px;
    }

    .logo{
        font-size:28px;
    }

    nav ul{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .search-section{
        padding:30px 15px;
    }

    .search-box{
        max-width:100%;
    }

    .search-box input{
        padding:15px 20px;
        font-size:15px;
    }

    .search-btn{
        width:55px;
    }

    .recipe-card{
        flex-direction:column;
        text-align:center;
        padding:20px;
        gap:20px;
    }

    .recipe-card img{
        width:140px;
        height:140px;
    }

    .recipe-info h3{
        font-size:24px;
    }

    .recipe-info p{
        font-size:15px;
        line-height:1.6;
    }

    footer{
        padding:18px;
    }

    footer p{
        font-size:14px;
    }

}


@media (max-width:480px){

    .container{
        width:95%;
    }

    .logo{
        font-size:24px;
    }

    nav ul{
        gap:12px;
    }

    .search-box input{
        font-size:14px;
        padding:12px 18px;
    }

    .search-btn{
        width:50px;
    }

    .recipe-card{
        padding:15px;
    }

    .recipe-card img{
        width:120px;
        height:120px;
    }

    .recipe-info h3{
        font-size:20px;
    }

    .recipe-info p{
        font-size:14px;
    }

    footer p{
        font-size:13px;
    }

}
