/* Offices */

.offices-section1-wrapper .global-overlay {
    height: 340px;
}

.ip-office-container {
    width: 1170px;
    max-width: calc( 100% - 270px);
    padding: 0 15px;
    margin: 0 auto;
}

div#ip-offices {
    margin-bottom: 40px;
    background-image: url(../../images/offices/ip-offices-bg.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center right;
    background-size: cover;
}

div#ip-offices::before {
    content: '';
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(51%, rgba(255, 255, 255, 0.3)), to(white));
    background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0.3) 51%, white 100%);
}

.offices-section1-wrapper {
    position: relative;
    /*padding: 164px 0 110px;*/
    /*padding: 164px 0 20px;*/
    padding: 120px 0 20px;
    z-index: 2;
}

.offices-section1-wrapper .global-overlay.right {
    top: 0;
}

.offices-section1-wrapper .global-overlay.right span {
    width: 360px;
}

.offices-section1-logo {
    position: absolute;
    top: 157px;
    left: 49px;
}

.offices-section1-logo::after {
    content: '';
    display: block;
    width: 1px;
    height: 54px;
    margin: 21px auto 27px;
    background: #d1d1d1;
}

.offices-page-heading {
    font-family: var(--title-font);
    font-size: 80px;
    font-weight: 400;
    color: #01539e;
    text-transform: uppercase;
    margin-top: 30px;
}

.offices-page-excerpt p {
    font-family: var(--body-font);
    /*font-size: 17px;

        font-weight: 300;

        color: #565656;*/
    line-height: 1.5;
    letter-spacing: 0.05em;
    padding: 9px 5px 0 0;
    margin-bottom: 18px;
}

.offices-item-wrapper {
    position: relative;
    margin-bottom: 49px;
}

.offices-item-wrapper .global-overlay {
    width: 7.9%;
    height: 419px;
    top: 113px;
}

.offices-item-wrapper .global-overlay span {
    left: 100%;
    width: 359px;
}

.offices-item-wrapper.reverse .global-overlay.right span {
    right: 100%;
    left: auto;
}

.offices-item-wrapper .global-overlay span a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: underline;
    transition: all .4s ease-in-out;
}

.offices-item-wrapper .global-overlay span a:hover {
    color: #ffbf00;
}

.offices-item {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    max-width: 84.2%;
    margin: 0 auto;
    padding-bottom: 131px;
}

.offices-item-wrapper.reverse .offices-item {
    flex-direction: row-reverse;
}

.offices-item-col {
    width: 50%;
}

.offices-item-map {
    max-width: 629px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
}

.offices-item-wrapper.reverse .offices-item-map {
    margin-left: auto;
}

.offices-item-map iframe {
    display: block;
    width: 100%;
}

.offices-item-details {
    position: relative;
    padding-left: 61px;
}

.offices-item-wrapper.reverse .offices-item-details {
    padding-left: 185px;
}

.offices-item-details::before {
    content: "";
    position: absolute;
    top: -43px;
    left: -8%;
    width: 83%;
    height: 1px;
    background-color: #e1e1e1;
    pointer-events: none;
    z-index: -1;
}

.offices-item-wrapper.reverse .offices-item-details::before {
    left: auto;
    right: -8%;
}

.offices-item-details::after {
    content: "";
    position: absolute;
    top: -47px;
    left: 75%;
    width: 10px;
    height: 10px;
    background-color: #01539e;
    border-radius: 50%;
    pointer-events: none;
}

.offices-item-wrapper.reverse .offices-item-details::after {
    left: 24%;
}

.offices-item-details-name {
    font-family: var(--title-font);
    font-size: 30px;
    font-weight: 400;
    color: #202020;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.offices-item-details-address {
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: 300;
    color: #565656;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.offices-item-details-time {
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: 300;
    color: #565656;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.offices-item-details-phone {
    margin-top: 33px;
}

