/* Footer Styles */
.footer {
    background-color: var(--pastel-mint);
    color: var(--dark-grey);
    padding: 40px 0 0;
    font-size: 14px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    padding: 2px 0 2px 0;
    line-height: 1;
    font-weight: 700;
    color: var(--dark-grey);
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--dark-grey);
}

.footer h4::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: var(--dark-grey);
    bottom: 0;
    left: 0;
}

.footer-info p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    max-width: 90%;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    padding: 8px 0;
}

.footer-links ul li:first-child {
    padding-top: 0;
}

.footer-links ul a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul a:hover {
    color: white;
    padding-left: 5px;
    font-weight: bold;
}

.footer-contact p {
    line-height: 26px;
}

.footer-newsletter form {
    margin-top: 20px;
    background: var(--very-light-grey);
    padding: 6px 10px;
    position: relative;
    border-radius: 4px;
}

.footer-newsletter form input[type="email"] {
    border: 0;
    padding: 4px;
    width: calc(100% - 110px);
    background: var(--very-light-grey);
    color: var(--dark-grey);
    outline: none;
}

.footer-newsletter form input[type="email"]:focus {
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.footer-newsletter form input[type="submit"] {
    position: absolute;
    top: 0;
    right: -2px;
    bottom: 0;
    border: 0;
    background: none;
    font-size: 16px;
    padding: 0 20px;
    background: var(--dark-grey);
    color: var(--background-color);
    transition: 0.3s all ease;
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0 4px 4px 0;
}

.footer-newsletter form input[type="submit"]:hover {
    background: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-bottom {
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(70, 88, 88, 0.1);
}

.copyright {
    font-size: 14px;
}

.social-links a {
    font-size: 18px;
    display: inline-block;
    background: var(--dark-grey);
    color: var(--background-color);
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s all ease;
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.powered-by {
    color: var(--dark-grey);
    opacity: 0.8;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: center;
    width: 100%;
    clear: both;
}

.powered-by a {
    color: inherit;  /* Inherits the parent color */
    text-decoration: none;  /* Removes underline */
    transition: opacity 0.3s ease;  /* Smooth hover effect */
}

.powered-by a:hover {
    opacity: 1;  /* Full opacity on hover */
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 0;
        font-size: 13px;
    }

    .footer h3 {
        font-size: 20px;
        margin: 0 0 15px 0;
    }

    .footer h4 {
        font-size: 15px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .col-md-6 {
        margin-bottom: 25px;
    }

    .footer-newsletter form input[type="email"] {
        width: calc(100% - 90px);
    }

    .footer-newsletter form input[type="submit"] {
        padding: 0 15px;
        font-size: 14px;
    }

    .social-links a {
        font-size: 16px;
        width: 32px;
        height: 32px;
        padding: 7px 0;
    }

    .footer .container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .footer-info p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        text-align: center;
    }

    .social-links.float-end {
        float: none !important;
        text-align: center;
        margin-top: 15px;
    }

    .copyright {
        text-align: center;
    }

    .footer .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    /* Clear the float and start a new row for contact and newsletter sections */
    .footer-contact, .footer-newsletter {
        clear: both;
        margin-top: 30px;  /* Add space above these sections */
    }
    
    /* Ensure the useful links section has proper height */
    .footer-links {
        min-height: 250px;  /* Adjust this value as needed */
    }
}
