/********** Template CSS **********/
:root {
    --primary: #AB7442;
    --light: #F5F5F5;
    --dark: #353535;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.page-header {
    /* background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover; */
    padding: 16px 0;
    background-color: #e5e6e6;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
    font-size: 26px !important;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: #fff;
}

.section-title h1::before {
    left: 0;
    top: 18px;
}

.section-title h1::after {
    right: 0;
    top: 18px;
}

.section-title.text-start h1::before {
    display: none;
}


/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Footer ***/
.footer {
    /* background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover; */
    background-color: #e5e6e6;
    padding: 15px 0px;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* Service section background video */
.service-section { position: relative; overflow: hidden; }
.service-section video.bg-video { position: absolute; top:50%; left:50%; width:100%; height:100%; min-width:100%; min-height:100%; transform:translate(-50%,-50%); object-fit:cover; z-index:0; }
.service-section .container { position: relative; z-index:1; }
.service-section .video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index:0; }

/* Equalize service boxes: make columns flex containers so cards match heights */
  .row.g-4 > [class*="col-"] {
    display: flex;
    align-items: stretch;
  }
  .service-item {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .service-item .overflow-hidden {
    flex: 0 0 auto;
  }
  .service-item .overflow-hidden img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }
  .service-item .p-4 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255,255,255,0.98);
    border-radius: 2px;
    z-index: 2;
  }
  .service-item .p-4 p {
    margin-bottom: 1rem;
    flex: 1 1 auto;
  }
  .service-item .p-4 .fw-medium {
    margin-top: 0.5rem;
  }

@keyframes fadeOutHighlight {
        from {background-color: rgba(155,215,255,0.5);}
        to {background-color: rgba(155,215,255,0);}
      }      
      @keyframes fadeOutHighlightIMG {
        0% {filter: sepia(100%) hue-rotate(180deg) saturate(200%);}
        33% {filter: sepia(66%) hue-rotate(180deg) saturate(100%);}
        50% {filter: sepia(50%) hue-rotate(90deg) saturate(50%);}
        66% {filter: sepia(33%) hue-rotate(0deg) saturate(100%);}
        100% {filter: sepia(0%) hue-rotate(0deg) saturate(100%);}
      }
      @keyframes fiveserverInfoPopup {
        0%   {top:-40px;}
        15%  {top:4px;}
        85%  {top:4px;}
        100% {top:-40px;}
      }
      /*smaller*/
      @media (max-width: 640px) {
        #fiveserver-info-wrapper {
          max-width: 98%;
        }
        #fiveserver-info {
          border-radius: 0px;
        }      
      }


/********** End of Template CSS **********/

.page-header img {
    max-height: 70px !important;
}

.container-xxl.py-5 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.bg-video,
.video-overlay {
    margin-top: 0 !important;
}

.section-title h1 {
    margin: 12px 0 16px !important;
    font-size: 30px !important;
}

.row.g-4 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
}

.service-item {
    background: #fff !important;
    border: 2px solid #fff !important;
    overflow: hidden !important;
}

.service-link {
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #000 !important;
}

.service-item img {
    height: 140px !important;
    width: 100% !important;
    object-fit: cover !important ;
}

.service-item h4 {
    margin: 8px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

@media (min-width: 992px) {
    .service-item .overflow-hidden img {
        height: 191px !important;
    }
}

@media (max-width: 576px) {
    html, body {
        height: 100vh !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    body {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
    }

    .page-header {
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-header > div {
        min-height: auto !important;
        height: 70px !important;
    }

    .page-header img {
        max-height: 55px !important;
    }

    .service-section {
        position: relative !important;
        height: calc(100vh - 110px) !important;
        overflow: hidden !important;
    }

    .bg-video,
    .video-overlay {
        position: absolute !important;
        /* inset: 0 !important; */
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .container-xxl,
    .container {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .section-title h1 {
        font-size: 18px !important;
        margin: 6px 0 10px !important;
    }

    .col-md-6.col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .row.g-4 {
        --bs-gutter-x: 6px !important;
        --bs-gutter-y: 6px !important;
    }

    .service-item {
      display: flex !important;
      flex-direction: column !important;
      height: 100% !important;
    }

    .service-link {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .service-item .overflow-hidden {
        flex: 1 !important; 
    }

    .service-item .overflow-hidden img {
        width: 100% !important;
        height: 100% !important;        
        object-fit: contain !important;
    }
    
    .service-item h4 {
        font-size: 13px !important;
        margin: 4px 0 !important;
    }

    .footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 4px 0 !important;
        font-size: 11px !important;
    }
}