@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box; 
    font-family: "Poppins", "sans-serif";
}
body{
    overflow: auto;
    font-family: "Poppins" "sans-serif";
    font-size: 100%;
    font-size: 16px;
    line-height: 1.5;
    background: #f0f4fb;
}
header{
    position: fixed;   
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    padding: 50px 80px;
    z-index: 99;
    opacity: 0;
    animation: to_bottom 1s ease forwards;
    transition: top 0.6s; 
}
header nav a{
    font-size: 24px;
    color: black;
    position: relative;
    margin-left: 70px;
}
header nav a::before{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: black;
    width: 100%;
    height: 2.5px;
    transform: scaleX(0);
    transition: .4s; 
    /*transform-origin: left;*/
}
header nav a:hover::before{
    transform: scaleX(1);
}
@keyframes to_bottom{
    0%{
        transform: translateY(-50px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes to_right{
    0%{
        transform: translateX(-50px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes to_left{
    0%{
        transform: translateX(50px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}
.site-container{
    margin: 2rem auto;
    max-width: calc(100% - 80px);
    padding-top: 90px;
}
.article-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 2rem;
}
.article-image{
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.article-image img{
    max-width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0; 
}
.article-card{
    background: white;
    border-radius: 20px;
    transition: 0.3s;
}
.article-card:hover{
    box-shadow: 0 4px 20px 0 rgba(34,68,123,0.2);
    cursor: pointer;
}
.article-content{
    padding: 2rem; 
}
.article-container .card-catergory{
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #6b82a7;
    display: block;
    text-decoration: none;
}
.article-container .card-title{
    margin: 1rem 0;
    color: #22447b;
}
.article-content .card-excerpt{
    font-size: 1rem;
    line-height: 1.5rem;
    color: #6b82a7;
    margin: 0;
}
/* 
@media screen and (min-width: 768px){ 
    .site-container{
        max-width: 608px;
    }
    .article-card{
        display: grid;
        grid-template-rows: 220px 1fr;
    }
}
@media screen and (min-width: 1280px){
    .site-container{
        max-width: 1156px;
    }
} 
*/

/* 
.nav--hidden{
    transform: translateY(calc(-1 * var(--nav-height))); 
    box-shadow: none;
}
.nav{
    transition: transform 0.2;
}
*/
.nav-area.animate{
    top: -110px;
}
.nav-area.sticky{
    top: 0;
    z-index: 99; 
}



.article-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: scale(1.02); /* Slight zoom effect when hovering */
}

.article-card a {
    color: inherit;
    text-decoration: none;
}

.article-card .article-content {
    position: relative;
    z-index: 1;
}




/* Default styling for large screens */
header {
    padding: 50px 80px;
}

header nav a {
    font-size: 24px;
    margin-left: 70px;
}

/* For screens smaller than 1000px */
@media (max-width: 1000px) {
    header {
        padding: 40px 60px;
    }

    header nav a {
        font-size: 22px;
        margin-left: 50px;
    }
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
    header {
        padding: 30px 20px;
    }

    header nav a {
        font-size: 20px;
        margin-left: 20px;
    }
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
    header {
        padding: 20px 20px;
    }

    header nav a {
        font-size: 18px;
        margin-left: 10px;
    }
}

header nav a.active {
    color: #6cd490;
}