
    /* Namespaced styles for Joburg header component */
.joburg-header {
    position: relative;
    overflow: hidden;
}

.joburg-header-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.joburg-header-fallback {
    position: absolute;
    inset: 0;
    background-color: #f59e0b;
    z-index: 1;
}

.joburg-header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s;
    z-index: 2;
}

.joburg-header-image.active {
    opacity: 1;
}

.joburg-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.5));
    z-index: 3;
}

.joburg-header-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    text-align: center;
}

.joburg-header-title {

    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
}

.joburg-header-title.loading {
    transform: translateY(1rem);
    opacity: 0;
}

.joburg-header-description {

    color: white;
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
    transition-delay: 0.1s;
}

.joburg-header-description.loading {
    transform: translateY(1rem);
    opacity: 0;
}

/* Search bar styles */
.joburg-search-container {
    max-width: 50rem;
    margin: 2rem auto 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.joburg-search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.joburg-search-icon {
    color: #6b7280;
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.joburg-search-placeholder {
    color: #6b7280;
}

/* Breadcrumb styles */
.joburg-breadcrumb-section {
    background-color: #f3f4f6;
    padding: 0.75rem 0;
}

.joburg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.joburg-breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.joburg-page-title {
    color: #1f2937;
    font-weight: 500;
    text-transform: uppercase;
}

.joburg-breadcrumb-nav {
    display: flex;
    align-items: center;
}

.joburg-breadcrumb-link {
    color: #f59e0b;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.2s;
}

.joburg-breadcrumb-link:hover {
    color: #d97706;
}

.joburg-breadcrumb-separator {
    margin: 0 0.5rem;
    color: #9ca3af;
}

.joburg-breadcrumb-current {
    color: #6b7280;

    text-transform: uppercase;
}

/* Mobile styles */
.joburg-mobile-menu {
    display: none;
}

.joburg-mobile-menu-button {
    background-color: #e5e7eb;
    border: none;
    border-radius: 0.375rem;
    padding: 0.25rem;
    cursor: pointer;
}

.joburg-mobile-breadcrumb {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #e5e7eb;
    border-radius: 0.375rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
}

.joburg-mobile-breadcrumb.active {
    max-height: 5rem;
    opacity: 1;
}

.joburg-mobile-breadcrumb-content {
    display: flex;
    align-items: center;

}

.joburg-chevron-icon {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    margin: 0 0.25rem;
}

/* Search modal styles */
.joburg-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.joburg-search-modal.active {
    visibility: visible;
    opacity: 1;
}

.joburg-search-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.joburg-search-dialog {
    width: 100%;
    max-width: 40rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-20px);
    transition: transform 0.2s;
}

.joburg-search-modal.active .joburg-search-dialog {
    transform: translateY(0);
}

.joburg-search-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.joburg-search-input {
    flex: 1;
    border: none;
    outline: none;

    color: #4b5563;
    margin: 0 0.75rem;
}

.joburg-search-input::placeholder {
    color: #9ca3af;
}

.joburg-clear-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 9999px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.joburg-clear-button:hover {
    background-color: #f3f4f6;
}

.joburg-search-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.joburg-search-section {
    margin-bottom: 1.5rem;
}

.joburg-search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.joburg-search-section-title {

    font-weight: 500;
    color: #6b7280;
}

.joburg-clear-all-button {

    color: #f59e0b;
    background: none;
    border: none;
    cursor: pointer;
}

.joburg-clear-all-button:hover {
    color: #d97706;
}

.joburg-search-list {
    list-style: none;
}

.joburg-search-item {
    margin-bottom: 0.5rem;
}

.joburg-search-item-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
}

.joburg-search-item-button:hover {
    background-color: #f3f4f6;
}

.joburg-search-item-icon {
    color: #9ca3af;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.joburg-search-item-text {
    color: #4b5563;
}

.joburg-search-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.joburg-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    background-color: #f59e0b;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.joburg-search-button:hover {
    background-color: #d97706;
}

.joburg-search-button-icon {
    margin-left: 0.5rem;
}

/* Responsive styles */
@media (max-width: 640px) {
    .joburg-header-title {

    }

    .joburg-header-description {

    }

    .joburg-desktop-breadcrumb {
        display: none;
    }

    .joburg-mobile-menu {
        display: block;
    }

    .joburg-breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .joburg-breadcrumb-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

@media (min-width: 641px) {
    .joburg-header-title {

    }

    .joburg-header-description {

    }

    .joburg-mobile-menu {
        display: none;
    }
}

/* Animation for search results loading */
@keyframes joburg-spin {
    to { transform: rotate(360deg); }
}

