/*
Theme Name: Germany Job Search
Theme URI: https://almanyada.com.tr
Author: Antigravity
Author URI: https://google.com
Description: Professional job search theme for Germany.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: germany-job-search
*/

:root {
    --primary: #0f172a;
    /* Slate 900 */
    --primary-hover: #1e293b;
    /* Slate 800 */
    --accent: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --border: #e2e8f0;
    /* Slate 200 */

    --font-sans: 'Inter', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius: 12px;
    --container: 1200px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--accent);
}

/* --- Hero Section (Front Page) --- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://source.unsplash.com/1600x900/?germany,architecture') center/cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Search Form --- */
.job-search-form {
    background: white;
    padding: 10px;
    border-radius: 16px;
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.job-search-form .form-group {
    flex: 1;
    position: relative;
}

.job-search-form input,
.job-search-form select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.job-search-form input:focus,
.job-search-form select:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-search {
    background: var(--accent);
    color: white;
    padding-left: 40px;
    padding-right: 40px;
}

.btn-search:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
}

.btn-sm:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* --- Job Grid --- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.job-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.job-card-header {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f1f5f9;
}

.job-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.job-card:hover .job-image {
    transform: scale(1.05);
}

.job-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.job-title a:hover {
    color: var(--accent);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.company {
    background: #f1f5f9;
    color: var(--text-main);
}

.tag.location {
    background: #eff6ff;
    color: #2563eb;
}

.tag.type {
    background: #f0fdf4;
    color: #16a34a;
}

.job-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Footer --- */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
}

