:root {
    --highlight-sky: #ceedf6;
    --neutral-grey: #e1e1de;
    --dark-grey: #8a8a8a;
    --primary-blue: #00196e;
    --white: #ffffff;
    --black: #222;
    --secondary-gold: #ffad1d;
}

@font-face {
    font-family: 'Halyard Display Light';
    src: url('../css/fonts/HalyardDisplayLight.woff2') format('woff2'),
        url('../css/fonts/HalyardDisplayLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halyard Display Book';
    src: url('../css/fonts/HalyardDisplayBook.woff2') format('woff2'),
        url('../css/fonts/HalyardDisplayBook.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* sidebar */

.sidebar .sidebar__scroll {
    overflow-y: auto;
    padding-bottom: 80px;
    height: 100%;
}

.sidebar .sidebar__scroll::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.sidebar .sidebar__menu {
    list-style: none;
    padding-left: 20px;
}

.sidebar .sidebar__menu li a {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #8a8a8a;
    margin-bottom: 12px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s linear;
}

.sidebar .sidebar__custom {
    position: relative;
    height: calc(100% - 150px);
}

.sidebar .sidebar__custom::after {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 100%);
    content: '';
    display: block;
    height: 80px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.sidebar .sidebar__custom .sidebar__custom-header {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #8a8a8a;
    margin-bottom: 16px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s linear;

    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .sidebar__custom .sidebar__custom-header img {
    display: none;
    transform: rotate(-90deg);
    transition: all 0.3s linear;
}

.sidebar .sidebar__custom .sidebar__custom-header.show img {
    display: block;
}

.sidebar .sidebar__custom .sidebar__custom-header.active img {
    transform: rotate(90deg);
    transition: all 0.3s linear;
}

.sidebar .sidebar__custom .sidebar__custom-item:not(:first-child) .sidebar__menu {
    display: none;
}

.sidebar .sidebar__sections {
    margin-bottom: 0px;
}


.sidebar__sections.not-scroll {
    margin-bottom: 60px;

}

.sidebar .sidebar__sections--wrap .sidebar__sections--item a {
    color: #00196e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .sidebar__sections--wrap .sidebar__sections--item ul {
    list-style: none;
    padding-left: 20px;
}

.sidebar .sidebar__sections--wrap .sidebar__sections--item a img {
    display: none;
}

.sidebar .sidebar__sections--wrap .sidebar__sections--item.active a img {
    transform: rotate(-180deg);
    transition: all 0.3s linear;
}

.sidebar .sidebar__sections--wrap .sidebar__sections--item.show a img {
    display: block;
    transition: all 0.3s linear;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
}

.sidebar .sidebar__buttons {
    padding-top: 12px;
    border-top: 1px solid #e1e1e1;
}



.desc {
    color: var(--Black, #222);
    font-family: 'Halyard Text';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 10px;
}

.desc p {
    margin-bottom: 10px;
}

.our-mission__text p:not(:last-child) {
    margin-bottom: 32px;
}

/* Sidebar */

.sidebar {
    padding: 80px 29px 36px 0;
}


.sidebar .sidebar__sections--item a {
    margin-bottom: 16px;
    /* font-family: 'Halyard Text'; */
}


.sidebar .sidebar__buttons {
    border-top: 1px solid #E1E1DE;
    padding-top: 12px;
}

.sidebar__buttons .sidebar__buttons--link {
    /* font-family: 'Halyard Text'; */
    letter-spacing: 0px;
    padding: 8px 20px;
}


.sidebar .sidebar__sections--title {
    font-style: normal;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: 'halyard-display', sans-serif;
}


/* .sidebar__buttons .sidebar__buttons--link {
    font-family: 'Halyard Text';
} */


.sidebar .sidebar__sections--item a {
    font-size: 16px;
}


.sidebar__buttons--title {
    padding-bottom: 12px;
    font-family: 'halyard-display';
}

.sidebar .sidebar__sections--item a {
    line-height: 20px;
    font-family: 'Halyard Text';
    color: var(--primary-blue);
}

.breadcumb__global {
    z-index: 4;
}

/* Our Mission */
.our-mission__text {
    color: var(--primary-blue);
    font-family: 'garamond-premier-pro';
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    padding-bottom: 16px;
}

.our-mission__subtext {
    font-size: 24px;
    font-weight: 350;
    color: var(--primary-blue);
    /* font-family: 'garamond-premier-pro'; */
    font-family: 'Halyard Display Book';
    font-variant-numeric: lining-nums proportional-nums;
    line-height: 32px;
    font-style: normal;
    padding-bottom: 36px;
}

.our-mission__image img {
    width: 100%;
    height: 396px;
    object-fit: cover;
}

.title {
    color: var(--primary-blue);
    font-variant-numeric: lining-nums proportional-nums;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 54px;
    margin: 36px 0;
    padding-right: 50px;
}

/* President */

.president-office__wrapper {
    width: 100%;
    position: relative;
}

.president-office__wrapper .president-office__subheading {
    color: var(--black);
    font-family: 'Halyard Display Book', 'sans-serif';
    font-size: 24px;
    font-style: normal;
    font-weight: 350 !important;
    line-height: 32px;
    font-variant-numeric: lining-nums proportional-nums;
}

.content__container h3 {
    max-width: 100%;
}

.president-office__wrapper::after {
    display: block;
    z-index: 2;
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(0deg,
            #fff 9.9%,
            rgba(255, 255, 255, 0.85) 74.48%,
            rgba(255, 255, 255, 0) 100%);
}

.president-office__boxtext .president-office__text {
    color: var(--Black, #222);
    /* Body/Large */
    font-family: 'Halyard Text';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 10px;
}

.president-office__button {
    width: 60%;
    border: 1px solid var(--primary-blue);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: all 0.3s linear;
    margin: 24px 0;
}

.president-office__button .president-office__button-text:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: all 0.3s linear 0s;
}

.president-office__button-text {
    color: var(--primary-blue);
    font-family: 'Halyard Text';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding: 8px 0px;
    display: block;
}

.president-office__image img {
    width: 100%;
    height: 396px;
    object-fit: cover;
}

.president-office__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    bottom: 0px;
    left: 0;
    right: 0;
}

.president-office__btn:hover {
    cursor: pointer;
}

.president-office__textexpand {
    color: var(--primary-blue);
    leading-trim: both;
    text-edge: cap;
    font-family: 'Halyard Text';
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    /* 88.889% */
}

.president-office__text:nth-child(n + 10) {
    display: none;
}

.president-office__button,
.president-office__image {
    display: none;
}

.section-content.expanded .president-office__wrapper::after {
    display: none;
}

.section-content.expanded .president-office__btn {
    bottom: -42px;
    margin-top: 40px;
    left: 0;
    right: 0;
}

.section-content.expanded .president-office__text,
.section-content.expanded .president-office__button,
.section-content.expanded .president-office__image {
    display: block;
}

.section-content.expanded .president-office__iconexpand {
    rotate: 180deg;
}

.president-office__boxtext {
    overflow: hidden;
    transition: all 0.3s linear;
}

/* History tree */

.history-tree__boxtext .history-tree__text {
    color: var(--Black, #222);
    /* Body/Large */
    font-family: 'Halyard Text';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 10px;
}

.history-tree__timeline {
    margin-top: 36px;
}

.history-tree__linebox .history-tree__line {
    stroke-width: 2px;
    stroke: var(--primary-blue);
    position: relative;
}

.history-tree__linebox {
    border-left: 2px solid var(--primary-blue);
    height: calc(100% + 36px);
    flex-shrink: 0;
    position: relative;
    padding-bottom: 36px;
}

.history-tree__linebox::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: -1px;
    z-index: 1;
    left: -1px;
    transform: translateX(-50%);
}

.history-tree__linebox::after {
    content: '';
    position: absolute;
    height: 0px;
    width: 0px;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 15px solid var(--primary-blue);
    bottom: -2px;
    transform: translateX(-50%);
    left: -1px;
}

.history-tree__card {
    position: relative;
    width: 375px;
    height: auto;
    padding-left: 24px;
    color: var(--primary-blue);
    max-width: 400px;
}

.history-tree__cardcontent {
    display: flex;
    flex-direction: column;
    margin-bottom: 36px;
}

.history-tree__cardcontent:hover .history-tree__cardcontent-year {
    color: var(--secondary-gold);
}

.history-tree__cardcontent .history-tree__cardcontent-year {
    position: relative;
    color: var(--Primary-Blue, #00196e);
    font-family: 'Halyard Text';
    font-size: 22px;
    font-style: normal;
    font-weight: 490 !important;
    line-height: 28px;
    margin-bottom: 4px;
    display: flex;
    opacity: 0;
    align-items: center;
    /* animation: fadeIn 4s infinite; */
    font-variant-numeric: lining-nums proportional-nums;
}

.history-tree__cardcontent .history-tree__cardcontent-text {
    color: var(--Primary-Blue, #00196e);
    /* width: 375px; */
    /* Functional text/CTA Text */
    font-family: 'Halyard Text';
    font-size: 18px;
    font-style: normal;
    font-weight: 490 !important;
    line-height: 24px;

    /* 133.333% */
}

.history-tree__cardcontent-text {
    position: relative;
}

.history-tree__cardcontent-overlay {
    position: absolute;
    inset: 0;
    background-color: white;
    left: 0%;
}

.history-tree__cardcontent .history-tree__cardcontent-year.active {
    animation: fadeIn 3s forwards;
}

.history-tree__cardcontent-overlay.active {
    animation: scrollRight 1s forwards;
}

@keyframes scrollRight {
    from {
        left: 0%;
    }

    to {
        left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Timeline dot  */
.history-tree__cardcontent .history-tree__cardcontent-year_box::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    left: -1px;
    z-index: 2;
    transform: translateX(-50%);
}

.history-tree__cardcontent .history-tree__cardcontent-year_box {
    display: flex;
    align-items: center;
}

/* Timeline dot  */

/* .history-tree__cardcontent h3::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: -1px;
    left: -30px;
    z-index: 1;
} */

.james__news .james__news--item figure {
    margin: 0;
}

.amount {
    margin-top: 120px;
}

.james__news {
    padding-top: 0;
}

.president-office__boxtext p {
    margin-bottom: 10px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    font-family: 'Halyard Text';
}

/* Animation */

.history-tree__timeline {
    opacity: 0;
    transform: translateX(-2px);
}

.history-tree__timeline.animate {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 2s ease-in, transform 2s ease-in;
}

.type-block.teaser .block-inner h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.james__connect {
    padding: 0 0 120px 0;
}

.happening {
    padding-bottom: 60px;
}

.amount {
    padding: 100px 0 160px;
}


.happening {
    padding-bottom: 0px;
}

/* Tablet */

@media screen and (max-width: 767px) and (min-width: 576px) {
    /* .body__container {
        max-width: 552px;
        padding: 0 20px;
        margin: 0 auto;
    } */

    .hero__banner {
        position: relative;
    }

    .hero__banner::after {
        display: block;
        z-index: 1;
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 75%;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.64) 66.15%,
                rgba(0, 0, 0, 0.85) 100%);
        background-blend-mode: multiply;
    }

    .hero__content {
        z-index: 3;
    }

    .content__container {
        padding-top: 84px;
    }

    .tablet-redirect {
        color: var(--Dark-Grey, #8a8a8a) !important;
        /* Label/Large */
        font-family: 'Halyard Text';
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .our-mission__text {
        color: var(--Primary-Blue, #00196e);
        /* Overline/Medium */
        font-family: 'garamond-premier-pro';
        font-size: 22px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px;
        padding-bottom: 0;
        /* 118.182% */
    }

    .our-mission__subtext {
        color: var(--Primary-Blue, #00196e);
        font-family: 'Halyard Display Book';
        font-size: 22px;
        font-style: normal;
        font-weight: 350;
        line-height: 28px;
        /* 127.273% */
    }

    .our-mission__boxtext .our-mission__text:nth-child(2) {
        margin-bottom: 16px;
    }

    .our-mission__subtext {
        display: block;
    }

    .title {
        padding-right: 0px;
        margin-top: 40px;
        font-family: 'garamond-premier-pro';
        font-size: 40px;
        font-style: normal;
        font-weight: 400;
    }

    .our-mission__image img {
        height: auto;
    }

    /* .president-office__wrapper .president-office__subheading {
            display: none;
        } */

    .president-office__btn {
        bottom: 0px;
        left: 0px;
        right: 0;
    }

    .section-content.expanded .president-office__btn {
        bottom: -42px;
    }

    .amount {
        margin-top: 40px;
        padding: 0 0 100px;
    }

    .james__news .sub_title {
        color: var(--Primary-Blue, #00196e);
        text-align: center;
        /* Overline/Medium */
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 125% */
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .james__news .title_block {
        color: var(--Primary-Blue, #00196e);
        text-align: center;
        font-size: 40px;
        font-style: normal;
        font-weight: 400;
        line-height: 48px;
        max-width: 100%;
        margin: 24px auto 60px;
    }

    .james_row .james_col-4:nth-child(3) {
        display: none;
    }

    .president-office__button {
        width: 55%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .president-office__button .president-office__button-text {
        font-size: 14px;
        line-height: 20px;
        padding: 12px 20px;
    }

    .president-office__image img {
        height: auto;
    }

    .happening .james_row {
        margin-right: -12px;
        margin-left: -12px;
    }

    .happening .james_row>* {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 991px) {

    .sidebar {
        padding: 0px 0px 36px 0;
    }

    .happening .james__news .james__news--list .james_col-4:nth-child(3) {
        display: none;
    }

    .happening .james__news .james__news--list {
        max-width: 85%;
        margin: 0 auto;
    }

    .president-office__wrapper .president-office__subheading {
        font-size: 22px;
        line-height: 28px;
    }

    .sidebar .sidebar__sections {
        /* border-bottom: 1px solid #e1e1de; */
        border-top: 0px;
    }


    .sidebar .sidebar__sections--title {
        margin-bottom: 0px;
    }

    .sidebar__header {
        padding: 16px 32px;
    }

    .sidebar .sidebar__sections {
        padding: 0px 0px 24px 32px;
    }

    .sidebar__sections--title {
        padding: 24px 0px 0px 32px;
    }

    .sidebar .sidebar__buttons {
        padding: 12px 32px 120px;
    }


    .sidebar__buttons--title {
        width: 100%;
    }

    .sidebar .sidebar__buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px solid #e1e1e1;
        gap: 12px;
    }


    .sidebar__buttons .sidebar__buttons--link {
        width: 48%;
        margin-bottom: 24px;
    }

    /* .sidebar.active {
        top: calc(100% - 540px);
    } */



    .sidebar .sidebar__sections {
        margin-bottom: 0px;
    }


    .sidebar__sections--title {
        padding: 0px 24px;
        margin-bottom: 0px;
    }


    .sidebar .sidebar__sections--wrap .sidebar__sections {
        border-top: none;
    }



    .sidebar .sidebar__sections--wrap {
        position: relative;
    }


    .sidebar .sidebar__sections--wrap::before {
        display: block;
        content: '';
        width: 100%;
        height: 70px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .sidebar .sidebar__sections--wrap.scrolled-hidden::before {
        display: none;
    }



    .sidebar .scroll-mb {
        max-height: calc(454px - 66px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar .sidebar__sections {
        max-height: fit-content;
        overflow-y: unset;
        margin-bottom: 0px;
        border-top: 0px;
    }

    .sidebar__sections--title {
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

    .sidebar .sidebar__buttons {
        padding-bottom: 24px;
        padding-top: 24px;
    }
}

@media (max-width: 769px) {
    .content__container {
        max-width: 522px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero .hero__content {
        width: 75%;
    }

    .history-tree__card {
        max-width: 300px;
    }

    .history-tree__timeline.animate {
        margin-left: 10px;
    }

    .tablet-redirect {
        color: var(--Dark-Grey, #8a8a8a) !important;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .applying__breadcumb {
        padding: 16px 0;
    }

    .james_container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* .body__container {
        max-width: 576px;
        margin: 0 auto;
        padding: 0 16px;
    } */

    .content__container {
        margin-top: 48px;
        padding-top: 0px;
    }

    .our-mission__text {
        font-size: 22px;
        line-height: 26px;
    }

    .our-mission__subtext {
        font-size: 20px;
        font-weight: 350;
        line-height: 26px;
        padding-bottom: 16px;
    }

    .our-mission__image img {
        height: auto;
    }

    .title {
        margin-top: 40px;
        padding-right: 0;
        margin-bottom: 24px;
        font-size: 36px;
        line-height: 40px;
    }

    /* .president-office__wrapper .president-office__subheading {
            display: none;
        } */

    .history-tree__cardcontent .history-tree__cardcontent-year {
        font-size: 22px;
    }

    .amount {
        margin-top: 140px;
        padding: 0px 0 88px;
    }

    .james__news .title_block {
        margin: 16px 0 24px;
        line-height: 40px;
    }

    .james__news .james__news--item .meta_info h4 {
        margin: 16px 0 8px;
    }

    .james_row .james_col-4:nth-child(3) {
        display: none;
    }

    .see-more .j_btn-explore {
        margin: 0px auto 0;
    }

    .james__connect {
        padding: 80px 0 10px;
    }

    .president-office__button {
        width: 85%;
    }

    .president-office__button .president-office__button-text {
        font-size: 14px;
        line-height: 20px;
        padding: 14px 20px;
    }

    .president-office__image img {
        height: auto;
    }

    .president-office__wrapper::after {
        background: linear-gradient(0deg,
                #fff 9.9%,
                rgba(255, 255, 255, 0.75) 74.48%,
                rgba(255, 255, 255, 0) 100%);
    }

    .sidebar__header {
        padding: 16px;
    }

    .sidebar__sections--wrap .sidebar__sections--title {
        /* padding: 24px 24px 12px 16px; */
        margin-bottom: 0px;
    }

    .sidebar .sidebar__header span {
        font-size: 24px;
        line-height: 28px;
    }

    .sidebar .sidebar__sections--wrap .sidebar__sections {
        border-top: 0px;
        border-bottom: 1px solid #e1e1de;
        padding: 0px 16px;
    }


    .sidebar__buttons .sidebar__buttons--link {
        width: 100%;
        margin-bottom: 0px !important;
    }

    .sidebar .sidebar__buttons {
        gap: 16px;
    }

    .sidebar.active {
        top: calc(100% - 454px);
    }

    /* .sidebar.active {
        top: calc(100% - 504px) !important;
    } */

    /* .sidebar .sidebar__sections {
        max-height: 130px;
    } */



    .sidebar .sidebar__sections--wrap::before {
        height: 100px;
    }
}

@media screen and (max-width: 991px) and (min-width: 576px) {
    .james__connect .james__connect--list {
        max-width: 85%;
        margin: 0 auto;
    }

    .james__news .james__news--list .james_col-4 {
        max-width: 50%;
        width: 50%;
    }

    .james__connect .james__connect--list .james_col-4 {
        flex-shrink: 0;
        width: 50%;
        max-width: 50%;
        padding-right: 18px;
        padding-left: 18px;
    }


    .sidebar .sidebar__buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px solid #e1e1e1;
        gap: 12px
    }

    .sidebar__buttons .sidebar__buttons--link {
        width: 48%;
        margin-bottom: 24px
    }

    .sidebar__buttons--title {
        width: 100%;
    }
}