@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

a , li{
    list-style: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.hover-link{
    color: black;
    transition: .5s;
}

.hover-link:hover{
    color: rgba(228, 14, 14, 0.933);
}


ul{
    display: flex;
    gap: 20px;
    
}

p{
    font-family: 'Comfortaa', cursive;
    line-height: 1.4rem;
    color: rgba(0, 0, 0, 0.473);
}

.flex{
    display: flex;
    align-items: center;
}

.container{
    max-width: 1380px;
    margin-inline: auto;
    overflow: hidden;
}

nav a img{
    width: 250px;
    margin: 5px;
    max-width: 400px;
}

nav{
    background-color: rgb(248, 236, 236);
    box-shadow: 0 0 15px rgba(10, 9, 9, 0.539);
    position: fixed; 
    top: 0;
    right: 0;
    left: 0;
    z-index: 99;
}

.main-nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.search-bar{
    display: flex;
    gap: 10px;
    /* border: 2px solid black; */
    height: 35px;
}

.search-box{
    padding-inline: 15px;
    border-radius: 5px;
    border: none;
    border-width: 10px;
    font-size: 1rem;
    font-weight: 700;
    height: 100%;
    font-family: 'Comfortaa', cursive;
}

.search-btn{
    background-color: rgba(228, 14, 14, 0.933);
    color: white;
    border: none;
    padding-inline: 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    transition: .6s;
    
}

.search-btn:hover{
    color: rgba(228, 14, 14, 0.933);
    background-color: rgb(248, 236, 236);
    border: rgba(228, 14, 14, 0.933) 2px solid;
}

main{
    padding-block: 20px;
    margin-top: 80px;
}

.cards-container{
    flex-wrap: wrap;
    /* justify-content: space-between; */
    align-items: start;
    row-gap: 20px;
    column-gap: 40px;
    padding-block: 10px;
    padding-inline: 100px;
}

.card{
    width: 360px;
    min-height: 450px;
    /* border: 2px solid black; */
    box-shadow: 0 0  4px rgba(238, 123, 123, 0.557);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    background-color: #fff;
    transition: all ease .4s;
}

.card:hover{
    box-shadow: 1px 1px 10px rgba(247, 154, 154, 0.557);
    transform: translateY(-3px);
    background-color: rgb(247, 210, 210);
}

#newsImg{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content{
    padding: 15px;
}

.news-source{
    margin-block: 12px;
}