html, body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-weight: 300;
}

h4 {
    text-transform: uppercase;
}

.grey {
    background-color: #EFEFEF;
}

.white {
    background-color: #FFF;
}

.green {
    background-color: #005814;
    color: #FFF;
}

.red {
    background-color: #890f0f;
}

aside {
    padding: 40px;
}

aside.red ul.link-list.docs {
    background-color: transparent;
}

.centered {
    text-align: center;
}

.w-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

header {
    background-color: #FFF;
}

section {
    padding: 40px 0;
}

h1 {
    font-size: 48px;
    font-weight: 300;
}

h2 {
    font-size: 36px;
    font-weight: 300;
}

h3 {
    font-size: 24px;
    font-weight: 300;
}

#header {
    position: relative;
}

nav.navbar {
    padding: 0;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    background-color: #FFF;
    z-index: 1;
}

#navigation {
    margin-left: 370px;
}

.navbar-nav {
    justify-content: flex-start;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
    border-bottom: 3px solid #005814;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding: 20px 10px;
    color: #005814;
    border-bottom: 3px solid transparent;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .nav-link.active {
    color: #FFF;
    background-color: #005814;
}

section.main-carousel {
    padding: 0;
    position: relative;
}

.main-carousel-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: #FFF;
    display: flex;
    align-items: center;
    z-index: 1;
}

section.duo {
    padding: 0;
    display: flex;
}

.push-top {
    padding-top: 80px;
}

#homeCarousel {
    height: 320px;
    overflow: hidden;
}

section.pills {
    padding: 0;
    height: 0;
}

ul.pills-wrapper {
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    display: flex;
    width: 100%;
    justify-content: center;
    list-style-type: none;
}

li.pill {
    width: 30%;
    text-align: center;
    margin: 0 20px;
}

li.pill a {
    display: flex;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 300;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    box-shadow: 0 2px 10px rgba(25, 25, 25, .25);
    padding: 12px 10px;
    transition: box-shadow .5s;
    color: #005814;
    border-radius: 8px;
}

li.pill a img {
    margin-right: 10px;
}

li.pill a:hover {
    box-shadow: 0 10px 10px rgba(25, 25, 25, .35);
}

.teaser a {
    text-decoration: none;
    color: #373737;
    transition: color .5s;
    display: flex;
    align-items: center;
}

.teaser a:hover {
    color: #005814;
}

.teaser-info {
    width: 60%;
    padding-right: 20px;
}

.teaser-info p {
    padding: 0;
    margin: 0;
}

.teaser-image {
    width: 40%;
    padding-left: 20px;
}

.teaser-image-inner {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaser-image-inner img {
    min-width: 100%;
    min-height: 100%;
    height: auto;
}

.panel {
    padding: 20px 20px 20px 0;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.panel-title h3 {
    color: #A32C2C;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.panel-title img {
    margin-right: 10px;
}

.button {
    display: inline-block;
    box-shadow: 0 2px 5px rgba(50, 50, 50, .15);
    cursor: pointer;
    transition: box-shadow .5s;
    border-radius: 8px;
}

.button:hover {
    box-shadow: 0 5px 10px rgba(50, 50, 50, .25);
    border-radius: 8px;
}

.button-solid {
    transition: background-color .5s ease-out;
    background-color: #A32C2C;
}

.button-solid a:hover {
    background-color: #890f0f;
}

.button a {
    text-decoration: none;
}

.button-solid a {
    display: flex;
    color: #FFFFFF;
    padding: 10px 20px;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #A32C2C;
    border-color: #890f0f;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #890f0f;
    border-color: #890f0f;
    outline: none;
    box-shadow: none;
}

.btn-secondary {
    border: 1px solid #005814;
    background-color: #FFFFFF;
    color: #005814;
}

.btn-secondary:hover {
    border: 1px solid #FFF;
    background-color: #005814;
    color: #FFF;
    outline: none;
    box-shadow: none;
}

.table-simple tr, .table-simple td, .table-simple th {
    border: none;
}

.table-simple {
    font-size: 14px;
    font-weight: 300;
}

.table-simple tr {
    border-bottom: 1px solid #cecece;
}

.table-simple th {
    font-weight: 400;
}

.table-simple tr td a {
    text-decoration: none;
    background: #890f0f;
    display: block;
    padding: 10px;
    color: #FFF;
    text-align: center;
    font-size: 12px;
    border-radius: 8px;
}

#op-tab .nav-item .nav-link {
    background-color: #FFFFFF;
    border-radius: 10px 10px 0 0;
    border: 1px solid #005814;
    border-bottom: none;
    color: #005814;
    font-weight: 500;
}

#op-tab-content {
    border-top: 1px solid #005814;
    background-color: #FFFFFF;
}

