/* Footer Premium Styles */
.footer-premium {
    background-color: #0a3a78;
    color: #ffffff;
    padding: 25px 0 15px; /* تقليل المسافة العلوية والسفلية بشكل أكبر */
    position: relative;
    margin-top: 30px; /* تقليل الهامش العلوي بشكل أكبر */
}

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

.footer-premium .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* تقليل الحد الأدنى لعرض العمود من 250px إلى 200px */
    gap: 15px; /* تقليل المسافة بين أقسام الفوتر بشكل أكبر */
    margin-bottom: 20px; /* تقليل الهامش السفلي بشكل أكبر */
}

.footer-premium .footer-col {
    margin-bottom: 10px; /* تقليل الهامش السفلي بشكل أكبر */
}

.footer-premium .footer-about h3 {
    position: relative;
    color: #ffffff;
    font-size: 18px; /* تقليل حجم الخط بشكل أكبر */
    margin-bottom: 10px; /* تقليل الهامش السفلي بشكل أكبر */
    font-weight: 600;
}

.footer-premium .footer-about p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px; /* تقليل الهامش السفلي بشكل أكبر */
    line-height: 1.4; /* تقليل ارتفاع السطر بشكل أكبر */
    font-size: 0.9rem; /* تقليل حجم الخط */
}

.footer-premium .social-links {
    display: flex;
    gap: 10px; /* تقليل المسافة بين أيقونات وسائل التواصل الاجتماعي */
}

.footer-premium .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* تقليل حجم أيقونات وسائل التواصل */
    height: 35px; /* تقليل حجم أيقونات وسائل التواصل */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-premium .social-links a:hover {
    background-color: #d4af37;
    transform: translateY(-3px);
}

.footer-premium .footer-links h3 {
    position: relative;
    color: #ffffff;
    font-size: 18px; /* تقليل حجم الخط بشكل أكبر */
    margin-bottom: 10px; /* تقليل الهامش السفلي بشكل أكبر */
    font-weight: 600;
}

.footer-premium .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-premium .footer-links li {
    margin-bottom: 5px; /* تقليل المسافة بين عناصر القائمة بشكل أكبر */
}

.footer-premium .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
    font-size: 0.9rem; /* تقليل حجم خط الروابط */
}

.footer-premium .footer-links a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d4af37;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-premium .footer-links a:hover {
    color: #ffffff;
    padding-right: 20px;
}

.footer-premium .footer-links a:hover::before {
    opacity: 1;
}

.footer-premium .footer-contact h3 {
    position: relative;
    color: #ffffff;
    font-size: 18px; /* تقليل حجم الخط بشكل أكبر */
    margin-bottom: 10px; /* تقليل الهامش السفلي بشكل أكبر */
    font-weight: 600;
}

.footer-premium .footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 7px; /* تقليل الهامش السفلي بشكل أكبر */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem; /* تقليل حجم الخط */
}

.footer-premium .footer-contact i {
    color: #d4af37;
    margin-left: 15px;
    margin-top: 5px;
}

.footer-premium .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px; /* تقليل البادنج العلوي بشكل أكبر */
    text-align: center;
}

.footer-premium .footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.85rem; /* تقليل حجم خط حقوق النشر */
}

/* RTL Specific Footer Styles */
html[dir="rtl"] .footer-premium .footer-links a::before {
    right: 0;
    left: auto;
}

html[dir="rtl"] .footer-premium .footer-links a:hover {
    padding-right: 20px;
    padding-left: 0;
}

/* LTR Specific Footer Styles */
html[dir="ltr"] .footer-premium .footer-links a {
    padding-right: 0;
    padding-left: 15px;
}

html[dir="ltr"] .footer-premium .footer-links a::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .footer-premium .footer-links a:hover {
    padding-right: 0;
    padding-left: 20px;
}

html[dir="ltr"] .footer-premium .footer-contact i {
    margin-left: 0;
    margin-right: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #d4af37;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

html[dir="ltr"] .back-to-top {
    right: auto;
    left: 25px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0a4999;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-premium {
        padding: 50px 0 20px;
    }
    
    .footer-premium .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-premium .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-premium .footer-content {
        grid-template-columns: 1fr;
    }
}
