﻿@media only screen and (min-width: 768px){
    .navScrolled {
        position: fixed !important;
        top: 100px;
        z-index: 500;
        width: 100%;
    }
}


@media only screen and (min-width: 644px) {
    .section-footer .row:first-child .col-md-2 {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 19.9%;
                flex: 0 0 19.9%;
        max-width: 19.9%;
    }
    /*.tab .col-md-2 {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 20%;
                flex: 0 0 20%;
        max-width: 20%;
    }*/
}


@media only screen and (min-width: 991px) {
    .navbar span {
        float: right;
        margin-left: 5px;
    }
    nav .dropdown-menu {
        border-radius: 2px 2px;
        -webkit-box-shadow: 0.5px 0.5px #808080;
                box-shadow: 0.5px 0.5px #808080;
    }
    
    nav .dropdown:hover > .dropdown-menu {
        display: block;
    }

    nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }

    nav .dropdown-left:hover > .dropdown-menu {
        display: block;
    }

    nav .dropdown-left > .dropdown-toggle:active {
        pointer-events: none;
    }


    
    .navbar-nav li a {
        -webkit-transform: translateY(35%);
                transform: translateY(35%);
    }

    .navbar-collapse {
        height: 100%;
        
    }
    .search-font {
        -webkit-transform: translateY(50%);
                transform: translateY(50%);
    }
}
@media only screen and (max-width: 1500px){
    .navbar-nav li a {
        font-size: 85%;
    }
}

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

    .nav-icon-bar {
        display: none;
    }
    
}

/* Big tablet to 1200px (widths smaller than the 1040 px row) */
@media only screen and (max-width: 1200px) {
    

    html,
    body {
        font-size: 18px;
    }
    

    .navbar-nav li {
        padding-top: 5px;
    }

    .nav-icon-bar p {
        font-size: 90%;
    }

    .nav-icon-bar h5 {
        font-size: 105%;
    }

    .dropdown-menu {
        font-size: 0.6rem;
    }

    .text-card {
        min-height: 260px;
        max-width: 225px;
    }

    /* CAROUSEL */
    .img-carousel {
        height: 225px !important;
    }

    .img-person {
        height: 200px;
    }

    .welcome-header p {
        font-size: 80%;
    }

    .welcome-header h1 {
        font-size: 1.6rem;
    }

    /* Cards */
    .text-card {
        min-height: 170px;
        max-width: 180px;
    }

        .text-card p {
            -webkit-transform: translateY(-75%);
                    transform: translateY(-75%);
        }

    /*---------------FAQTSB-------------*/
    .faq-header {
        font-size: 240% !important;
      
        width: 55% !important;
    }
}

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

    /* Cards */
    .text-card {
        min-height: 170px;
        max-width: 180px;
    }

        .text-card p {
            -webkit-transform: translateY(-75%);
                    transform: translateY(-75%);
        }

    /* Coursel */
    .carousel-header .container {
        margin: auto;
        width: 100%;
        max-width: 100%;
    }
    .carousel-inner {
        width: 100%;
    }
    

}

@media only screen and (max-width: 1000px){
    .section-cards .col-md-3 {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 50%;
                flex: 0 0 50%;
    }
    .section-cards .row .text-card:first-child {
        margin-left: auto;
    }

    .section-cards .row .text-card:last-child {
        margin-right: auto;
    }
}

