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;
}

/* THIS IS WHERE THE HEADING FOR THE BLOG PAGE BEGINS*/ 

.blog-heading{
    width: 80%;
    margin: 0 auto;
}

.blog-heading h1{
    text-align: center;
    font-size: 70px;
    font-weight: 400;
    margin-bottom: 10px;
}

/* THIS IS THE NAVBAR THAT COMES AFTER THE HEADING*/

.heading-navbar{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.date{
    width: 140px;
    height: 30px;
    background-color: #000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* this is where the image banner begins */

.image-banner{
    width: 70%;
    height: 500px;
    margin: 20px auto;
}

.image-banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content{
    width: 70%;
    margin: 0 auto;
}

.content h1{
    font-size: 45px;
    font-weight: 400;
    margin: 10px 0;
}

.content h3{
    font-size: 25px;
    font-weight: 300;
}
.content p{
    font-size: 22px;
}

.content li{
    font-size: 22px;
    padding: 5px 0;
}

.content h1 span{
    color: #ed365a;
}
.info-graphic{
    display: flex;
    gap: 2%;
    margin: 30px 0;
}

.info-graphic .container{
    width: 200px;
    height: 200px;
    margin: 0;
    padding: 0;
    border-radius: 20px;
}

.info-graphic .container img{
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explanation{
    font-weight: 100;
    margin-top: 30px;
}
.content h2{
    font-size: 30px;
    font-weight: 500;
}

.one{
    display: inline;
    float: right;
}

.one .container{
    width: 300px;
    height: 200px;
}

.impbanner{
    margin: 50px auto;
    width: 70%;
    height: 100px;
    background-color: #B9B9B9;
    border-radius: 20px;
    display: flex;
    justify-content: flex-end;
}

.contrast{
    display: flex;
    width: 99%;
    height: 100px;
    background-color: #D9D9D9;
    border-radius: 20px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.contrast span{
    color: #ed365a;
}

/*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: 800px){
    .blog-heading h1{
        font-size: 48px;
    }

    .image-banner{
        height: 300px;
    }

    .info-graphic .container{
        width: 100px;
        height: 100px;
        margin: 0;
        padding: 0;
        border-radius: 20px;
    }
}

@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;
    }
}