/*
Theme Name: Studious
Author: Gilbert Fung
Description: Theme for SPL and CTP
Text Domain: studious
Domain Path: /languages
Version: 2022.2
Updated: 2022-07-29
*/

html {
    font-family: 'Noto Sans SC', sans-serif;
    scroll-behavior: smooth;
}
body:not(.page-template-page_blank_organic) {
    font-size: 16px;
    line-height: 24px;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
}
body:not(.page-template-page_blank_organic) img {display: inline} /*tailwind default override*/

/**popUp**/
.sayHi{
  position: fixed;
  bottom: 100px;
  left: 100px; 
  z-index:2147483601 !important;
  padding:8px;
  border-radius:10px;
  color:grey;
  background:white;
  white-space:pre-wrap;
  display:flex
}

.popUp{
  display:flex;
  width:100px;
  height:100px;
  overflow:hidden;
  border-radius:50%;
  position: fixed;
  border:5px solid green;
  bottom: 35px;
  left: 25px; 
  z-index:2147483600 ;
  flex-direction:row;
  justify-content:center;
  align-items:center
}
.popUp img{
width:150px;
  height:150px;
  margin-top:10px
}
@media screen and (max-width: 600px) {
   .popUp{
     width:60px;
     height:60px;
     bottom: 16px;
     left: 16px; 
     border:3px solid grey;
  }
  .popUp img{
width:120px;
  height:120px
}
  .sayHi{
   	left:65px;
    bottom: 55px;
    font-size:12px;
    padding:2px;
    line-height:16px
  }
}
.popUp:hover{
opacity:.5
} 
/**Fresh Chat**/
	#freshChat {
        position: fixed;
        bottom: 20px;
        left: 20px; 
  		z-index:1000
    }
	#freshChat:hover{
	opacity:.5
	}
    #progress {
        position: fixed;
        bottom: 20px;
        left: 20px;
        display: none;
        height: 10px;
        width: 50px;
        border: 4px solid #20A849;
        border-radius: 15px;
    }
    .progress .color {
        position: absolute;
        background-color: lightgray;
        width: 0px;
        height: 10px;
        border-radius: 15px;
        animation: progres 2s ease-in-out;
    }

    @keyframes progres {
        0% {
            width: 0%;
        }

        25% {
            width: 50%;
        }

        50% {
            width: 75%;
        }

        75% {
            width: 85%;
        }

        100% {
            width: 100%;
        }
    }


