*{
    box-sizing: border-box;
}
body{
    font-family: 'Popples' , sans-serif;
    font-size: 16px;
    background: #f5f6f9;
    /* background:#121212; */
    /* color: white; */
    margin: 0;
    padding: 0;
}
.navbar{
    background-color:rgb(227, 250, 255);
    color: black;
    padding: 10px 20px;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 3px 10px 0 rgba(50, 119, 242, 0.5);
}
.navbar .logo {
    display: flex;
    align-items: center;
    
}
.navbar .logo img{
    border-radius: 50px;
    width: 40px;
    height: 40px;
    border: 2px solid black;
}
nav ul {
display: flex;
list-style: none;
/* align-items: center; */
gap: 15px;
padding: 0px;
}
nav ul li {
cursor: pointer;
}
nav ul li:hover{
color: rgba(19, 19, 254, 0.96);
text-decoration: underline rgba(19, 19, 254, 0.96);
}
.inputsearch ,
form{
    display: flex;
    align-items: center;
    height: 38px;
    background-color: rgb(40, 161, 248);
    width: 400px;
    border-radius: 35px;
    overflow: hidden;
    border: 1.5px solid rgb(40, 161, 248);
    
}
.inputsearch i{color: white;}
.inputsearch input{
    width: 100%;
    height: 100%;
    padding: 0px 15px;
    border: none;
    outline: none;
    font-size: 16px;
}
.inputsearch span{
    width: 70px;
    background-color: rgb(40, 161, 248);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    
}
.menubtn{
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 40px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.menubtn:hover{
    background-color: rgb(40, 161, 248);
    color:white;
}
.desktop{
    display: none;
}
@media all and (min-width:700px){
    header{
        padding: 5px 30px;
    }
    .desktop{
        display: flex;
    }
    .menubtn{
        display: none;
    }
    
}

.mobile{
    position: absolute;
    top: 75px;
    width: 100%;
    max-width: 700px;
    /* background-color: #f5f6f9; */
    background: rgb(227, 250, 255);
    height: calc(100%-150px);
    display: none;
}
.mobile nav,
.mobile nav ul{
    flex-direction : column;
    margin-left: 2px;
    
}
.mobile .inputsearch,
.mobile form{
    height: 35px;
    width: 95%;
    margin-bottom: 2px;
    margin-top: 2px;
    margin-left: 1px;
    
}
.unhiden{
    display: block;
} 
 @media all and (min-width:700px) {
    .mobile{
        display: none;
    }
}
/* css card */
main{
    display: flex;
    gap: 25px;
    padding: 10px;
    margin: auto;
    flex-direction:row ;
    flex-wrap: wrap;
    justify-content: center;
    
}
.card{
    display: flex;
    flex-direction: column;
    background: rgb(255, 255, 255);
    max-width: 400px;
    padding-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 7px 7px 25px 1px rgb(0,0,0,0.06)
    
} 
.card a{
    color: inherit;
    text-decoration: none;
}
.card img{
    border-radius: 5px 5px 0px 0px;
    min-height: 210px;
    max-height: 210px;
    width: 100%;
    padding: 10px;
    
    
}
.card h4,
.card div{
    padding: 5px 10px;
    margin: 0px;
}
.publicBydate{
    display: flex;
    align-items: center;
    color: #a5a1a1;
}
.publicBydate p{
    margin: 0px;
    font-size: 14px;

}
.publicBydate span{
    padding: 0px 10px;

}
.desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin: 0px;
}

@media all and (min-width:700px) {
    main{
        padding: 20px;
    }
    .card h4,
.card div{
    padding: 5px 15px;
    }
}

/* Dark Mode */
.dark-mode {
    background: #121212;
    color: white;
}
.dark-mode .card {
    background: #333;
    color: white;
}
.dark-mode .footer {
    background: #232323;
    color: white;
}
.dark-mode .footer-links ul li a {
    color: rgb(255, 255, 255);
}
.dark-mode .footer-social .social-icons a {
    color: rgb(255, 255, 255);
}

/* footer */
.footer {
    
    background-color: rgb(40, 161, 248);
    color: black;
    padding: 30px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    border-radius: 50% ;
    border: 2px solid black;
    margin-bottom: 10px;
}

.footer-brand h3 {
    margin: 4px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: blue;
    text-decoration: underline;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social .social-icons a {
    color: rgb(0, 0, 0);
    font-size: 20px;
    transition: 0.3s;
}

.footer-social .social-icons a:hover {
    color: #003ecd;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        padding-left: 0;
    }
}

/* Move to Top */
#topButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none; /* Initially Hidden */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#topButton:hover {
    background-color: #0056b3;
}