/* Sall phones to small tablets */
@media only screen and (max-width: 991px) {
    #demo-2 input[type=search]:focus {
        width: 250px;
        
    }
    .nav-icon-bar {
        display: block;
    }
    /*.section-news {
        
        font-size: 90%;
    }*/
    html,
    body {
        font-size: 18px;
    }
    .collapsing {
        position: absolute;
        width: 100%;
        top: 70px;
        left: 0px;
    }
    .navbar-collapse {
        max-height: 300px;
        overflow-y: auto;
        background-color: #fff;
    }


    .navbar-collapse.show {
        position: absolute;
        width: 100%;
        top: 70px;
        left: 0px;
    }
    .navbar-nav li a {
        font-size: 100%;
        padding-left: 10px !important;
        
    }

    .navbar-nav li {
        margin-left: 0px !important;
        padding-top: 0px;
        border-top: 1px solid #000;
       
       
        
    }
    .small-drop ul li {
        padding-top: 0px;
        width: 100%;
        padding-left: 20px;
        font-size: 120%;
        
    }

        .navbar-nav li ion-icon {
            margin-left: 5px !important;
        }

    .mega-menu .row div:nth-child(-n+3) {
        border-right: none !important;
    }

    .mega-menu .row div:nth-child(-n+4) {
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 8px solid #b1b1b1;
    }
    .mega-menu .row div:last-child{
        margin-bottom: 0px;
    }


    .mega-menu ul li {
        padding-left: 20px;
    }

    .mega-menu ul li:last-child {
        border-bottom: 1px solid #000;
    }
    .mega-menu p {
        padding-left: 15px;
    }

    nav .dropdown-menu {
        border: none;
        padding: 0;
    }
    .mini-menu {
        min-width: 100% !important;
        
    }
   

    .navbar-collapse {
        z-index: 9999;
    }

        .navbar-collapse .navbar-nav {
            width: 100%;
            top: 86px;
        }
    
}

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

    /* CAROUSEL */
    .img-carousel {
        height: 200px !important;
    }

    .carousel-header .carousel {
        max-width: 100%;
    }

    .img-person {
        height: 175px;
        right: 34%;
    }

    .i-2 {
        right: 40%;
    }

    .carousel-header .row {
        padding-left: 0;
    }

    /* Cards */
    .section-cards .row .text-card:first-child {
        margin-left: auto;
    }

    .section-cards .row .text-card:last-child {
        margin-right: auto;
    }

    .section-footer div div:first-child {
        margin-left: 0;
    }
    
}
@media only screen and (max-width: 767px){
    .contact-top{
        height: auto;
    }
    .contact-top img {
        width: 30px !important;
        height: 30px !important;
    }

    .contact-bottom {
        padding-top: 30px;
    }
    .Section-Contact-Content .border-right {
        border-right: none !important;
    }
    .navScrolled {
        position: relative !important;
        top: 0;
        z-index: 500;
        width: 100%;
    }
    .bg-header .display-4 {
        text-transform: uppercase;
        font-size: 250%;
        font-weight: 500 !important;
    }
    .section-footer .row:first-child {
        height: 239px;
    }
    .index-wrap {
        padding-bottom: 254px;
    }
}

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

    .bg-display {
        display:none;
    }
    
    /* CAROUSEL */
    .img-carousel {
        height: 150px !important;
    }

    .img-person {
        height: 125px;
    }

   
}

@media only screen and (max-width: 634px) {
    html,
    body {
        font-size: 15px;
    }
}


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

    .img-carousel {
        padding-right: 20px;
    }

    .img-person {
        right: 30%;
    }

    .i-2 {
        right: 35%;
    }
    .float-content {
        font: 12px;
    }
}

@media only screen and (max-width: 576px){
    .section-footer .row:first-child {
        height: 436px;
    }
    .index-wrap {
        padding-bottom: 451px;
    }
    .name-text {
        left: 40px;
    }
    #carouselExampleControls{
        padding: 0;
    }
    .news-car p {
        padding-left: 0px;
        
    }
    .news-car {
        text-align: center !important;
    }
    .news-feed p {
        padding-top: 5px;
    }
}

/* Small phones: from 0 to 480px */
@media only screen and (max-width: 480px) {
    /* CAROUSEL */
    .name-text {
        left: 30px;
    }
    .img-carousel {
        height: 120px !important;
    }

    .img-person {
        height: 100px;
    }

    .section-head p {
        font-size: 70%;
    }

    /* NAVBAR */

    
    .nav-icon-bar {
        position: absolute;
        top: 20px;
        left: 120px;
        width: 120px;
    }
        .nav-icon-bar p, h5 {
            margin-bottom: 0;
            text-decoration: none;
            color: #000;
            width: 100%;
            font-size: 80%;
        }
        .nav-icon-bar h5 {
            font-size: 90%;
        }


    nav a img {
        height: 50px;
    }

    .navbar {
        height: 70px;
    }

    .section-cards .col-md-3 {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
                flex: 0 0 100%;
    }

   

    .section-header-pi .display-4 {
        font-size: 220%;
    }
}
