/* Custom Footer Styles */

footer {
    /* Modern Light Mesh-like Gradient */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    color: #444;
    /* Dark gray for high contrast */
    padding: 90px 0 0;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add a subtle top border line with brand gradient */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #142B4F, #2FA8A1, #F28C28);
}

/* Footer Top Section */
footer .widget {
    margin-bottom: 30px;
}

footer h5 {
    color: #142B4F;
    /* Brand Dark Blue */
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Underline for headings */
footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #F28C28;
    /* Brand Orange */
    margin-top: 8px;
    border-radius: 2px;
}

footer p {
    line-height: 1.8;
    color: #666;
    font-weight: 400;
}

/* Logo */
footer .footer-logo {
    max-width: 180px;
    /* Slightly larger to show off the logo */
    margin-bottom: 20px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Address & Contact */
address.s1 span {
    display: block;
    margin-bottom: 12px;
    color: #555;
    font-weight: 500;
}

address.s1 i {
    color: #2FA8A1;
    /* Brand Teal */
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

address.s1 a {
    color: #555;
    transition: color 0.3s;
    font-weight: 600;
}

address.s1 a:hover {
    color: #142B4F;
    /* Dark Blue on hover */
    text-decoration: none;
}

/* Links List */
ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    padding-bottom: 5px;
}

ul.footer-links li:last-child {
    border-bottom: none;
}

ul.footer-links li a {
    color: #555;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

ul.footer-links li a:hover {
    color: #2FA8A1;
    /* Teal hover */
    transform: translateX(5px);
}

ul.footer-links li a i {
    margin-right: 8px;
    font-size: 14px;
    color: #F28C28;
    /* Orange Icon */
}

/* Newsletter Form */
#form_subscribe input[type="text"] {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 15px 25px;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#form_subscribe input[type="text"]:focus {
    background: #fff;
    border-color: #2FA8A1;
    outline: none;
    box-shadow: 0 5px 20px rgba(47, 168, 161, 0.2);
}

#btn-submit {
    position: absolute;
    right: 25px;
    top: 5px;
    color: #142B4F;
    background: none;
    border: none;
    font-size: 20px;
    transition: transform 0.3s;
}

#btn-submit:hover {
    transform: scale(1.1);
    color: #2FA8A1;
}

.newsletter-form-wrapper {
    position: relative;
    max-width: 300px;
}

/* Subfooter */
.subfooter {
    background-color: #fff;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.subfooter .de-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 14px;
}

/* Social Icons */
.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #142B4F;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.footer-social-icons a:hover {
    background: #142B4F;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 43, 79, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    footer {
        padding: 50px 0 0;
        text-align: center;
    }

    footer h5::after {
        margin: 10px auto 0;
    }

    .newsletter-form-wrapper {
        margin: 0 auto;
    }

    .subfooter .de-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-social-icons {
        margin-top: 15px;
    }
}