/* ============================================================
   وزارة الصحة - ولاية كسلا
   MAIN HEADER SYSTEM
   TOPBAR + HERO + NAVBAR + RESPONSIVE
   ============================================================ */

/* ============================================================
   01. GLOBAL HEADER
   ============================================================ */
.moh-header {
    --moh-green-dark: #064629;
    --moh-green-deep: #075c35;
    --moh-green: #087f46;
    --moh-green-light: #1aa861;
    --moh-text: #263a30;
    --moh-muted: #65766e;
    --moh-border: #e4ebe7;

    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: "Tajawal", "Tahoma", "Arial", sans-serif;
}

/* ============================================================
   02. TOP BAR
   ============================================================ */
.moh-topbar {
    width: 100%;
    min-height: 40px;
    background: linear-gradient(90deg, #053a23, #064f2d);
    color: #ffffff;
}

.moh-topbar .container {
    width: 100%;
    max-width: 1320px;
}

.moh-topbar-inner {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.moh-topbar-title {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.moh-topbar-title i {
    margin-left: 7px;
    color: #7ce0aa;
}

.moh-topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.moh-topbar-links a,
.moh-topbar-links a:visited,
.moh-topbar-links a:focus,
.moh-topbar-links a:active {
    display: inline-flex;
    align-items: center;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s ease;
}

.moh-topbar-links a:hover {
    color: #a9edc6 !important;
}

.moh-topbar-links a i {
    margin-left: 7px;
    color: #79dda7 !important;
    font-size: 11px;
}

/* ============================================================
   03. HERO
   ============================================================ */
.moh-hero {
    position: relative;
    width: 100%;
    height: 485px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #ffffff;
    background-image: url("../img/kassala-mountain.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.moh-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(2,38,25,.16) 0%,
        rgba(3,55,33,.22) 30%,
        rgba(3,55,33,.45) 62%,
        rgba(2,42,25,.78) 100%
    );
}

/* ============================================================
   04. HERO DECORATION
   ============================================================ */
.moh-hero-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    pointer-events: none;
    z-index: 2;
}

.moh-orb-1 {
    width: 400px;
    height: 400px;
    left: -230px;
    top: -190px;
}

.moh-orb-2 {
    width: 260px;
    height: 260px;
    left: 7%;
    bottom: -210px;
}

/* ============================================================
   05. HERO CONTAINER
   ============================================================ */
.moh-hero .container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
}

.moh-hero-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.55fr .75fr;
    align-items: center;
    gap: 50px;
    direction: rtl;
}

/* ============================================================
   06. HERO MAIN
   ============================================================ */
.moh-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.moh-hero-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 600;
}

.moh-hero-label span {
    width: 30px;
    height: 3px;
    display: block;
    border-radius: 10px;
    background: #72e3a3;
}

.moh-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    text-shadow: 0 3px 18px rgba(0,0,0,.22);
}

.moh-hero-english {
    margin-top: 8px;
    color: #a9efc7;
    font-family: "Arial", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.moh-hero-description {
    max-width: 650px;
    margin: 16px 0 22px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0,0,0,.18);
}

/* ============================================================
   07. HERO FEATURES
   ============================================================ */
.moh-hero-features {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.moh-feature {
    min-width: 165px;
    min-height: 62px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 13px;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(7px);
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
    transition: transform .25s ease, background .25s ease;
}

.moh-feature:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.17);
}

.moh-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #baf5d2;
    font-size: 15px;
}

.moh-feature-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.moh-feature-content strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.moh-feature-content span {
    margin-top: 2px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 500;
}

/* ============================================================
   08. HERO ACTIONS
   ============================================================ */
.moh-hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.moh-hero-btn {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 25px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    transition: all .25s ease;
}

.moh-hero-btn-primary {
    color: #075a35 !important;
    background: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: 0 9px 25px rgba(0,0,0,.18);
}

.moh-hero-btn-primary:hover {
    color: #075a35 !important;
    background: #effff5;
    transform: translateY(-3px);
}

.moh-hero-btn-outline {
    color: #ffffff !important;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.55);
}

.moh-hero-btn-outline:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,.20);
    transform: translateY(-3px);
}

