nav {
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed from space-around */
    height: 70px;
    margin: 0 auto;
    padding: 0 20px; /* Added padding instead of fixed width */
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Removed fixed width to allow natural sizing */
    flex-shrink: 0; /* Prevents logo from shrinking too much */
}

.logo-container .logo-image {
    width: 60px;
}

.logo-container .logo-text a {
    font-size: 25px;
    font-weight: 100;
}

.logo-image img {
    width: 60px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 30px; /* Added gap instead of space-between */
    /* Removed fixed width to allow flexible spacing */
    flex-grow: 1; /* Allows this section to take available space */
    margin: 0 20px; /* Added margins for better spacing */
}

.ctamenu {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end; /* Aligns to the right */
    /* Removed fixed width to allow natural sizing */
}

.ctamenu button {
    width: 150px; /* Reduced from 200px to be more responsive */
    height: 50px; /* Reduced from 60px for better proportion */
    background-color: #000;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.ctamenu span {
    display: none;
    cursor: pointer;
}

@media screen and (max-width: 1100px) {
    .links {
        display: none;
    }

    .ctamenu span {
        display: block;
    }
}

/* Additional responsive adjustments */
@media screen and (max-width: 600px) {
    .ctamenu button {
        width: 80px;
        height: 30px;
        font-size: 10px;
    }
    
    .logo-container .logo-text a {
        font-size: 15px;
    }
}

/* Pop Up Starts Here */
/* Pop Up Starts Here */

.popup{
    position: relative;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: .8s;
    translate: 100% 100%;
}

.closer{
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
}

.closer button{
    width: 60px;
    height: 60px;
    font-size: 30px;
    font-weight: 100;
    background: #fff;
    border: 1px solid #000;
    box-shadow: none;
}

.open{
    display: flex;
    z-index: 2;
    align-items: center;
    justify-content: center;
    translate: 0% 0%;
}

