@font-face {
    font-family: 'Invader';
    src: url('./fonts/Invader_wNumbers.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#app h1,
#app .see-all-container h2,
#cms-footer h2,
.pb-main .pb-heading :is(h1, h2, h3, h4, h5) {
    font-family: 'Invader', serif !important;
}

#app {
    --gradient: linear-gradient(89.99deg, var(--secondary-color) -0.01%, #FFFFFF 50.31%, var(--primary-color) 100.62%);
}

#app .see-all-container h2 {
    font-size: 46px;
}

/* START Header */
#view-header:has(.bar-nav-menu) {
    .header-bar-wrapper {
        background: var(--gradient) !important;
    }

    #h3 .utility-menu {
        flex-direction: column;
        padding-block: 20px;

        .logo {
            height: 62px;
            margin: 0;

            img {
                object-fit: contain;
            }
        }

        .utilities-bar {
            margin-left: 0;

            .translate-button {
                position: absolute;
                right: 122px;
                top: 100%;
                height: 78px;
                box-sizing: border-box;
                margin: 0;
                transform: translateY(-50%);
                margin-top: 5px;
                align-items: center;
                width: 121px;
                margin-right: 40px;

                &::after {
                    width: 0%;
                    position: absolute;
                    bottom: 22px;
                    left: 50%;
                    height: 2px;
                    transform: translateX(-50%);
                    background-color: var(--secondary-color);
                    transition: all .35s ease-in-out;
                    content: '';
                }

                &:hover::after {
                    width: calc(100% - 3px);
                    margin-left: -6px;
                }

                .translate-text {
                    text-transform: uppercase;
                    font-weight: 400;
                    letter-spacing: 0;
                }
            }
        }
    }

    .utilities-bar .utility-bar-items {
        display: none;
    }

    .header-bar-wrapper #h3 {
        margin-bottom: -45px;
    }

    .header-bar-wrapper #m5 {
        border-radius: 20px;
        transform: translateY(45px);
    }

    .bar-nav-menu--drawer {
        top: 100%;
        min-height: unset;
    }

    .bar-nav-menu--drawer .bar-nav-menu--drawer-content-wrapper {
        padding-block: 16px;


        .menu-item-active-line {
            display: none;
        }

        .dropdown-with-icons span {
            border-radius: 0;
            width: 45px;
            height: 45px;

            svg {
                padding: 0;
            }
        }
    }

    .bar-nav-menu .bar-nav-menu-bar .bar-nav-item-wrapper .options-wrapper:has(#explore-button) {
        display: none;
    }

    .bar-nav-menu .bar-nav-menu-bar .bar-nav-item-wrapper .options-wrapper:has(#schoolsbutton) {
        order: 2;
        position: absolute;
        right: 250px;
        width: 155px;

        &+.options-wrapper>.bar-menu-item .bar-nav-element .link {
            color: var(--secondary-color);
        }
    }

    .options-wrapper>.bar-menu-item,
    #more-menu-item {
        position: relative;

        &::after {
            width: 0%;
            position: absolute;
            bottom: 22px;
            left: 50%;
            height: 2px;
            transform: translateX(-50%);
            background-color: var(--secondary-color);
            transition: all .35s ease-in-out;
            content: '';
        }
    }

    .bar-menu-item.menu-item-active,
    .bar-menu-item:hover,
    #more-menu-item:hover {
        background: transparent;

        &::after {
            width: calc(100% - 48px);
        }
    }

    .bar-nav-menu .bar-nav-menu-bar .bar-nav-menu--align-right {
        order: 0;
    }

    .bar-nav-menu .bar-nav-menu-bar {
        min-height: 78px;

        &::after {
            content: '';
            width: 1px;
            height: 45px;
            order: 1;
            background-color: var(--text-color);
        }
    }

    .bar-end-options {
        padding-left: 300px;
        order: 2;
    }

    #h3 #languagesmenu {
        top: 100%;
        margin-top: 45px;
        right: 65px;
    }

    .bar-nav-menu .bar-nav-menu-bar .bar-nav-menu--align-right #schools-menu-sm1 {
        transform: none;
        right: -100px;
        left: auto;
        min-width: 70vw;
    }
}

/* header v3 position above the gallery */
#view-header #cms-header {
    --header-position: relative !important;
}

/* END header v3 position above the gallery */
#view-header .mobile-header {
    padding-block: 10px;

    .logo {
        img {
            object-fit: contain;
            max-width: 100%;
        }
    }
}

/* END Header */

/* START Gallery */
#cms-gallery {
    display: none;
}

/* END Gallery */

