/* PAGE & BLOG TITLES */
.home h1{text-align:center!important;font-size:clamp(24px,3vw,36px);max-width:100%;line-height:1.2}
.page .entry-title,.single-post h1.entry-title{text-align:center}

/* HEADER & FLAGS */
#masthead{
    box-sizing:border-box;width:100%!important;max-width:none!important;
    margin:15px auto!important;padding:15px 20px!important;
    border:1px solid #d5d5d5!important;border-radius:12px!important;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    background:
    linear-gradient(90deg,rgba(255,255,255,.88),rgba(255,255,255,.98),rgba(255,255,255,.88)) center/100% 100% no-repeat,
    url("https://flagcdn.com/w1280/us.png") left center/50% auto no-repeat,
    url("https://flagcdn.com/w1280/us-co.png") right center/50% auto no-repeat,#fff!important
}

/* BRANDING */
#masthead :is(.site-branding,.site-title,.site-title a,.site-description,.custom-logo-link,.custom-logo){
    background:transparent!important;box-shadow:none!important
}
#masthead .site-branding{
    display:grid!important;grid-template-columns:60px minmax(0,1fr);
    align-items:center;column-gap:10px;width:auto!important;
    max-width:none!important;margin:0!important;padding:0!important;text-align:left!important
}
#masthead .custom-logo-link{grid-area:1/1/3/2;margin:0!important}
#masthead .custom-logo{
    width:60px!important;height:auto!important;margin:0!important;
    mix-blend-mode:multiply;border:0!important
}
#masthead :is(.site-title,.site-description){
    grid-column:2;text-align:left!important;color:#000!important
}
#masthead .site-title{font-size:17px!important;font-weight:700!important;line-height:1.15;margin:0!important}
#masthead .site-title a{color:#000!important}
#masthead .site-description{font-size:10px!important;line-height:1.4;margin:3px 0!important}

/* MENU & HOVER */
#masthead #top-menu a{
    color:#000!important;border-radius:6px;transition:background-color .15s ease
}
#masthead #top-menu li:hover>a,
#masthead #top-menu a:focus,
#masthead #top-menu :is(.current-menu-item,.current-menu-ancestor)>a{
    background:#e8e8e8!important;color:#000!important
}
#masthead #top-menu .sub-menu{
    background:#fff!important;border:1px solid #ddd;border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.1);padding:5px!important
}
#masthead #top-menu .sub-menu a{background:transparent!important;border-radius:5px}
#masthead #top-menu .sub-menu a:is(:hover,:focus){background:#eee!important}

/* MENU TOGGLE */
#masthead .menu-toggle{
    background:#222!important;color:#fff!important;
    border:1px solid #222!important;border-radius:8px!important;
    width:auto!important;max-width:100%;padding:8px 18px!important;
    margin:8px auto!important;font-size:15px!important;font-weight:600;
    box-shadow:none!important
}
#masthead .menu-toggle:is(:hover,:focus){background:#444!important}

/* CART */
#masthead :is(.site-header-cart,.cart-contents,.wc-block-mini-cart__button){
    background:transparent!important;color:#000!important;
    border:0!important;box-shadow:none!important
}
#masthead :is(.cart-contents,.wc-block-mini-cart__button):hover{
    background:#e8e8e8!important;border-radius:6px
}
#masthead :is(.site-header-cart,.cart-contents) :is(a,span,button){
    color:#000!important;background:transparent!important
}
#masthead .site-header-cart .widget_shopping_cart{
    background:#fff!important;border:1px solid #ddd;
    border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1)
}

/* DESKTOP */
@media(min-width:1300px){
    #masthead{
        display:flex!important;align-items:center!important;
        justify-content:space-between!important;min-height:150px;gap:5px!important
    }
    #masthead .site-branding{
        grid-template-columns:130px minmax(0,1fr);
        flex:0 0 435px;column-gap:14px;float:none!important
    }
    #masthead .custom-logo{width:130px!important;max-width:130px!important}
    #masthead .site-title{font-size:32px!important}
    #masthead .site-description{font-size:15px!important;font-weight:400!important}
    #masthead :is(.site-title,.site-description){position:relative;top:-6px;left:10px}
    #masthead #site-navigation{
        flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;
        position:relative!important;float:none!important;clear:none!important;
        left:auto!important;right:auto!important;transform:none!important;
        background:transparent!important;border:0!important
    }
    #masthead #site-navigation,
    #masthead .menu-primary-container,
    #masthead #top-menu,
    #masthead #top-menu>li{margin:0!important;padding:0!important}
    #masthead :is(.menu-primary-container,#top-menu){
        position:static!important;width:100%!important;transform:none!important
    }
    #masthead #top-menu{
        display:flex!important;justify-content:center!important;
        align-items:center!important;flex-wrap:wrap;gap:24px 4px!important
    }
    #masthead #top-menu,#masthead #top-menu>li{float:none!important}
    #masthead #top-menu>li{position:relative}
    #masthead #top-menu>li::before,
    #masthead #top-menu>li::after{content:none!important}
    #masthead #top-menu>li>a{
        font-size:17px!important;font-weight:600!important;
        letter-spacing:0!important;padding:10px 8px!important;white-space:nowrap
    }
    #top-menu>li:is(:hover,:focus-within){z-index:1000}
    #masthead #top-menu .sub-menu{
        z-index:1001!important;min-width:240px;
        max-height:65vh;overflow-y:auto;padding:6px!important
    }
    #masthead #top-menu .sub-menu a{padding:11px 14px!important;line-height:1.4}
    #masthead #top-menu .sub-menu li+li{border-top:1px solid #eee}
    #masthead #top-menu>li:is(:hover,:focus-within)>.sub-menu{
        top:100%!important;left:50%!important;right:auto!important;
        transform:translateX(-50%)!important;margin-top:0!important
    }
    #masthead #top-menu .sub-menu .sub-menu{
        top:0!important;left:100%!important;transform:none!important
    }
}

