/********** Template CSS **********/
:root {
    --primary: #1f5fbf;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (max-width: 991.98px) {
    .carousel-caption {
        display: none !important;
    }

    #header-carousel .carousel-item {
        min-height: auto;
    }

    .carousel-item img {
        width: 100%;
        height: auto !important;
        max-height: 320px;
        object-fit: cover;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 14%;
    }

    .hero-header .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .hero-header .col-lg-8 {
        background: rgba(29, 42, 77, .88);
        border-radius: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .hero-header h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.15;
    }

    .hero-header h5,
    .hero-header p,
    .hero-header .breadcrumb-item {
        color: #fff !important;
    }

    .position-relative.h-100 > img.position-absolute.w-100.h-100.rounded {
        position: relative !important;
        height: 320px !important;
    }

    .col-lg-5.mb-5.mb-lg-0[style*="min-height: 500px"] {
        min-height: auto !important;
    }

    .team-item .row,
    .team-item-detail .row {
        height: auto !important;
    }

    .owl-carousel .owl-nav {
        margin-top: .75rem;
    }

    .price-carousel::after {
        width: 100%;
        left: 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.carousel-caption {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 992px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: auto;
    }
    
    #header-carousel .carousel-item img {
        position: relative !important;
        width: 100%;
        height: auto !important;
        max-height: 360px;
        object-fit: cover;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item.active {
    color: var(--bs-white);
}

/* Shared header/footer balance for all pages */
.container-fluid.py-2.border-bottom.d-none.d-lg-block.bg-light .row.align-items-center {
    min-height: 44px;
}

.container-fluid.py-2.border-bottom.d-none.d-lg-block.bg-light .col-lg-8.col-md-7 .d-flex.flex-wrap.align-items-center.gap-3 {
    justify-content: center;
}

.container-fluid.py-2.border-bottom.d-none.d-lg-block.bg-light .col-lg-4.col-md-5 .d-inline-flex.align-items-center {
    justify-content: center;
}

@media (min-width: 992px) {
    .container-fluid.py-2.border-bottom.d-none.d-lg-block.bg-light .col-lg-8.col-md-7 .d-flex.flex-wrap.align-items-center.gap-3 {
        justify-content: flex-start;
    }

    .container-fluid.py-2.border-bottom.d-none.d-lg-block.bg-light .col-lg-4.col-md-5 .d-inline-flex.align-items-center {
        justify-content: flex-end;
    }
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 {
    align-items: stretch;
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 > [class*="col-"] {
    display: flex;
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 > [class*="col-"] > * {
    width: 100%;
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 .d-flex.flex-column {
    gap: .35rem;
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 .d-flex.flex-column a {
    line-height: 1.5;
}

.container-fluid.bg-dark.text-light.mt-5.py-5 .row.g-5 .d-flex {
    flex-wrap: wrap;
}

.site-footer .footer-card {
    padding: .25rem 0;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.site-footer .footer-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-footer .footer-lead {
    max-width: 22rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.site-footer .footer-meta {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.site-footer .footer-links a,
.site-footer .footer-meta p {
    line-height: 1.5;
}

.site-footer .footer-newsletter .input-group .form-control,
.site-footer .footer-newsletter .input-group .btn {
    min-height: 54px;
}

.site-footer .footer-social {
    margin-top: 1rem;
}

.site-topbar .topbar-inner {
    min-height: 44px;
}

.site-topbar .topbar-contact,
.site-topbar .topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-topbar .topbar-contact {
    justify-content: center;
}

@media (min-width: 992px) {
    .site-topbar .topbar-contact {
        justify-content: flex-start;
    }

    .site-topbar .topbar-social {
        justify-content: flex-end;
    }
}

.site-footer .footer-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.site-footer .footer-links a {
    line-height: 1.5;
}

.site-footer .footer-social {
    margin-top: auto;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .team-item-detail .row {
        height: 500px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.text-primary{
    color: var(--primary) !important;
}

.coverage-card {
    margin: 0 8px;
}

.coverage-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.coverage-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.city-img-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
}

.city-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-cta {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login-cta:hover {
    background: #174693;
    border-color: #174693;
    color: #fff;
    transform: none;
}

.hero-mobile-card {
    background: var(--primary);
}

@media (max-width: 991.98px) {
    .login-cta {
        width: auto;
        margin-top: 12px;
        align-self: flex-start;
    }
}