/* START Custom Athletics Buttons */
#home .custom-athletic-links {
    width: 100%;
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
    background-color: var(--primary-color);
    overflow: hidden;

    .athletic-links-wrapper {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        width: 100%;
        margin: 0;
        padding: 0;

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

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

        @media (max-width: 480px) {
            grid-template-columns: 1fr;
        }
    }

    .athletic-link-item {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        text-decoration: none;
        cursor: pointer;

        &:hover {
            .link-bg-image {
                transform: scale(1.05);
            }

            .link-overlay {
                background-color: rgba(0, 0, 0, 0.4);
            }

            .link-title {
                text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
            }
        }
    }

    .link-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: transform 0.4s ease-in-out;
        z-index: 1;

        a {
            display: block;
            width: 100%;
            height: 100%;
        }

        a::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .link-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.65);
        transition: background-color 0.4s ease;
        z-index: 2;
        pointer-events: none;
    }

    .link-title {
        position: relative;
        z-index: 3;
        color: var(--secondary-color);
        font-size: 1.5rem;
        font-weight: 800;
        font-style: italic;
        text-transform: uppercase;
        text-align: center;
        padding: 0 20px;
        margin: 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        text-decoration: none;
        transition: text-shadow 0.3s ease;
        pointer-events: none;

        @media (max-width: 1400px) {
            font-size: 1.25rem;
        }

        @media (max-width: 1200px) {
            font-size: 1.1rem;
        }
    }
}

/* END Custom Athletics Buttons */

/* START News */
@media (width >=1024px) {
    #home .main:has(#news-n5) {
        padding-top: 60px;
    }
}

/* END News */

/* START Social Media */
#home .social-media-section {
    color: #FFFFFF;
    background-color: #332F2A;

    .see-all-container {
        margin-bottom: 32px;
    }

    .social-media-wrapper {
        display: grid;
        grid-template-columns: 1fr 2.2fr;
        gap: 30px;
        width: 100%;
        margin: 0 auto;

        .social-header {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: sans-serif;
            font-size: 1.25rem;
            font-weight: bold;
            padding-bottom: 12px;
            margin-bottom: 20px;
            border-bottom: 3px solid var(--secondary-color);

            .social-icon {
                width: 24px;
                height: 24px;
            }
        }

        .social-content-card {
            background-color: #FFFFFF;
            border-radius: 8px;
            width: 100%;
            min-height: 600px;
            overflow: scroll;
            max-height: 600px;

            #instagram-embed-0 {
                width: 100%;
            }
        }
    }

    @media (width <=992px) {
        .social-media-wrapper {
            grid-template-columns: 1fr;
            gap: 40px;
        }
    }
}

/* END Social Media */

/* START Custom Parallax V1 */
#home .custom-parallax-v1 {
    --parallax-v1-mask-opacity: 60%;

    h2 .prlx-v1-header {
        font-family: 'Invader', serif !important;
    }

    .parallax-v1-content .prlx-v1-button a {
        color: var(--secondary-color-contrast);
        background-color: var(--secondary-color);
        border: 2px solid var(--secondary-color);

        &:hover {
            color: var(--primary-color);
            background-color: var(--primary-color-contrast);
            border: 2px solid var(--primary-color-contrast);
        }
    }
}

/* END Custom Parallax V1 */

/* START Custom Stats */
#home #by-the-numbers-v1 {
    --section-bg-color: #232323;
    --opacity: 80%;

    .by-the-numbers-wrapper .btn-icon span {
        background-color: var(--primary-color);

        svg path {
            fill: var(--secondary-color);
        }
    }
}

/* END Custom Stats */

/* START Custom Parallax V2 */
#custom-parallax-v2 {
    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: var(--parallax-v2-mask-bg-color, var(--primary-color));
        opacity: var(--parallax-v2-mask-opacity, 0.5);
        z-index: -1;
    }

    .parallax-v2-content {
        background-color: var(--secondary-color);

        h2 .prlx-v2-header {
            font-family: 'Invader', serif !important;
        }

        h2::after {
            background-color: #123857;
        }
    }
}

/* END Custom Parallax V2 */

/* START Live Feed */
#home .live-feed-lf8 {
    --button-border-color: var(--arrow-color) !important;
}

/* END Live Feed */

/* START Custom Sponsors Bar*/
#home .scroller-area {
    background-color: var(--secondary-color);

    & .slide-pane {
        background-color: transparent;
    }
}

/* END Custom Sponsors Bar*/

/* START Footer */
#cms-footer .footer-column-last {
    gap: 20px 0;

    .footer-social-links {

        @media (width >=303px) {
            --icon-color: #FFF;

            li {
                position: relative;

                a {
                    vertical-align: middle;
                }

                &::before {
                    content: "";
                    position: absolute;
                    background-color: #000;
                    width: 100%;
                    height: 100%;
                }

                &:first-child a {
                    margin-left: 20px;
                }

                &:last-child a {
                    margin-right: 20px;
                }

                &:first-child::before {
                    border-top-left-radius: 40px;
                    border-bottom-left-radius: 40px;
                }

                &:last-child::before {
                    border-top-right-radius: 40px;
                    border-bottom-right-radius: 40px;
                }

                a {
                    margin-bottom: 0 !important;
                }
            }
        }
    }
}

@media (width > 1200px) {

    #cms-footer #footer-f1 .row .footer-column-main,
    #cms-footer #footer-f1 .row .footer-columns,
    #cms-footer #footer-f1 .row .footer-column-last {
        border-color: var(--secondary-color);
        border-width: 6px;
        box-shadow: inset 6px 0 0 0 #ffffff,
            inset 12px 0 0 0 #000000;

        padding-left: 20px;
    }
}

/* END Footer */