﻿body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background: #f5f5f5;
    direction: rtl;
}

header {
    background-color: #1E2F23;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

    header .logo {
        order: 1;
        font-size: 1.5rem;
        font-weight: bold;
        margin-left: auto;
    }

#main-nav {
    order: 2;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-right: auto;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
}

    nav a:hover {
        background-color: #263a2c;
        color: white !important;
        border-radius: 5px;
        font-weight:700;
    }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1E2F23;
    min-width: 180px;
    top: 100%;
    right: 0;
    z-index: 9999;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    .dropdown-content a {
        display: block;
        padding: 10px 15px;
        color: white;
        text-decoration: none;
    }

        .dropdown-content a:hover {
            background-color: #2c3e2e;
            color: white;
            font-weight: 400;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    order: 0;
}

.translate-auth {
    order: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.translate-box select {
    padding: 6px 10px;
    border-radius: 25px;
    border: 1px solid #ccc;
    background: white;
    color: #1E2F23;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}

.goog-logo-link,
.goog-te-gadget span,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
body > .skiptranslate {
    display: none !important;
    height: 0 !important;
    visibility: hidden;
}

html {
    margin-top: 0px !important;
}

.auth-buttons a, .auth-buttons form button {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

    .auth-buttons a.login {
        background: #FFD600;
        color: #1E2F23;
    }

    .auth-buttons a.profile {
        background: #ffffff;
        color: #1E2F23;
        margin-left: 10px;
    }

    .auth-buttons form button.logout {
        background: #c62828;
        color: white;
        border: none;
        margin-left: 10px;
    }

.container {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

footer {
    background-color: #1E2F23;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-col {
    min-width: 200px;
}

    .footer-col h4 {
        border-bottom: 2px solid #FFD600;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }

    .footer-col a, .footer-col p {
        color: white;
        text-decoration: none;
        margin: 4px 0;
        display: block;
    }

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    #main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1E2F23;
        padding: 1rem 0;
        order: 4;
    }

        #main-nav.show {
            display: flex;
        }

        #main-nav a {
            padding: 10px 20px;
            border-top: 1px solid #ffffff22;
        }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        top: auto;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .translate-auth {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        width: 100%;
    }

    .mobile-auth {
        display: block;
        padding: 10px 20px;
    }

        .mobile-auth .translate-box {
            margin-bottom: 10px;
        }

        .mobile-auth .auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

    .auth-buttons a,
    .auth-buttons form button {
        width: 100%;
        text-align: center;
    }
}

#main-nav > a:last-of-type {
    margin-left: 160px; /* ✅ تزييح الترجمة لليسار واللينكات لليمين */
}
/* ✅ أضف داخل CSS */
.dropdown > a::after {
    content: " ▼";
    font-size: 12px;
    margin-right: 4px;
    color: #fff;
}

