﻿/* =========================================================
   Footer Style - Final Clean Version
   Al Salam identity: dark green + gold + white
   ========================================================= */

footer {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
    background: linear-gradient(180deg, rgba(1, 56, 43, 0.96), rgba(1, 40, 32, 0.98)), url('../img/pages/footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

    footer::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(1, 40, 32, 0.40) !important;
    }

    footer .top-footer {
        position: relative;
        padding: 55px 0 35px !important;
    }

    footer .footer-about .logo-footer {
        width: auto;
        height: 64px !important;
        margin: 0 0 18px 0 !important;
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

    footer .footer-about a .slogan,
    footer .footer-about a:focus .slogan {
        display: block;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 600;
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

    footer .footer-about a:hover .slogan {
        color: var(--as-gold, #D6B56D);
    }

    footer .footer-about p.footer-pra {
        max-width: 320px;
        margin: 0;
        padding: 0 !important;
        color: rgba(255, 255, 255, 0.78) !important;
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    footer .footer-title {
        position: relative;
        margin-bottom: 24px !important;
        color: var(--as-gold, #D6B56D) !important;
        font-family: var(--font-rajdhani);
        font-size: 18px !important;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

        footer .footer-title::after {
            content: "";
            position: absolute;
            left: 0;
            top: 32px !important;
            width: 48px !important;
            height: 2px !important;
            border-radius: 2px;
            background-color: var(--as-gold, #D6B56D) !important;
        }

    footer .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 28px;
        margin-bottom: 0;
        padding-left: 0;
    }

    footer .footer-links a,
    footer .footer-links a:focus {
        position: relative;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 14px;
        font-weight: 500;
        line-height: 2.3rem;
        padding-left: 14px !important;
    }

        footer .footer-links a:hover,
        footer .footer-links a.active {
            color: var(--as-gold, #D6B56D) !important;
            padding-left: 20px !important;
        }

        footer .footer-links a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 15px !important;
            width: 0.25rem;
            height: 2px;
            opacity: 1;
            background-color: var(--as-gold, #D6B56D) !important;
            transition: all 0.3s ease-in-out;
        }

        footer .footer-links a:hover::before,
        footer .footer-links a.active::before {
            width: 1rem;
        }

    footer .footer-contact .contact-item {
        position: relative;
        display: block;
        margin-bottom: 18px !important;
        padding: 0;
    }

        footer .footer-contact .contact-item:last-child {
            margin-bottom: 0 !important;
        }

        footer .footer-contact .contact-item i {
            position: absolute;
            top: 0.25rem;
            color: var(--as-gold, #D6B56D) !important;
            font-size: 20px !important;
            transition: all 0.3s ease-in-out;
        }

        footer .footer-contact .contact-item a,
        footer .footer-contact .contact-item a:focus {
            display: block;
            margin-left: 2.5rem;
            color: rgba(255, 255, 255, 0.84) !important;
            font-size: 14px;
            line-height: 1.7;
        }

            footer .footer-contact .contact-item a:hover {
                color: var(--as-gold, #D6B56D) !important;
            }

    footer .footer-contact .follow-us {
        position: relative;
        color: #fff;
    }

        footer .footer-contact .follow-us span {
            margin-right: 0.75rem;
            color: #fff;
            font-weight: 700;
        }

        footer .footer-contact .follow-us .social {
            display: inline-block;
        }

            footer .footer-contact .follow-us .social .footer-social-link,
            footer .footer-contact .follow-us .social .footer-social-link:focus {
                width: auto;
                margin-right: 1.25rem;
                color: rgba(255, 255, 255, 0.84) !important;
                font-size: 1.125rem;
                text-decoration: none;
                transition: all 0.3s ease-in-out;
            }

                footer .footer-contact .follow-us .social .footer-social-link:last-child {
                    margin-right: 0;
                }

                footer .footer-contact .follow-us .social .footer-social-link:hover {
                    color: var(--as-gold, #D6B56D) !important;
                }

    footer .subscribe-widget {
        position: relative;
        z-index: 1;
        margin-top: -7rem;
        padding: 4rem 2.5rem 3rem;
        color: #fff;
    }

        footer .subscribe-widget::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            z-index: -1;
            width: 100%;
            height: 100%;
            background-color: var(--as-green-soft, #0A6A4E);
            clip-path: polygon(0% 5%, 100% 0, 100% 100%, 0% 100%);
        }

        footer .subscribe-widget .overlay-icon {
            position: absolute;
            right: 1.5rem;
            top: 4rem;
            color: rgba(255, 255, 255, 0.20);
            font-size: 10rem;
        }

        footer .subscribe-widget .overlay-icon-02 {
            color: rgba(255, 255, 255, 0.35);
            font-size: 4.5rem;
        }

        footer .subscribe-widget .form-outline .form-control {
            padding: 0.5rem;
            color: var(--black-color, #000);
            background-color: #fff;
            border: none;
            border-bottom: 1px solid #fff;
            border-radius: 0;
        }

        footer .subscribe-widget .btn-cus-01,
        footer .subscribe-widget .btn-cus-01:focus {
            display: block;
            width: 100%;
            padding: 0.25rem;
            text-align: center;
            position: relative;
            z-index: 2;
            background-color: var(--as-green-soft, #0A6A4E);
            color: #fff;
            border: 2px solid #fff;
            border-radius: 0;
            font-family: var(--font-rajdhani);
            font-size: 1.125rem;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.3s ease-in-out;
        }

            footer .subscribe-widget .btn-cus-01:hover {
                background-color: var(--as-green, #04543D);
                color: #fff;
            }

    footer .copyright {
        position: relative;
        width: 100%;
        height: auto;
        padding: 16px 0 !important;
        border-top: 1px solid rgba(214, 181, 109, 0.25) !important;
        background: rgba(1, 40, 32, 0.45);
    }

        footer .copyright p {
            margin-bottom: 0;
            color: rgba(255, 255, 255, 0.72) !important;
            font-size: 13px;
        }

            footer .copyright p a,
            footer .copyright p a:focus {
                color: rgba(255, 255, 255, 0.72) !important;
            }

                footer .copyright p a:hover {
                    color: #fff !important;
                }

    footer .back-to-top,
    footer .back-to-top:focus {
        display: inline-block;
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #F5F1E5 !important;
        text-align: center;
        z-index: 1;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
        transition: all 0.3s ease-in-out;
    }

        footer .back-to-top:hover {
            background: var(--as-gold, #D6B56D) !important;
        }

        footer .back-to-top i {
            position: relative;
            top: 0 !important;
            color: var(--as-green, #04543D) !important;
            font-size: 20px !important;
        }

html[dir="rtl"] footer .footer-about p.footer-pra,
body[dir="rtl"] footer .footer-about p.footer-pra {
    text-align: right;
}

html[dir="rtl"] footer .footer-title::after,
body[dir="rtl"] footer .footer-title::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] footer .footer-links ul,
body[dir="rtl"] footer .footer-links ul {
    padding-right: 0;
}

html[dir="rtl"] footer .footer-links a,
body[dir="rtl"] footer .footer-links a {
    padding-left: 0 !important;
    padding-right: 14px !important;
}

    html[dir="rtl"] footer .footer-links a:hover,
    body[dir="rtl"] footer .footer-links a:hover {
        padding-left: 0 !important;
        padding-right: 20px !important;
    }

    html[dir="rtl"] footer .footer-links a::before,
    body[dir="rtl"] footer .footer-links a::before {
        left: auto;
        right: 0;
    }

html[dir="rtl"] footer .footer-contact .contact-item a,
body[dir="rtl"] footer .footer-contact .contact-item a {
    margin-left: 0;
    margin-right: 2.5rem;
}

html[dir="rtl"] footer .footer-contact .follow-us span,
body[dir="rtl"] footer .footer-contact .follow-us span {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] footer .footer-contact .follow-us .social .footer-social-link,
body[dir="rtl"] footer .footer-contact .follow-us .social .footer-social-link {
    margin-right: 0;
    margin-left: 1.25rem;
}

    html[dir="rtl"] footer .footer-contact .follow-us .social .footer-social-link:last-child,
    body[dir="rtl"] footer .footer-contact .follow-us .social .footer-social-link:last-child {
        margin-left: 0;
    }

@media (max-width: 990px) {
    footer {
        background-attachment: scroll;
    }

        footer .top-footer {
            padding: 42px 0 28px !important;
            text-align: center;
        }

        footer .footer-about .logo-footer {
            margin: 0 auto 18px auto !important;
        }

        footer .footer-about p.footer-pra {
            margin: 0 auto;
            text-align: center !important;
        }

        footer .footer-title {
            margin-top: 24px;
        }

            footer .footer-title::after,
            html[dir="rtl"] footer .footer-title::after,
            body[dir="rtl"] footer .footer-title::after {
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%);
            }

        footer .footer-links ul {
            grid-template-columns: 1fr;
            gap: 0;
        }

        footer .footer-links a,
        footer .footer-links a:hover,
        html[dir="rtl"] footer .footer-links a,
        html[dir="rtl"] footer .footer-links a:hover,
        body[dir="rtl"] footer .footer-links a,
        body[dir="rtl"] footer .footer-links a:hover {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

            footer .footer-links a::before {
                display: none;
            }

        footer .footer-contact .contact-item i {
            position: relative !important;
            top: auto !important;
            margin-right: 8px;
        }

    html[dir="rtl"] footer .footer-contact .contact-item i,
    body[dir="rtl"] footer .footer-contact .contact-item i {
        margin-right: 0;
        margin-left: 8px;
    }

    footer .footer-contact .contact-item a,
    html[dir="rtl"] footer .footer-contact .contact-item a,
    body[dir="rtl"] footer .footer-contact .contact-item a {
        display: inline-block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    footer .subscribe-widget {
        margin-top: 0;
        padding: 2rem;
        background-color: var(--as-green-soft, #0A6A4E);
    }

        footer .subscribe-widget::before {
            display: none;
        }

        footer .subscribe-widget .overlay-icon {
            top: 1.5rem;
        }

    footer .copyright {
        text-align: center;
    }
}

@media (max-width: 570px) {
    footer .top-footer {
        padding: 4rem 0 2rem !important;
    }
}
