@import url("menu.css");

/* skiplinks */
.a-skiplink {
    background-color: #fff;
    border: 2px solid #999;
    display: block;
    left: -1000em;
    padding: .5em;
    position: absolute;
    z-index: 10;
    transition: none;
}
.a-skiplink:focus-visible {
    left: 1em;
    top: 126px;
    z-index: 1000;
}

body {
    line-height: 150%;
    margin: unset;
    font-family: var(--font-family);
    font-size: var(--font-body);
    font-weight: 400;
    color: var(--black);
    margin: 0;
}

#aspnetForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

input:focus,
input:focus-visible,
button:focus,
button:focus-visible{
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 110%;
}

h1,
h2,
h3,
p,
ul {
    margin: unset;
}

h1 {
    font-size: var(--font-h1);
}

h2 {
    font-size: var(--font-h2);
}

h3,
.h3-style {
    font-size: var(--font-h3);
}

*, :before, :after {
    box-sizing: border-box;
}

a {  
    &.external-link {
        &::after {
            content: '\f08e';
            font-family: "Font Awesome 6 Pro";
            display: inline-block;
            font-size: 11px;
            width: 14px;
            color: var(--black);
            position: relative;
            left: 5px;
        }
    }
}

input:not(#ctl00_QsPH_ctrlLogin_btnLogin, #ctl00_QsPH_ctrlLogin_btnABFAADLogin2, #ctl00_QsPH_ctrlLogin_btnPasswordRequestCancel, #ctl00_QsPH_ctrlLogin_btnPasswordRequest) {
    width: 100%;
    border: 1px solid var(--darkGrey);
    border-radius: 3px;
    padding: 12px 6px;
}

.column {
    display: flex;
    flex-direction: column;
}

#qs-container {
    max-width: unset;
}

.row {
    display: flex;
    flex-direction: row;
}

.column,
.row {
    &.space-between {
        justify-content: space-between;
    }

    &.align-center {
        align-items: center;
    }
}

.column-padding {
    padding: 80px 32px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}


.b_btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 3px;
    white-space: nowrap;
    width: fit-content;
    cursor: pointer;

    &::after,
    &::before {
        content: '';
        font-weight: 700;
        font-family: "Font Awesome 6 Pro";
        color: var(--white);
        display: none;
        align-items: center;
        height: 20px;
    }

    &.white {
        background-color: var(--white);
        color: var(--darkBlue);

        &::after {
            color: var(--darkBlue);
            display: flex;
        }

        &.arrow {
            &::after {
                content: '\f178';
                color: var(--darkBlue);
                display: flex;
            }

            &::before {
                display: none;
            }
        }
    }

    &.blue {
        background-color: var(--darkBlue);
        color: var(--white);

        &::before {
            display: none;
        }

        &.chevron {
            &::after {
                content: '\f078';
                color: var(--white);
                display: flex;
            }

            &::before {
                display: none;
            }
        }

        &.arrow {
            &::after {
                content: '\f178';
                color: var(--white);
                display: flex;
            }

            &::before {
                display: none;
            }
        }

        &.back-chevron {
            &::before {
                content: '\f053';
                color: var(--white);
                display: flex;
            }

            &::after {
                display: none;
            }
        }

        &:hover {
            background-color: var(--darkerBlue);
        }
    }
}

#ctl00_myBreadcrum_breadcrum {
    display: none;
}

/* intro block styling */
.intro {
    max-width: 1500px ;
    margin: 0 auto;

    .intro__content {
        width: 100%;
        max-width: 519px;
        gap: 32px;
        
        p {
            max-height: 500px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 8;
            -webkit-box-orient: vertical;
        }
    }

    p {
        font-size: clamp(1.125rem, 0.75rem + 1vw, 1.375rem);
    }

    .intro__image {
        img {
            width: 100%;
            max-width: 800px;
            max-height: 544px;
        }
    }
}

/* search styling */
#search {
    display: flex;
    flex-direction: column;
    gap: 16px;

    span.search-text {
        font-weight: 600;
        font-size: 20px;
        line-height: 140%;
    }

    ul {
        border: 2px solid var(--darkBlue);
        border-top: none;

        .of-ell {
            display: flex;
            align-items: center;

            i {
                font-family: 'Font Awesome 6 Pro';
            }
        }
    }
}

