/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 50px;
    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: 500;
    transition: .5s;
}

.btn.btn-primary {
    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 ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #E76517;
}

/* Style for dropdown items */
.navbar .navbar-nav .dropdown-item:hover,
.navbar .navbar-nav .dropdown-item:active {
    color: #E76517;
}

/* Show parent dropdown toggle as active when submenu is hovered */
.navbar .navbar-nav .submenu-item:hover>.submenu-toggle,
.navbar .navbar-nav .sub-submenu-item:hover>.submenu-toggle {
    color: #E76517;
}

/* Keep parent items active when child submenu is hovered */
.navbar .navbar-nav .submenu:hover+.submenu-toggle,
.navbar .navbar-nav .sub-submenu:hover+.submenu-toggle {
    color: #E76517;
}

/* Keep dropdown toggle active when dropdown menu is hovered */
.navbar .navbar-nav .dropdown-menu:hover+.nav-link.dropdown-toggle,
.navbar .navbar-nav .dropdown-toggle:hover {
    color: #E76517;
}

/* Ensure parent submenu items stay highlighted when deeper levels are hovered */
.navbar .navbar-nav .sub-submenu-item:hover>.submenu-toggle,
.navbar .navbar-nav .submenu-item:hover>.dropdown-item {
    color: #E76517;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 11px;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

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

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

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-4.jpeg) center center no-repeat;
    background-size: cover;
}

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

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


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #E76517;
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: #E76517;
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid #E76517;
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #E76517 !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: #E76517;
    background: #E76517;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #E76517 !important;
}

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

/* .testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: #E76517;
    background: #E76517;
} */

/* Modified navigation styles to position on side */
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Allow clicks through the nav container */
    margin-top: 0; /* Remove the top margin */
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
    background-color: #fff;
    pointer-events: auto; /* Enable clicks on buttons */
    z-index: 10; /* Ensure buttons are on top */
    transform: translateX(0);
}

.testimonial-carousel .owl-nav .owl-prev {
    transform: translateX(-55px);
}

.testimonial-carousel .owl-nav .owl-next {
    transform: translateX(5px);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: #E76517;
    background: #E76517;
}

@media screen and (max-width: 768px) {
    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
      display: none;
    }
  }

/* Container adjustment to accommodate side navigation */
.container .testimonial-carousel {
    padding: 0 30px;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #E76517;
    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);
}

.footer .copyright a:hover {
    color: #E76517;
}


/* Active dropdown item styling */
.dropdown.dropdown-toggle.dropdown-menu.dropdown-item:active {
    color: #E76517 !important;
}

/* Base styles for submenu containers */
.submenu-item {
    position: relative;
}

/* Dropdown item layout for long text */
.dropdown-item.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
    padding-right: 24px;
    position: relative;
}

/* Submenu indicator arrow */
.dropdown-item.submenu-toggle::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
}

/* Fallback for when FontAwesome isn't available */
.no-fontawesome .dropdown-item.submenu-toggle::after {
    content: '›';
}

/* Default submenu visibility */
.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    z-index: 1000;
}

/* Special positioning for third level (sub-submenu) */
.sub-submenu-item .sub-submenu {
    left: 100%;
    top: 0;
    z-index: 1001;
}

/* Dropdown item padding and styling */
.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    background-color: transparent;
    border: 0;
}

/* Desktop styles (min-width: 992px) */
@media (min-width: 992px) {

    /* Show submenu on hover */
    .submenu-item:hover>.submenu {
        display: block;
    }

    .sub-submenu-item:hover>.sub-submenu {
        display: block;
    }

    /* Minimum width for dropdowns */
    .dropdown-menu {
        min-width: 220px;
    }
}

