/*
 * XE - Extrusion ERP  |  Base theme
 * Ported from the reference design (Acuas by HTML Codex, CC BY 4.0):
 * same palette, typography, pill buttons, hover-fill cards, breadcrumb banner and footer.
 * Palette lives in the --bs-* variables of css/bootstrap.min.css
 *   primary #00D1F9 | secondary #19409A | dark #001442 | light #F2F9F9
 */

/*** 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;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    z-index: 99;
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }
.btn-xl-square { width: 66px; height: 66px; }

.btn.btn-primary { color: var(--bs-white); }
.btn.btn-primary:hover {
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary { color: var(--bs-white); }
.btn.btn-secondary:hover {
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.btn.btn-outline-light:hover { color: var(--bs-dark); }

/*** Navbar ***/
.navbar-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--bs-white);
    transition: .5s;
}

.navbar-light.shadow-sm { box-shadow: 0 4px 24px rgba(0, 31, 67, .1) !important; }

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 22px;
    padding: 28px 0;
    color: var(--bs-dark);
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.navbar-light.scrolled .navbar-nav .nav-link { padding: 20px 0; }

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    height: 34px;
    width: auto;
    transition: .5s;
}

.navbar-toggler { border: 1px solid var(--bs-primary); color: var(--bs-primary); padding: 10px 18px; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 1199.98px) {
    .navbar-light { padding-top: 12px; padding-bottom: 12px; }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, .08);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar-light .navbar-nav .nav-link,
    .navbar-light.scrolled .navbar-nav .nav-link {
        padding: 10px 0;
        margin-right: 0;
    }

    .navbar-light .navbar-brand img { height: 30px; }
}

@media (min-width: 1200px) {
    .navbar-light .navbar-nav .nav-item::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-item::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid;
        border-color: transparent transparent var(--bs-primary) transparent;
        opacity: 0;
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-item:hover::after,
    .navbar-light .navbar-nav .nav-item.active::after { opacity: 1; }

    .navbar-light .navbar-nav .nav-item:hover::before,
    .navbar-light .navbar-nav .nav-item.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-item { position: relative; }
}

/*** Hero carousel ***/

.carousel-indicators { display: none; }

.carousel-caption-1 {
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(0, 31, 67, .78) 0%, rgba(0, 31, 67, .35) 65%, rgba(0, 31, 67, .1) 100%);
}

.carousel-caption-2 {
    background: linear-gradient(90deg, rgba(0, 31, 67, .78) 0%, rgba(0, 31, 67, .35) 65%, rgba(0, 31, 67, .1) 100%);
}

.carousel-caption-1-content { text-align: end; padding-right: 100px; }
.carousel-caption-2-content { text-align: start; padding-left: 100px; }

.carousel-caption-1-content .carousel-caption-1-content-btn { display: flex; justify-content: end; flex-wrap: wrap; gap: 12px; }
.carousel-caption-2-content .carousel-caption-2-content-btn { display: flex; justify-content: start; flex-wrap: wrap; gap: 12px; }

.hero-brand {
    font-family: "Poppins", sans-serif;
    font-style: italic;
    color: var(--bs-white);
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {

    .carousel-caption-1-content,
    .carousel-caption-2-content {
        padding: 0 20px !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn,
    .carousel-caption-2-content .carousel-caption-2-content-btn { justify-content: center; }
}


/*** Page banner / breadcrumb ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 31, 67, 0.72), rgba(0, 31, 67, 0.72)), url(../img/breadcrumb.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 170px 0 70px 0;
}

.bg-breadcrumb .breadcrumb { position: relative; }
.bg-breadcrumb .breadcrumb .breadcrumb-item a { color: var(--bs-white); }
.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .7); }

@media (max-width: 1199.98px) {
    .bg-breadcrumb { padding: 130px 0 60px 0; }
}

/*** Feature / value cards ***/
.feature .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bs-white);
    border-radius: 10px;
    height: 100%;
    transition: 0.5s;
}

.feature .feature-item:hover { box-shadow: 0 0 45px rgba(0, 0, 0, .08); }

.feature .feature-item .feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon i { transition: 0.5s; }


/*** About block ***/
.about .about-img {
    position: relative;
    padding-bottom: 30px;
    margin-top: 30px;
    margin-left: 30px;
}

.about .about-img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    top: -30px;
    right: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
}

.about .about-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 100%;
    left: -30px;
    bottom: 30px;
    border-radius: 10px;
    background: var(--bs-secondary);
}

.about .about-img .about-exp {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 25px;
    font-size: 22px;
    line-height: 1.25;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    background: var(--bs-secondary);
    color: var(--bs-white);
    border: 1px solid var(--bs-secondary);
    margin-top: -30px;
    margin-left: -30px;
    border-radius: 10px;
    z-index: 2;
}

.about .about-img.about-img-right { margin-left: 0; margin-right: 30px; }
.about .about-img.about-img-right::after { left: auto; right: -30px; }
.about .about-img.about-img-right .about-exp { left: auto; right: 0; margin-left: 0; margin-right: -30px; }

@media (max-width: 575.98px) {
    .about .about-img { margin-left: 20px; }
    .about .about-img::after { left: -20px; }
    .about .about-img .about-exp { margin-left: -20px; font-size: 18px; }
    .about .about-img.about-img-right { margin-right: 20px; margin-left: 0; }
    .about .about-img.about-img-right::after { right: -20px; }
}

/*** Service-style hover-fill cards ***/
.service-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    background: var(--bs-white);
}

.service-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    background: var(--bs-primary);
    transition: 0.5s;
    z-index: 1;
}

.service-item:hover::after { width: 100%; height: 100%; }

.service-item .service-content,
.service-item .service-btn { position: relative; z-index: 2; }

.service-item .service-content a,
.service-item .service-content p,
.service-item .service-content h5 { transition: 0.5s; }

.service-item:hover .service-content h5,
.service-item:hover .service-content a,
.service-item:hover .service-content p { color: var(--bs-white); }

.service-item .service-btn {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    transition: 0.5s;
}

.service-item .service-btn i { transition: 0.5s; }
.service-item:hover .service-btn { background: var(--bs-white); }
.service-item:hover .service-btn i { color: var(--bs-primary) !important; }

/*** Blue fact band (used for the module ecosystem) ***/
.counter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(16, 45, 70, 0.92), rgba(16, 45, 70, 1)), url(../img/cta-bg.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

/*** Blog / news cards ***/
.blog .blog-item {
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
    height: 100%;
}

.blog .blog-item:hover { box-shadow: 0 0 45px rgba(0, 0, 0, 0.2); }

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item .blog-img img { transition: 0.5s; }
.blog .blog-item:hover .blog-img img { transform: scale(1.12); }
.blog .blog-item:hover .blog-img::after { background: rgba(6, 183, 175, 0.2); }

.blog .blog-item .blog-date {
    position: absolute;
    top: 25px;
    left: 25px;
    border-radius: 10px;
    background: var(--bs-primary);
    color: var(--bs-white);
    z-index: 2;
}

.blog .blog-item .blog-content a { transition: 0.5s; }
.blog .blog-item:hover .blog-content a:hover { color: var(--bs-primary) !important; }

/*** Footer ***/
.footer { background: var(--bs-dark); }

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p { line-height: 35px; }
.footer .footer-item a:hover { letter-spacing: 1px; color: var(--bs-primary); }

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
