/* ==============================================
   MOBILE-FIRST RESPONSIVE CSS
   Priority: Mobile First → Tablet → Desktop
   ============================================== */

:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.3s ease;
}

/* ===== BASE/RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ===== TYPOGRAPHY (MOBILE FIRST) ===== */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; }

p { font-size: 0.95rem; }
small { font-size: 0.85rem; }

/* ===== UTILITIES ===== */
.container { padding: 0 15px; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-muted { color: #999; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.w-100 { width: 100%; }

/* ===== HEADER (MOBILE) ===== */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: white;
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    gap: 8px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.navbar-nav {
    gap: 8px;
}

.navbar-nav .nav-link {
    color: #666 !important;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.5rem 0 !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== BUTTONS (MOBILE) ===== */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border: none;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

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

.btn-primary:hover {
    background: #0b5ed7;
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-search {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
}

.btn-search:hover {
    opacity: 0.9;
}

/* ===== HERO (MOBILE) ===== */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-section input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ===== JOB CARDS (MOBILE) ===== */
.job-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.job-title a {
    color: var(--primary);
    text-decoration: none;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-company {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-company i {
    color: var(--primary);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    margin-top: 12px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.job-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ===== CATEGORIES (MOBILE) ===== */
.category-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.category-card h6 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.category-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ===== FILTERS (MOBILE COLLAPSIBLE) ===== */
.filters-sidebar {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.filter-item input {
    cursor: pointer;
}

.filter-item label {
    cursor: pointer;
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.filter-item label:hover {
    color: var(--primary);
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== FORMS ===== */
.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.65rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

input::placeholder {
    color: #ccc;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(13, 110, 253, 0.1);
    margin-top: auto;
    padding: 30px 0 20px;
    color: #adb5bd;
}

.footer h5, .footer h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #0dcaf0;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 50%;
    color: #0d6efd;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0 0 12px 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    padding: 16px;
}

.alert-info {
    background: #e7f3ff;
    color: #0b5ed7;
}

/* ===== SUGGESTED JOBS ===== */
.suggested-jobs {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.suggested-jobs h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.suggested-job-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.suggested-job-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggested-job-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.match-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    html { font-size: 15px; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container { padding: 0 20px; max-width: 960px; margin: 0 auto; }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .brand-name {
        font-size: 1.15rem;
    }
    
    .hero-section {
        padding: 60px 0;
        margin-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-section form {
        flex-direction: row;
        gap: 0;
    }
    
    .hero-section input {
        padding: 0.75rem 1rem;
    }
    
    .job-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .category-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .filters-sidebar {
        position: sticky;
        top: 20px;
    }
    
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer h5, .footer h6 {
        font-size: 1.05rem;
    }
}

/* ===== DESKTOP (992px+) ===== */
@media (min-width: 992px) {
    html { font-size: 16px; }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .container { max-width: 1200px; }
    
    .navbar {
        padding: 1.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
        gap: 12px;
    }
    
    .brand-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        margin: 0 6px;
    }
    
    .navbar-nav .dropdown-menu {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 8px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .job-card {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .category-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .footer {
        padding: 50px 0 30px;
    }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .category-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== PERFORMANCE: REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== JOB DETAIL PAGE (MOBILE FIRST) ===== */

.job-detail {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.job-detail-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.job-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.job-detail-company {
    font-size: 1.05rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.job-detail-section:last-child {
    border-bottom: none;
}

.job-detail-section h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-detail-section ul {
    padding-left: 1.5rem;
    list-style-position: inside;
}

.job-detail-section li {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.6;
}

.job-detail-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Sidebar Styling */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-value {
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-word;
}

/* Apply Button */
.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-apply:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6b3f92 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
    color: white;
    transform: translateY(-2px);
}

.btn-apply:active {
    transform: translateY(0);
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    background: #f8f9fa;
}

.form-control-lg {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.form-control-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-label {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .job-detail {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .job-detail-title {
        font-size: 1.35rem;
    }
    
    .job-detail-company {
        font-size: 1rem;
    }
    
    .job-detail-section h3 {
        font-size: 1.1rem;
    }
    
    .sidebar {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .sidebar-item {
        padding: 1rem 0;
    }
    
    .sidebar-label {
        font-size: 0.85rem;
    }
    
    .sidebar-value {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-control-lg {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 0.875rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.9rem; }
    
    /* Stack elements vertically on mobile */
    .job-detail-section ul {
        margin-left: 0;
        padding-left: 1.25rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .job-detail {
        padding: 2rem;
    }
    
    .sidebar {
        padding: 1.75rem;
    }
    
    .sidebar-item {
        padding: 1.5rem 0;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .job-detail {
        padding: 2.5rem;
    }
    
    .sidebar {
        padding: 2rem;
    }
    
    .job-detail-title {
        font-size: 2rem;
    }
}

/* Similar Jobs Section */
.similar-jobs-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4ff 100%);
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-radius: 12px;
}

.job-card-suggested {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card-suggested:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.job-card-suggested .badge {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .job-card, .filters-sidebar, .category-card,
    .job-detail, .sidebar {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .job-meta span {
        background: #333;
    }
    
    .job-detail-title,
    .job-detail-section h3,
    .sidebar-value,
    .form-label {
        color: #e0e0e0;
    }
    
    .form-control-lg {
        background: #333;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .form-control-lg:focus {
        background: #3a3a3a;
        border-color: #667eea;
    }
    
    .similar-jobs-section {
        background: #333;
    }
    
    .job-card-suggested {
        background: #2a2a2a;
        border-color: #444;
    }
}

/* ===== MODERN JOB DETAIL STYLING ===== */
.job-header-hero {
    margin: -1rem -1rem 0 -1rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.job-header-hero h1 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.job-header-hero .badge {
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-detail .card {
    border-radius: 0.75rem;
    transition: var(--transition);
}

.job-detail .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.job-detail .card-title {
    color: #212529;
    font-weight: 700;
    font-size: 1.1rem;
}

.job-description-text {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.job-detail ul li {
    color: #555;
    line-height: 1.8;
}

.job-detail .badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem !important;
}

/* Sidebar modern styling */
.sidebar .card {
    border-radius: 0.75rem;
    transition: var(--transition);
}

.sidebar .card-body {
    border-radius: 0.75rem;
}

.sidebar .d-flex.align-items-center {
    transition: var(--transition);
}

.sidebar .d-flex.align-items-center:hover {
    padding-left: 0.5rem;
}

/* Similar jobs section */
.similar-jobs-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 3rem -1rem -1rem -1rem;
    padding: 3rem 1rem;
    border-radius: 1.5rem 1.5rem 0 0;
}

.similar-jobs-section .card {
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.similar-jobs-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.05);
    transition: left 0.3s ease;
    z-index: 0;
}

.similar-jobs-section .card:hover::before {
    left: 0;
}

.similar-jobs-section .card-body {
    position: relative;
    z-index: 1;
}

/* Button enhancements */
.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-apply:active {
    transform: translateY(0);
}

/* ===== MOBILE SPECIFIC JOB DETAIL ===== */
@media (max-width: 992px) {
    .job-header-hero {
        margin: -1rem -1rem 2rem -1rem;
        padding: 2rem 1rem;
    }
    
    .job-header-hero h1 {
        font-size: 1.75rem;
    }
    
    .job-header-hero .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem !important;
    }
    
    .similar-jobs-section {
        margin: 2rem -1rem -1rem -1rem;
        padding: 2rem 1rem;
    }
    
    .sidebar {
        top: 60px !important;
    }
}

@media (max-width: 576px) {
    .job-header-hero {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .job-header-hero h1 {
        font-size: 1.4rem;
    }
    
    .job-header-hero .col-md-4 {
        margin-top: 1rem;
    }
    
    .job-detail .card-body {
        padding: 1.5rem !important;
    }
    
    .job-detail .card-title {
        font-size: 1rem;
    }
    
    .job-description-text {
        font-size: 0.95rem;
    }
    
    .sidebar .card {
        margin-bottom: 1rem;
    }
}

/* ===== MODERN JOB BOARD - HOME PAGE ===== */

/* Hero Section */
.job-board-hero {
    position: relative;
    padding: 4rem 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.job-board-hero h1 {
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.job-board-hero .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
}

/* Search Form */
.search-form {
    margin-top: 2rem;
}

.search-container {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input-group,
.search-location-group {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i,
.search-location-group i {
    position: absolute;
    left: 12px;
    color: #667eea;
    pointer-events: none;
}

.search-input-group .form-control,
.search-location-group .form-control {
    border: none;
    padding-left: 2.5rem;
    background: transparent;
    font-size: 1rem;
}

.search-input-group .form-control::placeholder,
.search-location-group .form-control::placeholder {
    color: #999;
}

.search-input-group .form-control:focus,
.search-location-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
    min-width: 140px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Stats */
.stat-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

/* Categories Section */
.categories-section {
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f0f5 100%);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card-modern:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card-modern:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* Filters */
.filters-container {
    position: sticky;
    top: 80px;
}

.filter-panel {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #212529;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-options .form-check {
    display: flex;
    align-items: center;
}

.filter-options .form-check-input {
    border-radius: 0.3rem;
    border: 1px solid #ddd;
    margin-right: 0.75rem;
    cursor: pointer;
}

.filter-options .form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.filter-options .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    color: #555;
}

.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Results */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h4 {
    color: #212529;
    margin: 0;
}

/* Job Cards Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.job-card-modern {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.job-card-modern:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
    transform: translateY(-4px);
}

.job-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.job-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.4;
}

.job-card-company {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.job-card-description {
    padding: 0 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.meta-item i {
    color: #667eea;
}

.job-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.view-details {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.job-card-modern:hover .view-details {
    color: #764ba2;
    transform: translateX(2px);
}

.bg-success-light {
    background-color: #d4edda !important;
}

.text-success {
    color: #198754 !important;
}

/* Pagination */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-link:hover {
    background: #f5f7ff;
    border-color: #667eea;
}

.pagination-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f0f5 100%);
    border-radius: 1rem;
}

.no-results-icon {
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-results h5 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE JOB BOARD ===== */
@media (max-width: 992px) {
    .job-board-hero {
        min-height: 45vh;
        padding: 2rem 0;
    }
    
    .job-board-hero h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input-group,
    .search-location-group {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .category-card-modern {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .job-board-hero {
        min-height: 40vh;
        padding: 1.5rem 0;
    }
    
    .job-board-hero h1 {
        font-size: 1.5rem;
    }
    
    .job-board-hero .lead {
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        position: relative;
        top: auto;
    }
}

@media (max-width: 576px) {
    .job-board-hero {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .job-board-hero h1 {
        font-size: 1.3rem;
    }
    
    .search-form {
        margin-top: 1rem;
    }
    
    .search-container {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .search-input-group .form-control,
    .search-location-group .form-control {
        font-size: 0.9rem;
        padding-left: 2rem;
    }
    
    .search-input-group i,
    .search-location-group i {
        font-size: 0.9rem;
    }
    
    .btn-search {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .category-card-modern {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .category-count {
        font-size: 0.7rem;
    }
    
    .filter-panel {
        padding: 1rem;
    }
    
    .job-card-modern {
        border-radius: 0.5rem;
    }
    
    .job-card-header {
        padding: 1rem;
    }
    
    .job-card-title {
        font-size: 1rem;
    }
    
    .job-card-description {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .job-card-meta {
        padding: 0 1rem;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ===== FOOTER STYLES ===== */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Grid - Mobile First */
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-icon-footer {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.footer-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

/* Footer Section Titles */
.footer-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-links a:hover i {
    color: #764ba2;
    transform: translateX(2px);
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    margin: 1.5rem 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.footer-policies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-policies a {
    font-size: 0.85rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-policies a:hover {
    color: white;
}

.footer-policies a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 0.25rem auto 0;
    transition: width 0.3s ease;
}

.footer-policies a:hover::after {
    width: 50%;
}

/* Footer Info */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.footer-info-item {
    text-align: center;
}

.footer-info-item h6 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-info-item h6 i {
    color: #667eea;
    font-size: 1rem;
}

.footer-info-item p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0;
}

.footer-info-item a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-info-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== FOOTER TABLET & DESKTOP ===== */

@media (min-width: 768px) {
    .footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-column {
        width: 100%;
    }

    .footer-section-title {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-brand-title {
        font-size: 1.35rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-copyright {
        text-align: left;
    }

    .footer-policies {
        flex-direction: row;
        justify-content: flex-end;
        gap: 2rem;
        text-align: right;
    }

    .footer-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-info-item {
        text-align: left;
    }

    .footer-info-item h6 {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .footer {
        padding: 5rem 3rem 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        margin-bottom: 3rem;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-section-title {
        font-size: 1.05rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
    }

    .footer-policies {
        text-align: right;
    }

    .footer-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

