#main-content-careers h1 {
    margin-bottom: var(--Space4);
}

.job-modal {
    display: none;
}

.job-detail-loading,
.job-detail-content {
    display: none;
}
.nav-bar-careers {
  position: fixed;
  z-index: var(--ZIndexSticky);
}

/* Fixed General Slider */
.general-slider-careers {
    position: fixed;
    width: 100%;
    margin: 0 auto;
    z-index: var(--ZIndexBase);
    top: 0;
}

.search-filter-sidebar {
    position: fixed;
    height: 80vh;
    top: 110px;
    left: 2.5%;
    width: 22%;
    z-index: 100;
    background: hsla(var(--White), 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: var(--Space6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid hsla(var(--ColorBrand2), 0.5);
}

/* Mobile Filter Toggle Button */
.filter-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--ZIndexFixed);
    background: hsla(var(--Gray50), 1);
    color: white;
    border: none;
    border-radius: 50px;
    padding: var(--Space3) var(--Space4);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: var(--Space2);
}

.filter-toggle-btn:hover {
    background: hsla(var(--Gray20), 1);
    transform: translateX(-50%) scale(1.05);
}

.filter-toggle-btn .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.filter-toggle-btn .icon-search {
    opacity: 1;
}

.filter-toggle-btn .icon-close {
    opacity: 0;
    position: absolute;
    left: var(--Space4);
}

.filter-toggle-btn.active .icon-search {
    opacity: 0;
}

.filter-toggle-btn.active .icon-close {
    opacity: 1;
}

.filter-toggle-btn .btn-text {
    white-space: nowrap;
}

.job-search-input {
    width: 100%;
    font-size: var(--FontSizeBase);
    border: 1px solid hsla(var(--White), 0.3);
    border-radius: var(--RadiusMD);
    background: hsla(var(--White), 0.9);
    color: hsla(var(--ColorText), 1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: var(--Space1);
    padding: var(--Space2);
}

.job-search-input:focus {
    outline: none;
    border-color: hsla(var(--ColorBrand2), 1);
    box-shadow: 0 0 0 2px hsla(var(--ColorBrand2), 0.2);
}

        .category-filter h4 {
            margin-bottom: var(--Space3);
            font-size: 1rem;
            color: hsla(var(--White), 1);
            font-weight: 600;
        }

        .city-filter {
            margin-top: var(--Space4);
        }

        .city-filter h4 {
            margin-bottom: var(--Space3);
            font-size: 1rem;
            color: hsla(var(--White), 1);
            font-weight: 600;
        }

        .category-buttons {
            display: flex;
            flex-direction: column;
            gap: var(--Space4);
        }

        .category-btn {
            background: hsla(var(--White), 0.1);
            border: 1px solid hsla(var(--White), 0.2);
            color: hsla(var(--ColorBrand4Dark), 1);
            padding: var(--Space2);
            border-radius: var(--RadiusBase);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            font-size: var(--FontSizeBase);
            font-family: var(--FontFamilyHeading);
        }

        .category-btn:hover {
            background: hsla(var(--White), 0.2);
            border-color: hsla(var(--White), 0.4);
            color: hsla(var(--ColorBrandDark), 1);
        }

        .category-btn.active {
            background: hsla(var(--ColorBrand4Dark), 1);
            border-color: hsla(var(--ColorBrand4Dark), 1);
            color: hsla(var(--White), 1);
        }

        .city-filter {
            margin-top: var(--Space4);
        }

        .city-buttons {
            display: flex;
            flex-direction: column;
            gap: var(--Space4);
        }

        .city-btn {
            background: hsla(var(--White), 0.1);
            border: 1px solid hsla(var(--White), 0.2);
            color: hsla(var(--ColorBrand4Dark), 1);
            padding: var(--Space4);
            border-radius: var( --RadiusBase);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            font-size: var(--FontSizeBase);
            font-family: var(--FontFamilyHeading);
        }

        .city-btn:hover {
            background: hsla(var(--White), 0.2);
            border-color: hsla(var(--White), 0.4);
            color: hsla(var(--ColorBrand4Dark), 1);
        }

        .city-btn.active {
            background: hsla(var(--ColorBrand4Dark), 1);
            border-color: hsla(var(--ColorBrand4Dark), 1);
            color: hsla(var(--White), 1);
        }

#jobs-container {
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid hsla(var(--Gray50), 1);
    width: 72%;
    min-height: 80vh;
    margin-left: auto;
    margin-top: 10vh;
    margin-right: var(--Space4);
    z-index: var(--ZIndexDropdown);
    padding: var(--Space4);
    border-radius: var(--Space4);
    transition: background-image 0.3s ease;
}

/* Add overlay for better text readability when background image is present */
#jobs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsla(var(--White), var(--overlay-opacity, 0.5));
    border-radius: var(--Space4);
    z-index: -1;
    transition: background-color 0.3s ease;
}

