/* =========================================
   MAIN MENU
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .menu-item {
    position: relative;
}

.main-nav .menu-link {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 12px 13px;

    color: #172033;

    font-family: "Tajawal", sans-serif;
    font-size: 15px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color .25s ease,
        background .25s ease;
}

.main-nav .menu-link:hover {
    color: #0868e8;
}

.menu-arrow {
    font-size: 10px;

    transition:
        transform .25s ease;
}

.menu-item:hover > .menu-link .menu-arrow {
    transform: rotate(180deg);
}


/* =========================================
   SIMPLE DROPDOWN
========================================= */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 245px;

    padding: 10px;

    background: #fff;

    border: 1px solid #e8edf5;
    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0, 30, 70, .13);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 9999;
}

.menu-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;

    color: #26344d;

    font-family: "Tajawal", sans-serif;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border-radius: 8px;

    transition:
        color .2s ease,
        background .2s ease;
}

.dropdown-menu a i {
    width: 20px;

    color: #0878ff;

    text-align: center;
}

.dropdown-menu a:hover {
    color: #0868e8;
    background: #f2f7ff;
}


/* =========================================
   MEGA MENU
========================================= */

.has-mega-menu {
    position: static !important;
}

.mega-menu {
    position: absolute;

    top: calc(100% + 1px);
    right: 0;
    left: 0;

    width: min(1180px, calc(100% - 30px));

    margin: auto;
    padding: 25px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    background: #fff;

    border: 1px solid #e8edf5;
    border-radius: 0 0 16px 16px;

    box-shadow: 0 20px 50px rgba(0, 30, 70, .15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 9999;
}

.has-mega-menu:hover > .mega-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================
   MEGA COLUMN
========================================= */

.mega-column {
    padding: 5px 15px;

    border-left: 1px solid #edf1f6;
}

.mega-column:last-child {
    border-left: 0;
}


/* =========================================
   MEGA TITLE
========================================= */

.mega-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 14px;
    padding-bottom: 12px;

    border-bottom: 1px solid #edf1f6;
}

.mega-title > i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0878ff;

    background: #eef6ff;

    border-radius: 10px;

    font-size: 18px;
}