.popup-content{
    width: 100%;
    height: 300px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.popup-content a{
    text-decoration: none;
    font-size: 35px;
    color: #000;
    text-align: center;
}

/* Recent Blogs Starts Here */
/* Recent Blogs Starts Here */
.recent-blogs{
    width: 85%;
    margin: 50px auto;
}

.recent-blogs h1{
    font-size: 48px;
    margin: 0 0 10px 0;
    font-weight: 300;
    letter-spacing: 2px;
}
.recent-blogs .container{
    display: grid;
    height: 70vh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
}

.main-blog-container{
    display: grid;
    height: 100%;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    overflow: hidden;
}

.main-blog-container .img{
    background-color: #000;
    height: 100%;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    overflow: hidden;
    z-index: 1;
}

.main-blog-container .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.main-blog-container .title{
    display: grid;
    grid-template-rows: 30px 1fr;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.title .nav{
    margin-top: 10px;
    display: flex;
    gap: 10px;
    grid-row: 1 / 2;
    grid-column: 1/ 2;
    align-items: center;
}
.title .nav a{
    text-decoration: none;
    font-size: 12px;
    color: #fff;
    background-color: #000;
    padding: 10px 20px;
    border-radius: 5px;
}

.title .titlet{
    margin-top: 10px;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

.title .titlet a{
    text-decoration: none;
    color: #000;
    font-size: 58px;
}
.minor-blog-container{
    height: 100%;
    overflow: auto;
}

.minor-blog{
    display: grid;
    height: 200px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr 2fr;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.minor-blog .img{
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    overflow: hidden;
    margin-right: 10px;
}

.minor-blog .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.minor-blog .title{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    vertical-align: text-top;
    position: relative;
}

.minor-blog .title a{
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 30px;
    text-decoration: none;
    color: #000;
}


.minor-blog .nav{
    display: flex;
    gap: 10px;
    align-items: center;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.minor-blog .nav a{
    color: #fff;
    background-color: #000;
    text-align: center;
    text-decoration: none;
    padding: 5px 25px;
    border-radius: 5px;
    font-size: 15px;
}

.minor-blog .button{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    position: relative;
}

.minor-blog .button button{
    position: absolute;
    bottom: 0;
    width: 80%;
    height: 80%;
    background-color: transparent;
    border: 1px solid #000;
    font-size: 20px;
}
@media screen and (max-width: 1600px){
    .minor-blog .title a{
        font-size: 25px;
    }

    .minor-blog{
        height: 180px;
    }
}
@media screen and (max-width: 1400px){
    .minor-blog{
        height: 165px;
    }
}
@media screen and (max-width: 1300px){
    .minor-blog{
        height: 150px;
    }
}

@media screen and (max-width: 1300px){
    .minor-blog .title a{
        font-size: 20px;
    }
}

@media screen and (max-width: 1200px){
    .title .titlet a{
        font-size: 48px;
    }
    .minor-blog .button button{
        font-size: 10px;
    }

    .minor-blog .nav a{
        font-size: 10px;
    }
}

@media screen and (max-width: 1000px){
        .minor-blog{
        height: 100px;
        }
        .minor-blog .title a{
        font-size: 15px;
        }
        .minor-blog .nav span{
            font-size: 12px;
        }
}

@media screen and (max-width: 800px){
        .main-blog-container .container{
            height: 50vh;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
        }

        .main-blog-container{
            display: grid;
            height: 100%;
            grid-row: 1 / 2;
            grid-column: 1 / 3;
            overflow: hidden;
        }

        .minor-blog-container{
            margin-top: 20px;
            grid-row: 2 / 3;
            grid-column: 1 / 3;
        }
        .title .titlet a{
            font-size: 20px;
        }
        .minor-blog .nav span{
            font-size: 9px;
        }

        .minor-blog .title a{
            font-size: 10px;
        }
}

/*Related Blogs Begins Here */
/*Related Blogs Begins Here */
.related-blogs{
    width: 100%;
    height: auto;
    padding: 30px 0;
    background-color: #000;
    margin-bottom: 50px;
    overflow: hidden;
}

.related-blogs h1{
    font-size: 48px;
    margin: 0 0 10px 10px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
}
.related-blogs .container{
    width: 100%;
    margin-left: 10px;
    margin-right: 50px;
    display: flex;
    flex-direction: row;
    overflow: scroll;
    gap: 50px;
}

.related-blogs .container::-webkit-scrollbar{
    display: none;
}

.related-blogs .rblog{
    display: grid;
    width: 500px;
    height: 500px;
    min-height: 200px;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    overflow: hidden;
}

.related-blogs .rblog .img{
    width: 100%;
    min-height: 50px;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    overflow: hidden;
}

.related-blogs .rblog .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.related-blogs .rblog .title{
    display: grid;
    grid-template-rows: 30px 1fr;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.related-blogs .rblog .nav{
    display: flex;
    gap: 10px;
    align-items: center;
}

.related-blogs .rblog .nav a{
    text-decoration: none;
    font-size: 12px;
    color: #000;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.related-blogs .rblog .nav span{
    color: #fff;
}

.related-blogs .rblog .titlet{
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

.related-blogs .rblog .titlet a{
    text-decoration: none;
    color: #fff;
    font-size: 30px;
}

@media screen and (max-width: 600px){
    .related-blogs .rblog{
        display: grid;
        width: 200px;
        height: 100px;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 1fr;
        overflow: hidden;
    }
    .related-blogs .rblog .nav a{
        font-size: 10px;
        padding: 5px 5px;
    }

    .related-blogs .rblog .nav span{
        color: #fff;
        font-size: 8px;
    }
    .related-blogs .rblog .titlet a{
        font-size: 15px;
    }
}

/*Banner Starts Here*/
/*Banner Starts Here*/

.banner{
    width: 100%;
    height: 600px;
    background: url(../blog/pexels-thirdman-7652469.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.wbox{
    width: 700px;
    height: auto;
    background-color: #fff;
    color: #000;
    position: absolute;
    top: 30%;
    right: 5%;
    border-radius: 20px;
    padding: 30px 50px;
}

.wbox .writing{
    position: absolute;
    top: -10px;
    background-color: #000;
    color: #fff;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
}

.wbox h1{
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 0;
}

.wbox h3{
    font-size: 20px;
    font-weight: 100;
    margin-top: 0;
}

.wbox button{
    width: 300px;
    height: 60px;
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    font-size: 18px;
    font-weight: 100;
    transition: .8s;
    cursor: pointer;
}

.wbox button:hover{
    background-color: #000;
    color: #fff;
}

@media screen and (max-width: 800px){
    .wbox{
        width: 500px;

    }
}

@media screen and (max-width: 600px) {
    .banner{
        height: 300px;
    }

    .wbox{
        width: 280px;
        height: 120px;
        top: 30%;
        right: 2%;
        padding: 30px 20px;
    }

    .wbox .writing{
        padding: 10px 20px;
        font-size: 10px;
    }

    .wbox h1{
        font-size: 19px;
    }

    .wbox h3{
        margin-top: 5px;
        font-size: 13px;
    }

    .wbox button{
        width: 100px;
        height: 30px;
        font-size: 15px;
        font-weight: 300;
    }
}
/*FOOTER STARTS HERE */
/*FOOTER STARTS HERE */

footer{
    width: 85%;
    height: 200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

footer .logo-container{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    gap: 10px;
}

footer .logo-container .logo-img{
    width: 70px;
    height: 70px;
    padding: 0 0 0 10px;
}

footer .logo-container .logo-img img{
width: 100%;
width: 100%;
object-fit: cover;
}

footer .logo-container .logo-text{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}


footer .logo-container .logo-text a{
    font-size: 20px;
    text-decoration: none;
    color: #000;

}


footer .logo-container .logo-text span{
    grid-row: 2 / 3;
}

footer .nav-links{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 20px;
}

footer .nav-links a{
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

footer .social-links{
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 20px;
}

footer .social-links a{
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

footer .privacy{
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 20px;
}

footer .privacy a{
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

@media screen and (max-width: 600px){
    .blog-heading{
        width: 90%;
    }

    .blog-heading h1{
        font-size: 38px;
    }

    .heading-navbar{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .date{
        font-size: 12px;
    }

    .publisher{
        font-size: 12px;
    }

    .image-banner{
        width: 90%;
        height: 200px;
    }

    .content{
        width: 90%;
        margin: 0 auto;
    }

    .content h1{
        font-size: 30px;

    }

    .content p{
        font-size: 15px;
    }

    .content h3{
        font-size: 20px;
        font-weight: 300;
    }

    .content li{
        font-size: 15px;
        padding: 5px 0;
    }

    .impbanner{
        width: 90%;
    }
    footer{
        margin-top: 50px;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        gap: 20px;
    }

    footer .logo-container{
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-content: space-around;
    }

    footer .logo-container .logo-img{
        width: 70px;
        height: 70px;
    }

    footer .nav-links{
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    footer .social-links{
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    footer .privacy{
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }

    footer .logo-container .logo-text a{
        font-size: 20px;
    }

    footer .logo-container .logo-text span{
        font-size: 20px;
    }

    footer .nav-links a{
        font-size: 15px;
    }

    footer .social-links a{
        font-size: 15px;
    }

    footer .privacy a{
        font-size: 15px;
    }
}
