<style>
html, body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

h2 {
    font-size: 30px;
    padding-top: 15px;
    padding-bottom: 25px;
}

p {
    padding-bottom: 20px;
    font-size: 16px;
    line-height: 22px;
}

.extrabtn {
    text-align: start;
}

.extrabtn a {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    background-color: #0a1350;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.extrabtn a:hover {
    background-color: #13491e;
    color: #fff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 110px;
    width: 100vw;
    direction: <?= $lang === 'ar' ? 'rtl' : 'ltr' ?>;
}

/* Header container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 8px 0px;
    box-sizing: border-box;
    z-index: 10000;
    overflow-x: clip;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Centered content inside header */
.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
    width: 227px;
    height: 141px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    border-start-start-radius: 8px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-end-start-radius: 8px;
}

.logo img {
    width: 201px;
    height: 115px;
    display: block;
}

.right-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0px;
    margin-<?= $lang === 'ar' ? 'right' : 'left' ?>: 0px;
}

.topbar {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar {
    background: #0a1350;
    height: 77px;
    width: 100%;
    overflow-x: clip;
    border-end-start-radius: 0;
    border-end-end-radius: 8px;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
}

.menu-toggle {
    display: none;
    background: none;
    font-size: 24px;
    border: none;
    color: white;
    cursor: pointer;
}

.nav-buttons {
    list-style: none;
    padding: 0;
    margin-inline-start: 31px;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    overflow-x: clip;
    max-width: 100%;
}

.nav-buttons > li {
    position: relative;
}

.nav-buttons a {
    padding: 10px 14px;
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    border-radius: 0px;
    text-transform: capitalize;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-buttons a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: #13491e;
    z-index: -1;
    transition: height 0.3s ease;
}

/*.nav-buttons a:hover::before,
.nav-buttons a.active::before {
    height: 100%;
}*/

.nav-buttons a:hover::before,
.nav-buttons a.active::before {
    height: 100%;
    clip-path: polygon(
        10px 0%, 100% 0%, 100% calc(100% - 10px),
        calc(100% - 10px) 100%, 0% 100%, 0% 10px
    );
}


.nav-buttons a:hover,
.nav-buttons a.active {
    color: white;
}

.arrow {
    font-size: 16px;
    margin-left: 0px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-buttons > li:hover .arrow {
    transform: rotate(180deg);
}

[dir="rtl"] .arrow {
    margin-left: 0;
    margin-right: 6px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a1350;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    border-radius: 0px;
    min-width: 150px;
    z-index: 10000;
}

.submenu li a {
    padding: 10px 20px;
    display: block;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.submenu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #13491e;
    z-index: -1;
    transition: width 0.3s ease;
}

.submenu li a:hover::before,
.submenu li a.active::before {
    width: 100%;
}

.submenu li a:hover,
.submenu li a.active {
    color: white;
}

.nav-buttons > li:hover .submenu {
    display: block;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-container {
        width: 90%;
        /*margin: 0px auto;*/
        margin-top: 15px !important;
        margin-inline-start: 18px !important;
        display: block !important;
        visibility: visible !important;
    }
    .footer-container {
        width: 90%;
        margin: 0px auto;
    }
    .fcontactus { display: block !important; color: #ddd; padding-top: 12px; line-height: 18px; text-align: start; }
    .menu-toggle {
        display: block;
        font-size: 18px;
        padding: 0px 0px;
    }

    .topbar {
        flex: 1 1 50%;
        min-width: 50%;
        display: flex;
        height: 45px;
        gap: 0px;
    }

    .nav-buttons {
        display: none;
        z-index: 3000;
        flex-direction: column;
        background: #0a1350;
        width: 100%;
        padding: 0px 0px;
        position: static;
        margin-top: 0px;
        gap: 0px;
    }

    .nav-buttons a:hover::before,
    .nav-buttons a.active::before {
        height: 100%;
        clip-path: none;
    }

    .nav-buttons.show {
        display: flex;
    }

    .nav-buttons > li {
        width: 100%;
    }

    .nav-buttons a {
        width: 100%;
        box-sizing: border-box;
        padding: 0px 10px;
        margin-bottom: -8px;
        font-size: 14px;
    }

    .submenu {
        position: static;
        border-radius: 0;
        display: none;
    }

    .nav-buttons > li:hover .submenu {
        display: none;
    }

    .nav-buttons > li.open > .submenu {
        display: block;
    }

    .right-section {
        width: 100%;
        margin-left: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .navbar {
        flex: 1 1 50%;
        min-width: 50%;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
        border-start-start-radius: 0;
        border-start-end-radius: 0;
        margin-bottom: -5px;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        margin: 0 auto;
        background: transparent !important;
        border-radius: 0 !important;
        width: 100%;
        height: 100%;
    }

    .logo img {
        width: 250px;
        height: 100%;
        margin-bottom: 10px;
    }

    /* --- Direction-aware mobile nav alignment --- */

    [dir="ltr"] .nav-buttons {
        align-items: flex-start;
        text-align: left;
    }

    [dir="rtl"] .nav-buttons {
        align-items: flex-end;
        text-align: right;
    }

    [dir="ltr"] .menu-toggle {
        /*margin-left: 10px;
        margin-right: auto;*/
        text-align: center;
    }

    [dir="rtl"] .menu-toggle {
        /*margin-right: 10px;
        margin-left: auto;*/
        text-align: center;
    }
}

/* MAIN CONTENT CENTERING */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 25px;
    padding: 0px;
    box-sizing: border-box;
}

.inner-cont {
    width: 99% !important;
}

.sld {
    margin-top: 140px;
}

.vmo {
    margin-top: 60px;
}

.footer {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 25px;
    margin-top: 60px;
    background: #0a1350;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    font-size: 13px;
    color: #e0e0e0;
    text-align: start;
}

body, html {
    overflow-x: hidden !important;
}

.wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.fcontactus { display: none; }