.offices-item-details-phone a {
    font-family: var(--body-font);
    font-size: 24px;
    font-weight: 500;
    color: #565656;
    letter-spacing: 0.05em;
}

.office-locations-wrapper {
    position: relative;
    /*margin: 110px 0 116px;*/
    margin: 0 0 0;
    padding: 20px 0 30px;
}

.office-locations-inner-wrapper {
    max-width: 84.2%;
    margin: 0 auto;
}

.office-locations-col {
    display: inline-block;
    vertical-align: top;
}

.office-locations-col.col-left {
    width: 21.84%;
    display: none;
}

.office-locations-heading {
    font-family: var(--title-font);
    font-size: 36px;
    font-weight: 400;
    color: #01539e;
    line-height: 1;
    text-transform: uppercase;
}

.office-locations-heading div {
    color: #202020;
}

.office-locations-col.col-right {
    width: 100%;
    /*padding: 0 30px;*/
    padding: 0 30px 0 0;
    margin-bottom: 30px;
}

.office-locations-list {
    position: relative;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offices-page-excerpt {
    width: 50%;
    display: none;
}

.office-locations-list::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 85px;
    width: 84%;
    height: 1px;
    background: #d1d1d1;
    z-index: -1;
    display: none;
}

.office-locations-item {
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
    text-align: center;
}

.office-locations-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
    transform: none;
    width: 10px;
    height: 10px;
    background-color: #d1d1d1;
    border-radius: 50%;
    display: none;
}

.office-loc-dots {
    width: 5px;
    height: 5px;
    background-color: #01539e;
    border-radius: 50%;
}

.office-locations-item.active::after {
    background-color: #01539e;
}

.office-locations-item-name {
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 600;
    color: #202020;
    text-transform: uppercase;
    transition: all .4s ease-in-out;
}

.office-locations-item:hover .office-locations-item-name {
    color: #01539e;
}

.ip-container .footer-top-container,
.ip-container .footer-top-bg {
    background: url('../../images/offices/offices-footer-form-bg.jpg') #cccccc no-repeat center center/cover;
}

.office-notice {
    /*margin-top: 30px;*/
    /*margin-bottom: 50px;*/
    margin-bottom: 25px;
}

.office-locations-col.office-notice {
    margin-top: 30px;
}

.office-locations-col.office-notice p,
.offices-page-excerpt p {
    color: #01539e;
    display: block;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.office-locations-col.office-notice strong {
    color: red;
}

.office-locations-list span.office-loc-dots {
    width: 1px;
    height: 15px;
    background: #565656;
    border-radius: 0;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
}


/* Tabs : START */

.ip-offices-tabs {
    position: relative;
    padding: 0 140px;
}

.ip-offices-tabs > .container {
    width: 100%;
    max-width: 1170px;
    padding: 0 15px;
    margin: 0 auto;
}

.ip-offices-tabs .global-accent {
    display: block;
    top: 25%;
}

.ip-offices-tabs-list {
    position: relative;
}

.ip-offices-tabs-list::before {
    content: '';
    display: block;
    position: absolute;
    width: 86%;
    height: 1px;
    top: 6px;
    left: 0;
    right: 0;
    margin: auto;
    background: #e1e1e1;
}

.ip-offices-tabs-item {
    position: relative;
    width: 25%;
    margin-bottom: 20px;
}

.ip-offices-tabs-item::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    margin: auto auto 20px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: all 0.35s ease-in-out;
}

.ip-offices-tabs-item:hover::before {
    background: var(--primary-color);
}

.ip-offices-tabs-item a {
    display: block;
    font: 800 17px/1.5 var(--body-font);
    color: #000;
    letter-spacing: 0;
    text-align: center;
    transition: all 0.35s ease-in-out;
}

.ip-offices-tabs-item:hover a {
    color: var(--primary-color);
}


/* Tabs : END */

