.footer {
    background-color: #f8f8f8;
    padding: 40px 0 0 0;
    color: #626361;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    flex-wrap: wrap;
}

.footer-logo {
    min-width: 300px;
    flex: 1;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 120px;
}

.footer-logo p {
    margin: 15px 0;
    line-height: 1.6;
    width: 70%;
    font-size: 20px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: left;
    padding: 10px 0;
}

html[dir="rtl"] .social-icons {
    display: flex;
    gap: 15px;
    justify-content: right;
    padding: 10px 0;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    color: #626361;
    font-size: 18px;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #7CB138;
    background-color: #f0f0f0;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-links h3 {
    margin-bottom: 15px;
    font-size: 25px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    position: relative;
    display: inline-block;
    color: #626361;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background-color: #7cb138;
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: #7cb138;
}

.footer-links ul li a:hover::after {
    width: 100%;
}


.footer-contact {
    flex: 1;
    min-width: 350px;
    margin-bottom: 20px;
}

.footer-contact h3 {
    margin-bottom: 15px;
    font-size: 25px;
}

.footer-contact p {
    line-height: 1.6;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact h5 {
    line-height: 1.6;
    font-size: 20px;
    margin-top: 10px;
    font-weight: 500;

}

.footer-contact i {
    font-size: 18px;
    color: #626361;
    /* margin-right: 5px; */
}

.footer-contact form {
    margin-top: 15px;
}

.input-container {
    display: flex;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
    width: 100%;
}

.footer-contact input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 18px;
    border-radius: 15px;
}

.footer-contact button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 25px;
    background: linear-gradient(180deg, #97C55C 0%, #76A83A 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    height: 100%;
    margin-left: -1px;
    margin: 2px 10px;
    font-weight: bold;
}

.footer-contact button:hover {
    background: linear-gradient(180deg, #76A83A 0%, #5d8528 100%);
}

.footer-contact i {
    font-size: 18px;
    color: #626361;
}

.footer-bottom {
    background-color: #7cb138;
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.footer-bottom-content {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #eee;
}

.footer-bottom span {
    color: #fff;
}

/********************** Responsive adjustments ***********************/
@media screen and (max-width: 1200px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-logo p {
        margin: 15px 0;
        line-height: 1.6;
        width: 70%;
        font-size: 17px;
    }

    .footer-contact h5 {
        font-size: 18px;
    }

    .footer-bottom-content {
        padding: 0 20px;
    }


}

@media screen and (max-width:940px) {
    .footer-logo {
        min-width: 250px;
        margin-bottom: 20px;
    }

    .footer-links {
        min-width: 100px;
        margin-bottom: 20px;
    }

    .footer-contact {
        min-width: 250px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width:850px) {
    .footer-container {
        padding: 0 25px;
    }


    .footer-contact input {
        font-size: 16px;
    }

    .footer-contact button {
        padding: 6px 20px;
        background: linear-gradient(180deg, #97C55C 0%, #76A83A 100%);
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        border-radius: 10px;
        transition: background-color 0.3s ease;
        height: 100%;
        margin-left: -1px;
        margin: 2px 10px;
        font-weight: bold;
    }

    .footer-contact p {
        line-height: 1.6;
        font-size: 15px;
        gap: 10px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-contact h3 {
        font-size: 22px;
    }

    .footer-links h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    html[dir="rtl"] .social-icons {
        justify-content: center;
    }

    .footer-logo {
        flex: 1;
        min-width: 250px;
        margin-bottom: 20px;
    }

    .footer-logo p {
        margin: 15px 0;
        line-height: 1.6;
        width: 100%;
        font-size: 15px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-links {
        flex: 1;
        min-width: 50px;
        margin-bottom: 20px;
    }

    html[dir="rtl"] .footer-links ul {
        list-style: inside;
        padding: 0;
        align-items: right;
        text-align: right;

    }

    .footer-contact {
        flex: 1;
        min-width: 300px;
        margin-bottom: 20px;
    }



    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
    }

    .footer-contact p {
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        list-style: inside;
        padding: 0;
        align-items: left;
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 10px;
    }

    .footer-bottom p,
    .footer-bottom-links {
        text-align: center;
        margin-top: 10px;
    }

    .footer-bottom span {
        display: none;
    }

    .footer-bottom p {
        margin: 0;
        line-height: 1.6;
        font-size: 16px;
    }

    .footer-contact p {
        line-height: 1.6;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .footer-links ul li {
        margin-bottom: 5px;
    }
}