#search .b_search-container {
    display: flex;
    position: relative;

    .ac-s-input-container {
        ::before {
            display: none;
        }
    }

    .b_search-wrapper {
        width: 100%;
    }

    .btn-color {
        background-color: var(--darkBlue);
        color: var(--white);
        border-radius: 0 3px 3px 0;
    }

    .br-large {
        border-radius: 3px;
    }

    .ac-s-container > .ac-s-input-container > button > span {
        font-size: 18px;
        text-transform: lowercase;
    }

    input {
        border-radius: 3px;
        background-color: transparent;
        padding-left: 12px;
    }

    .ac-s-input_label {
        display: flex;
    }

    .ac-s-container>.ac-s-input-container {
        outline: unset;
        overflow: visible;
        height: 60px;

        input {
            border: 1px solid var(--darkGrey);
        }
    }

    .ac-s-container>.ac-s-input-container label {
        margin-left: 12px;
        margin-top: 16px;
        font-size: 18px;

        &.active {
            margin-top: 0;
            font-size: 14px;
        }
    }

    .ssr-ac-container {
        position: relative;
        width: 100%;
    }
}

/* homepage styling */
.nieuws,
.studies {
    background-color: var(--lightBlue);

    .nieuws__wrapper,
    .studies__wrapper {
        max-width: 1600px;
        width: 100%;
        margin: 0 auto;
    }

    .container_ballroomlist,
    .ballroomlisttitle {
        display: flex;
        flex-direction: column;
        gap: 40px;

        img {
            width: 100%;
        }
    }

    li {
        display: flex;
        flex-direction: column;
        height: 100%;
        background-color: var(--white);

        &.morelink {
            flex-direction: row;
        }
    }
}

ul.ballroomitemlist {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

ul.newspreviews { 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

ul.ballroomitemlist,
ul.newspreviews {
    display: grid;    
    gap: 40px;
    list-style-type: none;
    padding-left: unset;

    li {
        position: relative;
    }

    .newslistitem__image,
    .documentlistitem__image {
        display: flex;
        position: relative;

        &::before {
            content: url(images/newspaper.svg);
            position: absolute;
            display: block;
            top: 16px;
            left: 16px;
            background-color: var(--black);
            padding: 5px;
            height: 30px;
            width: 30px;
            border-radius: 50px;
            font-size: 13px;
        }
    }

    .documentlistitem__image {
        &::before {
            content: url(images/book-open-regular-full.svg);
            background-color: var(--darkBlue);
        }
    }

    h3 {
        margin: unset;
        background-color: var(--white);
        padding: 24px 24px 16px 24px;
        line-height: 140%;
        font-size: 20px;
        font-weight: 600;

        a {
            text-decoration: none;
        }
    }

    .listitem__preview {
        padding-bottom: 16px;

        p {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
        }
    }

    a:not([href="/news"]) {
        text-decoration: none;
        color: #000000;

        &:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            top: 0;
        }
    }

    .poster {
        background-color: var(--white);
        padding: 0 24px 16px 24px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .meta {
        display: none;
    }

    p {
        margin: unset;
    }

    .poster:hover {
        .newslistitem__readmore::after {
            display: flex;
            transition: all 0.2s ease-in-out;
        }
    }

    .newslistitem__readmore {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;

        &::after {
            content: '\f178';
            font-weight: 700;
            font-family: "Font Awesome 6 Pro";
            color: var(--orange);
            height: 20px;
            width: 20px;
            font-size: 20px;
            display: flex;
            transition: all 0.2s ease-in-out;
            opacity: 0;
        }

        &:hover::after {
            transition: all 0.2s ease-in-out;
            opacity: 1;
        }
    }

    .newslistitem__readmore a {
        color: var(--darkBlue);
        font-weight: 700;
    }

    .morelink {
        background-color: var(--darkBlue);
        color: var(--white);
        width: fit-content;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 3px;
        padding: 12px;
        transition: all 0.3s ease-in-out;

        &:hover {
            transition: all 0.3s ease-in-out;
            background-color: var(--darkerBlue);

        }

        a {
            color: var(--white);
            text-decoration: none;
            font-weight: 700;
        }

        &::after {
            content: '\f178';
            font-weight: 700;
            font-family: "Font Awesome 6 Pro";
            color: var(--white);
            display: flex;
            align-items: center;
            height: 20px;
            width: 20px;
        }
    }
} 

.thematisch {
    max-width: 1664px;
    margin: 0 auto;

    .tileset#ctl00_QsPH_thematisch_tileset {
        display: flex;
        flex-direction: column;
        gap: 40px;

        a {
            text-decoration: none;
        }
    }

    h2 {
        margin: unset;
    }

    .b_cat-intro {
        display: none;
    }

    .tileset--content--items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
        gap: 40px;
    }

    a {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        width: 100%;
        position: relative;
        
        img {
            transform: scale(1);
            transform-origin: top;
            transition: all 0.3s ease-in-out;
        }

        &:hover {
            img {
                transform: scale(1.1);
                transition: all 0.3s ease-in-out;
            }
        }
    }

    .tile {
        position: relative;
        max-height: 324px;
        background-color: var(--lightBlue);
        display: flex;
        justify-content: space-between;

        a {
            overflow: hidden;
        }

        img {
            width: 470px;
            max-height: 344.604px;
        }

        .tile-section-name {
            padding-top: 16px;
            width: 100%;
            text-align: center;
            color: var(--black);
            font-size: 22px;
        }
    }
}

