/* WSC Forge Community Hero 0.1.5
 * Deeper integration into the homepage hero with right-edge overlay.
 */
body#tpl_wcf_cms[data-page-id="40"] .box.wscForgeCommunityHeroBox {
    margin: 0 0 26px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroBox > .boxContent {
    padding: 0;
    background: transparent;
    border: 0;
}

body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost {
    position: relative !important;
    min-height: 296px;
    overflow: hidden;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(42.5%, 486px);
    background:
        radial-gradient(circle at 82% 18%, rgba(32, 199, 163, .10) 0, rgba(32, 199, 163, 0) 26%),
        linear-gradient(90deg, rgba(13, 48, 58, .16) 0%, rgba(12, 58, 60, .30) 22%, rgba(12, 69, 67, .40) 100%);
    pointer-events: none;
    z-index: 1;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroLead {
    position: relative;
    z-index: 2;
    max-width: 55%;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroBox,
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityWidget {
    position: absolute !important;
    z-index: 5;
    top: 50%;
    right: clamp(18px, 3.5vw, 48px);
    width: min(39%, 435px);
    margin: 0 !important;
    transform: translateY(-50%);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroBox .wscForgeCommunityWidget {
    min-height: 0;
}

body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget {
    --forgeCommunityTeal: #20C7A3;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 252px;
    padding: 24px 26px 28px 30px;
    border: 0;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(32, 199, 163, .07) 0, rgba(32, 199, 163, 0) 32%),
        linear-gradient(110deg, rgba(18, 55, 65, .28), rgba(9, 38, 47, .10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    color: #eef9f9;
    font-size: .94rem;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget::after {
    content: '';
    position: absolute;
    inset: 0 0 auto auto;
    width: 122px;
    height: 122px;
    border: 1px solid rgba(32, 199, 163, .08);
    border-radius: 24px;
    transform: translate(18%, -12%) rotate(-7deg);
    pointer-events: none;
    z-index: 0;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget > * {
    position: relative;
    z-index: 1;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 17px;
    border-bottom: 1px solid rgba(174, 226, 215, .12);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__symbol {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #58E3C4;
    font-size: 1.1rem;
    line-height: 1;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__symbol .icon {
    color: inherit;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__heading {
    color: #F5FFFF;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 770;
    letter-spacing: -.013em;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__live {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    color: #93CCBF;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__liveDot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #20C7A3;
    box-shadow: 0 0 0 3px rgba(32, 199, 163, .13);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__viewport {
    position: relative;
    flex: 1 0 auto;
    min-height: 112px;
    margin: 0;
    isolation: isolate;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .42s ease, transform .42s ease;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__slide:first-child {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__viewport[data-initialized="true"] .wscForgeCommunityWidget__slide:first-child {
    opacity: 0;
    pointer-events: none;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__viewport[data-initialized="true"] .wscForgeCommunityWidget__slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__eyebrow {
    color: #74E2C9;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 7px 0 11px;
    color: #FFFFFF;
    font-size: 1.10rem;
    font-weight: 760;
    letter-spacing: -.019em;
    line-height: 1.34;
    text-decoration: none;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic:hover,
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic:focus-visible {
    color: #9BF4DC;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topicArrow {
    display: inline-block;
    margin-left: .42em;
    color: #68DBC1;
    font-size: .75em;
    opacity: .8;
    transition: transform .2s ease;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic:hover .wscForgeCommunityWidget__topicArrow {
    transform: translate(2px, -2px);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: #B9D0D4;
    font-size: .77rem;
    line-height: 1.45;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__avatar {
    display: flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__byline {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__byline a {
    color: #D3E4E6;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__empty {
    flex: 1 1 auto;
    padding: 11px 0;
    color: #C8DCDF;
    font-size: .89rem;
    line-height: 1.6;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__navigation {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 16px;
    min-height: 24px;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__navigation:not([hidden]) {
    display: flex;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__dot::before {
    content: '';
    display: block;
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #668E93;
    transition: background .2s ease, transform .2s ease;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__dot[aria-current="true"]::before {
    background: #45D8B5;
    transform: scale(1.45);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__dot:focus-visible {
    outline: 2px solid #64D8C0;
    outline-offset: 1px;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__arrows {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__arrows button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #C7E4E1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__arrows button .icon {
    color: inherit;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__arrows button:hover,
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__arrows button:focus-visible {
    color: #6FE6CB;
    transform: translateY(-1px);
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid rgba(100, 236, 206, .24);
    border-radius: 10px;
    background: linear-gradient(110deg, #0C9578, #0EAB8A);
    box-shadow: 0 4px 12px rgba(6, 51, 43, .23);
    color: #FFFFFF;
    font-size: .83rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__cta .icon {
    color: inherit;
}
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__cta:hover,
body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__cta:focus-visible {
    background: linear-gradient(110deg, #0B896F, #0C9578);
    box-shadow: 0 7px 15px rgba(6, 51, 43, .26);
    color: #FFFFFF;
    transform: translateY(-1px);
}

@media (max-width: 1160px) {
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost {
        min-height: 318px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost::after {
        width: min(47%, 440px);
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroBox,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityWidget {
        width: min(44%, 415px);
        right: 18px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget {
        padding: 22px 22px 26px 24px;
    }
}

/* Mobile: the widget is no longer layered over a dark hero photo.
 * Give it its own opaque navy foundation to guarantee contrast even when
 * WSC/CMS places the moved box into a separate grid row on small screens.
 */
@media (max-width: 790px) {
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost {
        min-height: 0;
        height: auto !important;
        padding-bottom: 18px !important;
        row-gap: 0 !important;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost::after {
        display: none;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroBox,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityWidget {
        position: relative !important;
        inset: auto !important;
        display: block;
        width: 100%;
        max-width: 560px;
        margin: 14px auto 0 !important;
        transform: none !important;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost > .wscForgeCommunityHeroLead,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityHeroHost .wscForgeCommunityHeroLead {
        max-width: 100%;
    }
    /* Also handle the safe non-reparented WSC box fallback. */
    body#tpl_wcf_cms[data-page-id="40"] .box.wscForgeCommunityHeroBox {
        margin-bottom: 18px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget {
        min-height: 0;
        padding: 20px 22px 24px;
        color: #EAF6F5;
        background:
            radial-gradient(circle at 105% -5%, rgba(32, 199, 163, .18), transparent 53%),
            linear-gradient(135deg, #0B2029 0%, #0F3540 70%, #0C2B33 100%) !important;
        border: 1px solid rgba(105, 198, 184, .22);
        border-radius: 15px;
        box-shadow: 0 12px 28px rgba(11, 32, 41, .12);
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__header {
        padding-bottom: 12px;
        margin-bottom: 11px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__heading,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic {
        color: #FFF;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__viewport {
        flex: 0 0 auto;
        min-height: 116px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__meta,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__byline {
        color: #C9DFE1;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__navigation {
        margin: 5px 0 12px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__cta {
        margin-top: 8px;
    }
}

@media (max-width: 450px) {
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget {
        padding: 18px 19px 23px;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__live {
        letter-spacing: .06em;
    }
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget__topic {
        font-size: 1.01rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget *,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget *::before,
    body#tpl_wcf_cms[data-page-id="40"] .wscForgeCommunityWidget *::after {
        transition: none !important;
        animation: none !important;
    }
}