/*** Typography ***/
.panel-container h1,
.h1 {
    margin-top: 0rem;
    margin-bottom: 1rem;
    font-size: 32px;
    line-height: 40px;
    color: #f5f5f5;
    font-weight: bold;
    text-shadow: var(--shadow-text);
}
.panel-container h2,
.h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 24px;
    line-height: 36px;
    font-weight: bold;
}
.panel-container h3,
.h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: bold;
}
.panel-container h4,
.h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: bold;
}
.panel-container h5,
.h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.panel-container p,
p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
a {
    color: var(--color-brand-50);
  	text-underline-offset: 0.2em;
    transition: all 0.25s;
}
a:hover {
    color: var(--color-brand-100);
}
ul {
    list-style-type: disc;
}
ol {
    list-style-type: decimal;
}
strong {
    font-weight: bold;
}
.subtitle {
    font-weight: normal;
    font-size: 24px;
    color: #f5f5f5;
    text-shadow: var(--shadow-text);
}
.small {
    font-size: 0.8rem;
    line-height: 24px;
}
.label {
    display: inline-block;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-brand-20);
    font-size: small;
    font-weight: bold;
}
.highlight {
    border-radius: 8px;
    background-color: var(--color-brand-20);
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
br.line-break {
    display: none;
}
@media (min-width: 768px) {
    .panel-container h1 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 48px;
        line-height: 64px;
    }
    .panel-container h2 {
        margin-top: 2rem;
        font-size: 28px;
    }
    br.line-break {
        display: block;
    }
}
.hidden:not(.tailwind) {
  display: none !important;
}
/*** Layout - WP Block Editor ***/
.alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.alignfull {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

.entry-content > .wp-block-columns:not(.alignfull), .entry-content > .wp-block-group:not(.alignfull) {
    max-width: 1200px;
    margin: 0 auto;
}

.wp-sticky {
  	position: sticky;
  	top: 4rem;
}

/* Copy of WP Block styles, so it loads earlier in the queue */
.wp-block-cover .wp-block-cover__background {
  	bottom: 0;
    left: 0;
    opacity: .5;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.wp-block-cover .wp-block-cover__image-background {
  border: none;
    bottom: 0;
    box-shadow: none;
    height: 100%;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    object-fit: cover;
    outline: none;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}


/*** Layout - Page Builder ***/
.panel-row {
    padding-top: 0;
    padding-bottom: 16px;
    background-position: center;
    background-repeat: no-repeat;
}
.row-light {
    color: var(--color-brand-100);
}
.row-dark {
    color: var(--color-gray-10);
}
.row-dark .card { color: var(--color-gray-100); }
.row-dark a { color: var(--color-brand-20); }
.row-dark a:hover { color: var(--color-gray-0); }
.row-dark .card a:not([class^="btn-"]) { color: var(--color-brand-50); }
.row-dark .card a:not([class^="btn-"]):hover { color: var(--color-brand-100); }
.panel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}
.text-container {
    max-width: 900px;
    margin: 0 auto;
}

/*** Layout - General ***/
.so-panel .flex-row, .panel-container .flex-row {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    margin: 0;
}
.so-panel .flex-row > div,
.panel-container .flex-row > div {
    margin: 8px 0;
}
.so-panel .flex-row + .flex-row,
.panel-container .flex-row + .flex-row {
    margin-top: 1rem;
}
.no-wrap {
    flex-wrap: row nowrap;
}
.no-wrap > div {
    margin: 0 4px;
}
.col-1 {
    flex: 1;
}
.col-2 {
    flex: 2;
}
.scroll-horiz {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: scroll;
    justify-content: flex-start;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}
.scroll-horiz > [class^='col-'] {
    margin-right: 1rem;
}
.scroll-horiz::-webkit-scrollbar {
    width: 13px;
}
.scroll-horiz::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-horiz::-webkit-scrollbar-thumb {
    background: var(--color-brand-80);
    border-radius: 6px;
}
.scroll-horiz:hover::-webkit-scrollbar-thumb {
    background: var(--color-brand-100);
}
.row-dark .scroll-horiz::-webkit-scrollbar-track {

}
.row-dark .scroll-horiz::-webkit-scrollbar-thumb {
/*	background: var(--color-brand-20); */  
  background: transparent;
}
.row-dark .scroll-horiz:hover::-webkit-scrollbar-thumb {
    background: var(--color-brand-20);
}

.banner {
    flex-flow: row nowrap;
    text-align: center;
    justify-content: space-around;
    text-shadow: var(--shadow-text);
    margin: 0 -8px;
    padding: 0;
    list-style-type: none;
}
.banner > * {
    margin: 0 8px;
}
.banner.banner-sitewide,
.banner.banner-sitewide > * {
    margin: 0;
}
.section-sticky {
   position:sticky; top:52px; /* add space for sticky header */
}
@media (min-width: 768px) {
    .so-panel .flex-row, .panel-container .flex-row {
        flex-flow: row nowrap;
        margin: 0 -8px 0;
    }
    .so-panel .flex-row > div, 
    .panel-container .flex-row > div {
        margin: 0 8px;
    }
    .scroll-horiz {
        overflow-x: scroll;
    }
    .alternate-row:nth-of-type(2n-2) > div:first-child {
        order: 2;
    }
  .section-sticky {
    top: 100px; /* add space for sticky header */
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .scroll-horiz {
        overflow-x: scroll;
    }
}


/*** Reusuable Components ***/
.card {
    border-radius: 8px;
    background-color: var(--color-gray-0);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card > *:first-child,
.card-content > *:first-child {
    margin-top: 0;
}
.card-content {
    padding: 1rem;
}
.card-content > h3,
.card-content > h4,
.card-content > p {
    margin-top: 0;
}
.card--outline-white {
	border-radius: 8px;
    border: solid 1px white;
    color: white;
}
.sheet {
    border-radius: 8px;
    background-color: var(--color-brand-50);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.sheet__header,
.sheet__footer {
    padding: 1rem;
    color: var(--color-gray-0);
}
.sheet__header:empty,
.sheet__footer:empty {
    padding: 0.5rem;
}
.sheet-header > h2,
.sheet-header > h3,
.sheet-header > p {
    margin: 0;
}
.well { 
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: var(--color-brand-20);
}
.well-dark {
    background-color: var(--color-brand-100);
    color: white;
}

/*** Interactive Components - WP Block Editor ***/
.wp-block-button .wp-block-button__link {
  	border: solid 2px;
	border-radius: 8px;
  	font-weight: bold;
}

.wp-block-button.primary .wp-block-button__link {
    border-color: var(--color-gray-10);
    background-color: var(--color-brand-50);
  	color: var(--color-gray-10);
}

.wp-block-button.secondary .wp-block-button__link {
    border-color: var(--color-brand-50);
  	background-color: var(--color-gray-10);
    color: var(--color-brand-50);
}

.wp-block-button.tertiary .wp-block-button__link {
    
}

/*** Interactive Components ***/
a[class^='btn-'],
input[type='submit'],
body:not(.page-template-page_blank_organic) button {
    display: inline-block;
    border-radius: 8px;
    padding: 8px 32px;
    box-shadow: var(--shadow);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
	cursor:pointer;
}
a[class^='btn-']:hover,
input[type='submit']:hover,
body:not(.page-template-page_blank_organic) button:hover {
    box-shadow: var(--shadow-hover);
}
a.btn-cta,
a.btn-primary,
a.btn-secondary:hover,
input[type='submit'],
button:not([class*='cart']) {
    border: solid 2px var(--color-gray-10);
    background-color: var(--color-brand-50);
    color: var(--color-gray-10);
}
a.btn-cta:hover,
a.btn-primary:hover,
a.btn-secondary,
button:hover {
    border: solid 2px var(--color-brand-50);
    color: var(--color-brand-50);
    background-color: var(--color-gray-10);
}
a[class^='btn-'].btn-large, [type='submit'].btn-large {
    font-size: 1.25rem;
    padding: 8px 16px;
}
a.text-link {
    color: var(--color-brand-50);
    text-decoration: underline;
    font-weight: bold;
}
a.text-link:hover {
    color: var(--color-gray-0);
    background-color: var(--color-brand-50);
}
@media (min-width: 768px) {
    a[class^='btn-'].btn-large, [type='submit'].btn-large {
      font-size: 1.5rem;
      padding: 8px 32px;
    }
}



/*** Page Specific Layouts / Sections ***/
.hero {
    text-align: center;
}
.hero-widget {
    position: static;
    height: fit-content; /* 14rem;*/
  max-height: 13rem;
  text-align:center;
}
.hero-contact {
    width: max-content;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    z-index: 3;
    transform: translate(0, -3rem) scale(0.75);
}
.hero-contact .card {
    margin-top: 1rem;
    padding: 0.5rem;
    transition: all 0.25s;
    opacity: 0.9;
}
.hero-contact .card:hover {
    opacity: 1;
}
.hero-contact img { 
    transition: all 0.25s;
}
.hero-contact img:hover {
    border-radius: 4px;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.3)) contrast(120%) brightness(105%);
}
.hero-contact a {
    text-decoration: none;
}
.hero-contact .btn-contact {
 	width: max-content; 
  	margin: 0 auto; 
  	padding: 0 20px 0 10px; 
  	letter-spacing: 0px; 
  	white-space: nowrap; 
}
.hero-contact .btn-contact img {
 	vertical-align: middle; 
}

.hero-poster {
    display: inline-block;
    width: max-content;
    vertical-align: top;
    z-index: 2;
}
.hero-poster .card {
    padding: 0.5rem;
    line-height: 0;
}
@media (min-width: 768px) {
    .hero {
        text-align: left;
    }
    .hero-widget { 
        position: relative;
        height: 0;
    }
    .hero-contact {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        transform: scale(1);
    }
    .hero-poster {
        position: absolute;
        top: 16px;
        right: 9.5rem;
    }
}

/* .banner-online {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: bold;
}
.banner-online > div:first-child {
    flex: 1;
}
.banner-online > div:last-child {
    flex: 3.5;
}
.banner-online > div > img {
    filter: drop-shadow(0 4px 32px -8px #421a1c99);
}
.banner-online h3 {
    margin-top: 0;
}
.banner-online p {
    font-size: 1rem;
}
.banner-online h3 > img {
    vertical-align: text-bottom;
    height: 1.25rem;
    width: auto;
}
.stamp-cta {
    display: none;
} */

.classes img {
    float: left;
}
.classes p {
    text-align: left;
}
@media (min-width: 768px) {
    .classes img {
        float: none;
    }
    .classes p {
        text-align: center;
    }
}

.grid-teachers {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin: 0 -16px;
    padding: 0;
    list-style-type: none;
}
.grid-teachers .card {
    min-width: 180px;
    margin: 0 8px;
    overflow: hidden;
}
.grid-teachers .card img {
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
}

.tabs-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    left: 50%;
    max-width: 1024px;
    transform: translateX(-50%);
    margin: 0 auto;
}
.tabs-fixed > div {
    margin-bottom: 0.5rem !important;
    flex: 1;
}
.tabs-fixed > div:not(:first-child) {
    margin-left: 0.25rem;
}
.tabs-fixed > div:not(:last-child) {
    margin-right: 0.25rem;
}
.tabs-fixed .tabmenu {
    margin-top: 0.5rem;
    border: solid 4px white;
    width: 100%;
    padding: 0.5rem;
}
.tabs-fixed .tabmenu.active {
    border-color: var(--color-brand-50);
}
.tabs-fixed .label,
.tabs-fixed .p.small,
.tabs-fixed .button-link {
    display: none;
}
.tabs-fixed .p:first-child,
.tabs-fixed h3 {
    margin-bottom: 0;
    font-size: 18px;
    display: inline-block;
}
.tabs-fixed .p img {
    vertical-align: middle;
    height: 40px;
    width: 40px;
}
.sidebar-sticky {
    margin-right: 1rem;
    position: sticky;
    background-color: #f5f5f5;
    top: 0;
    flex: 100%;
}
.sidebar-list {
    overflow: scroll;
    white-space: nowrap;
    list-style-type: none;
    margin: -1rem -1rem -2rem;
    padding: 1rem 1rem 2rem;
}
.sidebar-list li {
    margin-top: 1rem;
    display: inline-block;
}
.sidebar-list a {
    border-radius: 8px;
    display: block;
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem;
}
.sidebar-list a:focus {
    background-color: var(--color-brand-50);
}
.article:not(:first-child) {
    margin-top: 1rem;
}
from {
    opacity: 0;
}
to {
    opacity: 1;
}
@media (max-width: 780px) {
    .mobile-center {
        text-align: center;
    }

    .tabs-fixed-scrollbox {
        right: 0;
        left: 0;
    }
    .tabs-fixed {
        width: 100%;
        left: 0;
        transform: none;
        overflow-x: scroll;
    }
}
.sheet .card-content {
    height: 100%;
}

/* Updated CSS */
.tabs-wrapper {
    position: relative;
}
.tabs {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    min-height: 400px;
    /* This part sucks */
    margin: 25px 0;
    /* clear: both; */
    overflow-x: scroll;
}

.tab {
    float: left;
}

.tab label {
    position: relative;
    left: 1px;
    margin-left: -1px;
    border-radius: 8px 8px 0 0;
    padding: 16px 32px;
    background: var(--color-brand-20);
    box-shadow: 0 -5px 16px -8px rgb(0 0 0 / 30%);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.tab-content {
    position: absolute;
    top: 52px;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 8px;
    padding: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.tab-content > * {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.tab-content > .flex-row {
    margin-top: 0;
}

.tab [type='radio'] {
    opacity: 0;
}

/* .tab [type="radio"]:focus~label { outline: 2px solid blue; } */
.tab [type='radio']:checked ~ label {
    background: white;
    border-bottom: 1px solid white;
    z-index: 2;
}

.tab [type='radio']:checked ~ label ~ .tab-content {
    z-index: 1;
}

.tab [type='radio']:checked ~ label ~ .tab-content > * {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 768px) {
    .tabs {
        min-height: 240px;
        justify-content: center;
        padding-top: 1.5rem;
    }
    .tab-content {
        padding: 1rem;
    }
}

/* Vertical Tabs for Desktop */
@media (min-width: 768px) {
    .tabs-vertical {
        flex-flow: column nowrap;
        padding-top: 0;
        overflow-x: hidden;
    }

    .tabs-vertical .tab {
        display: flex;
        flex-flow: column nowrap;
    }

    .tabs-vertical .tab label {
        width: 24%;
        border-radius: 8px 0 0 8px;
        box-shadow: 0px 5px 8px -8px rgb(0 0 0 / 30%);
    }

    .tabs-vertical .tab .tab-content {
        width: 66%;
        top: 0;
        left: unset;
    }

    .tabs-vertical .tab [type='radio']:checked ~ label {
        z-index: 2;
    }

    .tab [type='radio']:checked ~ label ~ .tab-content {
        z-index: 1;
    }
}

.tabs-dots {
    min-height: 400px;
}

.tabs-dots label {
    padding: 8px 16px;
    background: var(--color-brand-20);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.tabs-dots .tab-title {
    display: none;
}

.tabs-dots .tab-content {
    top: 64px;
    box-shadow: none;
}

.tabs-dots .tab > a {
    text-decoration: none;
}

.tabs-dots .tab [type='radio']:checked ~ label {
    background: var(--color-brand-80);
    color: white;
}

.tabs-dots .tab [type='radio']:checked ~ label .tab-number::after {
    content: '. ';
}

.tabs-dots .tab [type='radio']:checked ~ label .tab-title {
    display: inline-block;
}

@media (min-width: 768px) {
    .tabs-dots {
        min-height: 260px;
    }
}

.collapsible {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
}
.collapsible input[type='checkbox'] {
    display: none;
}
.toggle + label {
    position: relative;
    display: block;
    padding: 1rem;
    padding-right: 2.25rem;
    color: var(--color-brand-100);
    transition: all 0.25s ease-out;
    cursor: pointer;
}
.toggle + label:hover {
    color: var(--color-brand-50);
}
.toggle + label::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 8px;
    display: block;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    margin-right: 0.7rem;
    transform: translateY(-2px);
    transition: transform 0.5s ease-out;
}
.toggle:checked + label::after {
    transform: rotate(90deg) translateX(-3px);
}
.collapsible-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.collapsible-content .card-content {
    padding: 0 1rem 1rem 1rem;
}
.toggle:checked + label + .collapsible-content {
    max-height: 100vh;
}

.testimonial {
    display: flex;
    flex-flow: column nowrap;
}

.testimonial .card {
    flex: 1;
    position: relative;
}
.testimonial .card::after {
    content: '';
    position: absolute;
    top: calc(100% - 16px);
    left: 0;
    display: inline-block;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 16px solid white;
}
.testimonial-profile {
    margin-top: 16px;
}
.testimonial-profile img {
    border-radius: 50%;
    vertical-align: middle;
}



.scroll-down {
    position: relative;
}

.scroll-down::before,
.scroll-down::after {
    font-size: 2rem;
    content: '';
    white-space: pre-wrap;
    font-weight: normal;
    line-height: 0.25;
    position: absolute;
    width: calc(50% - 3rem);
    background: white;
    padding-top: 30px;
    bottom: 0;
    animation: arrow-pulse-down 1s infinite;
    color: white;
}

.scroll-down::before {
    left: 3rem;
    transform: scale3d(1, 0.25, 1) skew(0deg, 60deg);
}

.scroll-down::after {
    right: calc(3rem + 1px);
    transform: scale3d(1, 0.25, 1) skew(0deg, -60deg);
}

@keyframes arrow-pulse-down {
    0% {
        bottom: -30px;
        /*40px;*/
        opacity: 0;
    }

    15% {
        bottom: -50px;
        /*20px;*/
        opacity: 1;
    }

    75% {
        bottom: -50px;
        opacity: 1;
    }

    100% {
        bottom: -65px;
        /*20px;*/
        opacity: 0;
    }
}

.blogs .card {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    height: 100%;
    background: var(--color-brand-20);
    overflow: hidden;
}
.blog-image,
.blogs .youtube {
    width: 100%;
    height: 60px;
    object-fit: cover;
}
.blogs .card h4 {
    font-size: 1rem;
    color: var(--color-brand-80);
    margin: 0;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .blog-image {
        height: auto;
    }
}
.tab-contents .card {
  min-width: min-content;
}
.component-summary {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 0.5rem;
  min-width: 165px;
}

.component-summary dt {
    flex-basis: 50%;
}

.component-summary dd {
    flex-basis: 50%;
    margin: 0;
    text-align: right;
}

/* https://codepen.io/MPDoctor/pen/mpJdYe */
.tabbed {
    overflow-x: hidden;
    padding-bottom: 16px;
}
.tabbed [type='radio'] {
    /* hiding the inputs */
    display: none;
}

.tabbed .tabbed-tabs {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin-top: 0;
    padding: 1rem 0;
    overflow-x: scroll;
}
.tabbed .tab:first-child {
    margin-left: -8px;
}
.tabbed .tab:last-child {
    margin-right: -8px;
}

.tabbed .tab > label {
    display: block;
    margin: 0 0.5rem;
    padding: 16px 8px;
    background: var(--color-brand-20);
    border-radius: 8px;
    color: var(--color-brand-100);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
}
.tabbed .tab:hover label {
    background: #f5f5f5;
    color: var(--color-brand-50);
}
.tabbed .tab > label > *:only-child {
    margin: 0;
}
.tabbed .tab:hover label a {
    color: var(--color-brand-50);
}
.tabbed .tab-contents {
    display: none;
}

/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
.tabbed [type='radio']:nth-of-type(1):checked ~ .tabbed-tabs .tab:nth-of-type(1) label,
.tabbed [type='radio']:nth-of-type(2):checked ~ .tabbed-tabs .tab:nth-of-type(2) label,
.tabbed [type='radio']:nth-of-type(3):checked ~ .tabbed-tabs .tab:nth-of-type(3) label,
.tabbed [type='radio']:nth-of-type(4):checked ~ .tabbed-tabs .tab:nth-of-type(4) label,
.tabbed [type='radio']:nth-of-type(5):checked ~ .tabbed-tabs .tab:nth-of-type(5) label,
.tabbed [type='radio']:nth-of-type(6):checked ~ .tabbed-tabs .tab:nth-of-type(6) label,
.tabbed [type='radio']:nth-of-type(7):checked ~ .tabbed-tabs .tab:nth-of-type(7) label,
.tabbed [type='radio']:nth-of-type(8):checked ~ .tabbed-tabs .tab:nth-of-type(8) label,
.tabbed [type='radio']:nth-of-type(9):checked ~ .tabbed-tabs .tab:nth-of-type(9) label {
    background: var(--color-brand-100);
    color: var(--color-brand-20);
}

.tabbed [type='radio']:nth-of-type(1):checked ~ .tab-contents:nth-of-type(1),
.tabbed [type='radio']:nth-of-type(2):checked ~ .tab-contents:nth-of-type(2),
.tabbed [type='radio']:nth-of-type(3):checked ~ .tab-contents:nth-of-type(3),
.tabbed [type='radio']:nth-of-type(4):checked ~ .tab-contents:nth-of-type(4),
.tabbed [type='radio']:nth-of-type(5):checked ~ .tab-contents:nth-of-type(5),
.tabbed [type='radio']:nth-of-type(6):checked ~ .tab-contents:nth-of-type(6),
.tabbed [type='radio']:nth-of-type(7):checked ~ .tab-contents:nth-of-type(7),
.tabbed [type='radio']:nth-of-type(8):checked ~ .tab-contents:nth-of-type(8),
.tabbed [type='radio']:nth-of-type(9):checked ~ .tab-contents:nth-of-type(9) {
    display: block;
}

.tabbed-dots .tabbed-tabs {
    margin-top: 0;
}
.tabbed-dots .tabbed-tabs .tab {
    margin: 0.5rem 0;
}
.tabbed-dots .tabbed-tabs label {
    border-radius: 22px;
    padding: 8px;
}

@media (min-width: 768px) {
    .tabbed .tabbed-tabs {
        overflow-x: hidden;
    }

    .tabbed-dots .tabbed-tabs {
        justify-content: center;
    }
}


/*** Sticky Widgets & Modals ***/

/* Mobile QR & Phone */
#sticky-contact-mobile {
    position: fixed;
    right: 1rem;
    bottom: 0;
    line-height: 0;
  z-index: 10;
}
#sticky-contact-mobile a {
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--color-brand-80);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.sticky-contact-mobile__qr {
    padding: 4px;
    background: var(--color-gray-0);
}
.sticky-contact-mobile__phone {
    background: var(--color-brand-80);
}
.sticky-contact-mobile__phone:hover {
    background: var(--color-brand-100);
}
@media (min-width: 768px) {
    #sticky-contact-mobile {
        display: none;
    }
}

/* Mobile Contact Modal */
#modal-contact-mobile {
    max-width: 75vw;
/*     max-height: 55vh; */
    z-index: 100;
}
.modal-block {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

/* Desktop QR & Phone */
#sticky-contact {
    /*display: none;*/
}
@media (min-width: 768px) {
    #sticky-contact {
        position: absolute;
        right: 0;
        display: flex;
    }
    #sticky-contact.stick {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 100;
    }
    #modal-contact .popup-container img {
        max-width: 100%;
    }
}

