/* =========================================================
   PROSPER
   Clean Header + Navigation + Hero
   Desktop / RTL / Mobile
   ========================================================= */

:root{
    --v10-green:#4c7a1f;
    --v10-dark:#173b33;
    --v10-gold:#ffb600;
    --v10-text:#273126;
    --v10-line:#e9ede5;
}

html,
body{
    overflow-x:hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header-v10{
    position:relative;
    z-index:300;
    background:#fff;
    color:var(--v10-text);
}


/* =========================================================
   IDENTITY ROW
   ========================================================= */

.identity-row-v10{
    border-bottom:1px solid var(--v10-line);
    background:#fff;
}

.identity-inner-v10{
    height:92px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
}

.brand-v10 img{
    display:block;
    width:198px;
    height:auto;
}

.institutional-v10{
    display:flex;
    align-items:center;
    gap:23px;
    margin-left:auto;
}

.institutional-v10 > i{
    width:1px;
    height:44px;
    background:#e5e9e1;
}

.institution-block-v10{
    display:flex;
    align-items:center;
    gap:14px;
}

.institution-block-v10 > span{
    font-size:9px;
    font-weight:800;
    letter-spacing:.15em;
    text-transform:uppercase;
    color:#8a9187;
    max-width:75px;
    line-height:1.35;
}

.institution-block-v10 img{
    display:block;
    width:160px;
    object-fit:contain;
}

.mone-v10{
    width:118px;
    height:51px;
    border:1px solid #edf0ea;
    border-radius:7px;
    padding:6px 10px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.mone-v10 b{
    font-size:18px;
    line-height:1;
    color:#4c514c;
}

.mone-v10 small{
    font-size:7px;
    line-height:1.25;
    text-transform:uppercase;
    color:#888e87;
    margin-top:4px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav-row-v10{
    height:68px;
    border-bottom:1px solid #e6eae2;
    background:#fff;
}

.nav-shell-v10{
    height:100%;
    display:flex;
    align-items:stretch;
    gap:16px;
    position:relative;
}

.desktop-nav-v10{
    display:flex;
    align-items:stretch;
    min-width:0;
    flex:1;
}

.nav-entry-v10{
    position:relative;
    display:flex;
    align-items:stretch;
}

.mega-host-v10{
    position:static;
}


/* =========================================================
   TOP LEVEL LINKS
   ========================================================= */

.top-link-v10{
    position:relative;

    height:100%;
    display:flex;
    align-items:center;
    gap:7px;

    padding:0 17px;

    color:#384137;

    font-size:14px;
    font-weight:600;
    line-height:1.2;
    letter-spacing:.015em;

    text-decoration:none;
    white-space:nowrap;

    transition:
        color .18s ease,
        background-color .18s ease;
}


/*
* IMPORTANT
* Hover indicator moved to TOP.
*
* We intentionally do NOT use border-bottom anymore.
* This prevents the navigation hover indicator from
* colliding visually with the gold submenu border.
*/

.top-link-v10::before{
    content:"";

    position:absolute;

    top:0;
    left:17px;
    right:17px;

    height:3px;

    background:var(--v10-gold);

    transform:scaleX(0);
    transform-origin:center;

    transition:transform .2s ease;
}

.top-link-v10:hover,
.top-link-v10:focus{
    color:#5f7c37;
}

.top-link-v10:hover::before,
.top-link-v10:focus-visible::before,
.has-sub-v10:hover > .top-link-v10::before,
.has-sub-v10:focus-within > .top-link-v10::before{
    transform:scaleX(1);
}


.top-link-v10 svg{
    width:9px;
    height:6px;

    fill:none;
    stroke:currentColor;
    stroke-width:1.7;

    transition:transform .18s ease;
}

.has-sub-v10:hover > .top-link-v10 svg,
.has-sub-v10:focus-within > .top-link-v10 svg{
    transform:rotate(180deg);
}


/* =========================================================
   DIRECT NAV LINK
   ========================================================= */

.direct-v10{
    font-size:10px;
    max-width:148px;
    text-align:center;
    white-space:normal;
    justify-content:center;
}

.mobile-nav-direct > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    color: #273126;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid #e7ebe3;
    transition: color .2s ease;
}

.mobile-nav-direct > a:hover,
.mobile-nav-direct > a:focus {
    color: #567c19;
}

[dir="rtl"] .mobile-nav-direct > a {
    text-align: right;
    font-family: "Tajawal", Arial, sans-serif;
}

/* =========================================================
   APPLY BUTTON
   ========================================================= */

.apply-v10{
    align-self:center;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:12px;

    flex:0 0 auto;

    min-width:119px;
    height:43px;

    padding:0 18px;

    border-radius:999px;

    background:var(--v10-gold);
    color:#2d2c20;

    font-size:12px;
    font-weight:800;

    text-decoration:none;

    margin-left:auto;
    display: none;
}

.apply-v10:hover{
    filter:brightness(.96);
}


/* =========================================================
   STANDARD SUB MENUS
   ========================================================= */

.submenu-v10{
    position:absolute;

    top:100%;
    left:0;

    z-index:400;

    background:#fff;

    border:1px solid #e2e7df;
    border-top:3px solid var(--v10-gold);

    box-shadow:0 24px 55px rgba(27,43,31,.18);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transform:translateY(8px);

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.has-sub-v10:hover > .submenu-v10,
.has-sub-v10:focus-within > .submenu-v10{
    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transform:translateY(0);
}


.standard-sub-v10,
.simple-sub-v10{
    width:310px;
    padding:10px;

    border-radius:0 0 14px 14px;
}

.standard-sub-v10 a,
.simple-sub-v10 a{
    display:block;

    padding:12px 13px;

    border-radius:9px;

    color:#283426;

    text-decoration:none;

    transition:
        background-color .18s ease,
        color .18s ease;
}

.standard-sub-v10 a:hover,
.simple-sub-v10 a:hover{
    background:#f4f7f1;
}

.standard-sub-v10 b,
.simple-sub-v10 b{
    display:block;

    font-size:12.5px;
    line-height:1.35;
}

.standard-sub-v10 span{
    display:block;

    margin-top:4px;

    color:#7a8378;

    font-size:10.5px;
    line-height:1.45;
}

.simple-sub-v10{
    width:225px;
}

.media-sub-v10{
    width:280px;
}


/*
* Last menu items in LTR.
* Prevent submenu from leaving viewport.
*/

.end-sub-v10{
    left:auto;
    right:0;
}


/* =========================================================
   MEGA MENU
   ========================================================= */

.mega-v10{
    left:0;
    right:0;

    width:100%;

    display:grid;

    grid-template-columns:300px minmax(0,1fr);

    gap:24px;

    padding:24px;

    border-radius:0 0 18px 18px;
}

.mega-heading-v10{
    padding:24px;

    border-radius:14px;

    background:
        linear-gradient(
            145deg,
            #264916,
            #497728
        );

    color:#fff;
}

.mega-heading-v10 > span{
    font-size:9px;
    font-weight:800;

    letter-spacing:.16em;

    color:#f4ca54;
}

.mega-heading-v10 h3{
    font-size:24px;
    line-height:1.2;

    margin:12px 0;

    color:#fff;
}

.mega-heading-v10 p{
    font-size:12px;
    line-height:1.6;

    color:rgba(255,255,255,.82);
}

.mega-heading-v10 a{
    display:inline-block;

    margin-top:18px;

    color:#fff;

    font-size:13px;
    font-weight:800;

    text-decoration:none;
}

.mega-grid-v10{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:12px;
}

.mega-grid-v10 > a{
    display:flex;

    gap:13px;

    min-height:108px;

    padding:17px;

    border:1px solid #e3e8df;
    border-radius:12px;

    color:#273426;

    text-decoration:none;

    background:#fff;

    transition:
        background-color .18s ease,
        border-color .18s ease;
}

.mega-grid-v10 > a:hover{
    background:#f5f8f2;
    border-color:#ccd9c4;
}

.mega-grid-v10 em{
    width:30px;
    height:30px;

    flex:0 0 30px;

    display:grid;
    place-items:center;

    border-radius:8px;

    background:#edf3e9;

    color:#668642;

    font-size:10px;
    font-style:normal;
    font-weight:800;
}

.mega-grid-v10 b{
    display:block;

    font-size:13px;
    line-height:1.35;
}

.mega-grid-v10 span{
    display:block;

    margin-top:5px;

    font-size:10.5px;
    line-height:1.45;

    color:#7b8479;
}


/* =========================================================
   MENU TOGGLE
   ========================================================= */

.menu-toggle-v10{
    display:none;

    width:44px;
    height:44px;

    border:1px solid #e1e6de;
    border-radius:10px;

    background:#fff;

    padding:11px;
}

.menu-toggle-v10 span{
    display:block;

    height:2px;

    background:#263428;

    margin:5px 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-v10{
    position:relative;

    height:660px;

    overflow:hidden;

    background:#173b33;
}

.hero-track-v10,
.hero-panel-v10{
    position:absolute;
    inset:0;
}

.hero-panel-v10{
    opacity:0;
    visibility:hidden;

    transition:opacity .55s ease;

    z-index:0;
}

.hero-panel-v10.active{
    opacity:1;
    visibility:visible;

    z-index:1;
}

.hero-image-v10,
.hero-youtube-v10,
.hero-poster-v10{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
}

.hero-youtube-v10{
    overflow:hidden;

    background:#173b33;
}

.hero-youtube-v10 iframe{
    position:absolute;

    top:50%;
    left:50%;

    width:177.78vh;
    min-width:100%;

    height:56.25vw;
    min-height:100%;

    transform:translate(-50%,-50%);

    border:0;

    pointer-events:none;

    z-index:1;
}

.hero-poster-v10{
    z-index:0;
}

.hero-shade-v10{
    position:absolute;
    inset:0;

    z-index:2;

    background:
        linear-gradient(
            90deg,
            rgba(9,35,29,.91) 0%,
            rgba(10,37,31,.72) 38%,
            rgba(10,37,31,.18) 68%,
            rgba(10,37,31,.08) 100%
        );
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content-v10{
    position:relative;

    z-index:3;

    height:100%;

    display:flex;

    align-items:center;
    justify-content:space-between;

    padding-bottom:58px;
}

.hero-copy-v10{
    max-width:690px;

    color:#fff;
}

.hero-label-v10{
    display:flex;
    align-items:center;

    gap:12px;

    color:#f2c54d;

    font-size:10px;
    font-weight:800;

    letter-spacing:.14em;
}

.hero-label-v10::before{
    content:"";

    width:30px;
    height:3px;

    background:#e6b83f;
}

.hero-copy-v10 h1{
    font-size:clamp(45px,5vw,58px);
    line-height:1.04;

    letter-spacing:-.045em;

    margin:24px 0 22px;

    color:#fff;
}

.hero-copy-v10 p{
    max-width:660px;

    font-size:17px;
    line-height:1.75;

    color:rgba(255,255,255,.86);

    margin:0;
}

.hero-actions-v10{
    display:flex;
    align-items:center;

    gap:30px;

    margin-top:34px;
}

.primary-v10{
    display:flex;
    align-items:center;

    gap:24px;

    padding:0 25px;

    height:54px;

    border-radius:3px;

    background:#e2b437;

    color:#2d2b20;

    font-size:12px;
    font-weight:800;

    text-decoration:none;
}

.secondary-v10{
    padding:13px 0;

    border-bottom:
        1px solid rgba(255,255,255,.55);

    color:#fff;

    font-size:12px;
    font-weight:800;

    text-decoration:none;
}

.hero-side-v10{
    align-self:flex-end;

    margin-bottom:72px;

    min-width:205px;

    padding-left:18px;

    border-left:
        1px solid rgba(255,255,255,.45);

    color:#fff;
}

.hero-side-v10 b{
    color:#f2c54d;

    font-size:11px;
}

.hero-side-v10 span,
.hero-side-v10 small{
    display:block;
}

.hero-side-v10 span{
    margin-top:5px;

    font-size:13px;
    font-weight:800;
}

.hero-side-v10 small{
    margin-top:4px;

    font-size:11px;

    color:rgba(255,255,255,.72);
}


/* =========================================================
   HERO NAVIGATION
   ========================================================= */

.hero-nav-v10{
    position:absolute;

    left:50%;
    bottom:30px;

    z-index:10;

    transform:translateX(-50%);

    display:flex;
    align-items:center;

    gap:26px;
}

.hero-arrows-v10{
    display:flex;

    gap:7px;
}

.hero-arrows-v10 button{
    width:43px;
    height:43px;

    border:
        1px solid rgba(255,255,255,.48);

    background:
        rgba(11,40,33,.22);

    color:#fff;

    font-size:18px;

    cursor:pointer;
}

.hero-dots-v10{
    display:flex;
    align-items:center;

    gap:18px;
}

.hero-dots-v10 button{
    display:flex;
    align-items:center;

    gap:9px;

    border:0;

    background:none;

    color:rgba(255,255,255,.65);

    font-size:10px;
    font-weight:700;

    cursor:pointer;
}

.hero-dots-v10 i{
    display:block;

    width:34px;
    height:2px;

    background:rgba(255,255,255,.35);
}

.hero-dots-v10 button.active{
    color:#fff;
}

.hero-dots-v10 button.active i{
    background:#e3b43a;
}

.hero-scroll-v10{
    margin-left:auto;

    color:#fff;

    font-size:9px;
    font-weight:800;

    letter-spacing:.14em;

    text-decoration:none;
}


/* =========================================================
   UTILITY SEARCH + LANGUAGE
   ========================================================= */

.utility-right .search-button,
.utility-right .language-button{
    min-height:28px;

    padding:0 10px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius:999px;

    background:rgba(255,255,255,.05);

    color:#fff;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.utility-right .search-button:hover,
.utility-right .search-button:focus-visible{
    background:rgba(255,255,255,.12);

    border-color:rgba(255,255,255,.36);

    color:#fff;
}

.language-button{
    border-color:rgba(239,181,18,.55);

    background:rgba(239,181,18,.11);

    color:#ffe7a0;

    font-family:
        'Noto Sans Arabic',
        Inter,
        sans-serif;
        padding: 0 5px;
}

.language-button:hover,
.language-button:focus-visible{
    background:#efb512;

    border-color:#efb512;

    color:#243019;
}

.utility-right .search-button svg,
.language-button svg{
    flex:0 0 auto;
}


/* =========================================================
   MOBILE LANGUAGE BUTTON
   ========================================================= */

.mobile-language-button{
    width:100%;

    min-height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:10px;

    margin-bottom:12px;

    padding:0 18px;

    border:1px solid #dce4d7;
    border-radius:12px;

    background:#f7f9f4;

    color:#31452b;

    font-family:
        'Noto Sans Arabic',
        Inter,
        sans-serif;

    font-size:13px;
    font-weight:800;

    cursor:pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.mobile-language-button svg{
    width:18px;
    height:18px;

    fill:none;
    stroke:currentColor;

    stroke-width:1.5;

    flex:0 0 auto;
}

.mobile-language-button:hover,
.mobile-language-button:focus-visible{
    background:#eef4e8;

    border-color:#bfd0b3;

    color:#567c19;
}


/* =========================================================
   RTL
   ========================================================= */

[dir="rtl"] .institutional-v10{
    margin-left:0;
    margin-right:auto;
}

[dir="rtl"] .apply-v10{
    margin-left:0;
    margin-right:auto;
}


/*
* RTL SUBMENU FIX
*
* In RTL the visual beginning of the menu item
* is the RIGHT side.
*
* Every normal submenu therefore opens from right:0.
*/

[dir="rtl"] .nav-entry-v10:not(.mega-host-v10) > .submenu-v10{
    left:auto;
    right:0;
}


/*
* end-sub-v10 is already right aligned in RTL.
* This explicit rule prevents old CSS from overriding it.
*/

[dir="rtl"] .end-sub-v10{
    left:auto;
    right:0;
}


/*
* Mega menu remains full navigation width.
* Do not align it relative to the Focus Areas item.
*/

[dir="rtl"] .mega-host-v10 > .mega-v10{
    left:0;
    right:0;
}


/* RTL submenu typography */

[dir="rtl"] .standard-sub-v10,
[dir="rtl"] .simple-sub-v10{
    text-align:right;
}

[dir="rtl"] .standard-sub-v10 a,
[dir="rtl"] .simple-sub-v10 a{
    text-align:right;
}


/* RTL Mega Menu */

[dir="rtl"] .mega-heading-v10,
[dir="rtl"] .mega-grid-v10{
    text-align:right;
}

[dir="rtl"] .mega-grid-v10 > a{
    flex-direction:row;
}


/* RTL HERO */

[dir="rtl"] .hero-shade-v10{
    /* Light homepage: do not restore the legacy dark overlay in RTL */
    background:transparent;
}

[dir="rtl"] .hero-side-v10{
    padding-left:0;
    padding-right:18px;

    border-left:0;

    border-right:
        1px solid rgba(255,255,255,.45);
}

[dir="rtl"] .hero-scroll-v10{
    margin-left:0;
    margin-right:auto;
}


/* =========================================================
   DESKTOP RESPONSIVE
   ========================================================= */

@media(max-width:1280px){

    .top-link-v10{
        padding:0 12px;
        font-size:10px;
    }

    .top-link-v10::before{
        left:12px;
        right:12px;
    }

    .direct-v10{
        font-size:9px;
        max-width:128px;
    }

    .apply-v10{
        min-width:108px;
        padding:0 14px;
    }

    .brand-v10 img{
        width:180px;
    }

    .institution-block-v10 img{
        width:112px;
    }

    .institutional-v10{
        gap:16px;
    }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media(max-width:1120px){

    .desktop-nav-v10,
    .apply-v10{
        display:none;
    }

    .nav-row-v10{
        display:none;
    }

    .menu-toggle-v10{
        display:block;

        position:relative;

        cursor:pointer;
    }

    .identity-inner-v10{
        height:82px;
    }

    .institutional-v10{
        margin-left:auto;
    }


    /* -----------------------------------------
       Mobile accordion
       ----------------------------------------- */

    .mobile-nav-group{
        border-bottom:1px solid #e7ebe3;
    }

    .mobile-nav-group > button{
        border-bottom:0 !important;
    }

    .mobile-submenu{
        display:block !important;

        max-height:0 !important;

        overflow:hidden !important;

        padding:0 0 0 14px !important;

        opacity:0;
        visibility:hidden;

        transition:
            max-height .28s ease,
            opacity .2s ease,
            visibility 0s linear .28s !important;
    }

    .mobile-nav-group.open > .mobile-submenu{
        max-height:520px !important;

        opacity:1;
        visibility:visible;

        transition:
            max-height .32s ease,
            opacity .22s ease !important;
    }

    .mobile-submenu > a{
        overflow:visible !important;

        display:block !important;
    }


    /* -----------------------------------------
       Hamburger animation
       ----------------------------------------- */

    .menu-toggle-v10 span{
        transition:
            transform .25s ease,
            opacity .18s ease;
    }

    .menu-toggle-v10[aria-expanded="true"] span:nth-child(1){
        transform:
            translateY(7px)
            rotate(45deg);
    }

    .menu-toggle-v10[aria-expanded="true"] span:nth-child(2){
        opacity:0;
    }

    .menu-toggle-v10[aria-expanded="true"] span:nth-child(3){
        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /* -----------------------------------------
       Mobile RTL accordion
       ----------------------------------------- */

    [dir="rtl"] .mobile-nav{
        text-align:right;
    }

    [dir="rtl"] .mobile-nav-group > button{
        direction:rtl;
        text-align:right;
    }

    [dir="rtl"] .mobile-submenu{
        padding:
            0 14px 0 0 !important;

        text-align:right;
    }

    [dir="rtl"] .mobile-submenu > a{
        text-align:right;
    }


    /* -----------------------------------------
       Hero
       ----------------------------------------- */

    .hero-v10{
        height:590px;
    }

    .hero-copy-v10 h1{
        font-size:52px;
    }

    .hero-side-v10{
        display:none;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:760px){

    .institutional-v10{
        display:none;
    }

    .brand-v10 img{
        width:160px;
    }

    .hero-v10{
        height:610px;
    }

    .hero-youtube-v10 iframe{
        display:none;
    }

    .hero-content-v10{
        align-items:flex-end;

        padding-bottom:120px;
    }

    .hero-copy-v10 h1{
        font-size:39px;
    }

    .hero-copy-v10 p{
        font-size:14px;
        line-height:1.65;
    }

    .hero-actions-v10{
        gap:18px;

        flex-wrap:wrap;
    }

    .primary-v10{
        height:49px;
    }

    .hero-scroll-v10{
        display:none;
    }

    .hero-nav-v10{
        bottom:24px;
    }

    .hero-dots-v10{
        gap:9px;
    }

    .hero-dots-v10 i{
        width:22px;
    }
}
html[dir="rtl"] body .hero-v10 .hero-shade-v10{
    background:transparent !important;
}
