:root {
    --softicode-hfb-bg: #ffffff;
    --softicode-hfb-dark: #0f172a;
    --softicode-hfb-muted: #64748b;
    --softicode-hfb-line: rgba(15, 23, 42, 0.1);
    --softicode-hfb-accent: #2563eb;
    --softicode-hfb-accent-dark: #1d4ed8;
    --softicode-hfb-radius: 14px;
    --softicode-hfb-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.softicode-hfb-template,
.softicode-hfb-template * {
    box-sizing: border-box;
}

.softicode-hfb-template a {
    text-decoration: none;
}

.softicode-hfb-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.softicode-hfb-header.softicode-hfb-is-sticky {
    position: sticky;
    top: 0;
    z-index: 9998;
}

.admin-bar .softicode-hfb-header.softicode-hfb-is-sticky {
    top: 32px;
}

.softicode-hfb-default-header {
    background: var(--softicode-hfb-bg);
    box-shadow: var(--softicode-hfb-shadow);
    color: var(--softicode-hfb-dark);
}

.softicode-hfb-topbar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.4;
}

.softicode-hfb-topbar .softicode-hfb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    flex-wrap: wrap;
}

.softicode-hfb-topbar span,
.softicode-hfb-topbar a {
    color: #e2e8f0;
}

.softicode-hfb-topbar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
}

.softicode-hfb-mainbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--softicode-hfb-line);
}

.softicode-hfb-mainbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 78px;
}

.softicode-hfb-logo-wrap,
.softicode-hfb-footer-logo {
    display: flex;
    align-items: center;
}

.softicode-hfb-logo-wrap img,
.softicode-hfb-footer-logo img {
    max-height: 54px;
    width: auto;
}

.softicode-hfb-site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--softicode-hfb-dark);
}

.softicode-hfb-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.softicode-hfb-nav .softicode-hfb-menu,
.softicode-hfb-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.softicode-hfb-nav li {
    position: relative;
    margin: 0;
}

.softicode-hfb-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--softicode-hfb-dark);
    font-size: 15px;
    font-weight: 650;
    padding: 12px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.softicode-hfb-nav a:hover,
.softicode-hfb-nav .current-menu-item > a,
.softicode-hfb-nav .current_page_item > a {
    background: rgba(37, 99, 235, 0.1);
    color: var(--softicode-hfb-accent);
}

.softicode-hfb-nav .sub-menu,
.softicode-hfb-nav .children {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--softicode-hfb-line);
    border-radius: var(--softicode-hfb-radius);
    box-shadow: var(--softicode-hfb-shadow);
    padding: 8px;
    z-index: 10000;
}

.softicode-hfb-nav li:hover > .sub-menu,
.softicode-hfb-nav li:hover > .children {
    display: flex;
}

.softicode-hfb-nav .sub-menu a,
.softicode-hfb-nav .children a {
    border-radius: 10px;
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
}

.softicode-hfb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--softicode-hfb-accent);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.softicode-hfb-button:hover {
    transform: translateY(-1px);
    background: var(--softicode-hfb-accent-dark);
}

.softicode-hfb-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--softicode-hfb-line);
    border-radius: 12px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.softicode-hfb-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--softicode-hfb-dark);
    border-radius: 999px;
}

.softicode-hfb-default-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.softicode-hfb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 42px;
    padding-block: 64px;
}

.softicode-hfb-default-footer h3 {
    color: #ffffff;
    margin: 0 0 16px;
    font-size: 18px;
}

.softicode-hfb-default-footer p {
    color: #cbd5e1;
    line-height: 1.75;
    margin: 14px 0 0;
}

.softicode-hfb-default-footer a {
    color: #e2e8f0;
}

.softicode-hfb-default-footer .softicode-hfb-site-title {
    color: #ffffff;
}

.softicode-hfb-default-footer .softicode-hfb-nav ul,
.softicode-hfb-default-footer .softicode-hfb-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}

.softicode-hfb-default-footer .softicode-hfb-nav a {
    color: #cbd5e1;
    padding: 6px 0;
    border-radius: 0;
    background: transparent !important;
}

.softicode-hfb-default-footer .softicode-hfb-nav a:hover {
    color: #ffffff;
}

.softicode-hfb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 18px;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 782px) {
    .admin-bar .softicode-hfb-header.softicode-hfb-is-sticky {
        top: 46px;
    }
}

@media (max-width: 900px) {
    .softicode-hfb-topbar .softicode-hfb-container {
        justify-content: center;
        text-align: center;
    }

    .softicode-hfb-mainbar-inner {
        min-height: 68px;
        gap: 14px;
    }

    .softicode-hfb-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .softicode-hfb-nav-wrap {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        display: none;
        background: #ffffff;
        border: 1px solid var(--softicode-hfb-line);
        border-radius: var(--softicode-hfb-radius);
        box-shadow: var(--softicode-hfb-shadow);
        padding: 14px;
        z-index: 10001;
    }

    .softicode-hfb-default-header.softicode-hfb-menu-open .softicode-hfb-nav-wrap,
    .softicode-hfb-header.softicode-hfb-menu-open .softicode-hfb-nav-wrap {
        display: block;
    }

    .softicode-hfb-nav .softicode-hfb-menu,
    .softicode-hfb-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .softicode-hfb-nav a {
        width: 100%;
        justify-content: flex-start;
    }

    .softicode-hfb-nav .sub-menu,
    .softicode-hfb-nav .children {
        position: static;
        display: flex;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 14px;
        margin: 0;
        background: transparent;
    }

    .softicode-hfb-button {
        display: none;
    }

    .softicode-hfb-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 44px;
    }
}

@media (max-width: 560px) {
    .softicode-hfb-container {
        width: min(100% - 24px, 1180px);
    }

    .softicode-hfb-topbar span:nth-child(3) {
        display: none;
    }

    .softicode-hfb-site-title {
        font-size: 21px;
    }
}