table.op-table th, td {
    padding: 10px 20px;
}

table.op-table th {
    white-space: nowrap;
    text-align: center;
    font-weight: 300;
}

table.op-table thead {
    border-bottom: 1px solid #EFEFEF;
}

table.op-table tr:nth-child(even) {
    background-color: #EFEFEF;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .1);
}

table.op-table tr td:first-child {
    text-align: center;
}

#op-tab .nav-item .nav-link.active {
    background-color: #005814;
    color: #FFFFFF;
}

table.op-table th img {
    width: 16px;
    height: 16px;
}

/*
* responsiveness
*/
.duo-right h3 {
    text-transform: uppercase;
    text-align: center;
    font-weight: 300;
    margin: 30px 0;
}

.info-list {
    list-style-type: none;
}

.info {
    margin-bottom: 30px;
}

.date {
    padding: 10px;
    background-color: #FFF;
    color: #005814;
    margin-right: 10px;
    border-radius: 8px;
}

.info {
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

.info:last-child {
    border-bottom: none;
}

.info > div:first-child {
    display: flex;
    align-items: flex-start;
}

.info h4 {
    margin: 0;
    font-size: 14px;
    text-transform: none;
    font-weight: 300;
}

.info p {
    text-align: right;
    margin-top: 10px;
}

.info p a {
    background-color: transparent;
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 300;
    border: 1px solid transparent;
    transition: border .5s ease-out, background-color .5s ease-out;
}

.info p a:hover {
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: rgba(255, 255, 255, .2);
}


h4.title {
    font-weight: 300;
    background-color: #005814;
    opacity: .7;
    color: #FFF;
    padding: 10px 0;
    text-align: center;
    margin: 0;
    font-size: 20px;
}

#homeBlocks h4.title{
    border-radius: 8px 8px 0 0;
}

#homeBlocks .imp h4.title{
    background-color: #890f0f;
    opacity: 1;
}

.link-list {
    list-style-type: none;
    margin: 0;
    padding: 20px;
    background-color: #FFF;
    box-shadow: 0 2px 5px rgba(50, 50, 50, .25);
    height: 85%;
}

.link-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.link-list li a {
    color: #373737;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .5s, border-bottom .5s;
    display: flex;
    align-items: center;
}

.link-list li a:hover {
    color: #005814;
    border-bottom: 1px solid #005814;
}

.breadcrumb {
    margin: 0;
    color: #FFFFFF;
}

.breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px;
}

