:root {
    --orange: #f6850c;
    --highlight-orange: #FF9C00;
    --highlight-orange-border: #fabe78;
    --dark-purple: #3f0c45;
    --dark-purple-font: #2d0b22;
    --footer-purple: #361c4a;
    --ticker-gap: 10vw;
    --ticker-height: 56px;
}

#esw-channelmenu {
    z-index: 9999;
}

.heading {
    margin-bottom: 30px;

    h2, h3, h4, p {
        margin: 0;
    }
}

@media (min-width: 768px) {
    :root {
        --ticker-height: 64px;
    }
}

/* hero icon bob animations */
@keyframes slow-bob {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-30px);
    }
}

@keyframes off-sync-bob {
    0% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(0%);
    }
}

/* hardcode ticker gap into translates */
@keyframes translateRight {
    0% {transform: translateX(0%);}

    40% {
        transform: translateX(80%);
        visibility: hidden;
    }

    45%,50.35%  {
        transform: translateX(-100%);
        visibility: hidden;
    }


    100% {
        transform: translateX(0%);
        visibility: visible;
    }

}

@keyframes translateRightClone {
    0% {transform: translateX(0%);}

    50% {
        transform: translateX(100%);
    }

    90% {
        transform: translateX(180%);
        visibility: hidden;
    }

    100% {
        transform: translateX(0%);
        visibility: hidden;
    }
}

img.ricky-image-adjust {
    height: unset;
    top: -70px;
}

header {
    .header-top:has(#ticker) {
        padding-top: 0 !important;
        overflow-x: hidden;

        #ticker {
            position: relative;
            background-color: white;
    
            margin-bottom: 12px;
            box-shadow: 0 0 8px 4px rgba(0,0,0, 0.35);

            .text {
                position: relative;
                display: flex;
                justify-content: end;
                align-items: center;
                width: fit-content;

                .content {
                    
                    min-width: fit-content;
                    height: var(--ticker-height);
                    animation: translateRight 60s linear infinite;
                    padding: 0 var(--ticker-gap) 0 0;
                    display: flex;
                    align-items: center;
                    gap: var(--ticker-gap);
        
                    .container {
                        display: flex;
                        width: auto;
                        justify-content: center;
                        flex-direction: column;
                        gap: var(--ticker-gap);
                        padding: 4px 0;
        
                        p {
                            color: var(--dark-purple-font);
                            margin: 0;
                            font-size: 18px;
                            font-weight: 600;
                            letter-spacing: 0.08em;
                            line-height: 1.15;
                            text-align: center;
                            white-space: nowrap;
                        }
        
        
                    }
    
    
                    &.clone {
                        position: absolute;
                        left: -100%;
                        animation: translateRightClone 60s linear infinite;
                        top: 0;
                    }
                
                }
            }
        
            
    
    
            .fixed {
                position: absolute;
                display: flex;
                justify-content: center;
                align-items: center;
                top: 0;
                bottom: 0;
                right: 0;
                z-index: 2;
    
                padding-right: 4vw;
            }
    
            a {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 6px 10px;
                border-radius: 24px;
                box-shadow: 1px 1px 4px 2px rgba(0,0,0,0.5);
                background-color: var(--orange);
                border: 2px solid var(--dark-purple);
                transition: background-color 0.4s;
    
                p {
                    color: black;
                    font-size: 18px;
                    letter-spacing: 0.08em;
                    font-weight: 600;
                    margin: 0;

                }

                &:hover {
                    background-color: var(--highlight-orange);
                }
            }
        }
        
    
    
        @media (min-width: 768px) {
            #ticker {
                .text {
                    .content, .content.clone  {
                        .container {
                            flex-direction: row;
        
                            p {
                                font-size: 18px;
                                letter-spacing: 0.08em;
                            }
                        }
                    }
                }
                
    
                a {
                    padding: 10px 14px;
                    p {
                        font-size: 20px;
                        letter-spacing: 0.08em;
                    }
                }
            }
        }
    
        @media (min-width: 1024px) {
            #ticker {
                .text {
                    .content, .content.clone {
                        .container {
                            p {
                                font-size: 20px;
                            }
        
                        }
                    }
                }
            }
        }
    }

    &.fixed {
        background-color: var(--dark-purple);
        .header-top:has(#ticker) #ticker {
            background-color: var(--dark-purple);
            .content {
                background-color: var(--dark-purple);

                .container p {
                    color: white;
                }
            }

            a {
                border-color: var(--highlight-orange-border);
            }
        }
    }
    
}


/* TICKER CONDITIONAL STYLING */
body:has(#ticker) {
    /* & > .outer-container {
        padding-top: 136px;

        @media (min-width: 1024px) {
            padding-top: 64px;
        }
    } */
    .page {
        padding-top: 0;
    }

    @media (min-width: 768px) {
        .page {
            padding-top: 66px;
        }
    }
}

