:root {
    --primary: #3a4b72;
    --secondary: #ea7b5f;
}

.header-branding {
    background: url(../img/brandheader.jpg) no-repeat;
}

.footer-branding {
    background: url(../img/brandfooter.jpg) no-repeat;
}

/* 
-------------------------------------------------- */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.woff2') format('woff2'),
        url('../fonts/MyriadPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Bold.woff2') format('woff2'),
        url('../fonts/MyriadPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden !important;
    touch-action: manipulation;
}

main {
    margin: 0;
    padding: 0
}

.primary-color {
    color: var(--primary)
}

.secondary-color {
    color: var(--secondary)
}

.primary-color-bg {
    background-color: var(--primary)
}

.secondary-color-bg {
    background-color: var(--secondary)
}

a {
    transition: all 0.3s ease;
    text-decoration: none !important
}

img {
    max-width: 100%
}

.container {
    max-width: 980px;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
    padding: 0
}

h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 15px;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 15px
}

/* HEADER
-------------------------------------------------- */
header {

    height: 330px;
}

.header-branding {
    background-size: cover;
    position: relative
}

.xmedica-link {
    height: 40px;
    width: 40px;
    background: url(../img/xmedica.png) no-repeat;
    background-size: contain;
    position: absolute;
    display: block;
    right: 20px;
    top: 15px
}

.header-links {
    display: block;
    width: 770px;
    padding: 0px;
    display: inline-flex;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    overflow: hidden
}

.header-links-container {
    z-index: 1;
    width: 200px;
    text-align: right;
    margin-right: 35px;
    margin-bottom: 3px
}

.header-links a {
    display: inline-block;
    color: #fff;
    line-height: 1;
    padding: 0px 10px;
    transition: all 0.3s ease;
}

.header-links a:hover {
    opacity: 0.6
}

.header-links-bg {
    border-top-left-radius: 15px;
    background-color: var(--secondary) !important;
    mix-blend-mode: multiply;
    width: 770px;
    position: absolute;
    height: 30px;
    z-index: 0;
    bottom: 0;
    right: 0
}

nav {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
    border: none;

}

.navbar-toggler-icon {
    color: #fff !important;

}

.navbar {
    padding: 0px;
    background: var(--primary);
    border-bottom: 3px solid var(--secondary)
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:active {
    color: #fff;
    line-height: 1.2;
    margin-left: 35px;
    margin-right: 0;
}

nav ul {
    list-style-type: none;
    padding-left: 0;
    display: grid
}

.navbar-expand-lg .navbar-collapse {
    margin-right: 20px
}

.nav-link {
    font-size: 20px;
    color: #fff;
    line-height: 0.5;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active,
.content a {
    color: var(--secondary) !important
}

.gradient-bg:first-child {
    background-image: none
}

.gradient-bg {
    background-image: url(../img/gradient-1.png);
    background-repeat: repeat-x
}

/* END HEADER
-------------------------------------------------- */
/* CONTENT
-------------------------------------------------- */
.content a {
    border-bottom: 1px solid transparent;
    transition: all 0.5s ease;
    font-size: 14px;
}

.content h1 {
    opacity: 0.8
}

.content a:hover {
    border-color: var(--secondary)
}

.publications h3 {
    font-size: 16px
}

.live-events .row div:nth-child(1) {
    padding: 0
}

.live-events img {
    height: 100%;
    object-fit: cover
}

.live-events .row div:nth-child(2) h3 {
    font-weight: bold;
    font-size: 20px
}

.live-events .row div:nth-child(2) h3,
.live-events .row div:nth-child(2) p,
.live-events .row div:nth-child(2) a {
    color: #fff !important;
    position: relative;
    z-index: 1
}
.live-events a {
    font-weight: bold
}
.live-events .row div:nth-child(2) a:hover {
    color: var(--secondary) !important
}

.live-events .row div:nth-child(2) {
    position: relative;
    padding: 20px 25px;

}

.live-events .row div:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: .8;
    z-index: 0
}

.contact {
    font-weight: bold;
    font-family: 'Myriad Pro', Arial Black, Helvetica, sans-serif;
    color: var(--primary);
}

.contact p {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 0;
    opacity: 0.8
}

.contact a {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: bold
}

.spacer {
    height: 30px
}

/* END CONTENT 
-------------------------------------------------- */
/* FOOTER
-------------------------------------------------- */

/*.footer-branding {
     background-color: var(--secondary);
    background-blend-mode: multiply;
    padding: 50px 20px
}*/
.footer-branding {

    height: 214px;
    background-size: cover;
    display: block
}

.halftone {
    width: 275px;
    height: 115px;
    background: url(../img/half-tone.png) no-repeat;
    background-size: contain
}

.footer-branding div:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 40px
}

