/********** Template CSS **********/
:root {
    --primary: #1E60AA;
    --secondary: #FF4917;
    --light: #EDF1FC;
    --dark: #17224D;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

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

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


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


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

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

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

/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.navbar-brand img {
    max-height: 60px;
    height: auto;
}

.nav-bar {
    position: relative;
    padding: 0 2.75rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

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

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@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;
    }
}


/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #FFFFFF;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: #FFFFFF;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }

    .vertical-overlay h1 {
        font-size: 0.6rem !important;
        writing-mode: horizontal-tb !important;
        letter-spacing: 0.5px !important;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../images/bg.jpg) center center no-repeat;
    background-size: cover;
}

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


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}


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

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

.service-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.service-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #1e60aa;
    border: 5px solid #edf1fc;
    transition: .5s;
}

.service-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

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

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: .5s;

}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.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;
    border-radius: 35px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

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

.error {
    font-size: 0.85rem;
    color: red;
    margin-top: 4px;
}

.vertical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* or right: 0; for right side */
    width: 100px;
    /* adjust width as needed */
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* semi-transparent black */
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.vertical-overlay h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: #fff;
    writing-mode: vertical-lr;
    /* vertical text orientation */
    text-orientation: upright;
    text-transform: uppercase;
    font-weight: bold;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50px;
}

/* Testimonial Design from Home Page */
.testimonial-container {
    width: 100%;
    max-width: 56rem;
    padding: 2rem;
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    gap: 5rem;
}

.image-container {
    position: relative;
    width: 100%;
    height: 24rem;
    perspective: 1000px;
}

.testimonial-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.25rem;
}

.designation {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.quote {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.75;
}

.arrow-buttons {
    display: flex;
    gap: 1rem;
    padding-top: 3rem;
}

.arrow-button {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrow-button:hover {
    background-color: white;
}

.arrow-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #f1f1f7;
    transition: transform 0.3s;
}

.arrow-button:hover svg {
    fill: #141313;
}

.prev-button:hover svg {
    transform: rotate(-12deg);
}

.next-button:hover svg {
    transform: rotate(12deg);
}

.testimonial-image,
.testimonial-slide {
    /* display: none; */
    /* opacity: 0; */
    transition: opacity 0.4s ease;
}

.testimonial-image.active,
.testimonial-slide.active {
    display: block;
    opacity: 1;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .arrow-buttons {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-container {
        height: 20rem;
    }

    .quote {
        font-size: 1.05rem;
    }

    .name {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .testimonial-container {
        padding: 1rem;
    }

    .testimonial-grid {
        gap: 2rem;
    }

    .image-container {
        height: 16rem;
    }

}

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

.error {
    font-size: 0.85rem;
    color: red;
    margin-top: 4px;
}

.vertical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* or right: 0; for right side */
    width: 100px;
    /* adjust width as needed */
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* semi-transparent black */
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.vertical-overlay h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: #fff;
    writing-mode: vertical-lr;
    /* vertical text orientation */
    text-orientation: upright;
    text-transform: uppercase;
    font-weight: bold;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50px;
}

/* Testimonial Design from Home Page */
.testimonial-container {
    width: 100%;
    max-width: 56rem;
    padding: 2rem;
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    gap: 5rem;
}

.image-container {
    position: relative;
    width: 100%;
    height: 24rem;
    perspective: 1000px;
}

.testimonial-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.25rem;
}

.designation {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.quote {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.75;
}

.arrow-buttons {
    display: flex;
    gap: 1rem;
    padding-top: 3rem;
}

.arrow-button {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrow-button:hover {
    background-color: white;
}

.arrow-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #f1f1f7;
    transition: transform 0.3s;
}

.arrow-button:hover svg {
    fill: #141313;
}

.prev-button:hover svg {
    transform: rotate(-12deg);
}

.next-button:hover svg {
    transform: rotate(12deg);
}

.testimonial-image,
.testimonial-slide {
    /* display: none; */
    /* opacity: 0; */
    transition: opacity 0.4s ease;
}

.testimonial-image.active,
.testimonial-slide.active {
    display: block;
    opacity: 1;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .arrow-buttons {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-container {
        height: 20rem;
    }

    .quote {
        font-size: 1.05rem;
    }

    .name {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .testimonial-container {
        padding: 1rem;
    }

    .testimonial-grid {
        gap: 2rem;
    }

    .image-container {
        height: 16rem;
    }

    .quote {
        font-size: 1rem;
        line-height: 1.6;
    }

    .name {
        font-size: 1.25rem;
    }
}

/* Helper for smaller profile image with rotating border */
.profile-image-wrapper.small {
    width: 150px;
    height: 150px;
}

.profile-image-wrapper.small .circle-border {
    width: 170px;
    height: 170px;
    top: -10px;
    left: -10px;
}

/* Recaptcha Mobile Scaling */
@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }

    .row>* {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}