/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 999;
}
.main-header.sticky {
    position: fixed;
    animation: fadeInDown .5s ease;
}
.main-header.sticky .top-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom: 0;
    padding: 0;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top Bar */
.top-bar {
    background: transparent;
    border-bottom: 0;
    max-height: 90px;
    transition: opacity .25s ease, max-height .25s ease, padding .25s ease;
}
.top-bar-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 0 10px;
    background: var(--secondary);
}
.top-bar span, .top-bar a { color: rgba(255,255,255,.84); font-size: 13px; }
.top-bar a:hover { color: var(--white); }
.header-top-left,
.top-bar-right {
    min-height: 48px;
}
.header-top-left {
    display: flex;
    align-items: center;
    gap: 0 !important;
}
.header-top-left > span,
.header-top-left > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    line-height: 1;
}
.header-top-left > * + * {
    margin-left: 22px;
    padding-left: 22px;
    position: relative;
}
.header-top-left > * + *::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.16);
    transform: translateY(-50%);
}
.header-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}
.header-icon--sm {
    width: 20px;
    height: 20px;
}
.top-bar-right {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
}
.header-social {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 18px;
    margin-right: 24px;
    position: relative;
}
.header-social::after {
    display: none;
}
.header-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1A2948;
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}
.header-social a:hover { background: var(--primary); color: var(--white); }
.header-top-btn a {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary); color: var(--white) !important;
    padding: 0 26px; min-height: 48px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .02em;
}
.header-top-btn a:hover { background: var(--blue); }
.header-top-btn .header-icon { width: 20px; height: 20px; }

/* Menu Area */
.menu-area {
    background: var(--white);
    padding: 0 0 0 12px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    box-shadow: 0px 2px 50px rgba(0,0,0,.05);
    transition: var(--transition);
}
.main-header.sticky .menu-area {
    width: 100%;
    max-width: none;
    padding-left: 0;
    box-shadow: 0 10px 15px rgba(25,25,25,.08);
}
.main-header.sticky .nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 12px;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.navbar-wrap {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}
.top-bar-shell .container-fluid,
.menu-area .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Logo */
.logo a {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--heading-font);
    font-size: 28px; font-weight: 800; color: var(--secondary); transition: var(--transition);
}
.logo a span { color: var(--primary); }
.site-logo { line-height: 1; }
.site-logo img { height: 45px; width: auto; display: block; }
.logo .site-logo span,
.nav-logo .site-logo span {
    color: #145189 !important;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.03em;
}
.site-logo--mobile img { height: 38px; }
.site-logo--mobile span {
    font-size: 24px;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 32px 15px;
    color: var(--secondary); font-weight: 500; font-size: 16px;
    text-transform: capitalize; line-height: 1;
    transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--primary); }

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--white); border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1); padding: 15px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
}
.nav-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li a {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 25px; color: var(--body-color);
    font-size: 15px; font-weight: 500; transition: var(--transition);
}
.nav-menu .sub-menu li a::before {
    content: ""; width: 0; height: 2px; border-radius: 2px;
    background: var(--primary); transition: .3s ease;
}
.nav-menu .sub-menu li a:hover { color: var(--primary); }
.nav-menu .sub-menu li a:hover::before { width: 10px; }

/* Header Actions */
.header-action { display: flex; align-items: center; gap: 0; }
.header-action > ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.header-contact-two {
    display: flex; align-items: center;
    margin-right: 30px;
}
.header-contact-two .icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin-right: 7px; line-height: 0;
}
.header-contact-two .icon .header-icon {
    width: 20px;
    height: 20px;
}
.header-contact-two .content span {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--body-color); line-height: 1; margin-bottom: 5px;
}
.header-contact-two .content a {
    font-size: 16px; font-weight: 700;
    color: var(--secondary); line-height: 1; display: block;
}
.header-contact-two .content a:hover { color: var(--primary); }

