body.sp-forum-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(48, 134, 181, .18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(255, 183, 77, .18), transparent 26%),
        linear-gradient(180deg, #eef7fb 0%, #f9fbf5 38%, #ffffff 78%);
}

body.sp-forum-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .9)),
        url("../images/general.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: .55;
    pointer-events: none;
}

body.sp-forum-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 50%, rgba(255,255,255,.92) 100%),
        repeating-linear-gradient(135deg, rgba(35, 87, 122, .05) 0, rgba(35, 87, 122, .05) 1px, transparent 1px, transparent 18px);
    pointer-events: none;
}

body.sp-forum-page .wp-site-blocks {
    background: transparent !important;
}

body.sp-forum-page .wp-site-blocks > header,
body.sp-forum-page .wp-site-blocks > footer {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
}

body.sp-forum-page .wp-site-blocks > header {
    border-bottom: 1px solid rgba(48, 84, 112, .08);
}

body.sp-forum-page main {
    position: relative;
}

html.is_wpforo_page-1,
body.sp-forum-page {
    overflow-x: hidden;
}

body.sp-forum-page .wp-site-blocks main,
body.sp-forum-page .wp-site-blocks main > *,
body.sp-forum-page .entry-content,
body.sp-forum-page .wp-block-post-content,
body.sp-forum-page #wpforo {
    box-sizing: border-box;
    max-width: 1080px !important;
    width: min(1080px, calc(100vw - 96px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#wpforo-wrap.sp-forum-visuals-ready {
    max-width: 1080px !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

#wpforo-wrap .sp-forum-hero {
    position: relative;
    display: flex;
    min-height: 310px;
    margin: 0 0 24px;
    padding: 38px;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 8px;
    background-image:
        linear-gradient(90deg, rgba(10, 33, 51, .88), rgba(10, 33, 51, .46) 56%, rgba(10, 33, 51, .12)),
        var(--sp-hero-img);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 42px rgba(20, 39, 61, .16);
}

#wpforo-wrap .sp-forum-hero-content {
    max-width: 690px;
    color: #fff;
    position: relative;
    z-index: 1;
}

#wpforo-wrap .sp-forum-kicker {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: #ffe08a !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
}

#wpforo-wrap .sp-forum-hero h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .55);
}

#wpforo-wrap .sp-forum-hero p {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .94) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .52);
}

#wpforo-wrap #wpforo-menu {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dfe8f0;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(26, 50, 70, .08);
}

#wpforo-wrap .wpforo-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#wpforo-wrap .wpfl-1.wpforo-section {
    display: contents;
}

#wpforo-wrap .forum-wrap.sp-forum-card {
    position: relative;
    min-height: 210px;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 8px;
    background-image:
        linear-gradient(90deg, rgba(4, 22, 36, .82), rgba(4, 22, 36, .45) 54%, rgba(4, 22, 36, .18)),
        var(--sp-forum-img);
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 30px rgba(20, 39, 61, .14);
    transition: transform .18s ease, box-shadow .18s ease;
}

#wpforo-wrap .forum-wrap.sp-forum-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(20, 39, 61, .2);
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum {
    min-height: 210px;
    padding: 24px 24px 22px;
    background: transparent !important;
    border: 0 !important;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-title {
    margin: 0 0 8px !important;
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-title a {
    color: #fff !important;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-description,
#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-description p,
#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-info div {
    color: rgba(255, 255, 255, .92) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-icon > div {
    width: 42px !important;
    height: 42px !important;
    border-color: rgba(255, 255, 255, .75) !important;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

#wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-icon i {
    color: #fff !important;
}

#wpforo-wrap .sp-forum-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

#wpforo-wrap .wpf-head-bar,
#wpforo-wrap .wpforo-subtop {
    border-radius: 8px;
}

#wpforo-wrap .wpforo-content,
#wpforo-wrap .wpforo-main,
#wpforo-wrap .wpforo-subtop,
#wpforo-wrap .wpf-head-bar,
#wpforo-wrap .wpforo-profile-wrap,
#wpforo-wrap .wpforo-post,
#wpforo-wrap .wpforo-topic,
#wpforo-wrap .wpforo-section:not(.wpfl-1) {
    backdrop-filter: blur(10px);
}

@media (max-width: 860px) {
    #wpforo-wrap .wpforo-content {
        grid-template-columns: 1fr;
    }

    #wpforo-wrap .sp-forum-hero {
        min-height: 250px;
        padding: 26px;
    }

    #wpforo-wrap .sp-forum-hero h2 {
        font-size: 31px;
    }

    #wpforo-wrap .sp-forum-hero p {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    #wpforo-wrap .sp-forum-hero {
        min-height: 230px;
        padding: 22px;
    }

    #wpforo-wrap .sp-forum-hero h2 {
        font-size: 26px;
    }

    #wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum {
        min-height: 190px;
        padding: 20px;
    }

    #wpforo-wrap .forum-wrap.sp-forum-card .wpforo-forum-title a {
        font-size: 22px;
    }
}