/* Job Detail Modal */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.job-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1366px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.job-modal-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-size: cover;
    background-position: top;
    opacity: 0.5;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.job-modal-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 0 0;
}

.job-modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: hsla(var(--ColorBrand4), 1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--Space4);
    transition: background 0.2s ease;
    z-index: 10001;
}

.job-modal-close:hover {
    background: hsla(var(--ColorBrand4Dark), 1);
}

.job-modal-body {
    padding: var(--Space8);
    clear: both;
    position: relative;
    z-index: 2;
}

.job-detail-loading {
    text-align: center;
    padding: var(--Space12);
    color: hsla(var(--ColorText), 0.6);
}

.job-detail-header {
    margin-bottom: var(--Space6);
    padding-bottom: var(--Space4);
    border-bottom: 2px solid hsla(var(--ColorBrand2), 0.2);
}

.job-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsla(var(--ColorBrandDark), 1);
    margin-bottom: var(--Space3);
    line-height: 1.2;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--Space4);
    margin-bottom: var(--Space2);
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--Space2);
    font-size: 14px;
    color: hsla(var(--ColorBrand4Dark), 0.8);
}

.job-detail-meta-item strong {
    color: hsla(var(--ColorBrand4Dark), 1);
}

.job-detail-badge {
    display: inline-block;
    background: hsla(var(--ColorBrand), 1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.job-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: hsla(var(--ColorText), 1);
    margin-top: var(--Space6);
}

.job-detail-description h2,
.job-detail-description h3,
.job-detail-description h4 {
    color: hsla(var(--ColorBrand), 1);
    margin-top: var(--Space6);
    margin-bottom: var(--Space3);
}

.job-detail-description ul,
.job-detail-description ol {
    margin-left: var(--Space6);
    margin-bottom: var(--Space4);
}

.job-detail-description li {
    margin-bottom: var(--Space2);
}

.job-detail-description p {
    margin-bottom: var(--Space4);
}

.careers-header {
  width: 72%;
  margin: 0 auto;
  margin-left: var(--Space4);
}
.job-category-section {
    margin-bottom: var(--Space12);
}

.job-category-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--Space6);
    padding-bottom: var(--Space3);
    border-bottom: 2px solid hsla(var(--Gray60), 1);
    color: hsla(var(--Gray10), 1);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 32px;
    width: 100%;
    padding-top: var(--Space4);
}

.job-card {
    position: relative;
    border-radius: 16px;
    border-top: 1px solid hsla(var(--White), 1);
    border-left: 1px solid hsla(var(--Gray80), 1);
    border-right: 1px solid hsla(var(--Gray80), 1);
    border-bottom: 1px solid hsla(var(--Gray50), 1);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    background: white;
    padding: var(--Space8);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.job-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--Space2);
    height: 100%;
}

.job-card-title {
    font-size: 20px;
    font-weight: 700;
    color: hsla(var(--Gray10), 1);
    line-height: 1.3;
    margin: 0;
    order: 1 !important;
}

.job-card-date {
    font-size: 16px;
    color: hsla(var(--Gray10), 1);
    font-weight: 500;
    order: 2 !important;
}

.job-card-location {
    display: flex;
    align-items: center;
    gap: var(--Space2);
    order: 3 !important;
}

.job-card-experience {
    font-size: 16px;
    color: hsla(var(--Gray20), 1);
    font-weight: 500;
    order: 4 !important;
}

.job-card-salary {
    font-size: 16px;
    color: hsla(var(--Gray20), 1);
    font-weight: 500;
    order: 5 !important;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    order: 6 !important;
}

.job-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsla(var(--ColorBrandDark), 0.3);
    flex-shrink: 0;
}

.job-card-badge {
    background: hsla(var(--ColorBrandDark), 1);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: inline-block;
    width: fit-content;
}

.job-card-link {
    color: hsla(var(--ColorBrand), 1);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.job-card:hover .job-card-link {
    opacity: 0.8;
    text-decoration: underline;
}

/* Empty State */
.no-jobs-message {
    text-align: center;
    padding: var(--Space12) var(--Space4);
    color: hsla(var(--ColorText), 0.6);
}

.no-jobs-message h3 {
    margin-bottom: var(--Space3);
    color: hsla(var(--ColorText), 0.8);
}

/* Individual Job Page Styles - Hidden when modal is used */
#job-detail-page {
    display: none; /* Always use modal for job details */
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--Space8);
    background: hsla(var(--White), 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--Space4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40vw;
    margin-bottom: var(--Space8);
}

.job-detail-header {
    margin-bottom: var(--Space6);
    padding-bottom: var(--Space4);
    border-bottom: 2px solid hsla(var(--ColorBrand), 0.2);
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsla(var(--ColorBrand4Dark), 1);
    margin-bottom: var(--Space3);
    line-height: 1.2;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--Space4);
    margin-bottom: var(--Space2);
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--Space2);
    font-size: 16px;
    color: hsla(var(--ColorText), 0.8);
}

