/* Praca Plus - Ukrainian Job Board CSS */

:root {
    --primary-blue: #0f62fe;
    --primary-yellow: #f59e0b;
    --dark-blue: #002d9c;
    --light-blue: #4589ff;
    --bg-white: #ffffff;
    --bg-gray: #f4f6f9;
    --text-dark: #161616;
    --text-gray: #525252;
    --text-light: #8d8d8d;
    --border-color: #e0e0e0;
    --success: #198038;
    --danger: #da1e28;
    --warning: #f1c21b;
    --shadow-sm: 0 2px 6px rgba(15, 98, 254, 0.04);
    --shadow: 0 8px 24px rgba(15, 98, 254, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 98, 254, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--dark-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-yellow) 100%);
    width: 0%;
    transition: width 0.2s ease-out;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    border-radius: 0 0 4px 4px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(15, 98, 254, 0.06);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    background: var(--light-blue);
    color: white;
}

/* Випадаюче меню для міст - Modern 2025 Design */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown > .nav-link svg {
    transition: transform 0.3s ease;
}

.nav-dropdown.active > .nav-link svg {
    transform: rotate(180deg);
}

.nav-dropdown.active > .nav-link {
    background: var(--light-blue);
    color: white;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 87, 183, 0.15),
        0 0 0 1px rgba(0, 87, 183, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0.75rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    pointer-events: none;
}

/* Збільшуємо зону для hover без розриву */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 87, 183, 0.08) 0%, 
        rgba(74, 158, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
    z-index: 0;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    transform: translateX(6px);
    box-shadow: -3px 0 0 0 var(--primary-blue);
}

.dropdown-item .city-icon {
    font-size: 2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dropdown-item:hover .city-icon {
    transform: scale(1.15) rotate(-5deg);
}

.dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 1;
}

.dropdown-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.dropdown-item small {
    font-size: 0.8125rem;
    color: var(--text-gray);
    font-weight: 400;
    transition: all 0.3s ease;
}

.dropdown-item:hover strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.dropdown-item:hover small {
    color: var(--dark-blue);
}

/* Анімація появи елементів списку */
.nav-dropdown:hover .dropdown-item:nth-child(1),
.nav-dropdown.active .dropdown-item:nth-child(1) { animation: slideInDropdown 0.3s ease 0.05s both; }
.nav-dropdown:hover .dropdown-item:nth-child(2),
.nav-dropdown.active .dropdown-item:nth-child(2) { animation: slideInDropdown 0.3s ease 0.1s both; }
.nav-dropdown:hover .dropdown-item:nth-child(3),
.nav-dropdown.active .dropdown-item:nth-child(3) { animation: slideInDropdown 0.3s ease 0.15s both; }
.nav-dropdown:hover .dropdown-item:nth-child(4),
.nav-dropdown.active .dropdown-item:nth-child(4) { animation: slideInDropdown 0.3s ease 0.2s both; }
.nav-dropdown:hover .dropdown-item:nth-child(5),
.nav-dropdown.active .dropdown-item:nth-child(5) { animation: slideInDropdown 0.3s ease 0.25s both; }
.nav-dropdown:hover .dropdown-item:nth-child(6),
.nav-dropdown.active .dropdown-item:nth-child(6) { animation: slideInDropdown 0.3s ease 0.3s both; }
.nav-dropdown:hover .dropdown-item:nth-child(7),
.nav-dropdown.active .dropdown-item:nth-child(7) { animation: slideInDropdown 0.3s ease 0.35s both; }

@keyframes slideInDropdown {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Мобільна версія dropdown - клік для відкриття */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        border-radius: 24px 24px 0 0;
        max-height: 70vh;
        overflow-y: auto;
        min-width: unset;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }
}

/* Бургер меню */
.burger-menu {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.burger-menu:hover {
    background: #f5f5f5;
}

.burger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 9px;
}

.burger-menu span:nth-child(1) {
    top: 12px;
}

.burger-menu span:nth-child(2) {
    top: 19px;
}

.burger-menu span:nth-child(3) {
    top: 26px;
}

.burger-menu.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* Мобільне меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 100vh;
    overflow-y: auto;
    padding-top: 70px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-nav-link {
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f5f5f5;
    color: var(--primary-blue);
}

.mobile-nav-section {
    margin: 0.75rem 0;
    background: linear-gradient(135deg, rgba(0, 87, 183, 0.03) 0%, rgba(74, 158, 255, 0.03) 100%);
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 87, 183, 0.08);
}

