.footer {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    height: 100%;
    padding-top: 1rem;
    position: relative;
    background: #1c262b;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.footer-paragraph, .footer-link {
    word-break: break-word;
}

.footer .col p {
    color: white;
    font-weight: 500;
}

.footer-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    padding: 30px;
}

.footer-wrapper {
    background-color: var(--footer-color);
    color: var(--dark-grey-text);
    display: flex;
    width: 100%;
    align-items: center;
}

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

.footer-wrapper > hr {
    width: 100%;
}

.footer-wrapper #logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: flex-end;
    width: 25%;
    height: 100%;
}

.footer-wrapper #logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    fill: white;
    margin-right: 6rem;
    min-height: 10vh;
    transition: 0.3s;
    margin-bottom: 30px;
}

.footer-wrapper #logo svg {
    width: 176px;
    height: 176px;
    transition: 0.3s;
}

.footer-wrapper #logo:hover > svg {
    transform: scale(1.1);
    fill: var(--primary-color);
}

.footer-wrapper ul#menu-footer-menu {
    display: grid;
    grid-auto-rows: minmax(auto, 1fr); /* Adjust row height as needed */
    row-gap: 5px; /* Adjust the gap between items as needed */
}

ul#menu-footer-menu li {
    width: max-content;
}

ul#menu-footer-menu li:nth-child(1) { grid-column: 1; grid-row: 1; }
ul#menu-footer-menu li:nth-child(2) { grid-column: 1; grid-row: 2; }
ul#menu-footer-menu li:nth-child(3) { grid-column: 1; grid-row: 3; }

ul#menu-footer-menu li:nth-child(4) { grid-column: 2; grid-row: 1; }
ul#menu-footer-menu li:nth-child(5) { grid-column: 2; grid-row: 2; }
ul#menu-footer-menu li:nth-child(6) { grid-column: 2; grid-row: 3; }
ul#menu-footer-menu li:nth-child(7) { grid-column: 2; grid-row: 4; }

ul#menu-footer-menu li:nth-child(8) { grid-column: 3; grid-row: 1; }
ul#menu-footer-menu li:nth-child(9) { grid-column: 3; grid-row: 2; }
ul#menu-footer-menu li:nth-child(10) { grid-column: 3; grid-row: 3; }

ul#menu-footer-menu li:nth-child(11) { grid-column: 4; grid-row: 1; }
ul#menu-footer-menu li:nth-child(12) { grid-column: 4; grid-row: 2; }
ul#menu-footer-menu li:nth-child(13) { grid-column: 4; grid-row: 3; }
ul#menu-footer-menu li:nth-child(14) { grid-column: 4; grid-row: 4; }

ul#menu-footer-menu {
    margin-top: 50px;
    margin-bottom: 10px;
    padding-left: 15px;
}

.footer-wrapper .nav-content {
    width: 75%;
    float: right;
}

.footer-wrapper li.menu-item {
    list-style-type: none;
}

.footer-wrapper li.menu-item a {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    color: white;
}

.footer-wrapper li.menu-item :hover {
    color: var(--primary-color);
}

.footer-wrapper .bottom-footer-wrapper {
    margin-top: 25px;
    padding-left: 10px;
    display: flex;
}

.footer-wrapper .bottom-footer-wrapper .search {
    height: 43px;
    margin: 10px 0px;
    color: white;
    border: 1px solid white;
    background: transparent;
    border-radius: 30px;
}

.footer-wrapper .branches-wrapper {
    display: flex;
    padding-left: 5px;
    width: 70%;
}

.footer-wrapper .branch li {
    margin-bottom: 0.9rem;
    color: var(--dark-grey-text);
}

.footer-wrapper .branch li a {
    margin-bottom: 0.9rem;
    color: var(--e-global-color-primary);
}

.footer-wrapper .branch {
    display: flex;
    flex-direction: column;
}

