/**
 * @file css/homepage.css
 */

/* override layout */
.path-frontpage .main-container {
    margin-top: 1rem;
}

/* page title */
.page-title {
    display: none;
}

/* Carousel tweaks / layout */
.block-views-blockhomepage-carousel-block-1 {
    margin-bottom: 1rem;
}
.block-views-blockhomepage-carousel-block-1 .block-title {
    display: none;
}
.home-slide {
    padding: 0 5rem;
}
.home-slide--right--label,
.home-slide--right--desc {
    color: #002042;
    font-size: 1.05rem;
}
.home-slide--right--label {
    text-transform: uppercase;
}
.main-container .field--name-field-page-or-url a {
    background-color: #0e4c8f;
    color: white;
    padding: 0.5rem 1rem;
    display: inline-block;
}
.field--name-field-page-or-url a:hover {
    color: white;
}
.slick-slide {
    position: relative;
}
.slick__arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.slick__arrow button {
    background-color: transparent;
    border: none;
    text-indent: -1000rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width: 2rem;
    height: 2rem;
    position: absolute;
}
.slick__arrow button:first-of-type {
    background-image: url(../images/homepage/arrow-left.svg);
    left: 1rem;
}
.slick__arrow button:last-of-type {
    background-image: url(../images/homepage/arrow-right.svg);
    right: 1rem;
}
.block-views-blockhomepage-carousel-block-1 .form-group {
    margin-bottom: 2rem;
}
.slick-dots {
    position: absolute;
    text-align: center;
    bottom: -2.5rem;
    left: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.slick-dots li {
    padding: 0.5rem 0 0 0;
    list-style: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.5rem;
}
.slick-dots li button {
    border: none;
    background-color: #0e4c8f;
    color: white;
    padding: 0.25rem 0.5rem;
    text-align: left;
    text-indent: -1000rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    opacity: 0.6;
    filter: alpha(opacity=60);
}
.slick-dots li.slick-active button {
    opacity: 1;
    filter: alpha(opacity=100);
}
@media (min-width: 991px) {
    .home-slide .col {
        display: inline-block;
        vertical-align: middle;
    }
    .home-slide--left {
        width: 55%;
        margin-right: 4%;
        height: 21vw;
        text-align: center;
    }
    .field--name-field-photo {
        width: 100%;
        height: 100%; 
    }
    .home-slide--left img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
    .home-slide--right {
        width: 41%;
    }
}
@media (max-width: 990px) {
    .field--name-field-photo {
        width: 100%;
        height: 18vw; 
    }
    .home-slide--left img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
    .home-slide--right--desc > *:first-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        display: block;
        word-wrap: break-word;
    }
    .home-slide--right--desc > *:not(:firth-child) { 
        display: none;
    }
    .home-slide {
        padding: 0 2rem;
    }
    .slick__arrow button:last-of-type {
        right: 0.5rem;
    }
    .slick__arrow button:first-of-type {
        right: 0.5rem;
    }
    .home-slide--right--label,
    .home-slide--right--desc {
        font-size: 1.00rem;
    }
}
@media (max-width: 480px) {
    .field--name-field-photo {
        width: 100%;
        height: 32vw; 
    }
    .slick__arrow button:last-of-type {
        right: 0rem;
    }
    .slick__arrow button:first-of-type {
        left: 0rem;
    }
}

/* "Apply" block */
.view-homepage-apply-block {
    background-color: #747372; /*#a3a2a1;*/
    padding: 2rem 0;
    font-size: 1.05rem;
    line-height: 2;
    color: white;
}
.view-homepage-apply-block h2 {
    color: #ffffff !important; /*#002042;*/
    font-size: 1.05rem;
    font-weight: bold;
}

/* Panel section */
.home-panels {
    color: #002042;
    margin-top: 1rem;
}
.home-panels .field--type-image {
    margin-bottom: 1rem;
    order: -1;
}
.home-panels h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #0e4c8f;
    margin-top: 0;
}
.home-panels a {
    color: #002042;
}
.home-panels--panel {
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
}
.home-panels--panel .more {
    position: absolute;
    right: 1.5rem;
    bottom: 0;
    margin-bottom: 0;
}
.home-panels--panel .more a {
    color: #d22e30;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}
.home-panels--panel .twitter-timeline {
    height: calc(100% - 3rem) !important;
    overflow-y: scroll;
    max-height: 35rem;
    padding-right: 1rem;
}
@media (min-width: 991px) {
    .home-panels--panel {
        float: left;
        width: calc(100% / 3);
        margin-bottom: 1.5rem;
        padding: 0rem 1.5rem 1rem;
        min-height: 20rem;
    }
    .home-panels--panel + .home-panels--panel {
        margin-left: 0;    
        border-left: 0.0625rem solid #cccccc;
    }
    .home-panels--panel:nth-of-type(4) {
        margin-left: 0;
        border-left: 0;
        clear: left;
    }
}
@media (min-width: 641px) and (max-width: 990px) {
    .home-panels--panel {
        float: left;
        width: calc(100% / 2);
        margin-bottom: 1.5rem;
        padding: 0rem 1.5rem 1rem;
        min-height: 20rem;
    }
    .home-panels--panel + .home-panels--panel {
        margin-left: 0;    
        border-left: 0.0625rem solid #cccccc;
    }
    .home-panels--panel:nth-of-type(3),
    .home-panels--panel:nth-of-type(5) {
        margin-left: 0;
        border-left: none;
        clear: left;
    }
}
@media (max-width: 640px) {
    .home-panels--panel + .home-panels--panel {
        border-top: 0.0625rem solid #cccccc;
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Twitter feed */
.home-twitter--tweet {
    margin: 0rem 0 2rem;    
    text-decoration: none;
}
.main-container .home-twitter--tweet .highlight {
    color: #d22e30ff;
}
.home-twitter--tweet .retweet {
    width: 1.25rem;
    vertical-align: middle;
}
.home-twitter {
    margin-top: 1rem;
}
.home-twitter a {
    text-decoration: none;
}
.home-twitter .photo {
    max-width: 10rem;
    width: 25%;
    margin: 0 1rem 1rem 0;
    float: left;
}
@media (min-width: 481px) {
    .has-photo .home-twitter--tweet {
        width: calc(75% - 1rem);
        float: left;
    }
}
@media (max-width: 480px) {
    .home-twitter .photo {
        width: 100%;
        float: none;
        margin: 0 0 1rem 0;
    }
}