/*
 * Bootstrap v4.3.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 The Bootstrap Authors
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 30px;
    /* Margin bottom by footer height */
}

/* h1 {
    font-size: 2.25rem;
    font-weight: 300;
} */

h2 {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--main-colour);
    margin-top: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 100;
}

p {
    color: #666;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    line-height: 22px;
    margin-bottom: 10px;
}

.btn {
    background-color: var(--main-colour);
    text-align: left;
    color: #FFF;
}

a.btn:hover {
    color: #FFF;
    text-decoration: underline;
}

.btn-block+.btn-block {
    margin: 0.5rem 0;
}

.purple {
    background-color: #833978;
}

/* Theme colours - define variables */
.phase-1 {
    /* --main-colour: #E17965;  Insufficient Contrast  */
    /* --main-colour: #bf5743; */
    /* --tint90: #FFD9D2; */
    --main-colour: #1E5089;
    --tint90: color-mix(in srgb, #1E5089 10%, white 90%);
}

.phase-2 {
    /* --main-colour: #4A9FA6;  Insufficient Contrast */
    --main-colour: #24787C;
    --tint90: color-mix(in srgb, #24787C 10%, white 90%);
}

.phase-3 {
    --main-colour: #306BA0;
    --tint90: color-mix(in srgb, #306BA0 10%, white 90%);
}

.inactive {
    --main-colour: #727273;
    color: #6c757d;
    /* --main-colour: #f8f9fa;
    color: #6c757d; */
}

#timeline h4.panel-title {
    margin: 0;
}

.timeline-content img {
    max-width: 100%;
    border: darkgrey solid 1px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.reflect {
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    color: #212529;
    border: solid 3px var(--main-colour);
}

p+ul,
p+ol {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/*
 * Sidebar
 */

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 200px);
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
}

.sidebar-sticky .btn {
    font-weight: 600;
}

.sidebar-sticky .btn:hover {
    color: white;
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}


/* Reduce page margins */

.container {
    max-width: 100%;

}



/* timeline */
a:focus {
    text-decoration: none;
    color: none;
}

a:hover {
    text-decoration: none;
    color: none;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:active:focus {
    outline: 0;
    border-color: var(--main-colour);
    color: white;
}

.btn-custom {
    margin-bottom: 1em;
}

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.no-border {
    border: 0;
}

.no-radius {
    border-radius: 0;
}

.phase-title {
    font-size: 18px;
    font-weight: 600;
    padding: 10 30;
    background-color: white;
    color: var(--main-colour);
    border-width: 5px;
}

.phase-title:hover {
    color: var(--main-colour);
}

/* set up buttons to expand/collapse all */

/******************************************/
/* Timeline */
/*** accordion collapse ***/
.panel-heading,
.panel-body {
    padding: 0;
}

.timeline {
    position: relative;
    display: block;
    margin: 0;
    padding: 10px 0;
}

.timeline:after,
.timeline:before {
    content: " ";
    display: table;
}

.timeline:after {
    clear: both;
}

.timeline,
.timeline>li {
    list-style: none;
}

.timeline>li:nth-child(even) {
    float: left;
    clear: left;
    top: -6ch;
}

.timeline>li:nth-child(odd) {
    float: right;
    clear: right;
}

.timeline-line {
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #eee;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

li.timeline-line+li.timeline-group {
    top: -3ch;
}

/* .timeline-line+.timeline-item {
    margin-top: -6ch;
} */

.timeline-group {
    display: block;
    position: relative;
    margin: 30px 0;
    text-align: center;
    float: none !important;
    z-index: 1;
}


.timeline-item {
    position: relative;
    display: inline-block;
    width: 50%;
    padding: 0 30px;
    min-height: 10ch;
    margin-bottom: 20px;
}

.timeline-item:nth-child(even):after,
.timeline-item:nth-child(even):before {
    content: '';
    position: absolute;
    right: 20px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid var(--main-colour);
    z-index: 1;
}

/* .timeline-item:nth-child(even):after {
    right: 20px;
    top: 11px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 11px solid var(--main-colour);
} */

.timeline-item:nth-child(even)>.timeline-badge {
    right: -12px;
}

.timeline-item:nth-child(odd):after,
.timeline-item:nth-child(odd):before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid var(--main-colour);
    z-index: 1;
}

/* .timeline-item:nth-child(odd):after {
    left: 20px;
    top: 11px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 11px solid var(--main-colour);
} */

.timeline-item:nth-child(odd)>.timeline-badge {
    left: -12px;
}

/* .timeline-item.block:nth-child(even), .timeline-item.block:nth-child(odd) {
    width: 100%;
    margin-top: 5px;
}

.timeline-item.block:nth-child(even):after, .timeline-item.block:nth-child(even):before, .timeline-item.block:nth-child(odd):after, .timeline-item.block:nth-child(odd):before {
    left: 50%;
    right: auto;
    top: -11px;
    border: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 24px solid var(--main-colour);
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.timeline-item.block:nth-child(even):after, .timeline-item.block:nth-child(odd):after {
    top: -10px;
    border: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--main-colour);
}

.timeline-item.block:nth-child(even)>.timeline-badge, .timeline-item.block:nth-child(odd)>.timeline-badge {
    top: -28px;
    left: 50%;
    right: auto;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
} */

.timeline-item>.timeline-badge {
    position: absolute;
    top: 12px;
    z-index: 1;
    display: inline-block;
    width: 24px;
    height: 24px;
    /* border: 1px solid var(--main-colour); */
    border-radius: 24px;
    background-color: var(--main-colour);
    background-color: var(--tint90);
    text-decoration: none;
    transition: all ease .3s;
}

/* .timeline-item>.timeline-badge>a {
} */
.timeline-item>.timeline-panel {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--main-colour);
    border-radius: 4px;
}

.timeline-item>.timeline-panel:hover .timeline-actions {
    display: block;
}

.timeline-actions {
    display: none;
}

.timeline-footer,
.timeline-heading,
.timeline-liveliness {
    padding: 15px;
}

.timeline-content {
    padding: 15px 15px 0 15px;
}

.timeline-content li {
    color: #666;
}

.timeline-heading:hover {
    color: #ffffff;
}

.timeline-heading+.timeline-content {
    padding-top: 0;
}

.timeline-date {
    font-size: 14px;
    color: #aaa;
}

.timeline-embed {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}

.timeline-embed .embed-element,
.timeline-embed embed,
.timeline-embed iframe,
.timeline-embed object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.timeline-img {
    display: block;
    padding: 5px 0;
}

.timeline-img.first {
    margin-right: -10px;
}

.timeline-img.middle {
    margin-right: -10px;
    margin-left: -10px;
}

.timeline-img.last {
    margin-left: -10px;
}

.timeline-footer,
.timeline-liveliness,
.timeline-resume {
    border-top: 1px solid #eee;
    background-color: #fbfcfc;
}

.timeline-footer {
    border-radius: 0 0 5px 5px;
}

.timeline-avatar {
    margin-top: -2px;
    margin-right: 10px;
}

.timeline-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.42857;
    font-weight: 600;
    color: #3e5771;
    text-decoration: none;
}

.timeline-title>small {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #a1aab0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline .media {
    border-bottom: 1px solid #eee;
}

.timeline .media,
.timeline .media p {
    font-size: 13px;
}

.timeline .media:last-child {
    border-bottom: 0;
}

@media (max-width:991px) {
    .timeline {
        padding-left: 15px;
    }

    .timeline-line {
        left: 15px;
    }

    .timeline-group {
        display: inline-block;
        margin-left: 4px;
        margin-bottom: 10px;
    }

    .timeline-item {
        width: 100%;
        margin-top: 0 !important;
        padding-right: 10px;
        min-height: auto;
    }

    li.timeline-line+li.timeline-group {
        top: auto;
    }

    .timeline-item.block:nth-child(even),
    .timeline-item.block:nth-child(odd) {
        padding-bottom: 0;
    }

    .timeline-item.block:nth-child(even):after,
    .timeline-item.block:nth-child(even):before,
    .timeline-item.block:nth-child(odd):after,
    .timeline-item.block:nth-child(odd):before,
    .timeline-item:nth-child(even):after,
    .timeline-item:nth-child(even):before,
    .timeline-item:nth-child(odd):after,
    .timeline-item:nth-child(odd):before {
        left: 20px;
        top: 10px;
        border: 0;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 12px solid var(--main-colour);
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    .timeline-line {
        display: inline-block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        background-color: #eee !important;
        -webkit-transform: translate(-50%, 0) !important;
        transform: translate(-50%, 0) !important;
    }

    /* .timeline-item.block:nth-child(even):after, .timeline-item.block:nth-child(odd):after, .timeline-item:nth-child(even):after, .timeline-item:nth-child(odd):after {
        left: 20px;
        top: 11px;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        border-right: 11px solid #fff;
    } */

    .timeline-item.block:nth-child(even)>.timeline-badge,
    .timeline-item.block:nth-child(odd)>.timeline-badge,
    .timeline-item:nth-child(even)>.timeline-badge,
    .timeline-item:nth-child(odd)>.timeline-badge {
        top: 12px;
        left: -12px;
        right: auto;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    .timeline-item.block:nth-child(even),
    .timeline-item.block:nth-child(odd),
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd),
    .timeline>li:nth-child(even),
    .timeline>li:nth-child(odd) {
        float: none;
        clear: both;
        top: auto;
    }
}

@media (max-width:480px) {
    .timeline {
        padding: 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        display: block;
        padding: 0 0 20px !important;
    }

    .timeline-item.block:nth-child(even),
    .timeline-item.block:nth-child(odd),
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd),
    .timeline>li:nth-child(even),
    .timeline>li:nth-child(odd) {
        float: none;
        clear: both;
        top: auto;
    }

    .timeline-item.block:nth-child(even):after,
    .timeline-item.block:nth-child(even):before,
    .timeline-item.block:nth-child(odd):after,
    .timeline-item.block:nth-child(odd):before,
    .timeline-item.timeline-poster>.timeline-badge,
    .timeline-item:nth-child(even):after,
    .timeline-item:nth-child(even):before,
    .timeline-item:nth-child(odd):after,
    .timeline-item:nth-child(odd):before {
        display: none;
    }

    .timeline-item>.timeline-badge {
        top: -8px !important;
        left: 50% !important;
        margin-left: -6px;
    }

    li.timeline-line+li.timeline-group {
        top: auto;
    }

    .timeline-line {
        left: 51.5% !important;
    }
}

.wrapkit-content-rtl .timeline-avatar {
    margin-right: 0;
    margin-left: 10px;
}

.timeline-heading {
    font-size: 18px;
    background-color: var(--main-colour);
    color: #fff;
}

/*** accordion collapse ***/
.panel-heading,
.panel-body {
    padding: 0;
}

.panel-heading.isOpen {
    background: #f5f5f5;
    color: #333;
}

/*end timeline */