/* ========================================
   Footer Professional Styles
   تصميم احترافي للفوتر
   ======================================== */

/* Main Footer Section */
.footer-section {
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%) !important;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A962, #D4B870, #C9A962, #B8934A, #C9A962);
}

/* Footer Top */
.footer-top {
    background: transparent !important;
    padding: 60px 0 40px !important;
    position: relative;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* Footer Logo Enhanced */
.footer-logo-wrapper {
    display: flex;
    justify-content: center;
}

/* الشعار متوسط دائماً */

.footer-logo-container {
    position: relative;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(201, 169, 98, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    animation: logoGlow 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(135deg, #C9A962, #D4B870, #C9A962, #B8934A);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

.footer-logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 248, 248, 1));
    z-index: -1;
}

.footer-logo-container:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(201, 169, 98, 0.8);
}

.footer-main-logo {
    max-width: 43%;
    width: auto;
    height: auto;
    min-width: 120px;
    max-height: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.footer-logo-container:hover .footer-main-logo {
    transform: scale(1.08);
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.2),
            0 0 0 3px rgba(201, 169, 98, 0.5);
    }

    50% {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.25),
            0 0 0 4px rgba(201, 169, 98, 0.8),
            0 0 20px rgba(201, 169, 98, 0.3);
    }
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(0deg, #C9A962, #D4B870, #C9A962, #B8934A);
    }

    25% {
        background: linear-gradient(90deg, #C9A962, #D4B870, #C9A962, #B8934A);
    }

    50% {
        background: linear-gradient(180deg, #C9A962, #D4B870, #C9A962, #B8934A);
    }

    75% {
        background: linear-gradient(270deg, #C9A962, #D4B870, #C9A962, #B8934A);
    }

    100% {
        background: linear-gradient(360deg, #C9A962, #D4B870, #C9A962, #B8934A);
    }
}

/* Footer Headings */
.footer-heading {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.2rem;
    margin-bottom: 1.5rem !important;
    padding-bottom: 12px;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-heading::before {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    right: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #C9A962, #D4B870) !important;
    border-radius: 2px !important;
    top: auto !important;
    transform: none !important;
}

/* Footer Text */
.footer-text {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Footer About Section */
.footer-about {
    padding-left: 20px;
}

/* Footer Partners Logos */
.footer-partners {
    margin-top: 1.5rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-partner-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.footer-partner-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-partner-logo img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    border-radius: 8px;
}

/* Footer Links */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
}

.footer-links a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px) !important;
}

.footer-links .icon,
.footer-links i {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    color: #C9A962;
}

/* Contact Info Section - FIXED */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.contact-info .icon-box {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(184, 147, 74, 0.2)) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    flex-shrink: 0;
}

.contact-info .icon-box .icon {
    width: 20px !important;
    height: 20px !important;
    color: #C9A962;
}

.contact-info .contact-text {
    flex: 1;
}

.contact-info .contact-text p {
    margin-bottom: 5px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info .map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #C9A962 !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.contact-info .map-link:hover {
    color: #D4B870 !important;
}

/* Social Icons */
.social-icons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icon {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: linear-gradient(135deg, #C9A962, #B8934A) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(201, 169, 98, 0.3);
}

.social-icon .icon,
.social-icon i {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
}

.developer {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
}

.developer-link {
    color: #C9A962 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #D4B870 !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .footer-top {
        padding: 40px 0 30px !important;
    }

    .footer-about {
        padding-left: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-partners {
        justify-content: center;
    }

    .footer-partners .d-flex {
        justify-content: center;
    }
}

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

    .footer-heading::before {
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    .footer-links a {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-info .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom .row {
        text-align: center;
    }

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

    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

/* Icon Fixes for Footer */
.footer-section .icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Override local-icons colors in footer */
.footer-section .icon,
.footer-section .contact-info .icon,
.footer-section .footer-links .icon {
    background: linear-gradient(135deg, #C9A962 0%, #D4B870 100%) !important;
}

.footer-section .social-icon .icon {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}