.mobile-nav-title {
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.mobile-nav-title .toggle-arrow {
    transition: transform 0.3s ease;
}

.mobile-nav-section.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-cities-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-nav-section.expanded .mobile-cities-list {
    max-height: 500px;
    opacity: 1;
}

.mobile-nav-sublink {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mobile-nav-sublink::before {
    content: '→';
    position: absolute;
    left: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-blue);
    font-weight: bold;
}

.mobile-nav-sublink:hover::before {
    opacity: 1;
    left: 0.875rem;
}

.mobile-nav-sublink:hover {
    padding-left: 2rem;
    background: linear-gradient(135deg, rgba(0, 87, 183, 0.08) 0%, rgba(74, 158, 255, 0.08) 100%);
}

/* Показувати/ховати елементи на різних екранах */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(15, 98, 254, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
                linear-gradient(135deg, #001c66 0%, #002d9c 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(15, 98, 254, 0.08);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(15, 98, 254, 0.08);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
}

@media (max-width: 480px) {
    .search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(15, 98, 254, 0.08);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: #f4f6f9;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

.search-button {
    padding: 0.875rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #f4f6f9;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

.filter-clear {
    padding: 0.75rem 1.5rem;
    background: var(--bg-gray);
    color: var(--text-gray);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-clear:hover {
    background: var(--danger);
    color: white;
}

/* Jobs Section */
.jobs-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 1.5rem; }
}

.view-all {
    color: var(--primary-blue);
    font-weight: 600;
    white-space: nowrap;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 1.5rem;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(15, 98, 254, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

/* Гарячі вакансії */
.job-card-hot {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #fffbf0 0%, #fef8e3 100%);
    position: relative;
}

.job-card-hot:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.15);
}

.hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-bottom-left-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    animation: pulse-hot 2s ease-in-out infinite;
}

.hot-badge svg {
    animation: flame 1.5s ease-in-out infinite;
}

@keyframes pulse-hot {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
    }
}

@keyframes flame {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.job-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.job-card:hover .job-card-image img {
    transform: scale(1.05);
}

.job-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Ensure action links inside job cards are clickable and above other elements */
.job-card a.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
    position: relative;
    overflow: hidden;
}

.job-card-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.job-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.job-title a {
    color: var(--text-dark);
    transition: color 0.2s;
    text-decoration: none;
}

.job-title a:hover {
    color: var(--primary-blue);
}

.job-company {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    background: #eef2f6;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.job-detail:hover {
    background: #e2e8f0;
}

.job-detail:hover {
    background: #e2e8f0;
}

.job-detail:hover {
    background: #e2e8f0;
}

.job-detail:hover {
    background: #e2e8f0;
}

.job-detail .icon {
    font-size: 1rem;
}

.job-detail.salary {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.job-detail.highlight {
    background: #FEF3C7;
    color: #92400E;
    font-weight: 600;
}

.icon {
    font-size: 1.1rem;
}

.job-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.job-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #E5E7EB;
}

.job-date {
    font-size: 0.85rem;
    color: #5e5e5e;
}

.job-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Job Detail Page */
.job-detail-page {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-blue);
}