.news-grid {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.news-grid li {
    padding: 15px;
    width: 50%;
}

.news-grid li a {
    display: block;
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(50, 50, 50, .15);
    color: black;
    text-decoration: none;
    transition: box-shadow .5s ease-out;
}

.news-grid li a:hover {
    box-shadow: 0 5px 10px rgba(50, 50, 50, .25);
}

.news-item {
    display: flex;
    align-items: center;
}

.news-item .image-section {
    width: 240px;
    height: 240px;
    position: relative;
}

.news-date {
    position: absolute;
    right: -20px;
    top: 20px;
    background-color: #A32C2C;
    padding: 10px 20px;
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(50, 50, 50, .35);
}

.news-title {
    font-size: 24px;
    font-weight: 200;
    line-height: 1.1;
}

.news-desc {
    font-size: 14px;
}

.news-item .image-section img {
    min-height: 100%;
}

.news-item .news-section {
    flex: 1;
    padding: 10px 10px 10px 30px;
}

.news-image {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero {
    height: 300px;
    overflow: hidden;
    padding: 0;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    color: #FFF;
}

.breadcrumb-nav {
    background: #005814;
}

.owl-theme .item {
    height: 140px;
    overflow: hidden;
}

ul.offices-grid {
    list-style-type: none;
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

ul.offices-grid li {
    padding: 15px;
    width: 25%;
}

ul.offices-grid li a {
    display: block;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(50, 50, 50, .25);
    text-decoration: none;
    color: #373737;
    transition: box-shadow .5s;
}

.office-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-image img {
    min-height: 100%;
    transition: transform .5s ease-out;
}

ul.offices-grid .info-section {
    padding: 15px;
}

ul.offices-grid .info-section .office-title {
    font-size: 18px;
    font-weight: 300;
}

ul.offices-grid .info-section .office-address {
    font-size: 14px;
}


ul.offices-grid li a:hover {
    box-shadow: 0 5px 10px rgba(50, 50, 50, .35);
}

ul.offices-grid li a:hover img {
    transform: scale(1.05);
}

ul.filters {
    list-style-type: none;
    display: flex;
    margin: 0 0 50px 0;
    padding: 0;
}

ul.filters li {
    margin-left: 16px;
}


footer {
    padding: 30px 0;
    background-color: #005814;
    color: #FFF;
}

footer .link-list li a, footer a{
    color: #FFF;
}

footer a:hover{
    color: #ececec;
}

footer div + h4 {
    margin-top: 30px;
}

.pagination {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.pagination ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination ul li.page-item a.page-link {
    background-color: #FFF;
    transition: background-color .5s;
    display: block;
    color: #A32C2C;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid #A32C2C;
}

.pagination ul li.page-item.active a.page-link,
.pagination ul li.page-item a.page-link:hover {
    background-color: #890f0f;
    color: #FFF;
}

.pagination ul li:hover {
    background-color: #890f0f;
}

.filters-group {
    padding: 20px;
}

#search-addon {
    background-image: url(../images/search.svg);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 40px;
    background-color: #890f0f;
    border-radius: 0 4px 4px 0;
}

.form-control {
    border-color: #890f0f;
}

.input-group.rounded,
.input-group.rounded input {
    border-radius: 4px 0 0 4px !important;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #890f0f;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(137, 15, 15, 0.25);
}

.news-list {
    list-style-type: none;
}

.news-list li {
    background: #FFF;
    margin-bottom: 20px;
}

.news-list a {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    text-decoration: none;
    color: #000;
    transition: box-shadow .5s ease-out;
}

.news-list a:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

.news-list a .news-image {
    width: 33.33%;
    margin-right: 20px;
    position: relative;
    max-height: 200px;
}

.news-list a .news-image img {
    width: 100%;
    height: auto;
}

.news-list a .news-desc {
    flex: 1;
    padding: 15px 0;
}

.news-list a .news-desc p {
    margin: 0;
}

.red * {
    color: #FFFFFF;
}

aside h2 {
    text-align: center;
    margin-bottom: 20px;
}

.red .link-list li a {
    text-decoration: none;
    color: #FFF;
}

ul.docs li a {
    background-image: url(../images/books.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px;
    padding-left: 24px;
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color .5s ease-out;
}

ul.docs li a:hover {
    border-bottom: 1px solid #FFF;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.card-panel {
    background-color: #FFF;
    box-shadow: 0 2px 10px rgba(50, 50, 50, .15);
    padding: 20px;
}

.card-panel h3 {
    text-align: center;
    margin-top: 40px;
}

table.proceduresTable {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ececec;
}

table.proceduresTable tr td {
    font-size: 14px;
    font-weight: 300;
    padding-top: 20px;
}

table.proceduresTable tr:nth-child(odd) {
    background-color: #ececec;
}

.news-list a .news-image .news-date {
    top: 0;
    left: 0;
    right: auto;
}

.office-item{
    min-height: 360px;
}

.pills-wrapper.branch-pill{
    justify-content: right !important;
}

@media (min-width: 1200px) {
    .logo img {
        width: 240px;
        height: 60px;
    }

    #navigation {
        margin-left: 260px;
    }

    .container.container-narrow {
        max-width: 800px;
        margin: auto;
    }

    .duo-left {
        padding-left: calc(50% - 570px);
    }

    .duo-right {
        padding-right: calc(50% - 570px);
    }
}

@media (min-width: 1400px) {
    .container.container-narrow {
        max-width: 980px;
        margin: auto;
    }

    .duo {
        display: flex;
    }

    .duo-left {
        padding-left: calc(50% - 660px);
    }

    .duo-right {
        padding-right: calc(50% - 660px);
    }
}

@media screen and (max-width: 480px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        border-bottom: 1px solid #869791;
        box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
        z-index: 1024;
    }

    #header {
        position: relative;
        width: 100%;
        height: 50px;
    }

    button.navbar-toggler {
        position: absolute;
        right: 0;
        top: 5px;
    }

    .logo {
        right: 0;
        width: 200px;
        height: 40px;
        top: 0;
        padding: 0;
    }

    .logo img {
        width: 100%;
        height: auto;
    }

    #navigation {
        display: block;
        margin: 0;
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        bottom: 0;
        background: #FFF;
        transition: left .75s ease-out;
    }

    #navigation.open {
        left: 0;
    }

    .navbar-toggler-icon {
        background-image: url(../images/menu.svg);
    }

    #homeCarousel {
        height: 250px;
    }

    .carousel-item img {
        min-height: 100%;
        height: 100%;
        width: auto !important;
    }

    .panel-body {
        width: 100%;
        overflow-x: auto;
    }

    .panel-body table.table.table-simple {
        width: 200%;
    }

    .teaser a {
        flex-direction: column;
        padding: 24px 0;
    }

    .teaser-image-inner {
        height: auto;
    }

    section.pills {
        height: auto;
    }

    section {
        padding: 24px 0;
    }

    .push-top {
        padding-top: 0;
    }

    .teaser {
        flex-direction: column;
    }

    .teaser-info {
        width: 100%;
        padding-right: 0;
    }

    .teaser-image {
        width: 100%;
    }

    li.pill {
        width: 100%;
        margin: 10px auto;
    }

    li.pill a {
        font-size: 20px;
        padding: 10px 0;
    }

    ul.pills-wrapper {
        flex-direction: column;
        transform: translateY(0);
    }

    section.duo {
        flex-direction: column;
    }

    .w-60 {
        width: 100%;
    }

    .w-40 {
        width: 100%;
    }

    .panel {
        padding: 20px 15px;
    }

    .news-grid {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .news-item {
        flex-direction: column;
    }

    .info-list {
        padding: 0 15px;
    }

    .news-item .image-section {
        width: 100%;
        height: 200px;
    }

    .news-date {
        top: -20px;
        left: 20px;
        display: inline-block;
        right: auto;
    }

    .news-grid li {
        width: 100%;
    }

    .tab-content > .tab-pane {
        overflow-x: auto;
    }

    ul.filters {
        flex-direction: column;
        margin: 0;
    }

    ul.filters li {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0;
    }

    ul.filters li a {
        display: block;
    }

    .nav-tabs {
        flex-wrap: nowrap;
    }

    ul.offices-grid li {
        width: 100%;
    }

    .office-image {
        height: 120px;
    }

    ul.news-list {
        padding: 0;
    }

    .news-list a {
        flex-direction: column;
    }

    .news-list a .news-image {
        width: 100%;
        margin: 0;
        max-height: 120px;
    }

    .news-list a .news-image .news-date {
        top: 0;
        left: 0;
    }

    .tab-pane {
        width: 100%;
        overflow-x: auto;
    }
}