/* TABLET */
@media(max-width:1299px){
    #masthead{display:block!important}
    #masthead .site-branding{max-width:420px!important;margin:0 auto!important}
    #masthead #site-navigation{margin:10px 0 0!important}
}

/* MOBILE */
@media(max-width:767px){
    #masthead{
        margin:10px auto!important;padding:12px!important;
        position:relative!important;overflow:visible!important;z-index:100
    }
    #masthead #site-navigation{
        position:static!important;background:transparent!important;
        border:0!important;text-align:center
    }
    #masthead .menu-primary-container{
        position:absolute!important;top:calc(100% + 8px);
        left:0;right:0;width:100%!important;z-index:9999
    }
    #masthead #top-menu{
        background:#fff!important;border:1px solid #d5d5d5;border-radius:10px;
        box-shadow:0 5px 15px rgba(0,0,0,.15);
        padding:8px!important;margin:0!important;max-height:65vh;overflow-y:auto
    }
    #masthead #top-menu :is(.sub-menu,li,li a){
        background:transparent!important;border:0!important;
        border-radius:0!important;box-shadow:none!important
    }
    #masthead #top-menu>li{margin:0!important;border-bottom:1px solid #e5e5e5!important}
    #masthead #top-menu>li:last-child{border-bottom:0!important}
    #masthead #top-menu a{font-size:15px!important;text-align:left!important;padding:12px 15px!important}
    #masthead #top-menu .sub-menu{padding:0 0 0 18px!important;margin:0!important}
    #masthead #top-menu .sub-menu a{font-size:14px!important;font-weight:400!important}
    #masthead #top-menu a:is(:hover,:focus){background:#f0f0f0!important}
}

/* ACCESSIBILITY */
#masthead #top-menu a:focus-visible,
#masthead .menu-toggle:focus-visible{
    outline:2px solid #555;outline-offset:3px
}
@media(prefers-reduced-motion:no-preference){
    html{scroll-behavior:smooth}
}
/* REMOVE RELATED POSTS FROM MEMBERPRESS */
:is(.single-mpcs-course,.single-mpcs-lesson,.single-mpcs-quiz)
:is(#jp-relatedposts,.jp-relatedposts,.wp-block-jetpack-related-posts){
    display:none!important
}
/* MEMBERPRESS REGISTRATION */
.single-memberpressproduct :is(#jp-relatedposts,.jp-relatedposts,.wp-block-jetpack-related-posts,#comments,.sharedaddy){
    display:none!important
}
.single-memberpressproduct .mepr-signup-form{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:clamp(15px,3vw,25px);
    box-shadow:0 3px 12px #0000000d
}
.single-memberpressproduct .mepr-form label{
    font-weight:600;
    color:#222
}
.single-memberpressproduct .mepr-form :is(input[type=text],input[type=email],input[type=password],input[type=tel],select){
    border:1px solid #ccc!important;
    border-radius:6px!important;
    min-height:44px;
    background:#fff
}
.single-memberpressproduct .mepr-submit{
    background:#222!important;
    color:#fff!important;
    border-radius:8px!important;
    padding:14px 22px!important
}
.single-memberpressproduct .mepr-submit:hover{
    background:#444!important
}
/* MEMBERPRESS CHECKOUT SPACING */
.single-memberpressproduct .mepr-form{
    max-width:800px;
    margin:0 auto
}
.single-memberpressproduct .mepr-form .mp-form-row{
    margin-bottom:14px
}
.single-memberpressproduct .mepr-submit{
    width:100%;
    font-size:17px!important;
    font-weight:600
}
.single-memberpressproduct .mepr-price-box{
    border-radius:8px;
    border:1px solid #ddd
}