:root {
    --wemiwa-accent-blue: #3f86d4;
    --wemiwa-accent-blue-strong: #2f6fb8;
    --wemiwa-accent-green: #2f9f65;
    --wemiwa-accent-green-strong: #248651;
    --wemiwa-gold: #caa760;
    --wemiwa-gold-strong: #b38734;
    --wemiwa-text: #1f2f3e;
    --wemiwa-border: #d9e4ed;

    --header-bg-transparent: linear-gradient(90deg, rgba(248, 249, 251, 0.75) 0%, rgba(244, 246, 248, 0.75) 100%);
    --header-bg-solid: linear-gradient(90deg, #f8f9fb 0%, #f4f6f8 100%);
    --header-height-desktop: 88px;
    --header-height-mobile: 72px;
    --header-logo-max-height: 120px;
    --header-logo-max-height-mobile: 44px;
    --layout-bg: linear-gradient(170deg, #f8fcff 0%, #f7fcf9 52%, #f8fafc 100%);
    --surface-border: #d9e4ed;
    --footer-bg: linear-gradient(180deg, #edf6ef 0%, #e4f0e7 100%);
    --footer-text: #2b4a35;
    --header-transition-distance: 220;
    --header-alpha-start-default: 0.75;
    --header-alpha-start-hero: 0.32;
    --header-alpha-end: 0.98;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--layout-bg);
    color: var(--wemiwa-text);
}

a {
    color: var(--wemiwa-accent-blue);
}

a:hover,
a:focus,
a:active {
    color: var(--wemiwa-accent-blue-strong);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
    background: #ffffff;
}

.site-header {
    --header-scroll-progress: 0;
    --header-alpha-start: var(--header-alpha-start-default);
    --header-border-start: 0.25;
    --header-border-end: 0.4;
    --header-alpha-current: calc(var(--header-alpha-start) + (var(--header-alpha-end) - var(--header-alpha-start)) * var(--header-scroll-progress));
    --header-border-current: calc(var(--header-border-start) + (var(--header-border-end) - var(--header-border-start)) * var(--header-scroll-progress));
    --header-shadow-current: calc(0.08 * var(--header-scroll-progress));
    --header-blur-current: calc(8px - 8px * var(--header-scroll-progress));
    z-index: 1030;
    background: linear-gradient(
        90deg,
        rgba(248, 249, 251, var(--header-alpha-current)) 0%,
        rgba(244, 246, 248, var(--header-alpha-current)) 100%
    );
    border-bottom: 1px solid rgba(166, 176, 189, var(--header-border-current));
    box-shadow: 0 8px 20px rgba(23, 48, 71, var(--header-shadow-current));
    overflow: visible;
    backdrop-filter: blur(var(--header-blur-current));
    transition: background 0.08s linear, box-shadow 0.08s linear, border-color 0.08s linear, backdrop-filter 0.08s linear;
}

.has-component-hero .site-header {
    --header-alpha-start: var(--header-alpha-start-hero);
    --header-border-start: 0.15;
}

.has-component-hero .site-header.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.site-header.is-scrolled {
    --header-scroll-progress: 1;
}

.header-desktop {
    min-height: var(--header-menu-height, var(--header-height-desktop));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    grid-template-areas: "leftmenu logo rightmenu login";
    align-items: center;
    gap: 1rem;
}

.header-mobile {
    min-height: var(--header-height-mobile);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #26415a;
}

.site-logo-image {
    display: block;
    max-height: var(--header-logo-max-height);
    width: auto;
    height: auto;
}

.site-header.has-logo-overlap .header-slot-logo .site-logo {
    position: relative;
    z-index: 3;
}

.site-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #26415a;
}

.header-slot {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.header-slot-left {
    grid-area: leftmenu;
    justify-self: end;
}

.header-slot-logo {
    grid-area: logo;
    justify-self: center;
}

.header-slot-right {
    grid-area: rightmenu;
    justify-self: start;
}

.header-slot-login {
    grid-area: login;
    justify-self: end;
}

.header-slot a {
    color: #26415a;
    text-decoration: none;
}

.header-slot a:hover,
.header-slot a:focus {
    color: var(--wemiwa-accent-blue);
}

.header-slot-left .mod-menu ul,
.header-slot-right .mod-menu ul,
.header-slot-left ul.menu,
.header-slot-right ul.menu,
.header-slot-left ul.nav,
.header-slot-right ul.nav,
.header-slot-left ul,
.header-slot-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.header-slot-left .mod-menu ul,
.header-slot-left ul.menu,
.header-slot-left ul.nav,
.header-slot-left ul {
    justify-content: flex-end;
}

.header-slot-right .mod-menu ul,
.header-slot-right ul.menu,
.header-slot-right ul.nav,
.header-slot-right ul {
    justify-content: flex-start;
}

.header-slot-left .mod-menu a,
.header-slot-right .mod-menu a,
.header-slot-left ul.menu a,
.header-slot-right ul.menu a,
.header-slot-left ul.nav a,
.header-slot-right ul.nav a,
.header-slot-left ul a,
.header-slot-right ul a {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    line-height: 1.2;
}

.header-slot-left .mod-menu .active > a,
.header-slot-right .mod-menu .active > a,
.header-slot-left ul .active > a,
.header-slot-right ul .active > a {
    color: var(--wemiwa-gold-strong);
}

.login-btn,
.header-slot-login .btn,
.mobile-login-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #9fceb6;
    background: #dff3e9;
    color: #1d5c3a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.42rem 0.92rem;
}

.user-menu-toggle {
    gap: 0.45rem;
}

.user-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}