.site-footer p {
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .job-search-form {
        flex-direction: column;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Job Detail & List Fixes --- */
.job-card-row {
    display: flex;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    align-items: center;
    gap: 24px;
    transition: all 0.2s;
}

.job-card-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.job-list-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

/* --- Modern Job Detail Page --- */

/* Hero Section */
.job-hero-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: -60px;
    /* Overlap effect */
    position: relative;
    z-index: 1;
}

.job-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.job-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.job-badges-hero {
    display: flex;
    gap: 12px;
}

.badge-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pill.badge-type {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-pill.badge-location {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.job-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.meta-pill i {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .job-search-form {
        flex-direction: column;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Job Detail & List Fixes --- */
.job-card-row {
    display: flex;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    align-items: center;
    gap: 24px;
    transition: all 0.2s;
}

.job-card-row:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.job-list-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

/* --- Modern Job Detail Page --- */

/* Hero Section */
.job-hero-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: -60px;
    /* Overlap effect */
    position: relative;
    z-index: 1;
}

.job-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.job-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.job-badges-hero {
    display: flex;
    gap: 12px;
}

.badge-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pill.badge-type {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-pill.badge-location {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.job-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.meta-pill i {
    color: var(--accent);
}

/* --- Archive Page Layout --- */
.archive-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    position: relative;
}

.filter-toggle-mobile {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 1rem;
}

.filter-toggle-mobile:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.filter-toggle-mobile:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.filter-toggle-mobile i {
    font-size: 18px;
}

.archive-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.archive-sidebar::-webkit-scrollbar {
    width: 6px;
}

.archive-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.archive-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.archive-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.filter-widget {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.filter-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-close i {
    font-size: 18px;
}

.filter-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-form {
    padding: 24px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.filter-label i {
    color: var(--accent);
    font-size: 18px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: #f8fafc;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.filter-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.archive-main {
    min-width: 0;
}

.archive-results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.job-list-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.job-card-modern {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: block;
    background: linear-gradient(to bottom, white 0%, #fafbfc 100%);
}

.job-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 50%, var(--accent-hover) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.job-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
}

.job-card-modern:hover::before {
    transform: scaleX(1);
}

.job-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.job-card-header {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.job-card-header-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.job-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card-modern:hover .job-header-image {
    transform: scale(1.1);
}

.job-header-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 64px;
}

.job-card-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.job-card-modern:hover .job-card-header-overlay {
    opacity: 0.8;
}

.job-card-header-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 32px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-badge-header {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    transition: all 0.3s ease;
}

.job-card-modern:hover .job-badge-header {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.job-badge-header i {
    font-size: 14px;
}

.job-salary-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(22, 163, 74, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.job-card-modern:hover .job-salary-header {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
}

.job-salary-header i {
    font-size: 18px;
}

.job-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    min-width: 0;
    background: white;
}

.job-card-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    color: white;
    transition: color 0.3s;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.job-card-modern:hover .job-card-title {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.job-card-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.job-card-company i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.job-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.job-badge-type {
    background: #eff6ff;
    color: #2563eb;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin: 8px 0;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    padding: 8px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.job-meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.meta-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.meta-icon-wrapper i {
    font-size: 16px;
}

.job-location {
    color: #2563eb;
}

.job-date-meta {
    color: var(--text-muted);
}

.job-card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-excerpt p {
    margin: 0;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    gap: 16px;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.job-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.job-tag-type {
    background: #eff6ff;
    color: #2563eb;
}

.job-tag-location {
    background: #f0fdf4;
    color: #16a34a;
}

.job-tag i {
    font-size: 14px;
}

.job-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.job-card-modern:hover .job-card-action {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.job-card-action-text {
    white-space: nowrap;
}

.job-card-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.job-card-arrow i {
    font-size: 18px;
}

.job-card-modern:hover .job-card-arrow {
    transform: translateX(4px);
}

.pagination-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-modern .page-numbers {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    justify-content: center;
}

.pagination-modern .page-numbers:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pagination-modern .page-numbers.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination-modern .page-numbers.dots {
    border: none;
    cursor: default;
}

.pagination-modern .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 2px dashed var(--border);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.no-results-icon i {
    font-size: 40px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 12px;
}

.no-results p {
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Layout */
.main-container {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    margin-bottom: 80px;
}

.job-layout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

/* Cards */
.job-visual-card,
.job-description-card,
.sidebar-widget {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-visual-card:hover,
.job-description-card:hover,
.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

.job-visual-card {
    padding: 12px;
}

.job-main-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.job-description-card {
    padding: 48px;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: var(--accent);
    border-radius: 4px;
}

.job-content-text {
    font-size: 1.05rem;
    color: var(--text-main);
}

.job-content-text h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary);
}

.job-content-text ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

.job-content-text li {
    margin-bottom: 10px;
}

/* Sidebar Widgets */
.sidebar-widget {
    padding: 24px;
}

.sticky-top {
    position: sticky;
    top: 100px;
}

.apply-widget {
    border-top: 5px solid var(--accent);
}

.widget-header h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.widget-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.apply-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Company Widget */
.company-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.company-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.company-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.company-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Related Jobs */
.related-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.related-job-item:hover {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.related-job-info h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.related-company,
.related-salary {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.related-job-arrow {
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.related-job-item:hover .related-job-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- New Sections: News, Contact, Apply --- */

/* Mini Hero */
.hero-section-mini {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section-mini h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
}

.hero-section-mini p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 48px;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    line-height: 1;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-bottom: 10px;
}

.news-meta .category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.25rem;
    margin: 0 0 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-info-card {
    background: var(--primary);
    color: white;
}

.contact-info-card h3 {
    margin-top: 0;
    color: white;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 12px;
}

.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;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Forms */
.modern-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    background: white;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Application Page */
.application-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.application-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step.active {
    background: var(--accent);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin: 30px 0 20px;
}

.file-upload-area {
    margin-bottom: 30px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}

.upload-label:hover {
    border-color: var(--accent);
    background: #eff6ff;
}

.upload-label i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 10px;
}

.upload-label span {
    font-weight: 600;
    color: var(--primary);
}

.upload-label small {
    color: var(--text-muted);
    margin-top: 5px;
}

@media (max-width: 900px) {
    .job-layout-grid {
        grid-template-columns: 1fr;
    }

    .job-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .job-hero-meta {
        justify-content: center;
    }

    .job-badges-hero {
        justify-content: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .modern-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .application-card {
        padding: 24px;
    }

    .archive-layout {
        grid-template-columns: 1fr;
    }

    .filter-toggle-mobile {
        display: flex;
    }

    .job-card-link {
        flex-direction: column;
    }

    .job-card-image-wrapper {
        width: 100%;
    }

    .job-card-image {
        min-height: 200px;
    }

    .job-card-body {
        padding: 20px;
    }

    .job-card-title {
        font-size: 1.25rem;
    }

    .job-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .job-card-arrow {
        width: 100%;
        border-radius: 12px;
    }

    .archive-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        z-index: 10000;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .archive-sidebar.active {
        left: 0;
    }

    .filter-close {
        display: flex;
    }

    body.filter-open {
        overflow: hidden;
    }

    body.filter-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    .job-card-header {
        min-height: 180px;
    }

    .job-card-header-content {
        padding: 24px;
    }

    .job-card-title {
        font-size: 1.4rem;
    }

    .job-card-body {
        padding: 24px;
    }

    .job-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .job-card-arrow {
        width: 100%;
        border-radius: 12px;
    }

    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card-title-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .job-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Modern Enhancements --- */

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #16a34a;
}

.toast-error {
    border-left-color: #dc2626;
}

.toast-info {
    border-left-color: var(--accent);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-main);
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-main);
}

/* Form Enhancements */
.modern-form input.error,
.modern-form textarea.error,
.modern-form select.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.modern-form input.success,
.modern-form textarea.success,
.modern-form select.success {
    border-color: #16a34a;
    background: #f0fdf4;
}

.field-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.required {
    color: #dc2626;
}

.form-group {
    position: relative;
}

/* Loading States */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader .loader-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
    border-color: rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 24px 24px;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border);
    }

    .main-navigation a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* File Upload Enhancements */
.upload-label.dragover {
    border-color: var(--accent);
    background: #eff6ff;
    transform: scale(1.02);
}

.upload-label.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
}

.upload-label.has-file i {
    color: #16a34a;
}

/* Job Search Form Enhancements */
.job-search-form input:focus,
.job-search-form select:focus {
    transform: translateY(-2px);
}

/* Pulse Effect */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Image Placeholder */
.job-image-placeholder,
.job-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-muted);
    font-size: 48px;
    border-radius: 16px;
}

.job-list-placeholder {
    min-height: 120px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-muted);
    font-size: 48px;
    border-radius: 16px;
}

/* Focus States (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .job-hero-actions,
    .sidebar-widget {
        display: none;
    }

    .job-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-main: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Archive Page Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}