/* Progressive underline hover effect for navigation links */
.nav-link {
    position: relative;
    font-size: 1rem
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 2px;
    left: 0;
    background: #0047AB;
    /* Cobalt blue color */
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Mobile sidebar menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #dddddd;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed #dddddd;
    font-size: 0.9rem;
    font-weight: bold;
}

.dropdown-item:hover {
    background-color: #0047AB;
    /* Cobalt blue */
    color: white;
    padding-left: 20px;
    /* Move text slightly right on hover */
    border-bottom: 1px dotted white;
}

.sidebar.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hamburger menu icon */
.hamburger {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 6px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 12px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    top: 12px;
    width: 0;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 12px;
    width: 0;
    left: 50%;
}

/* Quote form panel */
.quote-form-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.quote-form-panel.active {
    right: 0;
}

/* Footer background and overlay */
.footer-background {
    background-image: url('../../../../assets/general/img/bg-images/footer.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.footer-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 41, 54, .91);
}

.footer-content {
    position: relative;
    z-index: 10;
}

/* Make sure navigation is always on top */
nav.fixed {
    position: fixed;
    z-index: 1000;
}

/* Fix for stacking context issues with transformations */
.transform-fix {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hide scrollbar for testimonials carousel */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Smooth scrolling for carousel */
.carousel-smooth {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
