.jobModal th,
td {
    border: 1px solid #ccc !important;
    padding: 8px !important;
}

.bg-hero-image {
    background-image: url("../img/home_background.png");
    background-size: cover;
    background-position: initial;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.bg-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    /* shorthand for top:0; right:0; bottom:0; left:0 */
    background-color: rgba(0, 0, 0, 0.5);
    /* black overlay with 50% opacity */
    z-index: 1;
}

/* Navbar container */
nav {
    background: #fff;
    /* your white navbar */
    height: 60px;
    /* set your navbar height */
    display: flex;
    align-items: center;
    /* ensures vertical centering */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

nav ul li {
    background: #fff;
}

/* Nav list */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    /* make ul same height as nav */
}

/* Nav list items */
nav ul li {
    height: 100%;
    /* li fills nav bar height */
}

nav ul li ul li {
    height: 60%;
    /* li fills nav bar height */
}

/* Nav links */
nav ul li a {
    display: flex;
    /* makes link fill full height */
    align-items: center;
    /* centers text vertically */
    height: 100%;
    /* stretches link to full height */
    padding: 0 20px;
    /* spacing left/right */
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

nav ul li ul li a {
    /* display: block; */
    /* padding: 12px 20px; */
    align-items: center;
    /* centers text vertically */
    color: #333;
    white-space: nowrap;
    background: #fff;
    /* border-bottom: 1px solid #eee; */
    transition: background 0.2s ease, color 0.2s ease;
}

nav ul li ul li:last-child a {
    border-bottom: none;
}

/* Hover effect */
nav ul li a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.testimonial-image {
    top: 3.75rem !important;
    overflow: visible;
}

.testimonial-name-role {
    top: 1.2rem !important;
}

/* Mobile Navigation Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Override any Tailwind or conflicting styles */
.mobile-menu-overlay * {
    box-sizing: border-box;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    background: #ffffff;
    color: #1f2937 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-navbar * {
    color: inherit;
}

.mobile-navbar a:not(.mobile-cta-button),
.mobile-navbar button:not(.mobile-cta-button) {
    color: #1f2937 !important;
}

.mobile-menu-overlay.active .mobile-navbar {
    transform: translateY(0);
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b21a8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-close-btn:hover {
    color: #4c1d95;
    transform: rotate(90deg);
}

.mobile-close-btn:focus {
    outline: 2px solid #6b21a8;
    outline-offset: 2px;
}

/* Mobile Nav List */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-nav-list a:not(.mobile-cta-button),
.mobile-nav-list button:not(.mobile-cta-button) {
    color: #1f2937 !important;
}

.mobile-nav-list a span,
.mobile-nav-list button span {
    color: #1f2937 !important;
}

.mobile-nav-list a:hover,
.mobile-nav-list button:hover,
.mobile-nav-list a:hover span,
.mobile-nav-list button:hover span {
    color: #6b21a8 !important;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-list > li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #1f2937 !important;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link,
.mobile-nav-link * {
    color: #1f2937 !important;
}

.mobile-nav-link span {
    color: #1f2937 !important;
    display: inline-block;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(107, 33, 168, 0.05);
    color: #6b21a8 !important;
    outline: none;
}

.mobile-nav-link:hover span,
.mobile-nav-link:focus span {
    color: #6b21a8 !important;
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.mobile-dropdown > * {
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: #1f2937 !important;
    width: 100%;
}

.mobile-dropdown-toggle span {
    color: #1f2937 !important;
    display: inline-block;
    flex: 1;
}

.mobile-dropdown-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: #333;
    stroke: currentColor;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle:hover span,
.mobile-dropdown-toggle:focus span {
    color: #6b21a8 !important;
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    max-height: none !important;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: none !important;
    flex-direction: column !important;
    width: 100%;
}

.mobile-submenu.show {
    max-height: 500px;
    display: block !important;
    /* display: flex !important; */
    /* flex-direction: column !important; */
}

.mobile-submenu li {
    border-bottom: 1px solid #e5e7eb;
    display: block !important;
    width: 100%;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: block !important;
    width: 100% !important;
    padding: 0.35rem 1.25rem 0.35rem 2.5rem;
    text-decoration: none;
    color: #4b5563 !important;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background-color: rgba(107, 33, 168, 0.05);
    color: #6b21a8 !important;
    outline: none;
}

/* Mobile CTA Button */
.mobile-nav-cta {
    margin-top: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.mobile-cta-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #6b21a8;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.mobile-cta-button:hover,
.mobile-cta-button:focus {
    background-color: #4c1d95;
    transform: translateY(-1px);
    outline: none;
}

.mobile-cta-button:active {
    transform: translateY(0);
}

/* Responsive adjustments for navbar */
@media (max-width: 767px) {
    nav.navbar {
        display: none;
    }
    
    /* Ensure desktop nav height doesn't affect mobile */
    nav.navbar ul {
        height: 60px;
    }
}

@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    #mobileMenuToggle {
        display: none;
    }
}

/* Ensure header container is responsive */
header {
    position: relative;
    z-index: 1000;
    overflow: visible;
}

header .container {
    position: relative;
    overflow: visible;
}

/* Smooth transitions for mobile menu icons */
#mobileMenuToggle svg {
    transition: opacity 0.2s ease;
}

/* Responsive logo */
@media (max-width: 640px) {
    header img {
        max-width: 120px;
    }
}

.mobile-cta-button,
.mobile-cta-button * {
    color: #ffffff !important;
}

.vertnav {
    padding: 0 1rem;
}
.navbar-nav .nav-link {
    padding: 0.40rem 0.5rem;
}