footer.footer {
    .footer-legal {
        padding: 0;

        .footer-nav {
            display: grid;
            grid-template-columns: repeat(5, min-content);
            align-items: center;
            gap: 20px 0;
    
            a {
                grid-column: span 2;
                padding: 0;
                white-space: nowrap;
            }
    
            .footer-contact {
                justify-self: start;
                grid-column: span 5;
                display: flex;
                align-items: center;
                background-color: #fff;
                color: #2d0b22;
                font-weight: 600;
                font-size: 1.8rem;
                line-height: 1;
                letter-spacing: 0.04em;
                padding: 8px 16px 8px 18px;
                border-radius: 2px 0 0 2px;
                clip-path: polygon(
                    0% 0%,
                    93% 0%,
                    100% 50%,
                    93% 100%,
                    0% 100%,
                    7% 50%
                );
            }

            @media (min-width: 768px) {
                a {
                    grid-column: span 1;
                }

                .footer-contact {
                    grid-column: span 1;
                }
            }
        }
    }      
}

/* Custom element classes */

/* INSTAGRAM REEL GALLERY */
.instagram-reel-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;

    .reel {
        position: relative;
        overflow: hidden;
        aspect-ratio: 4 / 4.55;
        border: 3px solid #9d2463;
        box-shadow: 1px 1px 8px 4px rgba(0,0,0, 0.75);

        iframe {
            position: absolute;
            top: -56px;
            left: 0;
            width: 100%;
            aspect-ratio: 5 / 6.5;
            z-index: 0;
        }

        .cover {
            pointer-events: none;
            position: absolute;
            inset: 0;

            .play-button {
                position: absolute;
                width: 30%;
                min-width: 64px;
                aspect-ratio: 1 / 1;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                filter: drop-shadow(rgba(0,0,0,0.75) 4px 4px 2px);
            }
        }


        &.playing {
            .cover .play-button {
                display: none;
            }
        }
    }


    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);

        .reel {
            aspect-ratio: 4 / 4.4;
        }
    }

    @media (min-width: 1200px) {
        .reel {
            aspect-ratio: 4 / 4.55;
        }
    }
}


