:root {
    --primary: #3F9B0B; /* Updated primary color */
    --accent: #2e7008; /* Updated accent color (darker shade of #3F9B0B) */
    --light: #f8f9fa;
    --dark: #666;
    --transition: all 0.3s ease;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 0;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    padding: 0.75rem 1.25rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    min-width: 800px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(var(--accent), 0.03);
}

.dropdown-item:hover {
    background: rgba(var(--accent), 0.1);
    transform: translateY(-3px);
}

.dropdown-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.dropdown-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.dropdown-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: normal;
}

/* Mobile Menu Styles */
.offcanvas {
    max-width: 300px;
    background: var(--light);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #3F9B0B; /* Updated company name color */
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.list-group-item:hover {
    background: rgba(var(--accent), 0.05);
}

.list-group-item[data-bs-toggle="collapse"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-item[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.3s ease;
}

.list-group-item[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.collapse .list-group-item {
    padding-left: 2rem;
}

/* Mobile Menu Scrollable Dropdown */
.offcanvas-body .collapse {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .dropdown-menu {
        min-width: 100%;
        padding: 1rem;
        position: static !important;
        transform: none !important;
        display: none !important;
    }

    .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
}

/* Hide the checkbox */
.d-none {
    display: none;
}

/* Style the collapse content */
.collapse-content {
    display: none;
    padding-left: 2rem;
}

/* When the checkbox is checked, show the collapse content */
#servicesToggle:checked + .collapse-content,
#aboutToggle:checked + .collapse-content {
    display: block;
}

/* Optional: Rotate the chevron when the dropdown is expanded */
#servicesToggle:checked + .collapse-content + label i.fas,
#aboutToggle:checked + .collapse-content + label i.fas {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Service Item Hover Styles */
.service-item:hover {
    background-color: #3F9B0B !important; /* Updated hover background color */
}

.service-item:hover h4 a,
.service-item:hover p,
.service-item:hover .icon i {
    color: #ffffff !important; /* Updated hover text color */
}