#studies.studies {
    background-color: var(--darkBlue);

    h2 {
        color: var(--white);
    }

    .tileset--content--name {
        display: none;
    }

    .studies__wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .tileset {
        display: flex;
        flex-direction: column;
        gap: 40px;

        /* after the forth child apply a display none */
        .tileset--content--items > :nth-child(n+5) {
            display: none;
        }
    }

    .b_cat-intro {
        display: none;
    }

    .b_btn {
        width: fit-content;
    }

    .tile-section-icon {
        display: flex;
        position: relative;

        &::before {
                content: url(images/book-open-regular-full.svg);
                position: absolute;
                display: block;
                top: 16px;
                left: 16px;
                background-color: var(--darkBlue);
                padding: 5px;
                height: 30px;
                width: 30px;
                border-radius: 50px;
                font-size: 13px;
                z-index: 1;
            }

        img {
            display: flex;
            position: relative;
            width: 100%;
        }
    }

    .tile__content--wrapper {

        .tile-button {
            display: flex;
            justify-content: space-between;
            align-items: center;

            a {
                text-decoration: none;
                font-weight: 700;
            }

            &::after {
                content: '\f178';
                font-weight: 700;
                font-family: "Font Awesome 6 Pro";
                color: var(--orange);
                height: 20px;
                width: 20px;
                font-size: 20px;
                display: flex;
                transition: all 0.3s ease-in-out;
                opacity: 0;
            }
        }

        &:hover{
            .tile-button::after {
                transition: all 0.3s ease-in-out;
                opacity: 1;
            }
        }

        a::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            top: 0;
            z-index: 2;
        }
    }

    .tileset--content--items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 40px;
        list-style-type: none;
        padding-left: unset;

        .tile {
            background-color: var(--white);
            position: relative;
        }

        .tile__content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 16px;
        }

        .tile__content h3,
        .tile__content h2 {
            font-size: 20px;
            font-weight: 600;
            line-height: 140%;
            color: var(--black);
        }

        .tile-section-text {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
        }

        .tile__content--wrapper {
            padding: 24px;
            height: 60%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        h3 a {
            text-decoration: none;
        }

        .read-more {
            color: var(--darkBlue);

            a {
                color: var(--darkBlue);
                font-weight: 700;
            }

            &::after {
                color: var(--darkBlue);
            }
        }
    }
}

.updates {
    background-color: var(--lightBlue);

    .updates__wrapper {
        max-width: 1500px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .updates__list--container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
        gap: 80px;
    }

    .updates__list {
        max-width: 425px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;

        h3 {
            line-height: normal;
        }

        ul {
            padding-left: unset;
            list-style-type: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        a {
            color: var(--darkBlue);
            text-underline-offset: 2px;
        }

        li {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--darkBlue);

            a:hover {
                text-decoration: none;
            }

            &::before {
                content: "\f054 ";
                font-family: "Font Awesome 6 Pro";
                display: flex;
                height: 27px;
                width: 8px;
                color: var(--darkBlue);
                font-size: 14px;
                align-items: center;
            }
        }
    }
}

.databank {
    .databank__wrapper {
        max-width: 1030px;
        background-color: var(--lightBlue);
        margin: 0 auto;
        padding: 32px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .databank__content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-width: 684px;
        width: 100%;

        p {
            font-size: 22px;
        }
    }
}

/* studies page */
.page_studies #studies.studies {
    background-color: var(--white);

    .tile {
        background-color: var(--lightBlue);
    }

    .tileset--content--items > :nth-child(n+5) {
        display: block;
    }
}

