
/* OPPORTUNITY PAGE (no collaborations, in their .css */

.page-opportunity .field__label {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 1.5em;
    margin-bottom: 0;
}

.page-opportunity .field--name-field-related-programmes { margin-top: 8rem; }

.page-opportunity .field--name-field-related-programmes .field__label { margin-bottom: 2rem; }

.page-opportunity .region-content { position: relative; }

.page-opportunity .field--name-field-contacts p { margin: .5rem 0 0 0; }


/* related opportunities */
.page-opportunity .block#block-views-block-opportunity-sticky {
    max-width: 370px;
    min-width: 370px;
    width: 370px;
    position: absolute;
    top: 0;
    right: 100px;
    display: none;
}
.page-opportunity .block#block-views-block-opportunity-sticky .view-display-id-block_2 {
    margin-top: 0;
}

.page-opportunity .block#block-views-block-opportunity-sticky.fixed-top {
    position: fixed;
    top: 130px;
    bottom: unset;
}

.page-opportunity .block#block-views-block-opportunity-sticky.fixed-bottom {
    position: absolute;
    top: unset;
    bottom: 0;
}


/* fields of research */
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research {
    margin-top: 3rem;
    margin-bottom: 6rem;
}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field__label {
    margin-bottom: 1rem;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field-of-research-wrapper {
    position: relative;
    padding: 1.5rem 8rem 1.5rem 5rem;
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--border_gray);
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .section-content .field--name-body {
    margin: 0;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field-of-research-wrapper h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 300;
    color: var(--text_color);
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field-of-research-wrapper h4::before {
    content: '';
    position: absolute;
    top: calc(3rem - .5em);
    left: 2.5rem;
    transform: translateX(-50%) translateY(-50%);
    width: 1.7rem;
    height: 1.7rem;
    background-color: #FFF;
    box-shadow: inset 0px 0px 0px 2px var(--border_gray);
    display: block;
    font-size: 16px;
    z-index: 1;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section {
    position: absolute;
    top: calc(3rem - .5em);
    left: 2.5rem;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0;
    display: block;
    pointer-events: none;
}

/* .page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/home"],
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/other"] { background-color: transparent;} */
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/hecap"] { background-color: var(--hecap);}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/cmsp"] { background-color: var(--cmsp);}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/math"] { background-color: var(--math);}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/sti"] { background-color: var(--sti);}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/qls"] { background-color: var(--qls);}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field--name-field-ref-section a[href="/https/e-applications.ictp.it/esp"] { background-color: var(--esp);}


.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .field-of-research-wrapper > button {
    position: absolute;
    top: calc(2.25rem - .5em);
    right: 1rem;
    transform: translateX(-50%) translateY(-50%);
    transform-origin: center center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border_gray);
    border-radius: 50%;
    background-color: transparent;
    background-image: url(../../assets/icons/icon_plus.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
    font-size: 0;
    transition: all 300ms ease;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .open > button {
    transform: translateX(-50%) translateY(-50%) rotateZ(45deg);
    transition: all 300ms ease;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .section-content {
    overflow: hidden;
    max-height: 0px;
    transition: all 800ms ease-out;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .open .section-content {
    max-height: 3000px;
    transition: all 800ms ease-in;
}

/* close accordion button */
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .section-content button {
    margin: 1rem auto 0 auto;
    background-color: transparent;
    border-radius: 2rem;
    padding: .5rem 1.5rem .5rem 2.25rem;
    border: 1px var(--border_gray) solid;
    display: block;
    position: relative;
    transition: background-color 300ms ease;
}
.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .section-content button:hover {
    background-color: var(--border_gray);
    transition: background-color 300ms ease;
}

.page-opportunity .node--type-opportunity.node--view-mode-full .node__content > .field--name-field-ref-field-of-research .section-content button::before {
    content: '';
    position: absolute;
    bottom: .55rem;
    left: 1rem;
    width: .5rem;
    height: .5rem;
    background-image: url(../../assets/icons/icon_close.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    transform: translateY(-50%);
    transform-origin: center center;
}

@media (min-width: 1700px) {
    .page-opportunity .block#block-views-block-opportunity-sticky { display: block; }
}

