*{
    margin: 0px;
    padding: 0px;
    font-family: 'poppins';
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}

/*==NavBar========================*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #313131;
    padding: 10px 20px;
    color: #FFF9F1;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #FFF9F1;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #007BFF;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: FFF9F1;
    border-radius: 3px;
}


/*==hero=header========================*/
.hero {
    height: 100vh;
    background-image: url('stockbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: FFF9F1;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Adds a slight background to text */
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #FFF9F1;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/*==Ticker========================*/
.stock-ticker {
    background-color: #111;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
}

.ticker-content {
    display: inline-block;
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(700%);
    }
    to {
        transform: translateX(-100%);
    }
}


/*==blog========================*/
#blog{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0px;
    background-color: #FFF9F1;
}
.blog-heading h3{
    font-size:2.4rem;
    color: #252525;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 2.4rem;
}
.blog-heading strong{
    color: #0a0ef8;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.blog-box-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 50px;
    max-width: 1050px;
    width: 90%;
}
.blog-box{
    max-width: 100%;/*350px*/
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all ease 0.3s;
}
.blog-box:hover{
    box-shadow:16px 20px 50px rgba(0,0,0,0.12);
    background-color: #ffffff;
}
.blog-box-img{
    width: 100%;
    height: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    position: relative;
}
.blog-box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all ease 0.3s;
}
.blog-img-link{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ffffff;
    color: #252525;
    box-shadow: 2px 2px 30px rgba(20, 97, 212, 0.12);
    display: none;
    animation: fade 0.3s;
}
.blog-box:hover .blog-box-img img{
    filter: blur(3px);
}
.blog-box:hover .blog-box-img a{
    display: flex;
}
.blog-box-text{
    display: flex;
    flex-direction: column;
    padding: 30px 10px 20px 10px;
}
.blog-box-text strong,
.blog-box-text p{
    color: #797979;
    font-size: 0.9rem;
    font-weight: 400;
}
.blog-box-text a{
    font-size: 1.4rem;
    color: #252525;
    font-weight: 800;
    line-height: 1.8rem;
    margin: 5px 0px 10px 0px;
}
@keyframes fade{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.blog-box-text p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.blog-author{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
}
.blog-author-img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}
.blog-author-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.blog-author-text{
    display: flex;
    flex-direction: column;
}
.blog-author-text strong{
    color: #252525;
    font-weight: 800;
}
.blog-author-text span{
    color: #797979;
    font-size: 0.8rem;
    font-weight: 500;
}
/*==Article====================*/
.article-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.article-meta {
    font-size: 14px;
    color: #555;
}

.article-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.article-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}




/*==Footer====================*/
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-content {
    max-width: 800px;
    margin: auto;
}

.footer-logo h2 {
    margin: 0;
    font-size: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.footer-links li a {
    color: white;
    text-decoration: none;
}

.footer-social a {
    margin: 0 10px;
    font-size: 24px;
    color: white;
}

.footer-social a:hover {
    color: #1DA1F2;
}

.footer-copy {
    margin-top: 10px;
    font-size: 14px;
}

@media(max-width:920px){
    /*==Blog====================*/
    .blog-box-container{
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px 0px;
    }
}

@media(max-width:600px){
    /*==NavBar====================*/
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 20px;
        background: #333;
        padding: 10px;
        display: none;
    }
    .hamburger{
      display: flex;
    }

    .nav-links.show {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
    }

    /*==Blog====================*/
    .blog-heading h3{
        font-size: 1.6rem;
        line-height: 1.6rem;
    }
    .blog-box-container{
        grid-template-columns: 1fr;
    }
    /*==Footer====================*/
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social {
        margin-top: 10px;
    }
}