.job-detail-description {
    font-size: 18px;
    line-height: 1.7;
    color: hsla(var(--ColorText), 1);
    margin-bottom: var(--Space6);
}

.job-detail-description h2,
.job-detail-description h3,
.job-detail-description h4 {
    color: hsla(var(--ColorBrandDark), 1);
    margin-top: var(--Space6);
    margin-bottom: var(--Space3);
}

.job-detail-description ul,
.job-detail-description ol {
    margin-left: var(--Space6);
    margin-bottom: var(--Space4);
}

.job-detail-description li {
    margin-bottom: var(--Space2);
}

.job-detail-description p {
    margin-bottom: var(--Space4);
}

.job-detail-description strong {
    color: hsla(var(--Gray10), 1);
}
.job-detail-footer {
  margin-top: var(--Space8); 
  padding: var(--Space6); 
  border-top: 1px solid hsla(var(--ColorBrand), 0.2); 
  background: hsla(var(--Gray80), 1); 
  border-radius: 8px;
  color: hsla(var(--ColorText), 0.8);
  text-align: justify;
}

.job-detail-footer p {
    font-size: 14px;
    color: hsla(var(--ColorText), 0.8);
    text-align: justify;
}

.job-detail-footer .checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--Space2);
}

.job-detail-footer .checkbox-label input[type="checkbox"] {
    margin-right: var(--Space2);
}

.job-detail-footer .button-container {
    margin-top: var(--Space6);
    display: flex;
    gap: var(--Space4);
    flex-wrap: wrap;
}

.job-detail-footer .button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.job-detail-footer .email-options {
    display: none;
    margin-top: var(--Space4);
    padding: var(--Space4);
    background: white;
    border: 1px solid hsla(var(--ColorBrand2), 0.3);
    border-radius: 8px;
}

.job-detail-footer .email-options p {
    font-weight: 600;
    margin-bottom: var(--Space3);
}

.job-detail-footer .email-options .button-container {
    display: flex;
    gap: var(--Space3);
    flex-wrap: wrap;
}

.job-detail-footer .email-options a {
    text-decoration: none;
}

.job-detail-footer .copy-confirmation {
    display: none;
    margin-top: var(--Space3);
    padding: var(--Space2);
    background: hsla(var(--ColorSuccess), 0.1);
    border-radius: 4px;
    color: hsla(var(--ColorSuccess), 1);
}

.button {
    background: hsla(var(--ColorBrand), 1);
    color: white;
    border: none;
    padding: var(--Space3) var(--Space5);
    border-radius: var(--RadiusBase);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.button:hover {
    background: hsla(var(--ColorBrand2Dark), 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button.secondary {
    background: hsla(var(--White), 0.9);
    color: hsla(var(--ColorBrand), 1);
    border: 1px solid hsla(var(--ColorBrandDark), 0.3);
}

.button.secondary:hover {
    background: hsla(var(--ColorBrand), 0.1);
}

.button.danger {
    background: hsla(var(--ColorError), 1);
}

.button.danger:hover {
    background: hsla(var(--ColorErrorDark), 1);
}

@media (max-width: 768px) {
    #job-detail-page {
        margin: var(--Space4);
        padding: var(--Space4);
        margin-top: 600px;
    }

    .job-detail-title {
        font-size: 2rem;
    }

    .job-detail-meta {
        flex-direction: column;
        gap: var(--Space2);
    }

    .job-detail-description {
        font-size: 16px;
    }
    .filter-toggle-btn {
        display: flex;
    }

    .search-filter-sidebar {
        position: fixed !important;
        bottom: -100% !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        height: auto !important;
        max-height: 70vh !important;
        z-index: var(--ZIndexSticky) !important;
        transition: bottom 0.3s ease !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
        border-radius: var(--Radius2XL) !important;
        padding: var(--Space4) !important;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5) !important;
    }
    
    .search-filter-sidebar h4 {
        color: hsla(var(--Gray10), 1);
    }

    .search-filter-sidebar.open {
        bottom: 100px !important;
    }

    #jobs-container {
        width: 93%;
        margin: 0 auto;
        margin-top: 120px;
        padding: var(--Space4);
        background-color: hsla(var(--White), 0.5);
    }

    #jobs-container::before {
        display: none;
    }

    .careers-header {
        width: 93%;
        margin: 0 auto;
        padding: var(--Space4);
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card-icon {
        width: 50px;
        height: 50px;
    }

    .job-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--Space2);
    }

    .job-card-link {
        align-self: flex-end;
    }

    /* Hide overlay - not needed */
    .filter-overlay {
        display: none !important;
    }
}