/* Resetting margins and padding */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Make sure these styles take priority over Bootstrap */
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed !important;  /* Force the 'not-allowed' cursor */
    pointer-events: none !important; /* Disable interaction */
}

/* If using .disabled class for links, buttons, etc. */
button.disabled,
a.disabled,
input.disabled,
textarea.disabled,
select.disabled {
    cursor: not-allowed !important;  /* Force the 'not-allowed' cursor */
    pointer-events: none !important; /* Disable interaction */
}

/* Ensure any element with [disabled] has the correct cursor */
[disabled] {
    cursor: not-allowed !important; /* Change cursor */
    pointer-events: none !important; /* Disable interaction */
}

/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    font-weight: 250;
    font-style: normal;
    background-color: #f8f9fa;
}

/* Logo Styles */
._247evcharger_logo {
    height: 70px;
    transform: scale(1); /* Default size */
    transition: transform 0.3s ease-out; /* Smooth transition */
}

/* Title Styles */
.navbar-title {
    transform: scale(1); /* Default size */
    transition: transform 0.3s ease-out; /* Smooth transition for scaling */
}

/* Hide the entire "Services" dropdown */
.nav-item-services.dropdown {
    display: none;
}

/* Remove border and outline for all input fields */
input, select, textarea, button, a {
    outline: none !important; /* Remove outline */
}

/* Optional: Style inputs for a more modern look */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
    box-shadow: none !important; /* Remove the box shadow that appears on focus */
}

/* Card Style */
.card {
    border-radius: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease-in-out; /* Combine both transitions */
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow on hover */
}

.btn-custom {
    /* font-size: 1rem; */
    padding: 10px 20px;
}

/* Section Header */
.section-header {
    /* text-align: center; */
    margin-bottom: 20px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    margin-top: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and box-shadow */
}

/* Navbar Scroll Behavior: When Scrolling Down */
.navbar.scroll-down {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow when scrolling down */
    transform: translateY(-25px); /* Navbar hides when scrolling down */
}

/* Navbar Scroll Behavior: When Scrolling Up */
.navbar.scroll-up {
    transform: translateY(0); /* Navbar stays at the top */
}

/* Navbar Link Styles */
.navbar-nav .nav-link {
    text-decoration: none; /* Remove underline */
    color: #000; /* Default text color */
    position: relative; /* For positioning the underline */
}

/* Hover Effect: Green Underline for Nav Links */
.navbar-nav .nav-link:hover {
    color: #00b140; /* Hover color */
    border-bottom: 2px solid #00b140; /* Green underline on hover */
}

/* Active State: Green Underline for Active Nav Link */
.navbar-nav .nav-link.active {
    color: #00b140; /* Active color */
    border-bottom: 2px solid #00b140; /* Green underline for active menu item */
}

/* Dropdown Item Styles */
.navbar .dropdown-item {
    text-decoration: none; /* Remove underline */
    color: #000; /* Default text color */
}

/* Hover Effect for Dropdown Items */
.navbar .dropdown-item:hover {
    color: #00b140; /* Hover color */
    background-color: rgba(0, 0, 0, 0.1); /* Light background on hover */
}

/* Style for select box */
select.language_select {
    color: #000; /* Default text color */
    border: 1px solid #ccc; /* Border color */
    padding: 0.5em; /* Padding inside the select box */
    border-radius: 5px; /* Rounded corners */
    background-color: #fff; /* White background */
}

/* Disabled options: 50% transparent red */
select.language_select option:disabled {
    /* background-color: rgba(255, 0, 0, 0.05); */
    color: rgba(0, 0, 0, 0.1); /* White text color for contrast */
}

/* Hover effect for options */
select.language_select option:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Light background on hover */
    color: #00b140; /* Hover color for text */
}

/* Selected option: Green underline style */
select.language_select option:checked {
    background-color: #00b140; /* Green background for selected option */
    color: #fff; /* White text for selected option */
}

/* Carousel Custom Styles */
.custom-carousel {
    margin-top: 100px; /* Margin top for mobile devices */
}

/* Carousel Caption (Font Size Adjustment for Mobile) */
@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 1.5rem; /* Adjust the font size of the heading */
    }

    .carousel-caption p {
        font-size: 1rem; /* Adjust the font size of the paragraph */
    }

    /* Reduce logo size on mobile */
    ._247evcharger_logo {
        height: 50px; /* Adjust to desired smaller size */
    }

    /* Reduce title font size on mobile */
    .navbar-title {
        font-size: 1.5rem; /* Adjust the font size for smaller screens */
    }

    /* Adjust navbar item padding and layout for mobile */
    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    /* Add margin to the top of carousel for mobile */
    .custom-carousel {
        margin-top: 100px; /* Margin top for mobile */
    }
}

/* Header */
header {
    position: relative;
    z-index: 1;
    background-color: #ffffff; /* White background for header */
    padding: 20px;
    text-align: center;
    font-size: 24px;
}

/* Top language selection bar */
.main_top {
    height: 40px;
    width: 100%;
    background-color: white;
    z-index: 100;
    display: block;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
}

/* Developer link */
.developer {
    text-decoration: none;
    color: orange;
    font-size: 0.8em;
    opacity: 0.5;
}

.developer:hover {
    color: red;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00b140;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    padding: 15px;
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 9999;
}

/* Scroll to top button behavior */
.scroll-to-top:hover {
    background-color: #007a30; /* Darker green on hover */
}

/* Navbar Responsive Behavior */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center; /* Center align navbar items for mobile */
    }

    /* Adjust navbar items padding for mobile */
    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    /* Add margin to the top of carousel for mobile */
    .custom-carousel {
        margin-top: 100px; /* Margin top for mobile */
    }
}

.icon-paragraph {
    position: relative;
    padding-left: 30px; 
}

.list-group, .fas {
    padding: 5px;
}

.solution_img_txt_holder {
    transition: box-shadow 0.3s ease, transform 0.3s ease-in-out; /* Combine both transitions */
    margin-bottom: 20px;
}

.solution_img_txt_holder:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow on hover */
}

.image-container {
    position: relative;
}

.image-container .img-fluid {
    width: 100%;
    height: auto;
}

.image-title {
    position: absolute;
    bottom: 10px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    font-size: 18px;
}
