.custom-site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/*.custom-site-header.is-scrolled {
    background-color: rgba(15, 23, 42, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}*/

.custom-site-header.is-scrolled {
    background-color: rgba(15, 23, 42, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.custom-site-header.is-scrolled .custom-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

/*.custom-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 24px;
}*/

.custom-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 24px;
    transition: padding 0.25s ease;
}

/*.custom-header-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}*/

.custom-header-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-shrink: 0;
    line-height: 1.1;
}

.custom-header-logo img {
    height: 28px;
    width: auto;
    display: block;
    border-radius: 50%;
}

/*.custom-header-logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}*/

.custom-header-logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.custom-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.custom-header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.custom-header-menu li {
    position: relative;
}

.custom-header-menu a {
    color: #cfcfe0;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.custom-header-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.25s ease;
}

.custom-header-menu a:hover {
    color: #a78bfa;
}

.custom-header-menu > li > a:hover::after {
    width: 100%;
}

/* Dropdown (sub-menu) */
.custom-header-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    margin: 10px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

/* Level-2 (nested) sub-menu — ডানপাশে flyout হবে, নিচে না */
.custom-header-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin: 0 0 0 8px;
}

.custom-header-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-header-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
}

.custom-header-menu .sub-menu a::after {
    display: none;
}

.custom-header-cta {
    flex-shrink: 0;
    background: linear-gradient(135deg, #6f42c1, #a78bfa);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-header-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.custom-header-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    display: block;
}

/* Mobile */
@media (max-width: 900px) {
    .custom-header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .custom-site-header.menu-open .custom-header-nav {
        max-height: 500px;
    }

    .custom-header-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .custom-header-menu li {
        width: 100%;
    }

    .custom-header-menu ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 15px;
        display: none;
    }

    .custom-header-menu li.menu-item-has-children.sub-open > ul.sub-menu {
        display: block;
    }

    .custom-header-cta {
        display: none;
    }

    .custom-header-toggle {
        display: flex;
    }
}

  /* Start admin bar sticky menu problem solve */
.admin-bar .custom-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .custom-site-header {
        top: 46px;
    }
}
  /* End admin bar sticky menu problem solve */
  
  