.circuit1 {
    position: relative;
    overflow: visible;
    background-image: url(../images/servicers/circuit1.png);
    background-size: 32%;
    background-position: top left;
    background-repeat: no-repeat;
}

.tab-container {
    width: 98%;
    margin: auto;
    overflow: visible;
    padding-top: 20px;
    padding-left: 25px;
    padding-right: 0;
}

.tab-heading {
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: 4px !important;

    text-align: center;
    border: 0 !important;
    color: #fff !important;
    min-height: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 11pt !important;
    font-family: 'FrutigerLTStd-Light';
    background-color: #008EAC !important;
}

html[lang="zh-Hans-HK"] .tab-heading {
    font-family: 'NotoSansSC-Light';
}

html[lang="zh-Hant-HK"] .tab-heading {
    font-family: 'NotoSansHK-Light';
}

.xc-font-sm .tab-heading {
    font-size: 9pt !important;
}

.xc-font-lg .tab-heading {
    font-size: 13pt !important;
}

.tab-heading.active {
    font-family: 'FrutigerLTStd-Bold';
    background-color: #0050a4 !important;
}

html[lang="zh-Hans-HK"] .tab-heading.active {
    font-family: 'NotoSansSC-Bold';
}

html[lang="zh-Hant-HK"] .tab-heading.active {
    font-family: 'NotoSansHK-Bold';
}

.tab-content {
    padding: 25px 40px 60px 25px;
    background-image: url(../images/servicers/circuit2.png);
    background-size: auto;
    background-position: bottom right;
    background-repeat: no-repeat;
    z-index: 99;
}

.tab-content-bg {
    position: relative;
    overflow: visible;
    background-image: linear-gradient(0, #E1FBFF 0%, #E1FBFF 100%);
    border-radius: 0 0 30px 0;
}

.tab-pane>h6 {
    color: #0050a4;
    font-family: 'FrutigerLTStd-Roman';
}

html[lang="zh-Hans-HK"] .tab-pane>h6 {
    font-family: 'NotoSansSC-Regular';
}

html[lang="zh-Hant-HK"] .tab-pane>h6 {
    font-family: 'NotoSansHK-Regular';
}

.tab-pane>p {
    font-size: 13pt;
    font-family: 'FrutigerLTStd-Light';
}

html[lang="zh-Hans-HK"] .tab-pane>p {
    font-family: 'NotoSansSC-Light';
}

html[lang="zh-Hant-HK"] .tab-pane>p {
    font-family: 'NotoSansHK-Light';
}

.xc-font-sm .tab-pane>p {
    font-size: 11pt;
}

.xc-font-lg .tab-pane>p {
    font-size: 15pt;
}

.tab-pane-heading {
    font-family: 'FrutigerLTStd-Bold';
    font-weight: bold;
    font-size: 13pt;
}

html[lang="zh-Hans-HK"] .tab-pane-heading {
    font-family: 'NotoSansSC-Bold';
}

html[lang="zh-Hant-HK"] .tab-pane-heading {
    font-family: 'NotoSansHK-Bold';
}

.xc-font-sm .tab-pane-heading {
    font-size: 11pt;
}

.xc-font-lg .tab-pane-heading {
    font-size: 15pt;
}

.tab-pane-content {
    font-family: 'FrutigerLTStd-Light';
    font-size: 13pt;
}

html[lang="zh-Hans-HK"] .tab-pane-content {
    font-family: 'NotoSansSC-Light';
}

html[lang="zh-Hant-HK"] .tab-pane-content {
    font-family: 'NotoSansHK-Light';
}

.xc-font-sm .tab-pane-content {
    font-size: 11pt;
}

.xc-font-lg .tab-pane-content {
    font-size: 15pt;
}

.tab-icon {
    position: absolute;
    bottom: -31px;
}

.tab-icon img {
    height: 80px;
    width: auto;
}

@media only screen and (max-width: 575px) {
    .circuit1 {
        background-size: 66%;
    }

    .tab-container {
        padding-top: 16px;
        padding-left: 22px;
        padding-right: 0;
    }

    .nav-tabs {
        flex-direction: column !important;
    }

    .tab-heading {
        width: 100%;
        border-radius: 0 !important;
        font-size: 12pt;
        padding-left: 10px;
        padding-right: 10px;
    }

    .xc-font-sm .tab-heading {
        font-size: 10pt;
    }

    .xc-font-lg .tab-heading {
        font-size: 14pt;
    }

    .tab-heading:nth-child(1) {
        border-radius: 15px 15px 0 0 !important;
    }
}

@media only screen and (max-width: 449px) {
    .tab-container {
        padding-top: 12px;
        padding-left: 20px;
        padding-right: 0;
    }

    .tab-heading {
        font-size: 11pt;
        padding-left: 0;
        padding-right: 0;
    }

    .xc-font-sm .tab-heading {
        font-size: 9pt;
    }

    .xc-font-lg .tab-heading {
        font-size: 13pt;
    }
}

@media only screen and (min-width: 576px) {
    .circuit1 {
        background-size: 60%;
    }

    .nav-tabs {
        flex-direction: row !important;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    .tab-heading {
        width: 19.76%;
        margin-right: 0.3%;
        border-radius: 15px 15px 0 0 !important;
    }

    .tab-heading:nth-last-child(1) {
        margin-right: 0;
    }
}

@media only screen and (min-width: 768px) {
    .circuit1 {
        background-size: 50%;
    }
}

@media only screen and (min-width: 992px) {
    .circuit1 {
        background-size: 40%;
    }
}

@media only screen and (min-width: 1200px) {
    .circuit1 {
        background-size: 36%;
    }
}

@media only screen and (min-width: 1200px) {
    .circuit1 {
        background-size: 32%;
    }
}