/* Mobile styles (max-width: 991.98px) */
@media (max-width: 991.98px) {

    /* Submenu positioning for mobile */
    .submenu,
    .sub-submenu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }

    /* Indentation for submenus */
    .submenu {
        padding-left: 15px;
    }

    .sub-submenu {
        padding-left: 20px;
    }

    /* Show submenus when parent is active */
    .submenu-toggle.active+.submenu,
    .submenu-toggle.active+.sub-submenu {
        display: block;
    }

    /* Adjust padding for toggle items */
    .dropdown-item.submenu-toggle {
        padding: 0.5rem 2rem 0.5rem 1rem;
    }

    /* Mobile-specific submenu styling */
    .submenu,
    .sub-submenu {
        position: static;
        box-shadow: none;
        border: none;
        width: 100%;
        padding-left: 1rem;
        display: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Full width for dropdown items */
    .dropdown-item.submenu-toggle {
        width: 100%;
        padding-right: 30px;
    }

    /* Change arrow to down arrow on mobile */
    .dropdown-item.submenu-toggle::after {
        content: '\f078';
    }

    /* Rotate arrow when active */
    .dropdown-item.submenu-toggle.active::after {
        content: '\f077';
    }

    /* Navbar dropdown styling for mobile */
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    /* Text color for dark navbar dropdown items */
    .navbar-dark .dropdown-menu .dropdown-item,
    .navbar-dark .submenu .dropdown-item,
    .navbar-dark .sub-submenu .dropdown-item {
        color: #fff !important;
    }

    /* Highlight color for active items */
    .navbar-dark .dropdown-item:hover,
    .navbar-dark .dropdown-item:focus,
    .navbar-dark .dropdown-item.active {
        background-color: transparent;
        color: #E76517 !important;
    }

    /* Mobile dropdown background fixes */
    .navbar-dark .dropdown-menu,
    .navbar-dark .submenu,
    .navbar-dark .sub-submenu {
        background-color: transparent;
        border: none;
    }

    /* Visual indication of nesting levels with left borders */
    .navbar-dark .submenu {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 1rem;
        margin-left: 0.5rem;
    }

    .navbar-dark .sub-submenu {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 1rem;
        margin-left: 0.5rem;
    }
}


.btn-orange {
    color: #000;
    background-color: #E76517;
    /*  #E76517 */
    border-color: #454545;
}

.btn-orange:hover {
    color: #000;
    background-color: #1aa6ff;
    border-color: #E76517;
}

.btn-check:focus+.btn-orange,
.btn-orange:focus {
    color: #000;
    background-color: #1aa6ff;
    border-color: #E76517;
    box-shadow: 0 0 0 .25rem rgba(0, 133, 217, 0.5)
}

.btn-check:checked+.btn-orange,
.btn-check:active+.btn-orange,
.btn-orange:active,
.btn-orange.active,
.show>.btn-orange.dropdown-toggle {
    color: #000;
    background-color: #33b0ff;
    border-color: #1aa6ff
}

.btn-check:checked+.btn-orange:focus,
.btn-check:active+.btn-orange:focus,
.btn-orange:active:focus,
.btn-orange.active:focus,
.show>.btn-orange.dropdown-toggle:focus {
    box-shadow: 0 0 0 .25rem rgba(0, 133, 217, 0.5)
}

.btn-orange:disabled,
.btn-orange.disabled {
    color: #000;
    background-color: #E76517;
    /*  #E76517 */
    border-color: #454545;
}


.product {
    height: 250px !important;
    width: 450px !important;
}



/* Container for the card */
.service-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}


/* Style for the service card */
.service-item {
    position: relative;
    overflow: hidden;
}

/* Overlay with black background on hover */
.service-item::after {
    /* content: 'View Now'; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #E76517;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Darken the image on hover */
.service-item:hover img {
    filter: brightness(0.6);
}

/* Show the overlay on hover */
.service-item:hover::after {
    opacity: 1;
    visibility: visible;
}



/* 
  @media  only screen and  (min-width: 1200px) {
    .carousel-inner {
        max-height: 74vh !important;
    }

    .carousel-item {
        height: 74vh !important;
    }
} 


@media  only screen and  (min-width: 1400px) {
    .carousel-inner {
        max-height: 95vh;
    }

    .carousel-item {
        height: 95vh ;
    }
} */

/* @media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .carousel-inner {
        max-height: 74vh !important;
    }

    .carousel-item {
        height: 74vh !important;
    }
}

@media only screen and (min-width: 1400px) {
    .carousel-inner {
        max-height: 95vh !important;
    }

    .carousel-item {
        height: 95vh !important;
    }
} */

/* For laptops and smaller desktop screens (including your laptop) */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .carousel-inner {
        max-height: 74vh !important;
    }

    .carousel-item {
        height: 74vh !important;
    }
}

/* Only for very large screens */
@media only screen and (min-width: 1600px) {
    .carousel-inner {
        max-height: 95vh !important;
    }

    .carousel-item {
        height: 95vh !important;
    }
}