/* Header search & offcanvas toggles */
.header-action .header-search a,
.header-action .offcanvas-menu a {
    color: var(--secondary); font-size: 18px;
}

.header-action .header-search,
.header-action .offcanvas-menu {
    display: flex; align-items: center;
    border-left: 1px solid rgba(11,42,109,.12);
}
.header-action .header-search > a,
.header-action .offcanvas-menu > a {
    padding: 29px 29px; display: flex; align-items: center;
    min-height: 80px;
}
.header-search .header-icon {
    width: 19px;
    height: 19px;
}
.offcanvas-menu .menu-tigger {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
    min-width: 26px; padding: 29px 29px; justify-content: center;
}
.offcanvas-menu .menu-tigger span {
    display: block; height: 1.5px; border-radius: 2px;
    background: var(--body-color); transition: .3s linear;
}
.offcanvas-menu .menu-tigger span:nth-child(1) { width: 26px; }
.offcanvas-menu .menu-tigger span:nth-child(2) { width: 23px; }
.offcanvas-menu .menu-tigger span:nth-child(3) { width: 15px; }
.offcanvas-menu .menu-tigger:hover span { background: var(--primary); }

/* Mobile Toggler */
.mobile-nav-toggler {
    display: none; cursor: pointer; font-size: 24px;
    color: var(--secondary);
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
}

/* Search Popup */
.search__popup {
    position: fixed; inset: 0;
    background: rgba(0,25,76,.95); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.search__popup.active { opacity: 1; visibility: visible; }
.search-close-btn {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; color: var(--white);
    cursor: pointer; width: 40px; height: 40px;
}
.search__form { width: 100%; max-width: 600px; }
.search__input {
    display: flex; border-bottom: 2px solid rgba(255,255,255,.3);
    padding-bottom: 15px;
}
.search__input input {
    flex: 1; background: none; border: none;
    color: var(--white); font-size: 24px; outline: none;
}
.search__input input::placeholder { color: rgba(255,255,255,.5); }
.search__input button {
    background: var(--primary); color: var(--white);
    border: none; width: 55px; height: 55px; border-radius: 50%;
    font-size: 18px; cursor: pointer; transition: var(--transition);
}
.search__input button:hover { background: var(--blue); }

/* Offcanvas */
.extra-info {
    position: fixed; top: 0; right: -350px; width: 350px; height: 100%;
    background: var(--white); z-index: 9999; padding: 60px 30px 30px;
    overflow-y: auto; transition: var(--transition);
}
.extra-info.active { right: 0; }
.offcanvas-overly {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 9998; opacity: 0; visibility: hidden; transition: var(--transition);
}
.offcanvas-overly.active { opacity: 1; visibility: visible; }
.logo-side a {
    font-family: var(--heading-font); font-size: 28px;
    font-weight: 800; color: var(--secondary); display: block;
}
.logo-side a span { color: var(--primary); }
.menu-close button {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 24px;
    color: var(--secondary); cursor: pointer;
}
.contact-list h4 { font-size: 18px; margin-bottom: 10px; }
.contact-list p { color: var(--body-color); margin-bottom: 5px; }
.side-info { margin-bottom: 30px; }

.extra-info .social-icon-right { margin-top: 30px; }
.extra-info .social-icon-right a {
    color: var(--primary); display: inline-block;
    margin-right: 20px; text-align: center; font-size: 16px;
    transition: var(--transition);
}
.extra-info .social-icon-right a:hover { color: var(--secondary); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; left: -320px; width: 320px; height: 100%;
    background: var(--white); z-index: 9999; padding: 18px 25px 30px;
    overflow-y: auto; transition: var(--transition);
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu.active { left: 0; }
.menu-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 9998; opacity: 0; visibility: hidden; transition: var(--transition);
}
.menu-backdrop.active { opacity: 1; visibility: visible; }
.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--secondary);
    cursor: pointer;
}
.nav-logo {
    margin-bottom: 18px;
    min-height: 40px;
    padding-right: 44px;
}
.nav-logo a {
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    gap: 10px;
}
.nav-logo a span {
    color: var(--primary);
    display: inline-block;
}
.nav-logo img {
    max-height: 40px;
    width: auto;
    flex: 0 0 auto;
}
.mobile-search { margin-bottom: 25px; }
.mobile-search form { display: flex; }
.mobile-search input {
    flex: 1; border: 1px solid var(--border-color);
    border-right: none; padding: 12px 15px; font-size: 14px;
    outline: none; border-radius: 4px 0 0 4px;
}
.mobile-search button {
    background: var(--primary); color: var(--white);
    border: none; padding: 0 15px; border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.mobile-menu .navigation {
    margin-bottom: 20px;
    flex: 1 1 auto;
}
.mobile-menu .navigation li {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu .navigation li > a {
    display: flex; align-items: center; width: 100%;
    min-height: 44px;
    padding: 12px 40px 12px 0;
    color: var(--secondary); font-weight: 500;
    font-size: 16px; text-transform: capitalize;
    line-height: 1.35;
}
.mobile-menu .navigation li ul { display: none; padding-left: 15px; }
.mobile-menu .navigation li ul.open { display: block; }
.mobile-menu .navigation li ul li a { font-size: 14px; font-weight: 500; }
.mobile-menu .navigation li ul li ul li a { padding-left: 15px; }
.mobile-menu .navigation li.menu-item-has-children .dropdown-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer; transition: var(--transition);
    transform: none;
    z-index: 2;
}
.mobile-menu .navigation li.menu-item-has-children .dropdown-btn i {
    pointer-events: none;
}
.mobile-menu .social-links {
    margin-top: auto;
    padding-top: 18px;
}
.mobile-menu .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 3px;
    border: 1px solid var(--gray); color: var(--secondary);
    font-size: 16px; transition: all .5s ease; margin: 0 6px 10px;
}
.mobile-menu .social-links a:hover {
    background: var(--primary); border-color: var(--primary); color: var(--white);
}

