/* ===== Main Header ===== */
.main-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #001F5F;
    padding: 12px 40px;
}

/* Nav: full-width with horizontal margin */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    
    gap: 16px;
    max-height: 88px;
    border-radius: 100px;

}



/* ===== Nav Side Columns ===== */
.header-nav-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== Center Logo (true center via absolute) ===== */
.header-nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header-center-logo {
    max-width: 240px;
    height: 45px;
    object-fit: contain;
}

/* ===== Nav Links ===== */
.header-nav-side ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.header-nav-side ul li {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

.header-nav-side ul li:last-child {
    border-left: none;
}

.header-nav-side ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    white-space: nowrap;
}

.header-nav-side ul li a:hover {
    color: #A02842;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .main-header-sticky {
        padding: 10px 24px;
    }

    .header-nav {
        gap: 10px;
        padding: 12px 20px;
    }

    .header-nav-side {
        gap: 12px;
    }

    .header-nav-side ul li {
        padding: 0 10px;
    }

    .header-nav-side ul li a {
        font-size: 13px;
    }

   
}

@media (max-width: 991.98px) {
    .main-header-sticky {
        padding: 8px 16px;
    }

    .header-nav {
        gap: 6px;
        padding: 10px 14px;
    }

    .header-nav-side {
        gap: 8px;
    }

    .header-nav-side ul li {
        padding: 0 6px;
    }

    .header-nav-side ul li a {
        font-size: 11px;
    }

  

    .header-nav-side .uni-button {
        font-size: 11px;
        padding: 8px 16px;
    }
}

@media (max-width: 991.98px) {
    /* Mobile/tablet: header stays visible but nav links / buttons / user dropdown
       are hidden via Bootstrap d-none d-lg-* utilities on the elements themselves,
       leaving only the two logos. */
    .main-header-sticky {
        padding: 8px 14px;
    }

    .header-nav {
        gap: 8px;
        padding: 6px 10px;
        justify-content: space-between;
    }

    .header-nav-side {
        gap: 0;
    }

    .right-side-logo {
        max-height: 42px;
        width: auto;
        object-fit: contain;
    }
}

/* ===== Hero User Dropdown ===== */
.header-user-dd {
    position: relative;
}

.header-user-dd-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
}

.hero-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-user-avatar svg {
    width: 32px;
    margin: 0 !important;
    height: 32px;
}

.header-user-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1050;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    overflow: hidden;
}

.header-user-dd-menu.open {
    display: block;
}

.header-user-dd-info {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #25376D;
    border-bottom: 1px solid #E0E0E0;
    text-align: right;
}

.header-user-dd-info p {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.header-user-dd-profile {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #25376D;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: right;
    direction: rtl;
    text-decoration: none;
    border-bottom: 1px solid #E0E0E0;
}

.header-user-dd-profile:hover {
    background-color: #F5F7FA;
    color: #25376D;
}

.header-user-dd-profile svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.header-user-dd-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #D32F2F;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: right;
    direction: rtl;
}

.header-user-dd-logout:hover {
    background-color: #FFF5F5;
}

.header-user-dd-logout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Header Dropdown Menu (generic) ===== */
.header-dropdown-wrapper {
    position: relative;
}

.header-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.header-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.header-dropdown-wrapper.active .header-dropdown-toggle svg {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: 160%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    padding: 8px 0;
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.header-dropdown-wrapper.active .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-menu li {
    list-style: none;
}

.header-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.header-dropdown-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
}

/* ===== Mobile Bottom Header Dropup ===== */
.Header-mobile .dropup {
    width: 20%;
    display: flex;

    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    zoom: 0.85;
}

.Header-mobile .dropup .header-user-dd-btn {
    display: flex;
 
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    gap: 4px;
}

.Header-mobile .dropup .header-user-dd-btn .hero-user-avatar svg {
    display: block;
    margin: auto;
}

.Header-mobile .dropup .header-user-dd-btn > svg {
    display: block;
    margin: auto;
    margin-top: 2px;
}

.Header-mobile .dropup .dropdown-menu.animate.slideIn.show {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    min-width: 250px;
    padding: 0;
    overflow: hidden;
}

.Header-mobile .dropup .dropdown-menu .information-user {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
   
    direction: rtl;
}



.Header-mobile .dropup .dropdown-menu .information-user .details-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.Header-mobile .dropup .dropdown-menu .information-user .details-container h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #25376D;
    text-align: right;
}

.Header-mobile .dropup .dropdown-menu .information-user .details-container p {
    margin: 0;
    font-size: 12px;
    color: #888;
    text-align: right;
}

.Header-mobile .dropup .dropdown-menu .row-account {
    list-style: none;
    padding: 0;
}

.Header-mobile .dropup .dropdown-menu .row-account a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #25376D;
    text-decoration: none;
    direction: rtl;
    transition: background 0.2s ease;
}

.Header-mobile .dropup .dropdown-menu .row-account a:hover {
    background-color: #F5F7FA;
}

.Header-mobile .dropup .dropdown-menu .row-account a ion-icon {
    font-size: 20px;
    color: #0a5581;
}

.Header-mobile .dropup .dropdown-menu .logout-line {
    border-top: 1px solid #E0E0E0;
}

.Header-mobile .dropup .dropdown-menu .logout-line a,
.Header-mobile .dropup .dropdown-menu .logout-line button {
    color: #D32F2F;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    direction: rtl;
}

.Header-mobile .dropup .dropdown-menu .logout-line a ion-icon,
.Header-mobile .dropup .dropdown-menu .logout-line button ion-icon {
    color: #D32F2F;
    font-size: 20px;
}

/* ===== Mobile "More" burger item + Slide-up Sheet ===== */
.Header-mobile .mobile-burger-item ion-icon {
    font-size: 22px;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 1050;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
}

/* Slide-up sheet */
.mobile-nav-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1060;
    direction: rtl;
}

.mobile-nav-sheet.is-open {
    transform: translateY(0);
}

.mobile-nav-sheet__handle {
    width: 44px;
    height: 4px;
    background: #E2E5EE;
    border-radius: 999px;
    margin: 4px auto 12px;
}

.mobile-nav-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mobile-nav-sheet__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #25376D;
}

.mobile-nav-sheet__close {
    background: #F4F6FB;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25376D;
    cursor: pointer;
}

.mobile-nav-sheet__close ion-icon {
    font-size: 22px;
}

.mobile-nav-sheet__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 10px;
    color: #1F2A4A;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background: #F4F6FB;
    color: #25376D;
    text-decoration: none;
}

.mobile-nav-item ion-icon {
    font-size: 22px;
    color: #25376D;
    flex-shrink: 0;
}

/* Hero CTA shown only on mobile */
.hero-mobile-cta {
    display: none;
}

@media (max-width: 992px) {
    .hero-mobile-cta {
        display: flex;
        justify-content: center;
        padding: 14px 16px 4px;
    }

    .hero-mobile-cta__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 420px;
        padding: 14px 22px;
        border-radius: 12px;
        background: #A02842;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 6px 16px rgba(160, 40, 66, 0.25);
        transition: transform 150ms ease, box-shadow 150ms ease;
    }

    .hero-mobile-cta__btn:hover,
    .hero-mobile-cta__btn:focus {
        color: #fff;
        opacity: 0.95;
        text-decoration: none;
    }

    .hero-mobile-cta__btn:active {
        transform: translateY(1px);
    }

    .hero-mobile-cta__btn ion-icon {
        font-size: 20px;
    }
}