/* Member Tag */
.member-tag-nav {
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    width: auto;
}
.member-tag {
  display: flex; flex-flow: row nowrap; justify-content: center; align-items: center;
    position: static;
    margin: 1rem auto;
    text-align: center;
    transition: all 0.25s;
    max-width: 90vw;
    border-radius: 8px;
    padding: 0rem 0.5rem 0.1rem 0.5rem;
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.9);
}
.member-tag > img,
.member-tag > p {
    vertical-align: middle;
    display: inline-block;
}
.member-tag > img:last-of-type {
    margin-right: 0.5rem;
}
@media (min-width: 768px) {
    .member-tag-nav {
        height: 24px;
    }
    .member-tag {
      display:block;
        position: absolute;
        bottom: 4rem;
        right: 0;
      max-width: 6.5rem;
        border-radius: 8px 0 0 8px;
        margin: 0;
        padding: 0.5rem 0.5rem 0.1rem 0.5rem;
        z-index: 15;
        transform: translate(5.5px,-12px) scale(0.89);
    }
    .member-tag:hover {
        background-color: rgba(255, 255, 255, 1);
    }
    .member-tag p {
        display: block;
    }
    .member-tag > img:last-of-type {
        margin-right: 0;
    }
}
@media (min-width: 768px) and (max-width: 1440px) {
    .member-tag {
        position: absolute;
        bottom: 4rem;
    }
  }