.mobile-menu__cta {
    margin-bottom: 18px;
}

.mobile-menu__cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.mobile-menu__cta a:hover {
    background: var(--blue);
}

.mobile-menu__cta .header-icon {
    width: 18px;
    height: 18px;
}

body.advisor-login-open {
    overflow: hidden;
}

html.ui-scroll-lock,
body.ui-scroll-lock {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100dvh;
    touch-action: none;
}

.pp-advisor-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10020;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.pp-advisor-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.pp-advisor-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 42, .52);
    backdrop-filter: blur(4px);
}

.pp-advisor-modal__dialog {
    position: relative;
    width: min(100%, 448px);
    margin: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(11, 31, 70, .2);
    border: 1px solid rgba(18, 86, 215, .08);
}

.pp-advisor-modal__content {
    padding: 20px 20px 18px;
}

.pp-advisor-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pp-advisor-modal__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
}

.pp-advisor-modal__brand img {
    width: auto;
    height: 28px;
}

.pp-advisor-modal__title {
    margin: 0 0 14px;
    color: var(--secondary);
    font-size: 24px;
    line-height: 1.05;
}

.pp-advisor-modal__alert {
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff2ec;
    border: 1px solid #ffd6c7;
    color: #b54708;
    font-size: 13px;
    font-weight: 600;
}

.pp-advisor-modal__field {
    margin-bottom: 10px;
}

.pp-advisor-modal__field label {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
}

.pp-advisor-modal__field input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #dbe5f3;
    background: #f5f8fd;
    color: #9aa7bb;
    padding: 0 14px;
    font-size: 14px;
}

.pp-advisor-modal__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.pp-advisor-modal__remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.pp-advisor-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pp-advisor-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pp-advisor-modal__btn--ghost {
    border: 1px solid #dde6f3;
    background: #f3f7fd;
    color: #9aa8bb;
    cursor: not-allowed;
}

