[hidden]{display:none!important;}

/* CSS Custom Properties for DuQan Jobs branding */
:root {
    --primary: #96cf28;
    --primary-hover: #83b620;
    --primary-light: #eef9d5;
    --dark-slate: #1a1f2e;
    --dark-bg: #101420;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --container-max: 1200px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-slate);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-sidebar { grid-template-columns: 1fr 300px; }
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark-slate);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--dark-slate);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--dark-slate);
    background-color: rgba(26, 31, 46, 0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}
.btn-danger:hover {
    background-color: #d32f2f;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: capitalize;
}

.badge-featured { background-color: var(--primary-light); color: var(--dark-slate); border: 1px solid var(--primary); }
.badge-full-time { background-color: #e0f2fe; color: #0369a1; }
.badge-part-time { background-color: #fef3c7; color: #b45309; }
.badge-contract { background-color: #f3e8ff; color: #6b21a8; }
.badge-remote { background-color: #dcfce7; color: #15803d; }

.badge-active { background-color: #dcfce7; color: #15803d; }
.badge-closed { background-color: #fee2e2; color: #b91c1c; }
.badge-pending { background-color: #fef3c7; color: #b45309; }

/* Form Fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-slate);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fff;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(150, 207, 40, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-row-2 { grid-template-columns: repeat(2, 1fr); }
    .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Header & Navigation */
header {
    background-color: var(--dark-slate);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 992px) {
    .nav-menu { display: flex; }
    .nav-mobile-toggle { display: none; }
}

/* Mobile Nav Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.mobile-menu-overlay.open {
    display: flex;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(150,207,40,0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero Search Bar */
.hero-search-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-search-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-search-form {
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: center;
    }
}

.hero-search-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Content Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Job Cards specific */
.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-card-company {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.job-card-title {
    font-size: 1.2rem;
    margin: 0.25rem 0;
}

.job-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-card-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.job-card-salary {
    font-weight: 700;
    color: var(--dark-slate);
}

/* Category Grid Item */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.category-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Job Detail Page */
.job-detail-header {
    background-color: var(--dark-slate);
    color: #fff;
    padding: 3rem 0;
}

.job-detail-header-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .job-detail-header-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.job-detail-company-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.job-detail-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* Similar jobs and Sidebar widgets */
.widget {
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Dashboards Styling */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 260px 1fr;
    }
}

.dashboard-sidebar {
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
}

.dashboard-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.dashboard-menu-link:hover, .dashboard-menu-link.active {
    background-color: var(--primary-light);
    color: var(--dark-slate);
}

/* Stat Card */
.stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-top: 0.5rem;
}

/* Custom Table for Applications and Jobs */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

table.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.table th, table.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table.table th {
    background-color: var(--light-bg);
    font-weight: 700;
    color: var(--dark-slate);
    font-family: var(--font-heading);
}

table.table tr:last-child td {
    border-bottom: none;
}

/* Alert system */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

/* RTL Adjustments */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] table.table {
    text-align: right;
}

/* Completeness Progress Bar */
.progress-bar-container {
    background-color: var(--border-color);
    border-radius: 50px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

/* Footer Section */
footer {
    background-color: var(--dark-slate);
    color: var(--text-light);
    padding: 3rem 0 1.5rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Custom form search component */
.search-range-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-range-slider input {
    flex: 1;
}

/* Sharing buttons list */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--dark-slate);
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    background-color: var(--primary);
    color: var(--dark-slate);
    transform: scale(1.1);
}

/* Lazy Load Transition Class */
.lazy-image {
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.lazy-image.loaded {
    opacity: 1;
}