.job-detail-page {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.job-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.job-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.job-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.job-company-name {
    font-size: 1.25rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 12px;
}

.job-info-item {
    display: block;
    text-align: center;
}

.job-info-item .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.job-info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.job-info-item p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* Компактна інфо-панель на мобільних */
@media (max-width: 768px) {
    .job-info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        margin: 1.25rem 0;
        padding: 1rem;
    }
    
    .job-info-item {
        padding: 0.75rem;
        background: white;
        border-radius: 10px;
        border: 1px solid var(--border-color);
    }
    
    .job-info-item .icon {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .job-info-item strong {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .job-info-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .job-info-bar {
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .job-info-item {
        padding: 0.625rem;
    }
    
    .job-info-item .icon {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .job-info-item strong {
        font-size: 0.75rem;
    }
    
    .job-info-item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

.job-content {
    margin: 2rem 0;
}

.job-section {
    margin-bottom: 2.5rem;
}

.job-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.job-text {
    color: var(--text-gray);
    line-height: 1.8;
}

.requirements-list, .benefits-list {
    list-style: none;
    padding: 0;
}

.requirements-list li, .benefits-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.benefits-list li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
}

.job-actions {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 12px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #F9FAFB;
    border-radius: 12px;
}

.share-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #374151;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.share-telegram:hover {
    background: #0088cc;
    color: white;
}

.share-viber {
    border-color: #7360f2;
    color: #7360f2;
}

.share-viber:hover {
    background: #7360f2;
    color: white;
}

.share-whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.share-whatsapp:hover {
    background: #25D366;
    color: white;
}

.share-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-instagram {
    border-color: #E4405F;
    color: #E4405F;
}

.share-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

/* Blog */
.blog-preview {
    padding: 0;
    background: white;
}

.articles-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.article-card, .blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.article-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 87, 183, 0.12);
    border-color: var(--light-blue);
}

.article-image, .blog-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image,
.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.article-content, .blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title, .blog-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.article-title a, .blog-title a {
    color: inherit;
    transition: color 0.2s;
}

.article-title a:hover, .blog-title a:hover {
    color: var(--primary-blue);
}

.article-excerpt, .blog-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta, .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-gray);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-meta span,
.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-read-more {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.article-meta .author::before {
    content: '✍️';
}

.article-meta .read-time::before,
.blog-meta .read-time::before {
    content: '⏱️';
}

/* Article Page */
.article-page {
    padding: 2rem 0;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta-header {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-gray);
}

.article-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image {
    margin: 1.5rem 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.article-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Форматування тексту в статтях */
.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0057b7;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

/* Додаткові блоки для читабельності статей */
.article-content .tip-box {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0 1.5rem 0;
}
.article-content .warning-box {
    background: #fff7ed;
    border: 1px solid #f59e0b;
    color: #7c2d12;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0 1.5rem 0;
}
.article-content .cta-box {
    background: #f0f9ff;
    border: 1px solid #38bdf8;
    color: #0c4a6e;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.article-content blockquote {
    margin: 1.25rem 0;
    padding: .75rem 1rem;
    border-left: 4px solid #93c5fd;
    background: #f8fafc;
    color: #334155;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content strong {
    font-weight: 700;
    color: #1f2937;
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: #0057b7;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #003d82;
}

.article-content blockquote {
    border-left: 4px solid #0057b7;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.article-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--text-dark);
    color: white;
    padding: 2rem 1rem;
}

.admin-sidebar h2 {
    margin-bottom: 2rem;
    color: var(--primary-yellow);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-link {
    padding: 0.875rem 1rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: var(--primary-blue);
    color: white;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--bg-gray);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background: var(--bg-gray);
    font-weight: 600;
}

.btn-small {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 6px;
    background: var(--primary-blue);
    color: white;
    margin-right: 0.5rem;
}

.btn-small:hover {
    background: var(--dark-blue);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #DC2626;
}

/* Admin Forms */
.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #FEE2E2;
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.no-results p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Similar Jobs / Related Articles */
.similar-jobs, .related-articles {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.similar-job-card, .related-article-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.similar-job-card:last-child, .related-article-card:last-child {
    border-bottom: none;
}

.similar-job-card h4, .related-article-card h4 {
    margin-bottom: 0.5rem;
}

.similar-job-card a, .related-article-card a {
    color: var(--text-dark);
}

.similar-job-card a:hover, .related-article-card a:hover {
    color: var(--primary-blue);
}

/* Location Map */
.location-map {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.location-map h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.map-container {
    position: relative;
}

.map-container iframe {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-address {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-open-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.map-open-link:hover {
    color: #003D82;
    text-decoration: underline;
}

/* Статус вакансії в адмін-панелі */
.job-status {
    font-size: 1.2rem;
    cursor: help;
}

.status-frozen {
    opacity: 0.6;
    background: #f5f5f5 !important;
}

.status-frozen td {
    color: #999;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

/* Alert повідомлення */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #f4f6f9;
    cursor: pointer;
    transition: var(--transition);
}
    
    .jobs-grid, .articles-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Blog: на мобільних робимо картки на всю ширину з малими відступами */
    .articles-grid, .blog-grid {
        gap: 1rem;
    }

    .article-content, .blog-content {
        padding: 1.25rem;
    }

    .article-card, .blog-card {
        border-radius: 12px;
    }

    /* Blog page container: ще ширше на мобільних (менші бокові відступи) */
    .blog-page .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .location-map {
        padding: 1.5rem;
    }
    
    .map-address {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .articles-grid, .blog-grid {
        gap: 0.875rem;
    }

    .article-content, .blog-content {
        padding: 0.95rem;
    }

    .blog-page .container {
        padding-left: 4px;
        padding-right: 4px;
    }
}
/* FIX: дозволяємо кліки тільки кнопкам */
.job-card a,
.job-card a * {
    pointer-events: auto;
}


/* FIX: дозволяємо кліки тільки кнопкам */
.job-card a,
.job-card a * {
    pointer-events: auto;
}


/* FIX: кнопка поверх усіх шарів */
.job-card .btn,
.job-card a.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
    position: relative;
    overflow: hidden;
}
/* FIX: job card click blocking */
.job-card,
.job-card * {
    pointer-events: auto !important;
}

.job-card::before,
.job-card::after,
.job-card-hot::before,
.job-card-hot::after,
.job-card .hot-badge,
.job-card .badge,
.job-card .job-card-image::before,
.job-card .job-card-image::after {
    pointer-events: none !important;
}

.job-card a.btn,
.job-card a.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
    position: relative;
    overflow: hidden;
}
/* ============================================
   DESIGN IMPROVEMENTS - January 2026
   ============================================ */

/* --- SMOOTH TRANSITIONS (targeted only — NOT wildcard, bad for perf) --- */
button, .btn, .job-card, .article-card, .blog-card,
.nav-link, .mobile-nav-link, .filter-select, .filter-clear,
.share-btn, .dropdown-item, .search-button, .search-input {
    transition: var(--transition);
}

/* --- HOVER ANIMATIONS --- */
.job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 183, 0.3);
}

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

.article-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* --- STICKY HEADER --- */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(15, 98, 254, 0.06);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    transition: var(--transition);
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 70%;
    margin-bottom: 0.75em;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}


/* --- ENHANCED MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
    
    /* Better spacing */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Sticky header mobile */
    .header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(15, 98, 254, 0.06);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    transition: var(--transition);
}
    
    .header .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    

    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Job cards mobile */
    .job-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(15, 98, 254, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
    
    .job-card-image {
        height: 160px;
    }
    
    .job-card-content {
        padding: 1rem;
    }
    
    .job-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .job-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .job-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Filters mobile */
    .filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }
    
    .filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn,
    .city-btn {
        flex-shrink: 0;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Improve tap feedback */
    .btn:active,
    .job-card:active,
    .filter-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Better text readability */
    p, .job-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .job-card-image {
        height: 140px;
    }
    
    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
    
    .job-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .job-salary {
        text-align: center;
    }
    
    /* Search form */
    .search-form {
        flex-direction: column;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
    }
}