.user-menu-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-dropdown {
    border: 1px solid #d9e4ed;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(31, 56, 82, 0.12);
    padding: 0.4rem;
}

.user-dropdown .dropdown-item {
    border-radius: 0.5rem;
    color: #26415a;
    padding: 0.45rem 0.65rem;
}

.user-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-item:focus {
    background: #eaf3ff;
    color: #1f4f78;
}

.login-btn:hover,
.login-btn:focus,
.header-slot-login .btn:hover,
.header-slot-login .btn:focus,
.mobile-login-wrap .btn:hover,
.mobile-login-wrap .btn:focus {
    background: #cfeadf;
    border-color: #84bda0;
    color: #17492e;
}

.burger-btn {
    border: 1px solid rgba(48, 80, 108, 0.35);
    border-radius: 0.65rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.burger-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(63, 134, 212, 0.25);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #30506c;
}

.mobile-nav {
    background: #f8fbff;
    color: #26415a;
}

.mobile-nav .offcanvas-header {
    border-bottom: 1px solid rgba(166, 176, 189, 0.3);
}

.mobile-nav .offcanvas-title {
    color: #26415a;
}

.mobile-nav a {
    color: #26415a;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--wemiwa-accent-blue);
}

.mobile-nav .mod-menu ul,
.mobile-nav ul.menu,
.mobile-nav ul.nav,
.mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-nav .mod-menu ul li a,
.mobile-nav ul.menu li a,
.mobile-nav ul.nav li a,
.mobile-nav ul li a {
    display: block;
    width: 100%;
    padding: 0.58rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid #d9e4ed;
    background: #ffffff;
}

.mobile-nav .mod-menu ul li.active > a,
.mobile-nav ul.menu li.active > a,
.mobile-nav ul.nav li.active > a,
.mobile-nav ul li.active > a {
    color: var(--wemiwa-gold-strong);
    border-color: rgba(202, 167, 96, 0.42);
    background: rgba(243, 234, 213, 0.35);
}

.mobile-nav .mobile-nav-group + .mobile-nav-group {
    margin-top: 0.3rem;
}

.component-top {
    width: 100%;
}