.mega-title strong {
    display: block;

    color: #16233a;

    font-family: "Tajawal", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.mega-title small {
    display: block;

    margin-top: 3px;

    color: #7b8799;

    font-family: "Tajawal", sans-serif;
    font-size: 11px;
    font-weight: 400;
}


/* =========================================
   MEGA LINKS
========================================= */

.mega-column > a {
    display: block;

    padding: 7px 8px;

    color: #526075;

    font-family: "Tajawal", sans-serif;
    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    border-radius: 6px;

    transition:
        color .2s ease,
        background .2s ease,
        padding .2s ease;
}

.mega-column > a:hover {
    padding-right: 13px;

    color: #0868e8;

    background: #f3f8ff;
}


/* =========================================================
   BLOG MEGA MENU
========================================================= */

.blog-mega-menu {
    min-width: 720px;

    grid-template-columns: 250px 1fr;

    gap: 25px;

    align-items: start;

    min-height: auto;
    height: auto;
}


/* =========================================================
   BLOG CATEGORIES
========================================================= */

.blog-categories-column {
    width: 100%;
}

.blog-category-grid {
    display: grid;

    grid-template-columns: repeat(
        2,
        minmax(160px, 1fr)
    );

    gap: 6px 18px;

    margin-top: 12px;
}


/* =========================================================
   BLOG CATEGORY LINK
========================================================= */

.blog-category-link {
    display: flex !important;

    align-items: center;
    gap: 9px;

    padding: 9px 8px;

    color: #536174;

    text-decoration: none;

    border-radius: 8px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.blog-category-link i {
    flex-shrink: 0;

    width: 18px;

    color: #64748b;

    font-size: 13px;

    text-align: center;
}

.blog-category-link:hover {
    color: #2563eb;

    background: #f4f7fb;

    transform: translateX(-3px);
}

.blog-category-link:hover i {
    color: #2563eb;
}


/* =========================================================
   BLOG MEGA MENU - DESKTOP
========================================================= */

@media (min-width: 992px) {

    .main-nav .blog-mega-menu {
        padding: 18px 22px;

        grid-template-columns: 240px 1fr;

        gap: 24px;

        align-items: start;

        height: auto;
        min-height: 0;

        align-content: start;
    }


    /* =====================================
       BLOG COLUMN
    ===================================== */

    .main-nav .blog-mega-menu .mega-column {
        padding: 3px 12px;
    }


    /* =====================================
       BLOG TITLE
    ===================================== */

    .main-nav .blog-mega-menu .mega-title {
        margin-bottom: 9px;
        padding-bottom: 9px;
    }


    /* =====================================
       BLOG LINKS
    ===================================== */

    .main-nav .blog-mega-menu .mega-column > a {
        padding: 6px 7px;

        line-height: 1.5;
    }


    /* =====================================
       CATEGORY GRID
    ===================================== */

    .main-nav .blog-mega-menu .blog-category-grid {
        margin-top: 8px;

        gap: 4px 14px;
    }


    /* =====================================
       CATEGORY LINKS
    ===================================== */

    .main-nav .blog-mega-menu .blog-category-link {
        padding: 7px 6px;

        line-height: 1.5;
    }

}


/* =========================================
   TABLET + MOBILE MENU
========================================= */

@media (max-width: 991px) {

    /* =====================================
       HEADER
    ===================================== */

    .site-header {
        position: relative;

        z-index: 10000;
    }

    .header-inner {
        position: relative;
    }


    /* =====================================
       MOBILE MENU BUTTON
    ===================================== */

    .mobile-menu {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        padding: 0;

        color: #172033;

        background: #fff;

        border: 1px solid #e5ebf3;
        border-radius: 10px;

        font-size: 24px;
        line-height: 1;

        cursor: pointer;

        transition:
            color .25s ease,
            background .25s ease,
            border-color .25s ease,
            transform .25s ease;
    }

    .mobile-menu:hover {
        color: #0868e8;

        background: #f4f8ff;

        border-color: #d9e7fa;
    }

    .mobile-menu.is-active {
        color: #0868e8;

        background: #eef6ff;

        border-color: #cfe2fb;
    }


    /* =====================================
       MAIN NAV
    ===================================== */

    .main-nav {
        position: absolute;

        top: calc(100% + 10px);
        right: 16px;
        left: 16px;

        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 3px;

        padding: 10px;

        background: #fff;

        border: 1px solid #e6ebf2;
        border-radius: 14px;

        box-shadow: 0 18px 45px rgba(0, 30, 70, .14);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease;

        z-index: 9999;
    }


    /* =====================================
       OPEN MENU
    ===================================== */

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* =====================================
       MENU ITEMS
    ===================================== */

    .main-nav .menu-item {
        width: 100%;
    }


    /* =====================================
       MENU LINKS
    ===================================== */

    .main-nav .menu-link {
        width: 100%;

        min-height: 48px;

        display: flex;

        align-items: center;
        justify-content: space-between;

        padding: 12px 14px;

        color: #172033;

        font-family: "Tajawal", sans-serif;
        font-size: 15px;
        font-weight: 700;

        text-decoration: none;

        white-space: normal;

        border-radius: 9px;

        transition:
            color .2s ease,
            background .2s ease;
    }

    .main-nav .menu-link:hover {
        color: #0868e8;

        background: #f4f8ff;
    }


    /* =====================================
       ARROW
    ===================================== */

    .menu-arrow {
        flex-shrink: 0;

        margin-right: 8px;

        font-size: 10px;

        transition:
            transform .25s ease;
    }

    .menu-item.is-open > .menu-link .menu-arrow {
        transform: rotate(180deg);
    }


    /* =====================================
       SIMPLE DROPDOWN
    ===================================== */

    .main-nav .dropdown-menu {
        position: static;

        width: 100%;

        margin: 3px 0 6px;

        padding: 6px;

        background: #f8fbff;

        border: 1px solid #e8eef6;
        border-radius: 10px;

        box-shadow: none;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-5px);

        max-height: 0;

        overflow: hidden;

        pointer-events: none;

        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease,
            max-height .3s ease;
    }


    /* =====================================
       DROPDOWN OPEN
    ===================================== */

    .main-nav .menu-item.is-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        max-height: 500px;

        pointer-events: auto;
    }


    /* =====================================
       DROPDOWN LINKS
    ===================================== */

    .main-nav .dropdown-menu a {
        min-height: 44px;

        display: flex;

        align-items: center;

        padding: 10px 11px;

        color: #40506a;

        font-size: 14px;

        border-radius: 8px;
    }

    .main-nav .dropdown-menu a:hover {
        color: #0868e8;

        background: #edf6ff;
    }

    .main-nav .dropdown-menu a i {
        width: 24px;

        flex-shrink: 0;
    }


    /* =====================================
       MEGA MENU
    ===================================== */

    .main-nav .has-mega-menu {
        position: relative !important;
    }

    .main-nav .mega-menu {
        position: static;

        width: 100%;

        margin: 3px 0 6px;

        padding: 10px;

        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        background: #f8fbff;

        border: 1px solid #e8eef6;
        border-radius: 10px;

        box-shadow: none;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-5px);

        max-height: 0;

        overflow: hidden;

        pointer-events: none;

        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease,
            max-height .35s ease;
    }


    /* =====================================
       MEGA MENU OPEN
    ===================================== */

    .main-nav .has-mega-menu.is-open > .mega-menu {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        max-height: 1600px;

        pointer-events: auto;
    }


    /* =====================================
       MEGA COLUMNS
    ===================================== */

    .main-nav .mega-column {
        padding: 10px;

        border-left: 0;

        border-bottom: 1px solid #e5ebf3;
    }

    .main-nav .mega-column:last-child {
        border-bottom: 0;
    }


    /* =====================================
       MEGA TITLE
    ===================================== */

    .main-nav .mega-title {
        margin-bottom: 8px;
        padding-bottom: 9px;

        gap: 10px;
    }

    .main-nav .mega-title > i {
        width: 38px;
        height: 38px;

        font-size: 16px;

        border-radius: 9px;
    }

    .main-nav .mega-title strong {
        font-size: 14px;
    }

    .main-nav .mega-title small {
        font-size: 10px;
    }


    /* =====================================
       MEGA LINKS
    ===================================== */

    .main-nav .mega-column > a {
        padding: 8px 7px;

        font-size: 13px;
    }

    .main-nav .mega-column > a:hover {
        padding-right: 11px;
    }


    /* =====================================
       BLOG MEGA MENU - MOBILE FIX
    ===================================== */

    .main-nav .blog-mega-menu {
        min-width: 0;

        width: 100%;

        grid-template-columns: 1fr;

        gap: 8px;

        padding: 10px;

        align-items: stretch;
    }


    /* =====================================
       BLOG CATEGORY GRID - MOBILE
    ===================================== */

    .main-nav .blog-mega-menu .blog-category-grid {
        grid-template-columns: 1fr;

        gap: 4px;

        margin-top: 8px;
    }


    /* =====================================
       BLOG CATEGORIES - MOBILE
    ===================================== */

    .main-nav .blog-mega-menu .blog-categories-column {
        width: 100%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    /* =====================================
       HEADER
    ===================================== */

    .site-header {
        width: 100%;

        overflow: visible;
    }

    .site-header .container {
        width: 100%;
        max-width: 100%;

        padding-left: 10px;
        padding-right: 10px;
    }

    .header-inner {
        width: 100%;

        min-height: 64px;

        display: flex;

        align-items: center;

        gap: 8px;
    }


    /* =====================================
       LOGO
    ===================================== */

    .site-branding {
        flex: 1 1 auto;

        min-width: 0;
        max-width: none;

        display: flex;

        align-items: center;
    }

    .site-branding img {
        display: block;

        width: auto;

        max-width: 145px;

        height: auto;
    }


    /* =====================================
       SEARCH
    ===================================== */

    .search-toggle {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        margin: 0;
        padding: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 17px;
    }


    /* =====================================
       MOBILE BUTTON
    ===================================== */

    .mobile-menu {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        margin: 0;
        padding: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 22px;
    }


    /* =====================================
       MAIN NAV
    ===================================== */

    .main-nav {
        top: calc(100% + 8px);

        right: 10px;
        left: 10px;

        width: auto;

        padding: 8px;

        box-sizing: border-box;

        border-radius: 12px;
    }


    /* =====================================
       MAIN LINKS
    ===================================== */

    .main-nav .menu-link {
        min-height: 46px;

        padding: 11px 12px;

        font-size: 14px;
    }


    /* =====================================
       DROPDOWN
    ===================================== */

    .main-nav .dropdown-menu {
        padding: 5px;
    }

    .main-nav .dropdown-menu a {
        min-height: 42px;

        padding: 9px 10px;

        font-size: 13px;
    }


    /* =====================================
       MEGA MENU
    ===================================== */

    .main-nav .mega-menu {
        padding: 7px;

        gap: 5px;
    }

    .main-nav .mega-column {
        padding: 8px;
    }

    .main-nav .mega-title {
        gap: 8px;
    }

    .main-nav .mega-title > i {
        width: 34px;
        height: 34px;

        font-size: 14px;
    }

    .main-nav .mega-title strong {
        font-size: 13px;
    }

    .main-nav .mega-title small {
        font-size: 9px;
    }

    .main-nav .mega-column > a {
        padding: 7px 6px;

        font-size: 12px;
    }


    /* =====================================
       BLOG MEGA MENU - SMALL MOBILE
    ===================================== */

    .main-nav .blog-mega-menu {
        min-width: 0;

        width: 100%;

        padding: 7px;

        grid-template-columns: 1fr;

        gap: 5px;
    }

    .main-nav .blog-mega-menu .mega-column {
        padding: 8px;
    }

    .main-nav .blog-mega-menu .blog-category-grid {
        grid-template-columns: 1fr;

        gap: 3px;
    }

    .main-nav .blog-mega-menu .blog-category-link {
        padding: 7px 6px;

        font-size: 12px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .site-header .container {
        padding-left: 7px;
        padding-right: 7px;
    }

    .header-inner {
        gap: 6px;
    }

    .site-branding img {
        max-width: 125px;
    }

    .search-toggle {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }

    .mobile-menu {
        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 20px;
    }

    .main-nav {
        right: 7px;
        left: 7px;
    }

}

 /**************************icon english ****************/
/************************** PREMIUM ENGLISH LANGUAGE **************************/

/* =========================================================
   WEBLINKUS HEADER
   DESKTOP ORDER
   LOGO | MENU | SEARCH | EN
========================================================= */

@media (min-width: 992px) {

    /*
     * Header layout
     */
    .header-inner {
        display: flex;
        align-items: center;
    }


    /* =====================================================
       LOGO
    ====================================================== */

    .site-branding {
        order: 1;
        flex-shrink: 0;
    }


    /* =====================================================
       MAIN MENU
    ====================================================== */

    .main-nav {
        order: 2;
        flex: 1;
    }


    /* =====================================================
       SEARCH
    ====================================================== */

    .header-search {
        order: 3;
        flex-shrink: 0;
    }


    /* =====================================================
       ENGLISH LANGUAGE
    ====================================================== */

    .header-language {

        order: 4;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        margin-right: 10px;

    }


    /* =====================================================
       PREMIUM LANGUAGE BUTTON
    ====================================================== */

    .premium-language {

        position: relative;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        gap: 7px;

        min-width: 62px;
        height: 38px;

        padding: 0 12px;

        border: 1px solid rgba(22, 66, 91, 0.35);

        border-radius: 7px;

        background: #ffffff;

        color: #0c92de;

        font-family: 'Tajawal', sans-serif;

        font-size: 13px;

        font-weight: 800;

        line-height: 1;

        white-space: nowrap;

        text-decoration: none;

        box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.06);

        transition:
            color 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;

    }


    /* =====================================================
       GLOBE ICON
    ====================================================== */

    .premium-language i {

        font-size: 17px;

        transition:
            transform 0.3s ease;

    }


    /* =====================================================
       HOVER
    ====================================================== */

    .premium-language:hover {

        color: #ffffff;

        background: #16425b;

        border-color: #16425b;

        box-shadow:
            0 6px 18px rgba(22, 66, 91, 0.22);

        transform: translateY(-1px);

    }


    .premium-language:hover i {

        transform: rotate(15deg);

    }


    /* =====================================================
       FOCUS
    ====================================================== */

    .premium-language:focus-visible {

        outline: 2px solid #dc143c;

        outline-offset: 3px;

    }


    /* =====================================================
       MOBILE MENU
    ====================================================== */

    .mobile-menu {
        order: 5;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .header-language {

        display: flex;

        align-items: center;
        justify-content: center;

        flex-shrink: 0;

    }


    /* =====================================================
       PREMIUM LANGUAGE BUTTON - MOBILE
    ====================================================== */

    .premium-language {

        display: inline-flex;

        align-items: center;
        justify-content: center;

        gap: 5px;

        min-width: 48px;
        height: 36px;

        padding: 0 9px;

        border: 1px solid rgba(22, 66, 91, 0.35);

        border-radius: 6px;

        background: #ffffff;

        color: #16425b;

        font-family: 'Tajawal', sans-serif;

        font-size: 12px;

        font-weight: 800;

        line-height: 1;

        text-decoration: none;

        white-space: nowrap;

        transition: all 0.25s ease;

    }


    /* =====================================================
       MOBILE ICON
    ====================================================== */

    .premium-language i {

        font-size: 15px;

    }


    /* =====================================================
       MOBILE HOVER
    ====================================================== */

    .premium-language:hover {

        color: #ffffff;

        background: #16425b;

        border-color: #16425b;

    }

}