/********** Template CSS **********/
:root {
    --primary: #000000;
    --light: #F5F5F5;
    --dark: #353535;
}
.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    background-color: var(--primary); /* Button background color */
    border-color: #000000; /* Black border color */
}
/* Define the animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Apply the animation to the button */
/* Define pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Apply pulse animation to .btnn */
.btnn {
  animation: pulse 3.5s infinite;
  font-size: 16px; /* Adjust the font size */
  padding: 10px 20px; /* Adjust the padding for the button */
  border-radius: 8px; /* Adjust the border radius for rounded corners */
}

@media (min-width: 992px) {
  .btnn {
    font-size: 18px; /* Adjust font size for larger screens */
    padding: 12px 24px; /* Adjust padding for larger screens */
  }
}

@keyframes scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* Custom styling to reduce space between logo and navbar text */
.logo-container {
    margin-bottom: 5px; /* Adjust this value to reduce space */
}

.navbar-collapse {
    margin-top: 0; /* Remove default top margin */
}

.navbar-nav {
    margin-top: 0; /* Remove margin from the navbar links */
}

/* Apply the animation to the logo on hover */
.logo-img:hover {
    animation: scale 0.5s ease-in-out;
}

/* Define navbar animation hover */
@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Text hover effect - Add this section */
.nav-item:hover {
    font-weight: 700; /* Change to bold */
    transition: font-weight 0.3s ease; /* Smooth transition */
}

/* Map styling */
#map {
    height: 400px;
    width: 100%;
}

/* Font weight utility classes */
.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

/* Wrapper to align text and button */
.back-to-top-wrapper {
    position: fixed;
    right: 45px;
    bottom: 45px;
    text-align: center;
    z-index: 99;
    display: none;
}

/* Styling for the text above the button */
.back-to-top-text {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

/* Back to top button styling */
.back-to-top {
    display: inline-block;
}


/* Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 9999; /* Ensure it's on top of other content */
    display:none;
}


/* Container for loading animation and text */
.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

/* Loading animation */
.loading-animation {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-radius: 50%;
    border-top: 4px solid #fff; /* White top border */
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Rotate animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
    margin-top: 10px;
    font-size: 16px;
}

/* Button style */
button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff; /* Blue */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
/*** Button ***/
.btn {
    font-weight: 500;
    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 ***/
.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: #FFFFFF;
    font-size: 15px;
    font-weight: 500; /* Initial font weight */
    text-transform: uppercase;
    outline: none;
    transition: color 0.3s ease, font-weight 0.3s ease, transform 0.3s ease; /* Added transition for transform */
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #000000; /* Color on hover */
    font-weight: bold; /* Make text bold on hover */
    transform: scale(1.05); /* Slightly increase size on hover */
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@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;
    }
}

/* This CSS ensures that the nested dropdown menu appears on the right side when you hover over the "European types of Fuses" item */
.dropdown-menu .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    position: absolute;
    left: 100%; /* Position it to the right of the parent menu */
    top: 0; /* Align the top of the nested dropdown with the parent menu */
    z-index: 1000; /* Make sure the menu appears above other content */
    transition: all 0.3s ease-in-out; /* Add a smooth transition effect */
}

/* Additional styles for the parent dropdown item */
.dropdown-menu .nav-item.dropdown:hover > .dropdown-item {
    background-color: #f0f0f0; /* Change background color on hover */
    color: #000; /* Change text color on hover */
}

/* Optional: Styling for dropdown items */
.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem; /* Add padding */
    white-space: nowrap; /* Ensure the text doesn't wrap */
}

/* Optional: Hover effect for dropdown items */
.dropdown-menu .dropdown-item:hover {
    background-color: #e0e0e0; /* Change background color on hover */
}


/*** Header ***/
@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;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 1400px;
    height: 45px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin-top: -280px; 
    width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
background: transparent;
border: 1px solid #FFFFFF;
font-size: 22px;
transition: .5s;
border-radius: 50%;

}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%; /* Add border-radius property to create a circular shape */
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}
.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.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;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.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: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    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 {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}



.divider {
    border: none;
    border-top: 1px solid #fff; /* Adjust the color and thickness */
    margin: 20px 0; /* Adjust spacing above and below the line */
}

/**more on about **/
/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

/* Fuse container styles */
.fuse-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Title styles */
.title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

/* Fuse category styles */
.fuse-category {
    margin-bottom: 20px;
}

.fuse-category h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.fuse-category ul {
    list-style-type: none;
    padding: 0;
}

.fuse-category ul li {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

/**Side navbar for about us section**/
     /* General styling */


  /* Content section */
        .content-section {
            padding: 20px;
            margin-top: 50px; /* Add margin at the top to push the section down */
        }

        /* Navigation bar */
        .custom-navbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 20px;
            margin-top: 20px; /* Add margin-top to position the navbar lower on the page */
            padding: 10px; /* Reduce padding */
            font-size: 14px; /* Reduce font size to make the navbar smaller */
        }

        .custom-navbar a {
            margin: 5px;
            color: black;
            text-decoration: none;
            padding: 5px; /* Reduce padding to make the links smaller */
            border: 1px solid black;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        .custom-navbar a:hover {
            background-color: black;
            color: white;
        }

        /* Description styling */
        .description {
            display: none; /* Initially hidden */
            margin-top: 5px;
            color: black;
            position: absolute; /* Position it absolute for flexibility */
            background-color: white; /* Background color for readability */
            border: 1px solid black; /* Border */
            padding: 5px; /* Padding */
            border-radius: 5px; /* Rounded corners */
            z-index: 1; /* Ensure it is above other elements */
        }


        /*Underline for inverters*/
          .underline-lower {
    position: relative;
    display: inline-block;
  }

  .underline-lower::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px; /* Adjust this value to move the underline down */
    border-bottom: 2px solid white; /* Set the underline color and thickness */
  }


    /* Combined and corrected CSS */
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
        }

        .page-wrapper {
            flex: 1;
        }

        .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;
            height: 300px;
            position: relative;
            width: 100%;
            margin-top: 0;
            padding-top: 0;
            padding-bottom: 10px;
            background-color: #333;
            color: white;
        }

        .footer .btn.btn-social {
            margin-right: 50px;
            width: 35px;
            height: 35px; /* Fixed height */
            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 {
            padding: 5px 0;
            font-size: 15px;
            border-top: 1px solid rgba(256, 256, 256, .1);
        }

        .footer .copyright a {
            color: var(--light);
        }

        .footer .copyright a:hover {
            color: var(--primary);
        }

        .footer p,
        .footer h4 {
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .footer a {
            font-size: 0.9rem;
        }

        .footer .copyright {
            font-size: 0.8rem;
        }

        .footer .row {
            margin-bottom: 0;
            padding-left: 0;
            padding-right: 0;
        }

        .footer .col-12 {
            padding-bottom: 0;
            width: 100%;
        }

        .footer .divider {
            margin: 10px 0;
        }

        .container .row .col-lg-3 .mb-2 {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

        .no-bottom-margin {
            margin-bottom: 0 !important;
        }