/* --- FOCUS STATES (Accessibility) --- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.3);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .job-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* --- PRINT STYLES --- */
@media print {
    .header,
    .footer,
    .sidebar,
    .filters,
    .mobile-menu,
    .reading-progress,
    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .job-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(15, 98, 254, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
    
    a { color: black; text-decoration: none; }
}

/* Scroll Animations - disabled opacity hiding to prevent invisible job cards */
/* animate-on-scroll is applied via JS only when element is NOT in initial viewport */
.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy image placeholder */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* CLS prevention */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- SUBMIT BUTTON VISIBILITY FIX --- */
button.btn-primary,
button#submit-btn,
.application-form button[type="submit"],
#submit-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue, #0f62fe), var(--dark-blue, #002d9c)) !important;
    color: #ffffff !important;
    border: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

button.btn-primary:hover,
button#submit-btn:hover,
#submit-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue, #002d9c), #002580) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4) !important;
}

button.btn-primary:active,
button#submit-btn:active,
#submit-btn:active,
.btn-primary:active {
    transform: translateY(0) !important;
}






/* ═══════════════════════════════════════════════════════════
   RESPONSIVE ARTICLE TABLES — mobile horizontal scroll
   ════════════════════════════════════════════════════════ */

/* Wrapper provides scroll container — table itself stays as table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-content .table-wrapper {
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    min-width: 480px;          /* forces scroll when viewport < this */
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95rem;
    margin: 0;                  /* margin handled by .table-wrapper */
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.article-content table th {
    background: #0057b7;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 16px;
    text-align: left;
    border-bottom: 2px solid #004494;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.article-content table td {
    padding: 12px 16px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    vertical-align: top;
    word-break: break-word;
}

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

.article-content table tr:nth-child(even) td {
    background: #f8fafc;
}

.article-content table tr:hover td {
    background: #eff6ff;
    transition: background 0.15s ease;
}

/* Small scroll indicator hint on mobile */
@media (max-width: 768px) {
    .table-wrapper {
        position: relative;
    }

    .article-content table {
        font-size: 0.83rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .article-content table {
        font-size: 0.78rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 7px 10px;
    }
}

/* Prevent article body from causing page-level overflow */
.article-content {
    overflow-x: hidden;
    max-width: 100%;
}

/* Images stay within bounds */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 1rem auto;
}


/* Standardized Blog Card Image Proportions */
.blog-image-link, .article-image-link {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    position: relative !important;
    border-radius: 8px 8px 0 0 !important;
}
.blog-image, .article-image {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}
.blog-card:hover .blog-image, .article-card:hover .article-image {
    transform: scale(1.04) !important;
}