.component-hero {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.component-hero > * {
    margin-bottom: 0;
}

.component-top-hero {
    margin-top: calc(var(--header-menu-height, var(--header-height-desktop)) * -1);
    padding-top: var(--header-menu-height, var(--header-height-desktop));
}

.component-top-hero > * {
    margin-bottom: 0;
}

.component-top-inline {
    background: #ffffff;
}

.mobile-user-links .btn {
    justify-content: center;
}

.layout-box {
    border: 1px solid var(--wemiwa-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fcff 58%, #f8fcf9 100%);
    box-shadow: 0 10px 24px rgba(31, 56, 82, 0.06);
    padding: 1rem;
}

.component-box {
    min-height: 12rem;
}

.layout-box.component-box {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid rgba(88, 130, 102, 0.38);
}

.site-footer a {
    color: #335840;
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active {
    color: #1f3f2f;
}

.site-footer .footer-right {
    text-align: right;
}

.site-footer .footer-center {
    text-align: center;
}

.site-footer .footer-center.footer-center-only {
    max-width: 32rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
.form-control,
select:not(.form-select) {
    border: 1px solid #d5e1eb;
    border-radius: 10px;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
.form-control:focus,
select:not(.form-select):focus {
    border-color: rgba(63, 134, 212, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(202, 167, 96, 0.15);
}

.mod-chrome-wemiwa-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.mod-chrome-wemiwa-vertical .mod-chrome-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #26415a;
}

.mod-chrome-wemiwa-vertical .mod-menu,
.mod-chrome-wemiwa-vertical ul.menu,
.mod-chrome-wemiwa-vertical ul.nav,
.mod-chrome-wemiwa-vertical > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.15rem;
    width: 100%;
}

.mod-chrome-wemiwa-vertical .mod-menu li,
.mod-chrome-wemiwa-vertical ul.menu li,
.mod-chrome-wemiwa-vertical ul.nav li,
.mod-chrome-wemiwa-vertical > ul li {
    margin: 0;
    width: 100%;
    text-align: left;
}

.mod-chrome-wemiwa-vertical .mod-menu li > a,
.mod-chrome-wemiwa-vertical ul.menu li > a,
.mod-chrome-wemiwa-vertical ul.nav li > a,
.mod-chrome-wemiwa-vertical > ul li > a {
    display: inline-block;
    width: auto;
    padding: 0.08rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2a5070;
    font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
}

.mod-chrome-wemiwa-vertical .mod-menu li > a:hover,
.mod-chrome-wemiwa-vertical ul.menu li > a:hover,
.mod-chrome-wemiwa-vertical ul.nav li > a:hover,
.mod-chrome-wemiwa-vertical > ul li > a:hover {
    border: 0;
    background: transparent;
    color: #1f4f78;
    text-decoration: underline;
}

.mod-chrome-wemiwa-vertical .mod-menu li.active > a,
.mod-chrome-wemiwa-vertical ul.menu li.active > a,
.mod-chrome-wemiwa-vertical ul.nav li.active > a,
.mod-chrome-wemiwa-vertical > ul li.active > a {
    color: var(--wemiwa-gold-strong);
    border: 0;
    background: transparent;
    text-decoration: none;
}

body.com_users.view-login .component-box .com-users-login,
body.com_users.view-login .component-box .com-users-login.login {
    width: 100%;
    max-width: 100%;
}

body.com_users.view-login #com-users-login__form.form-horizontal .controls {
    margin-left: 0;
}

body.com_users.view-login #com-users-login__form .control-group {
    margin-bottom: 1rem;
}

body.com_users.view-login #com-users-login__form .com-users-login__remember {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

body.com_users.view-login #com-users-login__form .com-users-login__submit {
    margin-bottom: 0;
}

body.com_users.view-login #com-users-login__form .com-users-login__submit + .com-users-login__submit {
    margin-top: 0.65rem;
}

body.com_users.view-login #com-users-login__form .com-users-login__submit .btn {
    display: block;
    width: 100%;
}

body.com_users.view-login #com-users-login__form .com-users-login__submit .btn[type="submit"] {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

body.com_users.view-registration .component-box .com-users-registration,
body.com_users.view-registration .component-box .com-users-registration.registration {
    width: 100%;
    max-width: 100%;
}

body.com_users.view-registration .component-box .auto-username-field {
    display: none !important;
}

body.com_users.view-registration #member-registration .control-group,
body.com_users.view-registration .com-users-registration__form .com-users-registration__input,
body.com_users.view-registration .com-users-registration__form .mb-3 {
    margin-bottom: 1rem;
}

body.com_users.view-registration #member-registration .control-label {
    margin-bottom: 0.3rem;
}

body.com_users.view-registration #member-registration.form-horizontal .controls {
    margin-left: 0;
}

@media (min-width: 992px) {
    body.com_users.view-login .component-box .com-users-login,
    body.com_users.view-login .component-box .com-users-login.login {
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
    }

    body.com_users.view-registration .component-box .com-users-registration,
    body.com_users.view-registration .component-box .com-users-registration.registration {
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .site-logo-image {
        max-height: var(--header-logo-max-height-mobile);
    }

    .component-top-hero {
        margin-top: calc(var(--header-height-mobile) * -1);
        padding-top: var(--header-height-mobile);
    }

    .has-component-hero .site-header.sticky-top {
        position: fixed;
    }

    .component-hero {
        margin-top: 0;
        padding-top: 0;
    }

    .site-footer .footer-right {
        text-align: left;
    }

    .site-footer .footer-center {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .site-header.logo-pos-left .header-desktop {
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas: "logo leftmenu rightmenu login";
    }

    .site-header.logo-pos-left .header-slot-left {
        justify-self: start;
    }

    .site-header.logo-pos-left .header-slot-left .mod-menu ul,
    .site-header.logo-pos-left .header-slot-left ul.menu,
    .site-header.logo-pos-left .header-slot-left ul.nav,
    .site-header.logo-pos-left .header-slot-left ul {
        justify-content: flex-start;
    }

    .site-header.has-logo-overlap .container-xl,
    .site-header.has-logo-overlap .header-desktop,
    .site-header.has-logo-overlap .header-slot-logo {
        overflow: visible;
    }

    .site-header.has-logo-overlap .header-slot-logo {
        z-index: 6;
    }

    .site-header.has-logo-overlap .header-slot-logo .site-logo {
        position: relative;
        z-index: 6;
        height: 0;
        overflow: visible;
        align-items: flex-start;
    }

    .site-header.has-logo-overlap .header-slot-logo .site-logo-image {
        max-height: none;
        transform: translateY(var(--logo-overlap-offset, 18px));
    }
}