.brandlogo {

    max-width: 100%;
    margin: 10px 15px
}

.footer-branding a {
    display: block;
    width: 100%;
    text-align: right;
    padding-right: 20px
}

.copyright-container {
    position: relative;
    width: 100%;
    height: 46px;
}

.copyright {

    text-align: right;
    padding: 13px 40px;
    color: #fff;
    position: absolute;
    z-index: 1;
    right: 0;

}

.copyright-bg {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: .8;
    z-index: 0;
    width: 100%;
    height: 46px
}

footer a {
    color: #fff !important
}

.copyright,
.copyright a {
    margin-bottom: 0;
    font-size: 14px !important;
    color: #fff !important
}

h1 {
    font-size: 26px;
    font-weight: bold;
    font-family:  'Myriad Pro', Arial Black, Helvetica, sans-serif;
    color: var(--primary);
    margin-bottom: 3px
}

.page-heading {
    padding: 10px 45px;
    background: var(--primary);
    opacity: 0.8;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.page-heading h3 {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0;
}

.page-heading p {
    color: #fff;
}

.page-heading h1 span {
    font-weight: normal !important;
    font-family: 'Myriad Pro', Arial Black, Helvetica, sans-serif;

}

.page-heading p {
    margin-bottom: 0
}

.video-details-container {
    position: relative;
    margin-top: -8px
}

.video-details {
    position: relative;
    z-index: 2
}

.video-details-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: .8;
    z-index: 0
}

.video-details h2 {
    font-size: 26px;
    font-weight: bold;
    font-family:  'Myriad Pro', Arial Black, Helvetica, sans-serif;
}

.video-details h2,
.video-details p {
    color: #fff
}

.date-uploaded {
    opacity: 0.5
}

.video-details p:last-child {
    font-size: 16px
}

.carousel {
    margin-bottom: 15px
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 13px;
    height: 13px;
    border-radius: 40px;
    padding: 0;
    margin-right: 6px;
    margin-left: 6px;
    text-indent: -999px;
    cursor: pointer;
    background-color: var(--primary);
    background-clip: padding-box;
    border: 0;
    opacity: .3;
    transition: opacity .6s ease;
}

.carousel-indicators .active {
    opacity: 0.8;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -40px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
}

/* PAGINATOR
-------------------------------------------------- */

.xmedica-paginator {
    text-align: right;
}

.xmedica-paginator .pagination {
    margin: 0 3rem 0 0;
    display: inline-block;
}
  
.xmedica-paginator .pagination span,
.xmedica-paginator .pagination a {
    color: #a6a6a6;
    font-size: 13px;
}
  
.xmedica-paginator .pagination li {
    padding: 0 2px;
    display: inline-block;
}
  
.xmedica-paginator .pagination li a {
    text-decoration: none;
}
  
.xmedica-paginator .pagination li a:hover, .xmedica-paginator .pagination li a:focus, .xmedica-paginator .pagination li a:active {
    text-decoration: none;
    color: #4d4d4d;
}
  
.xmedica-paginator .pagination li.active span {
    color: #4d4d4d;
}

.xmedica-paginator .pagination .page-link {
    border: none;
    background-color: transparent;
    padding: 3px;
    box-shadow: none;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {}


@media (min-width: 768px) {}

@media (min-width: 75em) {
    .copyright {
        width: 50%;
    }

    .text-cut::after {
        content: "\A";
        white-space: pre;
        clear: both;
    }

    .contact a {
        font-size: 36px;
        color: var(--primary);
        margin-bottom: 0;
        font-weight: bold;
    }

    .contact p {
        font-size: 23px;
        color: var(--primary);
        margin-bottom: 0;
        opacity: 0.8
    }


}

@media (max-width: 769px) {
    header {
        height: 130px;
    }
    .footer-branding {

        height: 84px;
    }
    .img-1, .img-2, .img-3 {
        min-height: 200px
    }
    .nav-link {
        line-height: 1;

        padding: 7px 10px !important;
    }

    .navbar-collapse {
        padding-bottom: 10px !important;
    }

    .navbar-brand,
    .navbar-brand:hover,
    .navbar-brand:active {

        margin-left: 10px !important;
    }

}

@media (max-width: 1024px) {
    .content img {
        margin: 20px 0
    }
}

/* Portrait */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {

    .nav-link {
        line-height: 1;

        padding: 10px 20px !important;
    }

    .navbar-collapse {
        padding-bottom: 10px !important;
    }

    .navbar-brand,
    .navbar-brand:hover,
    .navbar-brand:active {

        margin-left: 20px !important;
    }

    .contact a {
        font-size: 26px;
        color: var(--primary);
        margin-bottom: 0;
        font-weight: bold;
    }
    .footer-branding {
        background-position: 90%
    }

}
