/* footer css start here */

footer {
    position: relative;
    width: 100%;
    font-family: var(--font-body);
    padding: 0 0 30px 0;
    overflow-y: auto;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/footer-background-image.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer .wraper-footer {
    display: grid;
    justify-content: space-between;
    background: #fff;
    padding: 50px 20px;
    border-radius: 24px;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin: clamp(60px, 10vw + 20px, 210px) 0 20px 0;
}

footer .wraper-footer .box:first-child p {
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

footer .wraper-footer .box {
    border-right: 1px solid #000;
    padding-right: 30px;
}

footer .wraper-footer .box h4 {
    font-size: 20px;
    font-weight: 600;
    color: #323232 ;
    border-bottom: 1px solid #000;
    width: 100%;
    padding-bottom: 5px;
    margin: 20px 0 7px 0;
}
footer .wraper-footer .box p {
    
    color: #323232 ;
  
}

.footer-social ul {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.footer-social ul li a:hover svg,
.footer-social ul li a:hover svg rect {
    fill: #2b2766;
    transition: ease-in-out 0.5s;
}

footer .wraper-footer .box p {
    font-weight: 600;
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
}

footer .wraper-footer .box:last-child {
    border-right: 0;
    padding-right: 0;
}

footer .box.links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: #323232;
    line-height: 31px;
    text-decoration: none;
    transition: ease-in-out 0.5s;
}

footer .box.links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

footer .box.links h3 {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #000;
    width: 100%;
    margin-bottom: 13px;
    color: #323232;
    padding-bottom: 6px;
}
.links h3 a{
    font-weight: 500 !important;
}
/* h3 that contains an <a> (e.g. SOLUTIONS) — inherit heading typography so it matches other column titles */
footer .box.links h3 a {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: none;
}
footer .box.links h3 a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.wraper-footer .box img {
    object-fit: contain;
    width: 237px;
}

/* Footer PRODUCTS column: name + always-visible description */
footer .box.links .fdp-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0;
    text-decoration: none;
    line-height: 31px;
}

footer .box.links .fdp-name {
    font-size: 14px !important;
    font-weight: 400;
    color: #323232;
    line-height: inherit;
    transition: color 0.3s ease;
}

footer .box.links .fdp-item:hover .fdp-name {
    color: var(--color-secondary);
    text-decoration: underline;
}

footer .box.links .fdp-desc {
    font-size: 12.5px !important;
    font-weight: 400;
    color: #888;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 150ms ease, max-height 150ms ease;
}

footer .box.links .fdp-item:hover .fdp-desc {
    opacity: 1;
    max-height: 40px;
}

.copyrihgt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #fff;
    margin-top: 18px;
}

.copyrihgt ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer li {
    list-style: none;
}

.copyrihgt ul li a {
    font-size: 14px;
    transition: ease-in-out 0.5s;
    color: #fff;
}

.copyrihgt ul li a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    footer {
        padding: 0 0 24px;
    }
    footer .wraper-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
        padding: 34px 20px;
    }
    footer .wraper-footer .box {
        border-right: 0;
        padding-right: 0;
    }
    .wraper-footer .box img {
        width: min(220px, 100%);
    }
    .copyrihgt {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 14px;
    }
    .copyrihgt ul {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 0 0 24px;
        margin-top: 30px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    }
    footer .wraper-footer {
        /* border: 2px solid var(--navy); */
        border-radius: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 14px 14px;
        width: 100%;
        margin-top: 28px;
    }
    footer .wraper-footer .box {
        border-bottom: 1px solid rgba(0, 0, 0, 0.18);
        padding-bottom: 12px;
        border-right: 0;
        padding-right: 0;
    }
    footer .wraper-footer .box:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    footer .wraper-footer .box h4,
    footer .box.links h3 {
        margin-bottom: 8px;
        padding-bottom: 5px;
    }
    footer .box.links a {
        font-size: 13px;
        line-height: 1.55;
    }
    footer .box.links .fdp-item {
        line-height: 1.55;
    }
    footer .box.links .fdp-name {
        font-size: 13px;
    }
    footer .wraper-footer .box p {
        font-size: 12px;
        line-height: 1.45;
    }
    .wraper-footer .box img {
        width: min(190px, 100%);
    }
    .footer-social ul {
        margin-top: 10px;
        gap: 8px;
    }
    .footer-social ul li a svg {
        width: 30px;
        height: 30px;
    }
    .copyrihgt {
        font-size: 13px;
        gap: 8px;
        margin-top: 10px;
        padding: 0 12px;
        align-items: center;
        text-align: center;
    }
    .copyrihgt p {
        width: 100%;
    }
    .copyrihgt ul {
        justify-content: center;
        width: 100%;
    }
    .copyrihgt ul li a {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    footer .wraper-footer {
        margin-left: 0;
        margin-right: 0;
        padding: 16px 12px 12px;
        margin-top: 30px;
    }
    footer .box.links h3,
    footer .wraper-footer .box h4 {
        font-size: 15px;
    }
    footer .box.links a,
    footer .wraper-footer .box p {
        font-size: 12px;
    }
    footer .box.links .fdp-name {
        font-size: 12px;
    }
}


/* footer css end here */