/* ============================================================
   09. HERO LOGO
   ============================================================ */
.moh-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.moh-logo-card {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.38);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.moh-logo-ring {
    width: 116px;
    height: 116px;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 25px rgba(0,0,0,.20);
}

.moh-logo-ring img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.moh-visual-text {
    margin-top: 13px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.20);
}

.moh-visual-text span {
    display: block;
    margin-top: 2px;
    color: #a8edc5;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   10. HERO WAVE
   ============================================================ */
.moh-hero-wave {
    position: absolute;
    left: -5%;
    bottom: -1px;
    width: 110%;
    height: 72px;
    z-index: 20;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.moh-hero-wave::before {
    content: "";
    position: absolute;
    left: -3%;
    right: -3%;
    top: 13px;
    bottom: -34px;
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 28% 28% 0 0;
    transform: rotate(-1.1deg) scaleX(1.04);
    transform-origin: center bottom;
}

.moh-hero-wave::after {
    content: "";
    position: absolute;
    left: 34%;
    top: 1px;
    width: 32%;
    height: 34px;
    background: #ffffff;
    border-radius: 50%;
    transform: rotate(1deg);
}

/* ============================================================
   11. NAVBAR
   الحل النهائي:
   - في البداية تبقى داخل التدفق الطبيعي.
   - JavaScript داخل header.php يضيف is-fixed عند تجاوزها.
   - spacer يحافظ على مكانها ولا يسمح بقفزة في الصفحة.
   ============================================================ */
.moh-navbar {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    display: block;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e4ebe7;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow .25s ease, background .25s ease;
}

.moh-navbar.is-fixed {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.moh-navbar-spacer {
    display: none;
    width: 100%;
    height: 66px;
}

.moh-navbar-spacer.is-active {
    display: block;
}

.moh-navbar .container {
    width: 100%;
    max-width: 1320px;
}

.moh-navbar-inner {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
}

.moh-navigation {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    direction: rtl;
}

@media (min-width: 992px) {
    .moh-navigation.collapse {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
}

/* ============================================================
   12. NAV LIST
   ============================================================ */
.moh-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    direction: rtl;
}

.moh-nav-list li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.moh-nav-list a {
    position: relative;
    min-height: 66px;
    padding: 0 13px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #405148 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .25s ease;
}

.moh-nav-list a i {
    color: #087f46 !important;
    font-size: 11px;
}

.moh-nav-list a::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 0;
    height: 3px;
    background: #087f46;
    border-radius: 5px 5px 0 0;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.moh-nav-list a:hover,
.moh-nav-list a.active {
    color: #087f46 !important;
}

.moh-nav-list a:hover::after,
.moh-nav-list a.active::after {
    transform: scaleX(1);
}

/* ============================================================
   13. SOCIAL
   ============================================================ */
.moh-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid #e4ebe7;
    direction: ltr;
}

.moh-social a {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: #567066 !important;
    background: #f1f6f3 !important;
    border: 0 !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: all .25s ease;
}

.moh-social a:hover {
    color: #ffffff !important;
    background: #087f46 !important;
    transform: translateY(-2px);
}

/* ============================================================
   14. MOBILE TOGGLE
   ============================================================ */
.moh-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce7e1 !important;
    border-radius: 9px !important;
    background: #f5faf7 !important;
    color: #087f46 !important;
    font-size: 17px;
}

/* ============================================================
   15. TABLET
   ============================================================ */
@media (max-width: 1100px) {
    .moh-hero-layout {
        gap: 30px;
    }

    .moh-nav-list a {
        padding: 0 8px;
        font-size: 11px;
    }

    .moh-navigation {
        gap: 10px;
    }
}

/* ============================================================
   16. TABLET / MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 991px) {

    .moh-topbar-title {
        display: none;
    }

    .moh-topbar-inner {
        justify-content: center;
    }

    .moh-hero {
        height: 570px;
    }

    .moh-hero-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 30px 0 50px;
    }

    .moh-hero-main {
        order: 1;
        align-items: center;
        text-align: center;
    }

    .moh-hero-visual {
        order: 2;
    }

    .moh-hero-title {
        font-size: 40px;
    }

    .moh-hero-description {
        max-width: 700px;
    }

    .moh-hero-features {
        justify-content: center;
    }

    .moh-navbar-inner {
        min-height: 62px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .moh-mobile-toggle {
        display: flex;
        margin-right: auto;
    }

    .moh-navigation {
        width: 100%;
        min-height: auto;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding-bottom: 10px;
    }

    .moh-navigation.collapse.show {
        display: flex !important;
    }

    .moh-nav-list {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    .moh-nav-list li {
        width: 100%;
    }

    .moh-nav-list a {
        width: 100% !important;
        min-height: 45px;
        justify-content: flex-start !important;
        padding: 0 15px;
        border-bottom: 1px solid #edf2ef !important;
    }

    .moh-nav-list a::after {
        display: none;
    }

    .moh-social {
        width: 100%;
        justify-content: center;
        padding: 10px 0 3px;
        border-left: 0;
        border-top: 1px solid #e4ebe7;
    }

    /* ارتفاع الـ spacer على الأجهزة الصغيرة */
    .moh-navbar-spacer {
        height: 62px;
    }
}

