﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal',sans-serif;
    direction: rtl;
}

.bar1 {
    background: #3d3d3d;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 0.71rem;
    color: #bbb;
}

.bar1-link {
    color: #4ec9c9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.71rem;
}

    .bar1-link:hover {
        text-decoration: underline;
    }

.bar1-chevron {
    color: #bbb;
    font-size: 0.6rem;
}

.bar2 {
    background: #F3F4F6;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 34px;
    flex-wrap: wrap;
    gap: 4px;
}

.bar2-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

    .bar2-lang:hover {
        color: #1a6b3c;
    }

.lang-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 24px;
    height: 17px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #333;
    background: #f7f7f7;
}

.bar2-sec {
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #444;
    padding: 3px 16px;
    background: #fff;
    white-space: nowrap;
}

.bar2-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: #444;
    font-size:15px;
}

    .meta-chip i {
        font-size: 0.78rem;
        color: #666;
    }

    .meta-chip.loc i {
        color: #1a6b3c;
    }

/* bar3 bottom border is light gray — the green indicator overrides it on hover */
.bar3 {
    background: #fff;
    border-bottom: 3px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}

.bar3-inner {
    display: flex;
    align-items: center;
    padding: 0 10px;
    min-height: 68px;
    gap: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    padding: 7px 4px;
    flex-shrink: 0;
}

.logo-sq {
    width: 48px;
    height: 48px;
    background: #1a6b3c;
    border: 2px solid #c8a84b;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .logo-sq .l1 {
        color: #fff;
        font-size: 0.55rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .logo-sq .l2 {
        color: #c8a84b;
        font-size: 0.62rem;
        font-weight: 900;
        line-height: 1.3;
    }

.brand-txt {
    line-height: 1.25;
}

.brand-ar {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a6b3c;
    display: block;
}

.brand-en {
    font-size: 0.58rem;
    color: #888;
    font-weight: 400;
    display: block;
}

/* NAV */
.nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

    .nav-list > li {
        position: relative;
        display: flex;
        align-items: stretch;
    }

        .nav-list > li > a {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0 14px;
            font-size: 0.84rem;
            font-weight: 600;
            color: #222;
            text-decoration: none;
            white-space: nowrap;
            /* green underline indicator — sits flush on the navbar bottom border */
            border-bottom: 4px solid transparent;
            margin-bottom: -3px;
            background: transparent;
            transition: border-color .2s;
            height: 100px;
            font-size: 15px ;
        }

            .nav-list > li > a .chev {
                font-size: 0.62rem;
                margin-right: 2px;
                transition: transform .22s;
            }

        /* HOVER: thick green bottom line only — text & bg unchanged */
        .nav-list > li:hover > a {
            border-bottom: 7px solid gray;
            background: #f3f4f6;
        }



        .nav-list > li.open > a .chev {
            transform: rotate(180deg);
        }

/* DROPDOWN */
.drop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 999;
    animation: fadeDown .17s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-list > li.open .drop {
    display: block;
}

.drop-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e5e5e5;
    padding: 0 4px;
}

.drop-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s,border-color .15s;
}

    .drop-tab i {
        font-size: 0.76rem;
    }

    .drop-tab.active {
        color: #1a6b3c;
        border-bottom-color: #1a6b3c;
    }

    .drop-tab:hover {
        color: #1a6b3c;
    }

.drop-items {
    padding: 6px 0 8px;
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background .13s,color .13s;
}

    .drop-item i {
        color: #1a6b3c;
        font-size: 0.88rem;
        flex-shrink: 0;
    }

    .drop-item:hover {
        background: #f2f3f5;
        color: #4f4f4f;
    }

/* ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 8px 0;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #1a1a1a;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .17s,color .17s;
}

    .act-btn i {
        font-size: 0.88rem;
        color: #444;
        transition: color .17s;
    }

    .act-btn:hover {
        background: #f0f0f0;
        color: #1a6b3c;
    }

        .act-btn:hover i {
            color: #1a6b3c;
        }

.act-sep {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 2px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
}

    .hamburger:hover {
        background: #f0f0f0;
    }

    .hamburger i {
        font-size: 1.4rem;
        color: #333;
    }

/* SEARCH */
.search-bar {
    display: none;
    align-items: center;
    gap: 9px;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 11px 18px;
    z-index: 998;
}

    .search-bar.open {
        display: flex;
    }

    .search-bar input {
        flex: 1;
        border: 1.5px solid #1a6b3c;
        border-radius: 6px;
        padding: 7px 13px;
        font-family: 'Tajawal',sans-serif;
        font-size: 0.87rem;
        outline: none;
        text-align: right;
    }

        .search-bar input:focus {
            box-shadow: 0 0 0 3px rgba(26,107,60,0.12);
        }

.sb-go {
    background: #1a6b3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-family: 'Tajawal',sans-serif;
    font-weight: 700;
    font-size: 0.83rem;
    cursor: pointer;
}

.sb-close {
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    color: #555;
}

/* MOBILE DRAWER */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 2px solid #f3f4f6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 997;
    max-height: 80vh;
    overflow-y: auto;
}

    .mobile-menu.open {
        display: flex;
    }

.mob-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: 'Tajawal',sans-serif;
    width: 100%;
    text-align: right;
}

    .mob-item:hover {
        background: #f5fbf7;
        color: #1a6b3c;
    }

    .mob-item i.chev-mob {
        font-size: 0.7rem;
        color: #999;
        transition: transform .22s;
    }

    .mob-item.open-mob i.chev-mob {
        transform: rotate(180deg);
    }

.mob-sub {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

    .mob-sub.open {
        display: flex;
    }

.mob-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 28px;
    font-size: 0.84rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

    .mob-sub-item i {
        color: #1a6b3c;
        font-size: 0.88rem;
    }

    .mob-sub-item:hover {
        background: #f0faf4;
        color: #1a6b3c;
    }

.mob-actions {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #e5e5e5;
}

.mob-act-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

    .mob-act-link i {
        color: #1a6b3c;
    }

    .mob-act-link:hover {
        background: #f5fbf7;
        color: #1a6b3c;
    }

/* RESPONSIVE */
/*@media(min-width: 545px) and (max-width: 768px) {
    .act-btn span {
        display: none;
    }

    .act-sep {
        display: none;
    }

    .act-btn {
        padding: 7px 9px;
    }

    .nav-list > li > a {
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .bar2-sec {
        display: none;
    }

    .bar2-meta {
        gap: 7px;
    }
}*/

@media(min-width: 1px) and (max-width: 790px) {
    .bar2 {
        flex-wrap: wrap;
        gap: 5px;
    }

    .bar2-meta .meta-chip:not(.loc) {
        display: none;
    }

    .bar1 {
        font-size: 0.65rem;
        gap: 4px;
    }

    .nav-list {
        display: none;
    }

    .nav-actions {
        display: none !important;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
    }

    .bar3-inner {
        padding: 0 8px;
    }

    .brand-txt {
        display: none;
    }

    .logo-sq {
        width: 44px;
        height: 44px;
    }

    .search-bar {
        padding: 9px 12px;
    }

   
}

/*@media(max-width:400px) {
    .bar1 .bar1-text {
        display: none;
    }

}*/


.nav-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    height: 65px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #222;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    margin-bottom: -3px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}

    .act-btn i {
        font-size: 0.88rem;
        color: #444;
        transition: color .2s;
    }

    .act-btn span{
        font-size:15px;
    }

    .act-btn:hover {
        border-bottom: 7px solid gray;
        background: #f3f4f6;
    }

        .act-btn:hover i {
            color: #1a6b3c;
        }

.act-sep {
    width: 1px;
    height: 22px;
    background: #ddd;
    margin: auto 2px;
}


.activemenu {
    border-bottom: 7px solid #54C08A !important;
    background: #1B8354 !important;
    color: #fff !important;
}


/* 900px — hide labels */
/*@media (max-width: 900px) {
    .act-btn span {
        display: none;
    }

    .act-btn {
        padding: 0 9px;
    }

    .act-sep {
        display: none;
    }
}*/

/* 660px — hide entire actions (hamburger takes over) */
/*@media (max-width: 660px) {
    .nav-actions {
        display: none;
    }
}*/