.custom-hero {
    --vertical-padding: 0px;
    /* box-sizing: content-box; */
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: var(--hero-min-height);
    grid-auto-rows: max-content;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: var(--vertical-padding) 5vw;
    min-height: var(--hero-min-height);
    /* max-width: 2000px; */

    p, h1 {
        margin: 0;
    }

    .background-image {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1024px;
    }

    .icon {
        position: absolute;

        &.slow-bob {
            animation: slow-bob 3s linear infinite alternate
        }

        &.off-sync-bob {
            animation: off-sync-bob 3s linear infinite alternate
        }
    }
    /* .title, .description {
        max-width: 1024px;
    } */

    .title {
        grid-column: 1 / span 5;
        position: relative;
        
        z-index: 2;

        h1 {
            padding: 10px;
            position: relative;
            color: white;
            font-size: 16px;
            letter-spacing: 0.06em;
            line-height: 1.2em;
            text-align: center;
            text-shadow:  
            1px 1px 2px #000,
            -1px 1px 2px #000,
            -1px -1px 0 #000,
            1px -1px 0 #000;
        }

        &.highlight {
            border-radius: 68px;
            border: 2px solid rgba(0,0,0,0.4);

            h1 {
                font-size: 16px;
                border-radius: 65px;
            }
        }

        @media (min-width: 480px) {
            h1 {
                font-size: 20px;
            }
        }

        @media (min-width: 768px) {
            grid-column: 1 / span 4;

            h1 {
                font-size: 28px;
            }

            &.highlight {
                font-size: 24px;
            }
        }

        @media (min-width: 1024px) {
            h1 {
                font-size: 36px;  
            }
        }

    }

    .description {
        grid-column: 1 / span 8;
        background-color: rgba(54, 28, 74, 0.4);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 16px;
        border-radius: 8px;
        margin: 5% 0;

        p {
            font-size: 12px;
            color: rgb(235,235,235);
            letter-spacing: 0.04em;
            line-height: 1.3em;

            br {
                content: "&nbsp;";
                display: block;
                height: 12px;
            }

            em {
                font-weight: 600;
                font-style: normal;
            }

            @media (min-width: 1024px) {
                font-size: 14px;  
            }
        }
    }

    &.purple-gradient {
        --orange-outline: 255, 156, 0;

        background: linear-gradient(246.66deg, #672D89 45%, #9C2463 100%);
        
        .title.highlight {
            outline: 2px solid rgba(var(--orange-outline), 0.85);
            h1 {
                background-color: rgba(var(--orange-outline), 0.85)
            }
        }

        .description {
            border: 1px solid rgba(var(--orange-outline), 0.5);
        }
    }

    &:has(.background-image.full-screen) {
        .background-image {
            max-width: none;
            width: 100%;
            height: auto;
        }

        @media(min-width: 768px) {
            height: 100vh;
            .background-image {
                height: 100vh;
                width: auto;
            };
        }
    }

    @media(min-width: 768px) {
        --vertical-padding: 64px;
        row-gap: 12px;
        grid-template-rows: auto;

        .description {
            grid-column: 1 / span 4;
            margin: 0;
        }
    }

    @media (min-width: 2000px) {
        grid-template-columns: repeat(8, 225px);
    }
}

.wave-gradient {
    position: relative;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: max-content;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 0px 5%;

    & > * {
        z-index: 1;
        max-height: 70vh;
        grid-column: 1 / span 8;
    }

    &::after {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        overflow: hidden;
        background: linear-gradient(0deg, white 0%, transparent 2%);
    }

    &.top-left::after {
        content: url('../img/pages/wave-overlay.svg');
    }

    &.purple-gradient {
        background: linear-gradient(276.66deg, #672D89 45%, #9C2463 100%);
    }

    .s-full, .s-background {
        grid-column: 1 / span 8;
        grid-row: 1;

        &.s-background {
            align-self: end;
        }
    }

    .left {
        overflow: hidden;
    }

    @media (min-width: 1024px) {
        padding: 64px 5%;

        .left {
            grid-column: 1 / span 4;
            /* display: flex;
            justify-content: end;
            align-items: end; */

            & > img {
                object-fit: contain;
                object-position: right bottom;
                border: 2px solid black;
                border-radius: 8px;
                max-height: 70vh;
                width: auto;
            }
        }

        .right {
            grid-column: 5 / span 4;
        }
    }

    @media (min-width: 2000px) {
        grid-template-columns: repeat(8, 225px);
    }
}


.carousel {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    h2 {
        font-size: 24px;
        line-height: 1.2em;
        letter-spacing: 0.06em;
        color: white;
        text-shadow:  
            1px 1px 2px #000,
            -1px 1px 2px #000,
            -1px -1px 0 #000,
            1px -1px 0 #000;

        &.highlight {
            font-size: 16px;
            border-radius: 8px;
            padding: 12px 16px;
            background-color: var(--dark-purple);
            border: 2px solid white;
            outline: 4px solid var(--dark-purple);
        }
    }

    .carousel-inner {
        display: flex;
        transition: transform 0.4s;
        overflow: visible;

        .slide {
            display: inline-block;
            min-width: 100%;

            h3 {
                font-size: 20px;
                letter-spacing: 0.04em;
                line-height: 1.5em;

                &.underline {
                    text-decoration: underline;
                    text-underline-offset: 8px;
                }
            }

            p,
            li {
                font-size: 12px;
                line-height: 1.4em;
                letter-spacing: 0.04em;
            }
        }
    }

    .carousel-indicators {
        align-self: center;
        display: flex;

        button {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 32px;
            aspect-ratio: 1 / 1;
            cursor: pointer;

            &::after {
                content: "";
                width: 20px;
                border: 1px solid white;
                outline: 1px solid var(--dark-purple);
                aspect-ratio: 1 / 1;
                border-radius: 50%;
                background-color: var(--dark-purple);
            }

            &.active {
                &::after {
                    background-color: var(--highlight-orange);
                    outline-color: var(--highlight-orange);
                }
                
            }
        }
    }

    @media (min-width: 768px) {
        h2 {
            font-size: 24px;
        }

        .carousel-inner {
            .slide {
                h3 {
                    font-size: 24px;
                }

                p,
                li {
                    font-size: 16px;
                }
            }
        }
    }
}

.cards {
    --step-radius: 0px;
    --card-padding: 8px;
    --cards-container-padding: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;

    &:is(section) {
        padding: 64px var(--cards-container-padding);
    }

    h2 {
        font-size: 32px;
        text-align: center;
    }

    & > .content {
        --gap: 24px;
        display: grid;
        gap: var(--gap);
        row-gap: calc(var(--step-radius) + 24px);
        grid-auto-columns: 1fr;
        max-width: 2000px;
        justify-content: center;
        padding-top: var(--step-radius);
        box-sizing: border-box;


        .card {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: var(--card-padding);
            border: 4px solid var(--dark-purple);
            border-radius: 16px;
            transition: transform 0.2s;

            &:has(.left), &:has(.right) {
                flex-direction: row;

                .left, .right {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                }
            }

            &:has(.step-label) {
                padding: calc(var(--step-radius) + var(--card-padding) - 8px) 0 calc(var(--card-padding) - 8px);
            }

            h3 {
                font-size: 20px;
                text-align: center;
                color: white;
                width: 100%;
                margin: 16px 0;

                &.highlight {
                    background-color: var(--dark-purple);
                    padding: 8px calc(var(--card-padding) - 8px);
                    border: 2px solid white;
                    border-left: none;
                    border-right: none;
                    outline: 4px solid var(--dark-purple);
                }
            }

            
            .step-label {
                position: absolute;
                display: flex;
                justify-content: center;
                align-items: center;
                top: 0;
                left: 50%;  
                transform: translate(-50%, -50%);
                background-color: var(--dark-purple);
                border-radius: 48px;
                width: calc(3 * var(--step-radius));
                aspect-ratio: 1 / 1;
                border: 2px solid white;
                outline: 4px solid var(--dark-purple);

                p {
                    color: white;
                    font-family: Arial;
                    font-weight: 600;
                    margin: 0;
                    font-size: calc(2 * var(--step-radius));
                    line-height: 1;
                }
            }

            .text {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-between;
                flex-grow: 1;
                padding: 0 calc(var(--card-padding) - 8px);

                & > p {
                    display: flex;
                    align-items: center;
                    flex-grow: 1;
                    text-align: center;
                }

                a {
                    display: flex;
                    align-items: center;
                    background-color: var(--orange);
                    border-radius: 8px;
                    padding: 12px;
                    width: fit-content;
                    color: var(--dark-purple);
                    font-weight: 600;
                    letter-spacing: 0.08em;
                    line-height: 1em;
                    border: 2px solid var(--highlight-orange-border);
                    transition: background-color 0.25s;
                    border-radius: 24px;
                    box-shadow: 1px 1px 3px 2px rgba(0,0,0,0.5);

                    &:hover {
                        background-color: var(--highlight-orange);
                    }
                }
            }


            &:hover {
                transform: scale(1.05);

                .step-label, h3 {
                    color: var(--highlight-orange);
                    border-color: var(--highlight-orange);

                    p {
                        color: var(--highlight-orange);
                    }
                }
            }
        }
    }

    &:has(.step-label) {
        --step-radius: 32px;
    }


    @media (min-width: 768px) {
        --card-padding: 24px;
        h2 {
            text-align: start;
            font-size: 32px;
        }
    }

    @media (min-width: 1024px) {
        & > .content {
            grid-auto-flow: column;

            .text {
                align-items: start;
            }
        }
    }

    @media (min-width: 2500px) {
        & > .content {
            .card {
                width: calc((2000px - (var(--num-cards) - 1) * var(--gap)) / var(--num-cards));
            }
        }
        
    }



    &.shadow-box {
        --shadow-color: rgba(0,0,0,0.5);

        & > .content {
            .card {
                position: relative;
                border: none;
                border-radius: 8px;
                filter: none;
                transition: filter 0.025s;

                &::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background: linear-gradient(
                        to right,
                        var(--shadow-color) 0%,
                        transparent 10% 90%,
                        var(--shadow-color) 100%
                    );
                    z-index: 99999;
                    pointer-events: none;
                    border-radius: 8px;
                }


                &:hover {
                    transform: none;
                }
            }

            @media (min-width: 1024px) {
                .card {
                    filter: grayscale(0.5);
    
                    &:hover {
                        filter: grayscale(0);
                    }
                }
            }
        }
    }
}


.inline-banner {
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.corner-blur {
    background-image: url("../img/form-bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.template-default .template-hero .template-hero-top .block-title,
.template-course-landing .template-hero .template-hero-top .block-title,
.template-article .template-hero .template-hero-top .block-title {
    margin-bottom: 0;

    &:has(+ *) {
        margin-bottom: 40px;
    }
}





.line-backdrop {
    position: relative;

    &::after {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: url("../img/flp/graphic-lines.svg");
        background-size: 100% auto;
        background-position: top;
        background-repeat: no-repeat;
        z-index: 0;
    }
}

.parthenon-dark,
.parthenon-gradient {
    h1, h2, p, a, li {
        color: var(--text-color);
    }
}

.parthenon-dark {
    --text-color: white;
    --frame-color: rgba(255,255,255,0.75);

    background-color: var(--dark-purple);
}

.parthenon-gradient {
    --text-color: white;
    --frame-color: rgba(255,255,255,0.75);

    background: linear-gradient(0deg, #361C4A 25.19%, #72246C 79.78%);
}

.parthenon-cta {
    background-color: var(--highlight-orange);
    padding: 6px 12px;
    border-radius: 24px;
    font-weight: 600;
    box-shadow: 0px 0px 2px 1px rgba(0,0,0, 0.35);
    color: white;
    letter-spacing: 0.1em;
    text-shadow:  
        1px 1px 2px #000,
        -1px 1px 2px #000,
        -1px -1px 0 #000,
        1px -1px 0 #000;

    &.outline {
        border: 1px solid var(--dark-purple);
        outline: 1px solid var(--highlight-orange);
    }
}

