/* ========= تنسيقات الفوتر المخصص ========= */

.custom-site-footer {
    background-color: #0A0A23; /* اللون الكحلي اللي تبيه */
    color: #ffffff;
    padding: 50px 20px 20px 20px;
    text-align: right;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* قسم البراند */
.footer-branding {
    text-align: center;
    margin-bottom: 30px;
}

.footer-branding h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.footer-branding .slogan {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-branding .about-text,
.footer-branding .tax-number {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    max-width: 450px;
    margin: 10px auto;
}

/* منطقة الروابط والتواصل */
.footer-widgets-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widget {
    width: 100%;
    margin-bottom: 30px;
}

/* في الشاشات الأكبر */
@media (min-width: 768px) {
    .footer-widgets-area {
        flex-wrap: nowrap;
    }
    .footer-widget.footer-links {
        width: 48%;
    }
    .footer-widget.footer-contact {
        width: 48%;
    }
}

.footer-widget h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

/* تنسيق الروابط المهمة */
.footer-links ul {
    list-style: none;
    padding-right: 0;
}

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

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

/* تنسيق أزرار التواصل */
.footer-contact .contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.footer-contact .contact-button:hover {
    background-color: #1a1a3e; /* أفتح شوي */
}

.footer-contact .contact-button i {
    margin-left: 10px;
    font-size: 18px;
}

/* قسم التوثيق */
.footer-accreditation {
    text-align: center;
    margin-bottom: 30px;
}

.footer-accreditation img {
    max-width: 120px;
    margin-bottom: 10px;
}

.footer-accreditation p {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

/* الشريط السفلي */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-social-icons {
    margin-bottom: 20px;
}

.footer-social-icons a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #ccc;
}

.footer-payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-payment-icons img {
    height: 30px;
    width: auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 5px;
    transition: transform 0.3s ease;
}

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

/* زر العودة للأعلى */
.back-to-top-button {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #fff;
    color: #0A0A23; /* نفس لون الفوتر */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top-button.show {
    display: flex;
    opacity: 1;
}

.back-to-top-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* تحسينات للموبايل */
@media (max-width: 767px) {
    .custom-site-footer {
        padding: 40px 15px 15px 15px;
    }
    
    .footer-branding h3 {
        font-size: 24px;
    }
    
    .footer-branding .slogan {
        font-size: 14px;
    }
    
    .footer-widget h4 {
        font-size: 16px;
    }
    
    .footer-contact .contact-button {
        font-size: 14px;
        padding: 10px;
    }
    
    .footer-social-icons a {
        font-size: 20px;
        margin: 0 8px;
    }
    
    .footer-payment-icons img {
        height: 25px;
    }
    
    .back-to-top-button {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
        font-size: 18px;
    }
}
