:root {
    --primary: #1E40AF;      
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --accent: #10B981;       
    --danger: #EF4444;      
    --dark: #111827;        
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 16px; /* Base body text */
}

h1 { font-size: 1.5em; }       /* 32px */
h2 { font-size: 1.5em; }     /* 24px */
h3 { font-size: 1.17em; }    /* 18.72px */
h4 { font-size: 1em; }       /* 16px */
h5 { font-size: 0.83em; }    /* 13.28px */
h6 { font-size: 0.67em; }    /* 10.72px */
p  { font-size: 1rem; }      /* 16px for comfortable reading */

header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem 0;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.site-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.site-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
    margin-top: 0.5rem;
}

.navbar {
    background-color: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.search-section {
    background: linear-gradient(to bottom, var(--gray-100), white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.form-control, .form-select {
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 55px;
    font-size: 1.05rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.btn-search {
    background-color: var(--primary);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

.sidebar-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-8px);
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: .5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-list a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    padding-left: 1.8rem;
}

.new-badge {
    background-color: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 50rem;
    font-weight: 600;
}

.jobDetails{
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding-left:15px;
    padding-right:15px;
    padding-top:10px;
}

.job-table {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.job-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.job-table th {
    font-weight: 600;
    padding: 1.2rem;
}

.job-table tbody tr {
    transition: all 0.3s ease;
}

.job-table tbody tr:hover {
    background-color: var(--gray-100);
    transform: scale(1.02);
}

.job-title-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.job-title-link:hover {
    color: var(--primary-dark);
}

.btn-view {
    background-color: var(--accent);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

footer {
    background-color: var(--dark);
    color: #9ca3af;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    font-size: 0.83em; /* Adjusted for h5 */
}

footer a {
    color: #9ca3af;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.sidebar-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
    font-size: 1.5em; /* 24px */
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.filter-search input {
    width: 100%;
    padding: 8px;
    font-size: 1rem; /* Adjusted */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.sidebar-list {
    max-height: 300px;
    overflow-y: auto; 
    padding: 0;
    margin: 0;
}

.city-item {
    display: block;
    padding: 10px;
    font-size: 1rem; /* Adjusted */
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.city-item:hover {
    background-color: #f5f5f5;
}

/* ===== Media Queries and remaining code ===== */

@media (max-width: 768px) {
    .sidebar-card {
        padding: 10px;
    }

    .sidebar-header h3 {
        font-size: 1.17em; /* ~19px */
    }

    .city-search input {
        font-size: 0.75rem;
    }
}

/* Professional Pagination */
.custom-pagination-wrapper { margin: 3rem 0 1.5rem; display: flex; justify-content: center; }
.custom-pagination-wrapper nav { width: 100%; }
.custom-pagination-wrapper .sm\:hidden { display: none; }
.custom-pagination-wrapper .inline-flex { gap: 0.6rem; }
.custom-pagination-wrapper a,
.custom-pagination-wrapper span[aria-current],
.custom-pagination-wrapper span[aria-disabled] > span {
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 0.75rem;
    border: none !important;
    background: #ffffff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-pagination-wrapper svg { width: 14px; height: 14px; }
.custom-pagination-wrapper a:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4); }
.custom-pagination-wrapper span[aria-current] > span { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #ffffff; transform: scale(1.05); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45); cursor: default; }
.custom-pagination-wrapper span[aria-disabled] > span { background: var(--gray-100); color: var(--gray-700); box-shadow: none; cursor: not-allowed; }
.custom-pagination-wrapper .-ml-px { margin-left: 0 !important; }
.custom-pagination-wrapper [rel="prev"], .custom-pagination-wrapper [rel="next"] { font-weight: 700; padding: 0 1.2rem; }
.custom-pagination-wrapper p { margin: 0; font-size: 0.9rem; color: var(--gray-700); }

@media (max-width: 768px) {
    .custom-pagination-wrapper { margin-top: 2rem; }
    .custom-pagination-wrapper a,
    .custom-pagination-wrapper span[aria-current] > span { min-width: 38px; height: 38px; font-size: 0.85rem; }
}

/* Job Details Page */
.job-details-section {
    background-color: #fff;
    padding-top: 3rem;
    padding-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.job-details-section .container { max-width: 1200px; margin: 0 auto; }

.job-details-section h1 { font-size: 1.5em; font-weight: 700; color: var(--primary); margin-bottom: 1rem; text-transform: capitalize; }
.job-details-section h2 { font-size: 1.5em; font-weight: 600; color: var(--primary); margin-bottom: 1rem; text-transform: capitalize; }
.job-details-section h3 { font-size: 1.2em; font-weight: 600; color: var(--primary); margin-bottom: 1rem; text-transform: capitalize; }
.job-details-section h4 { font-size: 1em; font-weight: 500; color: var(--primary); margin-bottom: 1rem; }

.job-details-section p { font-size: 1rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 0.8rem; }
.job-details-section p strong { font-weight: 600; color: var(--primary); }

.job-details-section .job-description {
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
}

.job-details-section .job-description ul { padding-left: 1.5rem; }
.job-details-section .job-description a { color: var(--primary); text-decoration: none; font-weight: 600; }
.job-details-section .job-description a:hover { text-decoration: underline; }

.job-details-section .btn-primary {
    background-color: var(--primary);
    border: none;
    color: #fff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.job-details-section .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Additional Media Queries */
@media (max-width: 992px) {
    .job-details-section h2 { font-size: 1.4em; }
    .job-details-section p { font-size: 0.95rem; }
    .job-details-section .job-description { padding: 1rem; }
    .job-details-section .btn-primary { padding: 0.8rem 1.5rem; }
}

@media (max-width: 768px) {
    .job-details-section .container { padding-left: 15px; padding-right: 15px; }
    .job-details-section h2 { font-size: 1.25em; }
    .job-details-section h4 { font-size: 0.95em; }
    .job-details-section .job-description { padding: 1rem; }
}

/* Form inputs and buttons */
.form-control { border-radius: 0.75rem; height: 55px; font-size: 1rem; padding: 15px; border: 1px solid #E5E7EB; transition: all 0.3s ease; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25); }
textarea.form-control { resize: vertical; }

.btn-primary { background-color: var(--primary); border-radius: 0.75rem; padding: 12px 20px; font-weight: 600; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3); }

.btn-outline-primary { font-size: 1.25rem; padding: 10px; width: 45px; height: 45px; text-align: center; }
.btn-outline-primary i { font-size: 1.5rem; }

@media (max-width: 768px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .form-control, .btn-primary { font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .job-table tbody tr:hover,
    .sidebar-card:hover,
    .btn-search:hover,
    .btn-view:hover { transform: none; }

    .job-table th, .job-table td { padding: 0.7rem; font-size: 0.9rem; white-space: nowrap; }
    .job-title-link { font-size: 1rem; line-height: 1.4; }

    .table-responsive { border-radius: 0.75rem; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

    .sidebar-card { margin-bottom: 1.5rem; }
    .sidebar-header { text-align: center; font-size: 1.1rem; padding: 0.75rem; }
    .sidebar-list a { font-size: 0.95rem; padding: 0.75rem 1rem; }

    .search-section { padding: 2rem 1rem; }
    .form-control, .form-select { height: 48px; font-size: 0.95rem; }
    .btn-search { padding: 0.75rem; font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .custom-pagination-wrapper a,
    .custom-pagination-wrapper span[aria-current] > span { min-width: 34px; height: 34px; font-size: 0.8rem; }
}
