
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
    --brand-red: #DD183B;
    --dark-blue: #0F172A;
    --white: #ffffff;
    --bg-body: #ffffff;
    --text-main: #1e293b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

[data-theme="dark"] { 
    --bg-body: #0b1120; 
    --text-main: #f1f5f9; 
    --card-bg: #1e293b; 
    --border-color: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }

body {
    line-height: 1.6; 
    background-color: var(--bg-body); 
    color: var(--text-main);
    padding-top: 80px; 
    direction: rtl; 
    text-align: right; 
    transition: background 0.3s;
}


header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background-color: var(--dark-blue) !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease-in-out;
}


.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li a {
    color: #ffffff; 
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active-link {
    color: var(--brand-red); 
}


.header-actions { 
    display: flex !important; 
    align-items: center; 
    gap: 15px; 
}

.btn-header, .btn-action, .btn-submit, .blog-link {
    background-color: var(--brand-red) !important; 
    color: #ffffff !important; 
    padding: 10px 24px; 
    border-radius: 8px;
    font-weight: 700; 
    font-size: 14px;
    border: none; 
    cursor: pointer; 
    transition: 0.3s ease; 
    text-decoration: none;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
}

.btn-header:hover, .btn-action:hover {
    background-color: #b0132f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 24, 59, 0.3);
}

.theme-btn, .menu-toggle { 
    display: flex !important; 
    background: rgba(255, 255, 255, 0.1); 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    color: white !important; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    border: none;
    transition: 0.3s;
}

.theme-btn:hover, .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 280px;
    height: 100vh;
    background-color: var(--dark-blue);
    z-index: 10000;
    padding: 20px;
    transition: 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    visibility: hidden; /* Prevent focus when hidden */
}

.mobile-menu.active {
    right: 0; 
    visibility: visible;
}

.mobile-menu .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active-link {
    background: rgba(255,255,255,0.1);
    color: var(--brand-red);
}

.theme-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}



@media (min-width: 769px) {
    .menu-toggle { display: none !important; } 
    .mobile-menu { display: none !important; } 
    .desktop-nav { display: block !important; } 
}

@media (max-width: 768px) {
    header { height: 70px; padding: 0 15px; }
    body { padding-top: 70px; }

    .desktop-nav { display: none !important; } 
    
    header .btn-header { display: none !important; }  */
    
    .menu-toggle { display: flex !important; } 
    
    .logo img { width: 50px; height: 50px; }
}


footer a,
footer a:visited,
footer a[href^="tel:"], 
footer a[href^="mailto:"] {
    color: #ffffff !important; 
    text-decoration: none !important; 
    transition: 0.3s;
}

footer a:hover,
footer a[href^="tel:"]:hover {
    color: var(--brand-red) !important; 
}




footer .social-icons a {
    background-color: var(--brand-red) !important; 
    color: #ffffff !important; 
    
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none !important;
    border: 1px solid var(--brand-red); 
}

footer .social-icons a:hover {
    background-color: #ffffff !important; 
    color: var(--brand-red) !important; 
    transform: translateY(-5px); 
    border-color: #ffffff;
}



.footer-bottom-bar {
    background-color: #020617; 
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    margin-top: auto;
}

.bottom-flex {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}
.copyright-text strong { color: #fff; }

.powered-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    border-radius: 4px;
    overflow: hidden;
    font-family: sans-serif; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    direction: ltr; 
}

.powered-badge:hover {
    transform: translateY(-2px);
}

.badge-label {
    background-color: #ffffff;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 8px;
    height: 28px;
    display: flex;
    align-items: center;
}

.badge-logo {
    background-color: var(--brand-red); 
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 10px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-logo img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
}

@media (max-width: 768px) {
    .bottom-flex {
        justify-content: center; 
        flex-direction: column; 
        text-align: center;
        gap: 10px;
    }
}
footer .social-icons {
    margin-bottom: 30px !important; 
    display: block; 
}


.menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px; 
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}


.lang-switch-mobile {
    flex-grow: 1; 
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #ffffff !important; 
    
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    transition: all 0.3s ease;
}

.lang-switch-mobile:hover {
    background-color: var(--brand-red); 
    border-color: var(--brand-red);
    color: white !important;
    transform: translateY(-2px);
}

.menu-footer .theme-btn {
    width: 46px !important; 
    height: 46px !important; 
    border-radius: 8px !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-footer .theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
}