/* ============================================================
   Shared Layout Styles — Header, Navigation, Side Menu, Marquee
   ============================================================ */

/* ====== شريط أخبار متحرك (Marquee) ====== */
@keyframes marquee-left {
    0% {
        transform: translateX(-38%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-marquee-left {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-left 40s linear infinite;
}

/* ====== روابط التنقل ====== */
.nav-link {
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}

.nav-link.is-active {
    border-bottom: 2px solid #0d2321;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fff;
}

/* ====== القائمة الجانبية (Side Menu) ====== */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -4px 0 16px rgba(0, 0, 0, .12);
    transition: right .3s ease;
}

.side-menu.active {
    right: 0;
}

/* ====== أنماط التنقل الرسبونسف ====== */
@media (max-width: 1299px) {

    .desktop-nav,
    .desktop-login {
        display: none !important;
    }

    #menuToggle {
        display: block !important;
    }
}

@media (min-width: 1300px) {

    .desktop-nav,
    .desktop-login {
        display: flex !important;
    }

    #menuToggle {
        display: none !important;
    }
}

.logo {
    display: block !important;
}

/* ====== تحسين تموضع النافبار في الشاشات الصغيرة ====== */
@media (max-width: 767px) {
    nav.absolute {
        top: 1.5rem !important;
    }
}

/* ====== ماركيه (نسخة قديمة للتوافق) ====== */
@keyframes marquee {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }


/* ================================================================
   FOOTER — كل ستايلات الفوتر هنا (نُقلت من inline style)
   ================================================================ */

/* عنوان قسم الفوتر */
.footer-heading {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 2.25rem;
    height: 2px;
    border-radius: 9999px;
    background: #D4B265;
    transition: width 0.25s ease;
}
.footer-heading:hover::after { width: 3.5rem; }

/* محاذاة وسط */
.text-center > .footer-heading::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
}
[dir="rtl"] .text-center > .footer-heading::after { transform: translateX(50%); }

@media (min-width: 640px) {
    .footer-heading { font-size: 1.125rem; margin-bottom: 1.25rem; }
}

/* روابط الفوتر */
.footer-link {
    display: inline-block;
    color: rgb(209 213 219);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.25rem 0;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-link:hover { color: #fff; transform: translateX(-3px); }
[dir="ltr"] .footer-link:hover { transform: translateX(3px); }

@media (min-width: 640px) { .footer-link { font-size: 1rem; } }

/* عناصر التواصل */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 0.625rem;
    color: rgb(209 213 219);
    font-size: 0.875rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.footer-contact-item:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(212, 178, 101, .4);
    color: #fff;
}
.footer-contact-item i {
    color: #D4B265;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}
.footer-contact-item span { word-break: break-word; }

.text-center > ul .footer-contact-item { justify-content: center; }
@media (min-width: 640px) {
    .sm\:text-start ~ ul .footer-contact-item,
    .text-center.sm\:text-start ul .footer-contact-item { justify-content: flex-start; }
}