/* ================= HEADER GREEN PRO ================= */
.public-header{
    background:#145c32; /* 🔥 أخضر احترافي */
    padding:12px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

/* Logo */
.brand span{
    color:#fff;
    font-weight:700;
}

/* روابط */
.public-nav a{
    color:#e0e0e0;
    text-decoration:none;
    transition:0.3s;
}

.public-nav a:hover{
    color:#fff;
}

/* active */
.public-nav .active{
    color:#fff;
    font-weight:600;
}

/* underline احترافي */
.public-nav a{
    position:relative;
}

.public-nav a::after{
    content:'';
    position:absolute;
    bottom:-5px;
    left:0;
    width:0;
    height:2px;
    background:#A5D6A7;
    transition:0.3s;
}

.public-nav a:hover::after,
.public-nav .active::after{
    width:100%;
}

/* Language */
.lang-switch a{
    background:rgba(255,255,255,0.15);
    color:#fff;
}

.lang-switch .active{
    background:#fff;
    color:#145c32;
}

/* زر المينيو */
.menu-toggle{
    display:none;
    font-size:24px;
    background:none;
    border:none;
    cursor:pointer;
}

/* Responsive */
@media(max-width:900px){

    .menu-toggle{
        display:block;
    }

    .public-nav{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        gap:15px;
        padding:20px;
        display:none;
        border-top:1px solid #eee;
    }

    .public-nav.show{
        display:flex;
    }
}



/* ==============================
   Responsive Mobile Fix
   أضفه في آخر ملف CSS فقط
============================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.public-header {
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle {
    color: #fff;
}

/* التابلت والجوال */
@media (max-width: 900px) {
    .public-header {
        padding: 12px 16px;
        min-height: 66px;
    }

    .brand span {
        font-size: 15px;
        line-height: 1.5;
        white-space: normal;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        color: #fff;
        background: rgba(255,255,255,0.12);
        flex: 0 0 auto;
    }

    .public-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        display: none;
        border-top: 1px solid #eee;
        box-shadow: 0 16px 30px rgba(0,0,0,0.12);
        z-index: 999;
    }

    .public-nav.show {
        display: flex;
    }

    .public-nav a {
        color: #145c32;
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 14px;
        background: #f4faf5;
        font-size: 14px;
        font-weight: 800;
    }

    .public-nav a:hover,
    .public-nav .active {
        background: #145c32;
        color: #fff;
    }

    .public-nav a::after {
        display: none;
    }

    .lang-switch {
        justify-content: center;
        width: 100%;
        margin-top: 4px;
    }

    .lang-switch a {
        width: auto;
        min-width: 48px;
        background: #e8f5e9;
        color: #145c32;
        padding: 8px 12px;
        border-radius: 999px;
        text-align: center;
    }

    .lang-switch .active {
        background: #145c32;
        color: #fff;
    }
}

/* الجوالات الصغيرة */
@media (max-width: 480px) {
    .public-header {
        padding: 10px 12px;
        gap: 10px;
    }

    .brand span {
        font-size: 13px;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
        font-size: 22px;
    }

    .public-nav {
        padding: 12px;
    }

    .public-nav a {
        font-size: 13px;
        padding: 11px;
        border-radius: 12px;
    }

    .lang-switch a {
        font-size: 12px;
        padding: 7px 11px;
    }
}

/* أصغر الشاشات */
@media (max-width: 360px) {
    .brand span {
        font-size: 12px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .public-nav a {
        font-size: 12px;
    }
}