@charset "UTF-8";

/* =======================
   ROOT VARIABLES
======================== */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
     --accent: #ef4444;         
    --button: #2563eb;
    --button-hover: #1d4ed8;
    --bg: #f8fafc;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* =======================
   RESET
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fluid {
    width: 100%;
}

.job-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================
   TABS
======================== */
.job-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 24px;
    padding: 0 20px;
}

.job-tab {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.job-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.job-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* =======================
   SEARCH BAR
======================== */
.search-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0 20px;
}

.search-bar input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    min-width: 160px;
    outline: none;
    font-size: 13px;
    background: var(--card);
    transition: all 0.2s ease;
    color: var(--text);
}

.search-bar input::placeholder {
    color: var(--muted);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* =======================
   JOB LIST
======================== */
.jobs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 32px;
    display: grid;
    gap: 16px;
}

.job {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
}

/* =======================
   TIMELINE
======================== */
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    flex-shrink: 0;
}

.line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
    margin-top: 6px;
}

/* =======================
   JOB CARD - Ultra Compact
======================== */
.card {
    background: var(--card);
    border-radius: 8px;
    padding: 0px 8px; /* reduce top/bottom padding */
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1px; /* reduce spacing between children */
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    margin-top: 0;
}


.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px; /* slightly smaller gap */
    flex-wrap: wrap;
}


.card-header h3 {
    font-size: 18px; /* slightly smaller title */
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}


.card-header .company {
    font-size: 16px;
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    
}

.card > .company {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =======================
   SKILLS SECTION
======================== */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.skills-label {
    font-size: 12px;
}

.skills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.skill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* =======================
   FOOTER ROW
======================== */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
  
}

.footer-row small {
    font-size: 11px;
}

.apply-btn {
    padding: 6px 16px;
    font-size: 12px;
    border: none;
    border-radius: 8px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.apply-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.apply-btn:active {
    transform: translateY(0);
}

.apply-btn.applied {
    background: #059669;
    cursor: not-allowed;
    opacity: 0.8;
}

.apply-btn.applied:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* =======================
   NO JOBS MESSAGE
======================== */
.no-jobs {
    text-align: center;
    padding: 40px 20px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.no-jobs p {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}



/* =======================
   PAGINATION
======================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 32px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.pagination button {
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.pagination button:hover:not(:disabled):not(.active) {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fafafa;
}

.pagination button:first-child,
.pagination button:last-child {
    padding: 0 12px;
    font-weight: 600;
}

/* =======================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
    .job {
        grid-template-columns: 1fr;
    }

    .timeline {
        display: none;
    }

    .card {
        padding: 8px;
    }

    .card-header h3 {
        font-size: 13px;
    }

    .search-bar input {
        width: 100%;
        min-width: auto;
    }

    .footer-row small {
        font-size: 10px;
    }

    .apply-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .pagination button {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 5px;
}

/* Pagination buttons */
#pagination button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

/* Hover effect */
#pagination button:hover:not(:disabled) {
    background-color: #007bff;
    color: #fff;
}

/* Active page */
#pagination button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}

/* Disabled button */
#pagination button:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Dots between page numbers */
#pagination .dots {
    padding: 0 5px;
    font-weight: bold;
    color: #666;
    user-select: none;
}
.job-header {
	text-align: center;
	margin: 40px auto 32px;
	padding: 0 20px;
}

.job-header h2 {
	font-size: 32px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
}

.job-header h4 {
	font-size: 16px;
	color: var(--muted);
	font-weight: 500;
}

.job-header h4 strong {
	color: var(--primary);
}