
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* font-family: "Playfair Display", serif; */
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
:root{                            
    --primary-text-color:#0e314d;
    --secondary-text-color:#577592;
    --accent-color:#2294ed;
    --accent-color-dark:#1d69a3;

}

body{
    font-family: "Playfair Display", serif;
    color:var(--primary-text-color);
}

p{
    font-family: "Merriweather", serif;
    /* font-weight: 400; */
    color: var(--primary-text-color);
    line-height: 1.4rem;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

.flex{
    display: flex;
    align-items: center;
    
}


nav{
    background-color: #f3faff;
    box-shadow: 0 0 4px #bbd0e2;
    position: fixed;
    top:0;
    z-index: 99;
    left: 0;
    right: 0;
}

.main-nav{
    width: 1200px;
    height: 70px;
    margin-inline: auto;
    overflow: hidden;

    justify-content: space-between;
    padding-block: 8px;
}
.company-logo img{
    width: 145px;
}
.nav-links{
    transition: all 0.4s ease-out;

}
.nav-links ul{

    gap: 17px;
    font-weight: 700;
    font-size: 1.3rem; 
}
.hover-link{
    cursor: pointer;
   
}
.hover-link:hover{
    color: var(--secondary-text-color);
}
.nav-items:hover{
    transform:scale3d(1.2,1.2,1.2)
}

.nav-items.active{
    color:var(--accent-color)
}

.search-bar{
    height: 30px;
    gap: 8px;
}

.news-input{
    width:200px;
    height: 100%;
    padding-inline: 12px;
    border-radius: 4px;
    border: 2px solid #bbd0e2;
    font-family: "Playfair Display", serif;
}
.search-button{
    background-color: var(--accent-color);
    color: white;
    padding: 6px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Playfair Display", serif;
}

.search-button:hover{
    background-color: var(--secondary-text-color);
}

main {

    padding-block: 20px;
    margin-top: 80px;
}

.cards-container {
    /* margin-left: 20px; */
    max-width: 1150px;
    margin-inline: auto;
    overflow: hidden;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 20px;
    align-items: start;
    font-family: "Playfair Display", serif;
}

.card{
    width: 360px;
    min-height: 400px;
    box-shadow: 0 0 4px #d4ecff;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: "Playfair Display", serif;
}

.card:hover {
    box-shadow: 1px 1px 8px #d4ecff;
    background-color: #f9fdff;
    transform: translateY(-2px);
}

.card-header img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 12px;
    font-family: "Playfair Display", serif;
}

#news-source {
    margin-block: 12px;
    font-family: "Roboto", sans-serif;

}