/* =============================================
   JOB LISTING STYLING
   ============================================= */
   
:root {
    --primary-color: #2c3e50;
    --secondary-color: #2199ea;
    --accent-color: #e74c3c;
    --background-color: #f5f7fa;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.job-meta i {
	color: #2199ea; 
	padding-left: 15px;
}

/* Job Listings Container */
.job-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.job-listings-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-left: -50vw;
	margin-right: -50vw;
	padding: 20px; 
	background: linear-gradient(180deg,#02141e,#4e5e6e);
	left: 50%;
	right: 50%;
    position: relative;
	width: 100vw;
}

.job-listings-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Flexbox Wrapper voor Sidebar en Main Content */
.job-listings-wrapper {
    display: flex;
    gap: 20px;
	width: 1200px;
	max-width: 90vw;
}

/* Sidebar Filters */
.job-sidebar {
    width: 25%;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-section h2, h3, h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
	color: #474747;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--secondary-color);
}

/* Main Content (Filters + Listings) */
.job-main-content {
    width: 75%;
}

/* Filters (Algemene Stijlen) */
.job-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

#job-filter-form,
#job-filter-form-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.filter-group input,
.filter-group select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.filter-button,
.reset-button,
.close-filter-panel {
    padding: 11px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-button {
    background: linear-gradient(180deg,#2199ea,44%,#172e35);
    color: #fff;
}

.filter-button:hover {
    background: #2980b9;
}

.reset-button {
    background: #ecf0f1;
    color: var(--text-color);
}

.reset-button:hover {
    background: #d5dbdb;
}

/* Filter Paneel (Mobiel) */
.filter-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
}

.filter-panel.active {
    right: 0;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.filter-panel-header h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.close-filter-panel {
    background: transparent;
    color: var(--text-color);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-filter-panel:hover {
    color: var(--accent-color);
}

.filter-panel-content {
    padding: 12px;
    height: calc(100% - 120px); /* Ruimte voor header (~40px) en filter-actions (~80px) */
    overflow-y: auto;
    position: relative;
}

.filter-panel-content .filter-group {
    margin-bottom: 20px;
}

.filter-panel-content .filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.filter-panel-content .filter-group input,
.filter-panel-content .filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.filter-panel-content .filter-group input:focus,
.filter-panel-content .filter-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.filter-panel-content .sidebar-section {
    margin-bottom: 20px;
    margin-top: -15px;
}

.filter-panel-content .sidebar-section h3 {
    margin-bottom: 10px;
    margin-top: -20px;
    font-size: 1rem;
    color: var(--primary-color);
	padding-top: 7px;
}

.filter-panel-content .mobile-filter {
    max-height: 100px;
    overflow-y: auto;
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-panel-content .mobile-filter:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.filter-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    background: #fff;
    padding-top: 8px;
    margin-top: 0;
}

/* Overlay (Mobiel) */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.filter-overlay.active {
    display: block;
}

/* Job Listings */
.job-listings {
    width: 100%;
}

.job-listing {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    gap: 20px;
	animation: fadeIn 0.5s ease-in;
}

.job-listing:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.job-listing-content {
    flex: 1;
}

.job-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
}

.job-title a {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
	font-weight: 600;
}

.job-title a:hover {
    color: var(--secondary-color);
}

.job-excerpt {
    margin: 10px 0;
    line-height: 1.5;
    color: #555;
	padding-right: 20px;
}

.job-read-more {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(180deg,#2199ea,44%,#172e35);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
	display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 300;
}

.job-read-more:hover {
    background: #2980b9;
}

/* Filter Toggle Knop */
.filter-toggle {
    display: none;
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.job-pagination {
    margin: 40px 0;
    text-align: center;
    font-size: 1rem;
}

.job-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.job-pagination .page-numbers:hover {
    background: #2199ea;
    color: #fff;
    border-color: #2199ea;
}

.job-pagination .page-numbers.current {
    background: #0f5f96;
    color: #fff;
    border-color: #0f5f96;
    cursor: default;
}

.job-pagination .prev,
.job-pagination .next {
    font-weight: 700;
}

.job-pagination .prev.disabled,
.job-pagination .next.disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

.job-pagination .page-numbers:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.job-feed-button-container {
    text-align: right;
    margin: 0 0 20px;
}

.job-feed-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.job-feed-button:hover {
    background-color: #e9e9e9;
    color: #333;
    border-color: #ccc;
}

.job-feed-button i {
    margin-right: 5px;
	color:#2199ea;
}

/* =============================================
   JOB LISTING STYLING RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .filter-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: linear-gradient(180deg,#2199ea,44%,#172e35);
        color: #fff;
        border: none;
        border-radius: var(--border-radius);
        font-size: 1rem;
        cursor: pointer;
        text-align: center;
        margin-bottom: 20px;
		margin-top: 35px;
    }

    .filter-toggle:hover {
        background: #2980b9;
    }

	
	.filter-actions {
		bottom: 0px;
	}

    .job-filters,
    .job-sidebar {
        display: none;
    }

    .job-listings-wrapper {
        flex-direction: column;
		width: auto;
		max-width: 90vw;
    }

    .job-sidebar,
    .job-main-content {
        width: 100%;
    }

    .job-listing {
        flex-direction: column;
    }

    /* Specifieke aanpassingen voor mobiel filterpaneel */
    .filter-panel-content .filter-group label {
        margin-bottom: 0;
    }
	
	.close-text {
    display: inline-block;
    transform: translateY(0px); /* of -3px, test wat werkt */
	} 
	
	.job-feed-button {
	display: none;
	}
	
	.job-listings-title {
	margin-top: -25px;
	}
	
	.job-listings-title {
	background: transparent;
	color: #474747;
	display: flex; 
	width: 100%;
	max-width: 100vw;
	position: sticky;
	margin: 0 auto;
	margin-top: 20px;
	}
	
    .job-pagination {
        display: block;
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 14px;
    }
    .job-pagination .page-numbers {
        padding: 10px 15px;
		margin-bottom: 15px;
    }
}

@media (min-width: 769px) {
    #job-filter-form-desktop {
        display: flex !important;
    }

    .filter-panel,
    .filter-overlay {
        display: none;
    }

    .checkbox-group {
        display: flex;
    }

    .sidebar-section select {
        display: none;
    }
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}