/* color variables: */
:root {
    --primary: #2F5DCC;
    --secondary: #F26A5A;
    --accent: #F2C94C;
    --text-color: #212121;
    --text-color-soft: #424242;
    --text-light-color: #A0A0A0;
}

body {
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0;
    padding: 0;


}

html {
    overflow-x: hidden;
}

nav {
    margin: 0 0;
    padding: 16px 0;

    width: 100%; 
    min-height: 100px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar-container {
    margin: -16px 0;
    padding: 18px 0;
    
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar-container .logo {
    margin-left: 16px;
    margin-right: auto;
    padding: 0;
    
    max-height: 20vw;

    flex-shrink: 0;
}

.navbar-container ul {
    margin: 0;
    padding: 0;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: calc(100% - 600px);
    display: flex;
}

.navbar-container li {
    margin: 0 8px 0 8px;
    padding: 16px;
    
    display: inline-block;
}

.navbar-container li a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    text-decoration: none;

    color: var(--text-color);
}

.navbar-container li a:hover {
    color: var(--secondary);
    /* text-decoration: underline; */
}

.navbar-container .navbar-selection {
    position: fixed;
    display: block;
    /* bottom: 25px;
    left: 50%; */
    /* transform: translateX(-50%); */
    
    width: 60px;
    height: 2px;
    background-color: var(--secondary);

    transition: left 0.3s ease, transform 0.3s ease;
}

.navbar-toggle {
    display: none;
    margin-left: auto;
    margin-right: 16px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.navbar-toggle-icon {
    display: inline-block;
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    top: 8px;
}

/* medium-sized screen */
@media screen and (max-width: 1150px) {
    .navbar-container ul {
        max-width: calc(100% - 350px);
    }
    .navbar-container li {
        padding: 8px;
    }
}

/* small screen */
@media screen and (max-width: 920px) {
    nav {
        padding: 0;
        min-height: 0;
    }

    .navbar-container {
        margin: 0;
        padding: 10px 0;
    }

    .navbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* .navbar-container .logo {
        height: 80px;
        width: auto;
    } */

    .navbar-container {
        flex-wrap: nowrap;
    }

    .navbar-container ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        white-space: normal;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        max-width: none;
        width: 100%;
        padding: 8px 0;
        box-sizing: border-box;
        background-color: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .navbar-container.is-open ul {
        display: flex;
    }

    .navbar-container li {
        margin: 0;
        padding: 0;
        display: block;
    }

    .navbar-container li a {
        display: block;
        padding: 12px 16px;
    }
}

@media screen and (max-width: 1150px) {
    header {
        margin: 0 0;
        padding: 16px 0;
        width: 100%;
        height: 70px;
    }

    .header-container {
        margin: -16px 0;
        padding: 16px 0;


        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .header-container .logo {
        margin: 0;
        padding-left: 16px;
    }

    .header-container ul {
        padding: 0 32px 0 32px;

        position: initial;
        left: initial;
        transform: initial;
        white-space: normal;
        flex-wrap: wrap;
        max-width: none;

    }

    .header-container li {
        padding: 8px;

        display: inline-block;
        
        font-size: 1.25rem;
    }
}



@media only screen and (max-width: 600px) {
    .header-container {
        background-color: red !important;
    }

    .header-container ul {
        background-color: red !important;
    }

    .header-container li {
        background-color: red !important;
    }
}



.frontpage-image-container {
    margin: 0;
    padding: 0;

    & .frontpage-image-wrapper {
        margin: 0 auto;
        padding: 0;

        width: 1320px;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
        aspect-ratio: 16 / 9;

        /* background-color: var(--accent); */
    }
    
    & img {
        width: 100%;
        height: auto;
        object-fit: cover;

        /* box-sizing: border-box; */
        /* border-radius: 16px; */
    }
}

.video-header-container {
    margin: 0 auto;
    padding: 0;

    width: 1320px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.video-header {
    width: 100%;
    height: 100%;
    object-fit: contain;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.full-width-image-header {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-width-image-header img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 500px;
}

.image-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
}

.image-overlay-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

@media only screen and (max-width: 520px) {
    .image-overlay-text h1 {
        font-size: 2rem;
    }
}


.content-container {
    max-width: 1320px;
    width: 100%;
    padding: 40px 80px;
    margin: 0 auto;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212121;
}

@media only screen and (max-width: 920px) {
    .content-container {
        padding: 48px 32px;
    }
}

@media only screen and (max-width: 480px) {
    .content-container {
        padding: 32px 24px;
    }
}

.divider {
    margin: 3rem auto;
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(to right, transparent, gray 15%, gray 85%, transparent);
    border: none;
}


/* Partnership page: */

.zigzag-left, .zigzag-right {
    margin: 0;
    padding: 2rem;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.zigzag-image-container {
    flex: 1 1 0px;
    text-align: center;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zigzag-left img, .zigzag-right img {
    width: 250px;
    max-height: 250px;
    object-fit: contain;
}

.zigzag-text-wrapper {
    flex: 2 1 0px;
    width: 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.zigzag-text-container {
    margin: 0;
    padding: 0.5rem 2rem;
    
    /* width: 0; */
    /* flex: 2 1 0px; */
    position: relative;

    background-color: #F8F8F8;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
}

.zigzag-right .zigzag-text-container {
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
}

.zigzag-left .zigzag-text-container {
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
}

/* Extend background to the right edge for zigzag-left */
.zigzag-left .zigzag-text-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background-color: #F8F8F8;
}

/* Extend background to the left edge for zigzag-right */
.zigzag-right .zigzag-text-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background-color: #F8F8F8;
}

@media only screen and (max-width: 720px) {
    .zigzag-left, .zigzag-right {
        flex-direction: column;
        gap: 1.5rem;
    }

    .zigzag-text-wrapper {
        width: 100%;
    }

    .zigzag-image-container {
        order: 1;
    }

    .zigzag-text-wrapper {
        order: 2;
    }
}

.subtitle {
    /* color: #40AB6A; */
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: bold;

    margin-top: 0;
    margin-bottom: 2rem;
}





.content-image-container {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: top;
    gap: 6rem;
}

.content-image-container .content-image {
    margin: 0;
    padding: 0;

    max-width: 500px;
    flex: 1.5;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.content-image-container .content-image-wrapper {
    position: relative;
    padding: 2rem;
    background-color: #F8F8F8;

    border-top-left-radius: calc(16px + 2rem);
    border-bottom-left-radius: calc(16px + 2rem);
}

/* Extend background to the right edge of the screen */
.content-image-container .content-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background-color: #F8F8F8;
    z-index: -1;
}

.content-image-container .content-image img {
    width: 100%;
    display: block;
    position: relative;
    border-top-left-radius: 16px; 
    border-bottom-left-radius: 16px;
}

.content-image-container .content-image-text {
    flex: 1;
}


@media only screen and (max-width: 1150px) {
    .content-image-container {
        gap: 3rem;
    }

    .content-image-container .content-image {
        max-width: 300px;
        flex: 1;
    }

    .content-image-container .content-image-wrapper {
        margin-right: -5rem;
        padding: 1rem;
        border-top-left-radius: calc(16px + 1rem);
        border-bottom-left-radius: calc(16px + 1rem);
    }
}


@media only screen and (max-width: 920px) {
    .content-image-container {
        flex-direction: column;
    }

    .content-image-container .content-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .content-image-container .content-image-wrapper {
        margin-right: 0;
        border-top-right-radius: calc(16px + 1rem);
        border-bottom-right-radius: calc(16px + 1rem);
    }

    .content-image-container .content-image img {
        border-top-right-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    /* Prevent the full-bleed background extension from creating horizontal scroll on mobile */
    .content-image-container .content-image-wrapper::after {
        display: none;
    }
}


@media only screen and (max-width: 1320px) {
    .video-header-container {
        margin: 0 0 20px 0;
    }
}


/* About page: */

.about-panel-section {
    display: flex;
    --about-image-bleed: 80px;
}

.about-left-panel {
    width: 50%;
    background-color: #F0F0F0;
    position: relative;
    border-radius: 0 64px 0 0;
}

.about-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -9999px;
    background-color: #F0F0F0;
    border-radius: 0 64px 0 0;
    z-index: -1;
}

.about-left-panel-img {
    padding: 2rem 2rem 2rem 0;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: right;
    box-sizing: border-box
}

.about-right-panel {
    width: 50%;
}

.about-left-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(64px - 2rem);
}

@media only screen and (min-width: 921px) {
    .about-left-panel-img img {
        width: calc(100% + var(--about-image-bleed));
        margin-left: calc(-1 * var(--about-image-bleed));
        max-width: none;
    }
}

.about-right-panel-text {
    padding: 2rem 4rem;
    max-width: 600px;
}

@media only screen and (max-width: 1150px) {
    .about-right-panel-text {
        padding: 2rem 0 2rem 2rem;
    }
}

@media only screen and (max-width: 920px) {
    .about-panel-section {
        flex-direction: column;
    }

    /* Put text first, then the gray image panel */
    .about-right-panel {
        width: 100%;
        order: 1;
    }

    .about-left-panel {
        width: 100%;
        order: 2;
        background-color: transparent;
        border-radius: 32px 32px 0 0;
    }

    .about-left-panel::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background-color: #F0F0F0;
        border-radius: 32px 32px 0 0;
        z-index: -1;
    }

    .about-right-panel-text {
        padding: 2rem 0;
        max-width: none;
    }

    .about-left-panel-img {
        padding: 1.5rem 0 0 0;
        justify-content: center;
    }
    
    .about-left-panel-img img {
        border-radius: 16px 16px 0 0;
        width: 100%;
        height: auto;
        display: block;
    }
}


.about-full-panel {
    width: 100%;
    background-color: var(--secondary);
    padding: 3rem 0;
    box-sizing: border-box;
    color: white;

    position: absolute;
    left: 0;    
}

.about-full-panel-wrapper {
    margin: 0 auto;
    padding: 0;

    width: 800px;
    max-width: 90%;

    /* text-align: justify;
    text-align-last: center; */
}


/* Results page: */




/* News & Events page: */

.news-events-grid {
    margin-top: 0.5rem;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.news-events-column h2 {
    margin-bottom: 0.5rem;
}

.news-events-item {
    margin: 0;
}

.news-events-title {
    margin: 0 0 0.5rem 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text-color);
}

.news-events-description {
    margin: 0 0 1rem 0;
    color: var(--text-color-soft);
}

.news-events-button {
    margin: 1rem 0 0.5rem 0;
    padding: 0.75rem 2rem;

    display: inline-block;
    border-radius: 8px;

    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.news-events-button:hover {
    background-color: var(--primary);
    color: white;
}

.news-events-divider {
    margin: 1.5rem 0 2rem 0;
    width: 100%;
    height: 1px;
    border: none;
    background-color: var(--text-light-color);
}

.news-events-item:last-child .news-events-divider {
    display: none;
}

@media only screen and (max-width: 900px) {
    .news-events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}





/* Contact page: */

.contact-details-wrapper {
    width: 100%;
    background-color: #F8F8F8;
    padding: 3rem 0;
}

.contact-details-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 3rem;
    margin: 0 auto;
    max-width: 1300px;
    padding: 2rem;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-section {
    flex: 1;
    padding: 1rem;
}

.contact-section h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-section a {
    color: var(--primary);
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

.contact-separator {
    width: 2px;
    background-color: #ddd;
    margin: 0 1rem;
}

@media only screen and (max-width: 768px) {
    .contact-details-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-separator {
        width: 100%;
        height: 2px;
        margin: 1rem 0;
    }

    .contact-section {
        text-align: center;
        line-height: 1.0;
    }
}




footer {
    margin: 0 0;
    padding: 50px 0;
    width: 100%;

    align-items: center;

    background-color: #009CDC;
    color: #FFFFFF;
}

.footer-content {
    margin: 0 auto;
    padding: 0 80px;

    display: flex;
    justify-content: space-between;
    
    box-sizing: border-box;
    max-width: 1320px;
}

.footer-content > div {
    flex: 1;
}

.footer-left {
    margin: auto 0;
}

.footer-right p {
    margin-left: auto;
    
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-style: italic;
}

.footer-left img, .footer-right p {
    width: 80%;
}