footer{
    position: relative;
}
.newsletter{
    padding: 50px 20px;
    background: var(--blue);
}
.newsletter-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.newsletter-item{
    width: 100%;
    color: var(--white);
}
.newsletter-item h5{
    font-size: 18px;
}
.newsletter-form{
    display: flex;
    width: 80%;
}
.newsletter-form .form-control{
    border-radius: 5px 0 0 5px;
    background: #68B5FF;
    border: none;
    color: var(--white);
    font-size: 15px;
}
.newsletter-form .form-control:focus{
    border: 1px solid var(--white);
    background: #68B5FF;
}
.newsletter-form .form-control:valid {
    background: #68B5FF; /* Background color changes to red when input is filled */
}
.newsletter-form .form-control:placeholder-shown {
    background: #68B5FF; /* Revert back to white when input is empty */
}
.newsletter-form .form-control::placeholder{
    color: var(--white);
    font-size: 15px;
}
.newsletter-form .btn{
    border-radius: 0 5px 5px 0;
    font-size: 16px;
}
.newsletter-form .btn,
.newsletter-form .btn:focus{
    background: var(--white);
    color: var(--blue);
    border: none;
}
.newsletter-form .btn:hover{
    background: var(--black);
    color: var(--white);
}
.main-footer{
    background: var(--black);
    padding: 40px 20px 0 20px;
}
.footer-links{
    font-size:15px;
}
.main-footer p,
.main-footer a,
.main-footer h5{
    color: var(--white);
}
.footer-container{
    display: flex;
    gap:30px;
}
.footer-first-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-first-container img{
    width: 200px;
}
.footer-first-container p{
    width: 67%;
}
.social-icons{
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.social-icons .social-icons-item{
    height: 50px;
    width: 50px;
    padding: 12px 13px;
    background: #2D4351;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.social-icons .social-icons-item:hover {
    transform: translateY(-5px); /* Float effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}
.social-icons .social-icons-item i{
    font-size:25px;
}
.social-icons .social-icons-item.facebook{
    background: var(--blue);
}
.footer-second-container{
    width: 100%;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links.address{
    width: 100%;
}
.footer-third-container{
    width: 100%;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 120px;
}
.footer-third-container-item{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-bottom{
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid #2D4351;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
}

/*MEDIA QUERIES*/
@media(max-width:991px){
    .main-footer{
        padding: 40px 20px 0 20px;
    }
    .footer-links{
        font-size:14px;
    }
    .footer-first-container img{
        width: 150px;
    }
    .footer-first-container p{
        width: 80%;
    }
    .footer-second-container{
        padding-top: 15px;
    }
    .footer-third-container{
        justify-content: center;
        gap: 50px;
    }
}

@media(max-width:767px){
    .footer-container{
        gap:20px;
        flex-direction: column-reverse;
    }
    .social-icons{
        gap: 7px;
    }
    .social-icons .social-icons-item{
        height: 40px;
        width: 40px;
    }
    .social-icons .social-icons-item i{
        font-size:20px;
    }
    .footer-third-container{
        width: 100%;
        padding-top: 0;
        display: flex;
        justify-content: flex-start;
        gap: 80px;
    }
    .footer-third-container-item{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .main-footer h5{
        font-size:17px;
    }
    .newsletter{
        padding: 40px 10px;
    }
    .newsletter-container{
        flex-direction: column;
        gap:20px;
    }
    .newsletter-item h5{
        font-size: 16px;
        text-align: center;
    }
    .newsletter-item p{
        text-align: center;
        font-size: 14px;
    }
    .newsletter-form{
        width: 95%;
    }
    .newsletter-form .btn{
        font-size: 15px;
    }
}

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