/* nieuwspagina styling */
#newsoverview {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;

    #ctl00_QsPH_ctl00_newspreviews li:nth-child(n+9) {
        display: none;
    }

    #ctl00_QsPH_ctl00_newspreviews.expanded li {
        display: flex;
    }

    #newsarchive {
        display: none;
    }

    .nieuwsitem  {
        background-color: var(--lightBlue);
        display: flex;
        flex-direction: column;
        position: relative;

        .nieuwscontrol a::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            top: 0;
            z-index: 2;
            cursor: pointer;
        }

        &:hover {
            .nieuwscontrol::after {
                opacity: 1;
            }
        }

        h3 {
            background-color: transparent;
            padding: unset;
            order: 3;
            background-color: var(--lightBlue);

            a {
                color: var(--black);
                text-decoration: none;
                padding: 24px 24px 16px 24px;
                display: flex;
            }
        }

        .nieuwsdatum,
        .datumseparator {
            display: none;
        }

        .newslistitem__image {
            order: 1;
        }

        .newslistitem__image img {
            width: 100%;
        }

        .nieuwstitel {
            order: 2;
            padding: 24px 24px 16px 24px;
        }

        .newslistitem__preview  {
            order: 3;
            padding: 0 24px 16px 24px;
            
            p {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 5;
                -webkit-box-orient: vertical;
            }
        }

        .poster {
            display: flex;
            order: 3;
        }

        .nieuwscontrol {
            order: 4;
            padding: 0 24px 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;

            &::after {
                content: '\f178';
                font-weight: 700;
                font-family: "Font Awesome 6 Pro";
                color: var(--orange);
                height: 20px;
                width: 20px;
                font-size: 20px;
                display: flex;
                transition: all 0.3s ease-in-out;
                opacity: 0;
            }
        }

        a {
            color: var(--darkBlue);
            font-weight: 700;
        }
    }
}

#nieuws {
    .read-more__wrapper {
        width: fit-content;
        margin: 0 auto;
    }

    a.news-link {
        width: 100%;
        background-color: var(--lightBlue);
        color: var(--darkBlue);
        border: 1px solid var(--darkBlue);
        border-radius: 5px;
        display: flex;
        padding: 16px;
        align-items: center;
        gap: 16px;
        margin-top: 8px;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;

        &::before {
            content: '\f0c1';
            font-weight: 700;
            font-family: "Font Awesome 6 Pro";
            color: var(--white);
            background-color: var(--darkBlue);
            border-radius: 50px;
            width: 30px;
            height: 30px;
            padding: 7px 5px;
            font-size: 16px;
            display: flex;
            align-items: center;
        }

    }
}

/* single niews pagina */
.ballroom_nieuws {
    #nieuws {
        max-width: 900px;
        margin: 0 auto;
        padding: 80px 10px;
    }

    .b_btn {
        margin-top: 40px;
    }

    #ctl00_QsPH_ctl00_date {
        padding: 10px 0;
        color: var(--grey);
    }

    #preface_container {
        img {
            max-height: 400px;
            height: 100%;
        }
    }

    #ctl00_QsPH_ctl00_author {
        display: none;
    }

    #ctl00_QsPH_ctl00_image {
        margin-bottom: 40px;
        display: flex;
    }

    #ctl00_QsPH_ctl00_preface {
        margin-bottom: 16px;
    }

    #ctl00_QsPH_ctl00_article {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

/* custompage styling */
#custompagecontent {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;

    h1, h2, h3, p {
        margin-top: 0;  
        margin-bottom: 12px;
    }

    p + h2, p + h3 {
        margin-top: 32px;
    }

    ul {
        padding-left: 20px;
    }

    a {
        color: var(--darkBlue);

        &:hover {
            text-decoration: none;
        }
    }
}

/* login pagina styling */
.login-control-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;

    .loginfield {
        display: flex;
        gap: 25px;
    }

    #ctl00_QsPH_ctrlLogin_btnLogin, 
    #ctl00_QsPH_ctrlLogin_btnABFAADLogin2, 
    #ctl00_QsPH_ctrlLogin_btnPasswordRequestCancel, 
    #ctl00_QsPH_ctrlLogin_btnPasswordRequest {
        border: unset;
    }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
    #ballroom .row {
        flex-direction: column;
        gap: 25px;
    }

    #thematisch {
        .tile img {
            width: 100%;
        }
    }

    .updates {
        .updates__list--container {
            flex-direction: column;
        }

        .updates__list {
            margin-top: 16px;
        }
    }
}

@media screen and (min-width: 953px) and (max-width: 1263px) {
    .nieuws .morelink {
        grid-row: 4;
    }
}

@media screen and (min-width: 1573px) {
    .nieuws .morelink {
        grid-row: 2
    }
}

@media screen and (max-width: 480px) {
    #ballroom {
        .b_btn {
            white-space: unset;
        }
    }

    #search .b_search-container {
        .ac-s-container>.ac-s-input-container label {
            max-width: 70%;
            margin-top: 5px;
            font-size: 18px;

            &.active {
                font-size: 10px;
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    #studies.studies {
        & .tileset--content--items {
            .tile__content--wrapper {
                height: unset;
            }
        }
    }

    .updates {
        .updates__list--container {
            
            gap: 40px;
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media screen and (max-width: 600px) {
    ul.ballroomitemlist,
    ul.newspreviews,
    .thematisch .tileset--content--items,
    #studies.studies .tileset--content--items {
        grid-template-columns: repeat(1, 1fr);
    }

    .updates {
        .updates__list--container {
            gap: unset;
            row-gap: 80px;
            grid-template-columns: repeat(1, 1fr);
        }
    }
}