/*** Blogs ***/
.flex-row > .col-aside {
	background: var(--color-brand-20);
	margin: 0rem -1rem -1rem -1rem;
	padding: 1rem;
}
@media (min-width: 768px) {
	.flex-row > .col-aside {
		flex: 0.75;
		margin: -1rem 0 -1rem 1rem;
	}
	.col-aside {
		position: sticky; 
		top: 100px;
		max-height: 100vh;
		overflow-y: scroll;
	}
}

ul.xoxo { 
    padding-left: 0;
    list-style-type: none;
}
.single-post li:not(.small) {
    margin-bottom: 0.5rem;
}
.entry-toc.desktop { display: none; }
.entry-toc.mobile { }
.entry-toc {
  	margin: -1.5rem -1rem 0rem -1rem;
  	padding: 1rem;
    font-size: 0.8rem;
    background-color: var(--color-brand-20);
}
.entry-toc h5 {
    margin: 0;
    font-weight: bold;
}
.entry-toc h5 img { vertical-align: -6px; }
.entry-toc ol, .entry-toc ul {
    margin-bottom: 0;
    padding-left: 2rem;
}
.entry-toc a { color: var(--color-brand-100); }
.entry-toc a:hover { color: var(--color-brand-50); }
.entry-sell-top, .entry-sell-middle, .entry-sell-bottom {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.entry-sell-top { 
    margin-top: 0;
}
.entry-sell-top > *, .entry-sell-middle > *, .entry-sell-bottom > * {
    margin-bottom: 0;
}
.entry-sell-top > p, .entry-sell-middle > p, .entry-sell-bottom > p {
    margin-left: 1rem;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .entry-toc.mobile { display: none; }
    .entry-toc.desktop { display: block; }
    .entry-toc { margin-bottom: 2rem; }
	.entry-toc > ol {
/* 		overflow-y: scroll; 
		max-height: 50vh; */
	}
    .entry-sell-top, .entry-sell-middle, .entry-sell-bottom {
        flex-flow: row nowrap;
    }
}
/* WP helper classes */
.is-align-stretch {
  align-items: stretch !important;
}
/* Tailwind-like classes */
.max-w-full {
  max-width: 100%;
}
.overflow-x-hidden	{
  overflow-x: hidden;
}

/* WP fix cover background z-index issue */
.wp-block-cover:not(:first-of-type) .wp-block-cover__background {
  z-index: -2; 
}
.wp-block-cover:not(:first-of-type) .wp-block-cover__image-background {
  z-index: -3;
}
.wp-block-cover:not(:first-of-type) .wp-block-cover__inner-container {
  z-index: 0;
}

/* Tailwind CSS overrides - temp fix until we move it all to Tailwind */
/*.col-1 img { display: inline; }
.col-1 a { color: var(--color-brand-80); }
.col-1 a:hover { color: var(--color-brand-100); }*/

/* Weird page scrolling issue? */
img.wp-block-cover__image-background.wp-post-image {
  max-width: 100vw;
}

/* Editor Style Override - fix weird background z-index for covers */
.editor-styles-wrapper .wp-block-cover:not(:first-of-type) .wp-block-cover__background {
  z-index: 0 !important; 
}

/* 2024.03 Carousel for Posters */
.carousel-container {
            /*position: relative;*/
            overflow: hidden;
            margin: 0 auto;
            max-width: 15rem;
            margin-bottom: -10rem;
        }
        .carousel {
            display: flex;
            flex-flow: row nowrap !important;
            scroll-snap-type: x mandatory;
            overflow-x: scroll;
            overflow-y: hidden;
            scroll-behavior: smooth;
            width: 100%;
            padding-top: 8px;
        }
        .carousel-item {
            flex: 0 0 auto;
            width: 100%;
            min-width: 100%;
            scroll-snap-align: start;
        }
        .carousel .banner-poster::before, .carousel .banner-poster::after {
            display: none;
        }
        button.carousel-button { 
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.35rem;
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 4px 0 var(--color-brand-50);
            cursor: pointer;
            transition: all 0.25s;
        }
        button.carousel-button:hover {
            transform: translateY(calc(-50% + 2px));
            background: var(--color-brand-50);
            box-shadow: 0 2px 0 rgba(0,0,0,0.25), 0 2px 0 var(--color-brand-50);
        }
        .carousel-button img, #modal-content .carousel-button img {
            display: block;
            width: 24px;
            height: 24px;
            border: none;
            box-shadow: none;
            margin: 0;
        }
        .carousel-button img:hover {
            transform: none;
            box-shadow: none;
        }
        .carousel-button-left {
            left: 0rem;
        }
        .carousel-button-right {
            right: 0rem;
        }
        [data-modal-carousel-id]::before, [data-modal-carousel-id]::after {
            display: none;
        }
        .modal-carousel-container {
            max-width: 48vh;
            margin-bottom: 0;
            text-align: center;
        }
        .modal-carousel-container .carousel-button {
            position: relative;
            margin: 0 0.5rem;
        }
        @media (min-width: 768px) {
            .carousel-container {
                max-width: unset;
                margin-bottom: -4rem;
            }
            .carousel {
                overflow: hidden;
            }
            .carousel-item {
                min-width: unset;
                width: unset;
            }
            .carousel-button {
                display: none;
            }
            .modal-carousel-container {
                max-width: 58vh;
                max-height: 90vh;
                margin-bottom: 0;
            }
            .modal-carousel-container .carousel {
                overflow-x: scroll;
                overflow-y: hidden;
                max-height: 80vh;
            }
            .modal-carousel-container .carousel-button {
                display: inline-block;
            }
        }
        
        :where(body .is-layout-flow) > :last-child:last-child.carousel-container {
            margin-block-end: -9rem;
        }