/* ============================================================
   17. MOBILE
   ============================================================ */
@media (max-width: 767px) {

    .moh-topbar {
        min-height: 36px;
    }

    .moh-topbar-inner {
        min-height: 36px;
    }

    .moh-topbar-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .moh-topbar-links a {
        font-size: 10px;
    }

    .moh-topbar-links a:nth-child(2) {
        display: none;
    }

    .moh-hero {
        height: auto;
        min-height: 680px;
    }

    .moh-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(3,45,27,.48),
            rgba(3,61,36,.88)
        );
    }

    .moh-hero-layout {
        min-height: 680px;
        padding: 38px 10px 65px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }

    .moh-hero-main {
        width: 100%;
    }

    .moh-hero-label {
        font-size: 11px;
    }

    .moh-hero-title {
        font-size: 29px;
        white-space: normal;
    }

    .moh-hero-english {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .moh-hero-description {
        margin: 11px 0 16px;
        font-size: 12px;
        line-height: 1.8;
    }

    .moh-hero-features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 17px;
    }

    .moh-feature {
        min-width: 0;
        min-height: 70px;
        padding: 7px 5px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }

    .moh-feature-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }

    .moh-feature-content {
        align-items: center;
        text-align: center;
    }

    .moh-feature-content strong {
        font-size: 9px;
    }

    .moh-feature-content span {
        font-size: 8px;
    }

    .moh-hero-actions {
        width: 100%;
        justify-content: center;
    }

    .moh-hero-btn {
        flex: 1;
        min-height: 43px;
        padding: 0 8px;
        font-size: 10px;
    }

    .moh-logo-card {
        width: 105px;
        height: 105px;
    }

    .moh-logo-ring {
        width: 82px;
        height: 82px;
        padding: 7px;
    }

    .moh-visual-text {
        margin-top: 7px;
        font-size: 15px;
    }

    .moh-visual-text span {
        font-size: 10px;
    }

    .moh-hero-wave {
        left: -8%;
        bottom: -1px;
        width: 116%;
        height: 52px;
    }

    .moh-hero-wave::before {
        left: -4%;
        right: -4%;
        top: 10px;
        bottom: -28px;
        border-radius: 50% 50% 0 0 / 24% 24% 0 0;
        transform: rotate(-1deg) scaleX(1.05);
    }

    .moh-hero-wave::after {
        left: 35%;
        top: 0;
        width: 30%;
        height: 25px;
    }
}

/* ============================================================
   18. VERY SMALL MOBILE
   ============================================================ */
@media (max-width: 400px) {

    .moh-hero {
        min-height: 700px;
    }

    .moh-hero-title {
        font-size: 27px;
    }

    .moh-hero-description {
        font-size: 11px;
    }

    .moh-feature-content strong {
        font-size: 8px;
    }

    .moh-feature-content span {
        font-size: 7px;
    }

    .moh-hero-wave {
        height: 46px;
    }
}

/* ============================================================
   19. FOOTER WIDTH
   لا نغير تصميم الفوتر؛ فقط نضمن امتداده بعرض المتصفح.
   ============================================================ */
.moh-footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.moh-footer-main {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.moh-footer-wave {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
