
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Luckiest+Guy&family=Merriweather:ital,wght@0,400;0,700;0,900;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,800;1,400;1,500;1,600;1,800&family=Open+Sans:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Poppins:ital,wght@0,400;0,500;0,700;0,800;0,900;1,500;1,600;1,700&family=Roboto:wght@700&family=Varela+Round&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* making a global variables for colors */

:root{

    --primary-text-color: #183b56;
    --secondary-text-color: #577592;
    --accent-color: #2294ed;
    --accent-color-dar: #1d69a3;
    /* --padding-inline-section: 20px; */

}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text-color);
}


p {
    font-family: "Roboto" ,sans-serif;
    color: var(--secondary-text-color);
    line-height: 1.4rem
}

a {
    text-decoration: none;
}

ul {

    list-style: none;

}

/* making utility classes in css */

.flex {

    display: flex;
    align-items: center;
    


}

.container {

    max-width: 1180px;
    margin-inline: auto;
    overflow: hidden;

}

nav {
    background-color: #f3faff;
    box-shadow: 0 0 4px #bbd0e2;
    position: fixed;
    top: 0;
    z-index: 99;
    left: 0;
    right: 0;
}

.main-nav {
    justify-content: space-between;
    padding-block: 8px;
   
}

.company-logo img {

    width: 200px;



}

.nav-links ul {

    gap: 30px;

}

.hover-link {

    cursor: pointer;
    /* color: var(--primary-text-color);
    border:  1.2px solid rgb(24, 22, 22);
    padding: 8px;
    border-radius: 2px; */

}

.hover-link:hover{

    color: var(--secondary-text-color);


}
.hover-link:active{
    color:red;

}

.nav-item.active {

    color: var(--accent-color);
}

.search-bar{

    height: 30px;
    gap: 10px;
}

.news-input{

    width: 200px;
    height: 42px;
    padding-inline: 15px;
    border-radius: 5px;
    border: 2px solid #bbd0e2;
    font-family: "Roboto" ,sans-serif;

}

.search-button{

    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Roboto" ,sans-serif;
}

.search-button:hover {

    background-color: var(--accent-color-dar);

}

main {

    padding-block: 30px;
    margin-top: 100px;
    
}

.cards-container
{
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 20px;
    align-items: start;


}

.card {

    width: 360px;
    min-height: 400px;
    box-shadow: 0 0 4px #d4ecff;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;

}

.card:hover {

    box-shadow: 1px 1px 8px #d4ecff;
    background-color: #f9fdff;
    transform: translateY(-3px);
}

.card-header img{

    width: 100%;
    height: 180px;
    object-fit: cover;

}

.card-content {

    padding: 15px;


}

.news-source {

    margin-block: 12px;


}

