@font-face {
    font-family: 'BAHNSCHRIFT';
    src: url('../fonts/BAHNSCHRIFT.eot');
    src: url('../fonts/BAHNSCHRIFT.eot') format('embedded-opentype'),
         url('../fonts/BAHNSCHRIFT.woff2') format('woff2'),
         url('../fonts/BAHNSCHRIFT.woff') format('woff'),
         url('../fonts/BAHNSCHRIFT.ttf') format('truetype'),
         url('../fonts/BAHNSCHRIFT.svg#BAHNSCHRIFT') format('svg');
}

body,
p {
    color: #494949;
    font-family: 'Nunito', sans-serif;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: #587793;
    letter-spacing: -1px
}

h1,
h2 {
    font-weight: bold;
    font-family: 'Bahnschrift', 'Nunito' !important;
}

header {
    background: url(../img/header-bg.png) no-repeat;
    background-size: cover;
    min-height: 70px;
    border-bottom: 5px solid #fcd311;
}

.logo {
    background: url(../img/logo.png) no-repeat;
    background-size: contain;
    width: 30%;
}

.header-tel {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Bahnschrift', 'Nunito' !important;
    line-height: 1;
    color: #fff;
    float: right;
    letter-spacing: 0;
    text-align: center
}

.carousel-container {
    background: url(../img/slider-bg4.jpeg) no-repeat;
    background-size: cover;
    padding-top: 3rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.af-video video {
    width: 90%;
    margin: 30px 0;
    box-shadow: 0px 0px 25px rgba(100, 128, 152, 0.3);
    border: 5px solid #fff
}

p a {
    color: #17ace4;
    text-decoration: none;
    border-bottom: 1px solid #17ace4
}

p a:hover {
    color: #587793;
    border-bottom: 1px solid #587793
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #527897
}

.nav-link:hover {
    color: #fcd311 !important
}


.carousel {

    background: transparent
}


.carousel-item > img {
    position: relative;
    max-width: 100%;

}

.carousel-item p {
    margin: 15px 30px 60px;
    text-align: center
}

.download-link {
    margin-top: 0px;
    margin-bottom: 50px
}

.download-link a {
    margin: 10px
}

.button-af {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: rgb(0, 0, 0);
    letter-spacing: 1px;
    background-color: rgb(252, 211, 17);
    border-color: transparent;
    border-radius: 3px;
    color: #587793
}

.button-af:hover {
    background: #587793;
    color: #fff
}

footer {
    background: url(../img/header-bg.png) no-repeat;
    background-size: cover;
    min-height: 70px;
    border-bottom: 5px solid #fcd311;
}

.footer-logo {
    background: url(../img/AFSI-logo1.png) no-repeat;
    background-size: contain;
    width: 280px;
    height: 80px;
}

footer .nav-link {
    color: #fff !important
}

.copyright {
    background: #233f55;
    font-size: 14px;
    color: #fff
}


.subpage-header h1,
footer .nav-link.text-yellow {
    color: #fcd311 !important
}

.subpage-header h3 {
    color: #ffffff;
    margin-bottom: 0px
}
.carousel-control-next, .carousel-control-prev {
    opacity: .9;
    text-shadow: 0px 5px 5px rgb(0 0 0 / 40%);
   
}

@media (min-width: 62em) {

    .carousel-item {
        height: 36rem;
    }
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1120px;
    }

    .carousel-indicators {
        position: absolute;
        right: 0;
        bottom: -50px;
    }
    .header-tel {
        margin-right: 15px;
    }
    .af-video video {
        width: 70%; }
}

@media (max-width: 991px) {
    .carousel-container {
        padding-top: 3rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .logo {
        background: url(../img/logo.png) no-repeat;
        background-size: contain;
        width: 35%;
        margin-top: 10px;
    }

}

@media (max-width: 676px) {
    .logo {
        background: url(../img/logo.png) no-repeat;
        background-size: contain;
        width: 80%;
        margin-top: 10px;
        min-height: 60px;
    }

    .download-link img {
        margin: 10px
    }
    .header-tel {
        margin: 10px !important
    }
    header .nav.my-3 {
        margin: 0 !important
    }
}