@media only screen and (max-width: 1440px) {
    .office-locations-list::after {
        width: 83%;
    }
    .offices-item-wrapper.reverse .offices-item-details {
        padding-left: 105px;
    }
    .offices-item-wrapper.reverse .offices-item-details::before {
        right: 0;
    }
    .offices-item-wrapper.reverse .offices-item-details::after {
        left: 15%;
    }
}

@media only screen and (max-width: 1366px) {
    .office-locations-item-name {
        font-size: 18px;
    }
    .office-locations-list::after {
        left: 79px;
    }
    .offices-item-details-name {
        font-size: 33px;
    }
}

@media only screen and (max-width: 1199px) {
    .ip-office-container {
        max-width: calc( 100% - 162px);
    }
    .offices-page-heading {
        font-size: 70px;
        padding-left: 80px;
    }
    .offices-page-excerpt p {
        padding: 9px 54px 0 0;
    }
    .offices-item-details-name {
        font-size: 25px;
    }
    .offices-item-details-address {
        font-size: 20px;
    }
    .office-locations-inner-wrapper {
        max-width: 900px;
    }
    .office-locations-heading {
        font-size: 30px;
    }
    .office-locations-item-name {
        font-size: 14px;
    }
    .office-locations-list::after {
        left: 63px;
    }
    .offices-item-wrapper.reverse .offices-item-details {
        padding-left: 60px;
    }
    .ip-offices-tabs {
        padding: 0 80px;
    }
}

@media only screen and (max-width: 991px) {
    .ip-office-container {
        max-width: calc( 100% - 10px);
    }
    .offices-section1-logo,
    .offices-section1-wrapper .global-overlay.right,
    .offices-item-wrapper .global-overlay::before,
    .offices-item-wrapper .global-overlay::after,
    .offices-item-details::before,
    .offices-item-details::after {
        display: none;
    }
    .offices-section1-wrapper {
        /*padding: 0 0 60px;*/
        padding: 0 0 10px;
        display: flex;
        flex-direction: column;
    }
    .offices-page-heading {
        font-size: 70px;
        padding-left: 0;
    }
    .offices-page-excerpt p {
        padding: 9px 0 0;
    }
    .offices-item-wrapper .global-overlay {
        background: none;
    }
    .offices-item {
        max-width: 100%;
        padding-bottom: 0;
        flex-flow: column-reverse wrap !important;
    }
    .offices-item-col {
        width: 100%;
    }
    .offices-item-map {
        max-width: 100%;
        height: 250px;
        overflow: hidden;
    }
    .offices-item-details {
        padding-left: 0;
        text-align: center;
        margin-bottom: 30px;
    }
    .offices-item-wrapper .global-overlay {
        position: relative;
        top: 0;
        left: 0 !important;
        width: 100% !important;
        height: 44px;
    }
    .offices-item-wrapper .global-overlay span {
        position: relative;
        left: 0;
        display: block;
        width: 300px;
        margin: 20px auto 0;
    }
    .office-locations-wrapper {
        /*margin: 70px 0 40px;*/
        margin: 0;
        padding: 0;
    }
    .office-locations-col.col-left {
        width: 100%;
        text-align: center;
    }
    .office-locations-col.col-right {
        display: none;
    }
    .offices-item-wrapper.reverse .offices-item-details {
        padding-left: 0;
    }
    .offices-item-wrapper.reverse .global-overlay.right span {
        right: 0;
    }
    .offices-page-excerpt {
        width: 100%;
    }
    /* Tabs : START */
    .ip-offices-tabs {
        padding: 40px 0 0;
        order: 3;
    }
    .ip-offices-tabs-list {
        align-items: center;
    }
    .ip-offices-tabs-item {
        width: 100%;
    }
    /* Tabs : END */
}

@media only screen and (max-width: 767px) {}

@media only screen and (max-width: 480px) {
    .offices-page-heading {
        font-size: 46px;
    }
    .offices-item-map iframe {
        height: 100%;
    }
    .offices-item-details {
        padding: 0 15px;
    }
    .offices-item-details-address {
        font-size: 17px;
    }
}