.pp-advisor-modal__btn--primary {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(18, 86, 215, .18);
}

.pp-advisor-modal__btn--primary:hover {
    color: var(--white);
}

.pp-advisor-google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.pp-advisor-google-mark svg {
    display: block;
    width: 16px;
    height: 16px;
}

.pp-advisor-modal__divider {
    height: 1px;
    margin: 16px 0 12px;
    background: #e8eef7;
}

.pp-advisor-modal__footer strong {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.pp-advisor-modal__btn--outline {
    width: 100%;
    border: 1px solid #d4dfef;
    background: #fff;
    color: #9aa8bb;
    cursor: not-allowed;
}

@media (max-width: 1199px) {
    .top-bar-shell {
        width: min(1180px, calc(100% - 24px));
        padding: 0 0 0 8px;
    }
    .menu-area {
        padding-left: 8px;
        width: min(1180px, calc(100% - 24px));
    }
    .nav-menu > li > a {
        padding: 28px 11px;
        font-size: 15px;
    }
    .header-contact-two {
        margin-right: 20px;
    }
    .header-contact-two .content a {
        font-size: 15px;
    }
    .header-action .header-search > a,
    .header-action .offcanvas-menu > a,
    .offcanvas-menu .menu-tigger {
        padding: 25px 20px;
        min-height: 72px;
    }
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    .menu-area {
        width: 100%;
        padding: 0 14px;
    }
    .main-header.sticky .nav-wrap {
        max-width: none;
        padding-left: 0;
    }
    .nav-wrap {
        min-height: 76px;
    }
    .logo {
        padding: 0;
        display: flex;
        align-items: center;
    }
    .mobile-nav-toggler {
        display: inline-flex;
        align-self: center;
    }
    .mobile-nav-toggler i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        line-height: 1;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
    .menu-area { padding-left: 16px; padding-right: 8px; }
    .nav-wrap {
        gap: 8px;
        min-height: 62px;
    }
    .logo {
        margin-left: 6px;
    }
    .site-logo img {
        height: 34px;
    }
    .site-logo span {
        font-size: 21px;
    }
    .mobile-menu {
        width: min(300px, 100vw);
        left: -100%;
        padding: 18px 20px 24px;
    }
    .close-btn {
        top: 16px;
        right: 2px;
    }
    .nav-logo {
        min-height: 36px;
        margin-bottom: 16px;
    }
    .nav-logo a {
        min-height: 36px;
    }
    .mobile-nav-toggler {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    .mobile-search {
        margin-bottom: 18px;
    }
    .mobile-menu .social-links a {
        width: 38px;
        height: 38px;
        margin: 0 4px 8px;
    }
    .search__form {
        max-width: calc(100vw - 40px);
    }
    .search__input {
        padding-bottom: 12px;
    }
    .search__input input {
        font-size: 18px;
    }
    .search__input button {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    .pp-advisor-modal__dialog {
        width: calc(100vw - 24px);
        margin-top: 16px;
        border-radius: 16px;
    }
    .pp-advisor-modal__content {
        padding: 18px 16px 16px;
    }
    .pp-advisor-modal__title {
        font-size: 22px;
    }
    .pp-advisor-modal__actions {
        grid-template-columns: 1fr;
    }
    .pp-advisor-modal__btn {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .menu-area {
        padding-left: 14px;
        padding-right: 6px;
    }
    .nav-wrap {
        min-height: 58px;
        gap: 6px;
    }
    .logo {
        margin-left: 8px;
    }
    .site-logo img {
        height: 32px;
    }
    .site-logo span {
        font-size: 19px;
    }
    .mobile-nav-toggler {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .mobile-menu {
        padding: 16px 16px 20px;
    }
    .close-btn {
        top: 14px;
        right: -1px;
    }
    .nav-logo {
        padding-right: 40px;
    }
}