.footer-wrapper .first-branch {
    width: 41%;
}

.footer-wrapper .second-branch {
    width: 59%;
}

.branch .branch-title {
    color: white;
    font-weight: 500;
}

.footer-wrapper .branch li {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.footer-wrapper section.footer-widgets {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-around;
}

.footer-wrapper .search-field-wrap {

    background: #1c262b;
    width: 100%;
    min-width: 150px;
    max-width: 280px;
    border-radius: 50px;
    border: 2px solid white;
    display: flex;
    flex-direction: row;
    margin: auto;
}


.footer-wrapper input#footer-search {
    border: none;
    background: none;
    width: 70%;
    color: white;
    outline: none;
}

.footer-wrapper .search-form-icon {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.footer-wrapper .social-icons-wrap {
    width: 120px;
    display: flex;
    justify-content: space-between;
}

.footer-wrapper .social-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    border: solid white 2px;
    margin-bottom: 4rem;
    transition: all 0.3s;
}

.footer-wrapper .social-icon:hover {
    transform: scale(0.9);
    border: solid 2px var(--primary-color);
}

.footer-wrapper .social-icon a i {
    color: white;
    display: block;
}

.footer-wrapper .social-links {
    display: flex;
    text-align: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.footer-wrapper .social-links p {
    font-size: 16px;
}

footer .policy p {
    padding: 0px;
    margin: 0px;
}

footer .policy {
    background-color: var(--footer-darker);
    color: #6b7579;
    text-align: center;
    position: relative;
    padding: 30px 85px;
    flex: 1;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .footer-wrapper {
        display: flex;
        flex-direction: column;
    }

    .footer-wrapper #logo-wrapper {
        padding-top: 3rem;
        justify-content: center;
        align-items: center;
    }

    .footer-wrapper #logo {
        margin: 0;
    }

    .footer-wrapper .nav-content {
        margin: auto;
        width: 90%;
    }

    .footer-wrapper ul#menu-footer-menu {
        flex-direction: column;
    }
}

@media screen and (max-width: 764px) {
    .footer-wrapper {
        display: flex;
        flex-direction: column;
    }

    .footer-wrapper #logo-wrapper {
        justify-content: center;
        align-items: center;
    }

    .footer-wrapper #logo {
        margin: 0;
    }

    .footer-wrapper .nav-content {
        margin: auto;
        width: 90%;
    }

    .footer-wrapper nav.footer-nav-menu {
        display: block;
        margin-bottom: 20px;
    }

    .footer-wrapper ul#menu-footer-menu {
        display: block;
        text-align: center;
        line-height: 3;
        text-align: -webkit-center;
    }

    .footer-wrapper .branches-wrapper {
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }

    .branches-wrapper .branch {
        width: 100%;
        margin-top: 10px;
    }

    .footer-wrapper section.footer-widgets {
        width: 100%;
    }

    .footer-wrapper input#footer-search {
        width: 100%;
        max-width: unset;
    }

    .footer-wrapper .footer-search-form {
        width: 100%;
    }

    .footer-wrapper .search-field-wrap {
        max-width: unset;
        width: 100%;
    }

    .footer-wrapper .bottom-footer-wrapper {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-wrapper .social-links {
        margin-top: 1rem;
        justify-content: space-between;
    }

    ul#menu-footer-menu li {
        width: max-content;
        flex: 1 1 auto;
        min-width: 150px;
        max-width: 100%;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    ul#menu-footer-menu li  a{
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

.footer-search-form {
    width: 100%;
}

footer .search-field-wrap {
    max-width: unset;
    width: 100%;
}

footer .social-links {
    margin-top: 1rem;
    justify-content: space-between;
}

.appdome-footer {
    background-color: #000000;
}

#footer-logo svg:hover path {
    fill: var(--e-global-color-primary);
    transition: 0.4s;
}

#footer-logo svg path {
    transition: 0.4s;
}
