/* Job Listing Styles */
/* CSS premenné sú definované v design-system.css */

/* Job-specific mappings (využívajú centrálne premenné) */
:root {
    --job-primary: var(--primary);
    --job-primary-hover: var(--primary-hover);
    --job-bg: var(--bg);
    --job-card-bg: var(--bg-surface);
    --job-text: var(--text);
    --job-text-muted: var(--text-muted);
    --job-border: var(--border);
    --job-radius: var(--radius-md);
    --job-shadow: var(--shadow);
}

/* Layout */
.job-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--container-padding);
    color: var(--job-text);
    position: relative;
    z-index: 5;
}

/* Single job detail page - wider container */
body.single-ponuka .job-container {
    max-width: var(--container-width);
}

/* Hero info box inside job-container - overlaps into hero */
body.single-ponuka .job-container .hero-info-box {
    max-width: 100%;
    width: 100%;
}

.job-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
}

@media (max-width: 991px) {
    .job-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.job-hero {
    background-color: var(--dark-hero);
    color: var(--text-inverse);
    padding: var(--hero-padding-top-desktop) 0 var(--hero-padding-bottom-desktop);
    text-align: center;
    position: relative;
    margin-bottom: 0;
    width: 100%;
    /* background-image removed to use dynamic ACF field from options */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.job-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(33, 48, 53, 0.60) 0%,
            rgba(22, 22, 21, 0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

.job-hero>* {
    position: relative;
    z-index: 1;
}


/* .job-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-hero);
    opacity: 0.7;
    z-index: 0;
}

.job-hero > * {
    position: relative;
    z-index: 1;
} */

.job-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 var(--container-padding, 20px) 2rem;
}

.job-hero-content h1 {
    color: var(--text-inverse);
    padding: unset;
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--container-width, 1280px) - 40px);
    max-width: calc(100% - 40px);
    height: 1px;
    background-color: var(--divider);
    border: none;
}

/* Breadcrumbs styling within hero label */
.job-hero-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.job-section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    position: relative;
    /* Ensure it's not hidden if z-indexed */
}

.job-hero-title {
    margin-top: 0;
}

.job-hero-label .breadcrumbs,
.job-hero-label nav,
.job-hero-label .tsf-breadcrumb {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.job-hero-label .breadcrumbs a,
.job-hero-label nav a,
.job-hero-label .tsf-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-hero-label .breadcrumbs a:hover,
.job-hero-label nav a:hover,
.job-hero-label .tsf-breadcrumb a:hover {
    color: var(--primary);
}

.job-hero-label .breadcrumbs .sep,
.job-hero-label nav .sep,
.job-hero-label .tsf-breadcrumb .sep {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.job-hero-label .breadcrumbs .current,
.job-hero-label nav .current,
.job-hero-label .tsf-breadcrumb [aria-current="page"] {
    color: var(--primary);
}

.job-hero-label ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.job-hero-label li {
    display: inline-flex;
    align-items: center;
}

.job-hero-label li:not(:last-child)::after {
    content: '\203A';
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.job-hero-label a svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.job-hero-label a:hover svg {
    color: var(--primary);
}

/* For single job pages */
.job-hero-title {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    line-height: var(--hero-title-line-height);
    letter-spacing: var(--hero-title-letter-spacing);
    margin-bottom: 1rem;
    color: white;
    position: relative;
    padding-left: 3rem;
    text-wrap: balance;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

body.archive-ponuka .job-hero h1,
body.archive-ponuka .job-hero-content h1 {
    font-size: var(--hero-title-size);
    /* Force correct size */
    font-weight: var(--hero-title-weight);
    margin-bottom: 0.5rem;
    color: white;
    /* Ensure white text on hero */
    position: relative;
    padding-left: 0;
    text-wrap: balance;
}

/* Hide back arrow on archive pages */
body.archive-ponuka .hero-back-arrow {
    display: none;
}


/* Ensure back button is visible on single job pages */
.job-title-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    /* Helps with vertical alignment if needed, though absolute handles the button */
    justify-content: center;
    align-items: center;
}

body.single-ponuka .job-hero-title {
    /* padding-left/right not needed on desktop due to wide wrapper, but kept for symmetry/mobile safety */
    padding: 0;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.single-ponuka .hero-back-arrow {
    display: flex;
    visibility: visible;
    opacity: 1;
    position: absolute;
    left: 0;
    /* Center vertically relative to the wrapper/row */
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
}

@media (max-width: 1280px) {

    /* When screen is smaller, the gap disappears. Add padding back. */
    body.single-ponuka .job-title-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    body.single-ponuka .hero-back-arrow {
        left: 0;
        /* Still left 0 of wrapper, but wrapper has padding? No, wrapper padding pushes content in? 
                  If wrapper has padding, absolute child at left 0 is inside padding? No, borders.
                  Actually, if wrapper has padding, use left: 0 to put it in padding area. */
    }
}

@media (max-width: 768px) {
    body.single-ponuka .job-title-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* On mobile, put button back inline or floating left of text with padding? */
    /* Let's keep the wrapper structure. */

    body.single-ponuka .job-hero-title {
        padding-left: 3rem;
        /* Add specific padding to title so text doesn't overlap button */
        padding-right: 3rem;
    }

    body.single-ponuka .hero-back-arrow {
        left: 0;
    }
}



.job-hero-text {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-inverse);
    max-width: 724px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Hero Meta Actions */
.hero-meta-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: absolute;
    top: 0;
    right: var(--container-padding);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-meta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--text-inverse);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 800;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(33, 48, 53, 0.5);
    backdrop-filter: blur(6px);
    transition: all var(--transition);
    border: none;
    opacity: 0.9;
}

.hero-meta-button:hover {
    background: rgba(33, 48, 53, 0.7);
    color: var(--text-inverse);
    opacity: 1;
}

.hero-meta-button:active {
    transform: translateY(0);
}

.hero-meta-button svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    width: 14px;
    height: 14px;
    opacity: 0.8;
    stroke: currentColor;
    color: currentColor;
}

/* Hero Back Arrow */
.hero-back-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 50%;
    background: rgba(33, 48, 53, 0.5);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    border: none;
    z-index: 10;
}

.hero-back-arrow:hover {
    background: rgba(33, 48, 53, 0.7);
    color: var(--text-inverse);
    transform: translateY(-50%) translateX(-4px);
}

.hero-back-arrow svg {
    width: 20px;
    height: 20px;
    width: 14px;
    height: 14px;
    opacity: 0.8;
    stroke: currentColor;
    color: currentColor;
}

/* Hero Time Ago Top */
.hero-time-ago-top {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-time-ago-top .time-ago-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.hero-time-ago-top .time-ago-text strong {
    font-weight: var(--font-weight-semibold);
    opacity: 0.9;
}

.job-hero-content {
    position: relative;

}

/* Hero Bottom Actions */
.hero-bottom-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.time-ago-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-inverse);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(33, 48, 53, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    line-height: 1.2;
}

.time-ago-text.time-ago-today {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    animation: pulse-glow 2s ease-in-out infinite;
}

.job-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(33, 48, 53, 0.5);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: none;
    margin: 0;
    line-height: 1;
    height: auto;
}

/* Hero badge variants - higher specificity to override .job-badge variants */
.job-badge.job-badge-hero.nova {
    background: rgba(22, 163, 74, 0.6);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    line-height: 1;
}

.job-badge.job-badge-hero.urgent {
    background: rgba(220, 38, 38, 0.6);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    line-height: 1;
}

.job-badge.job-badge-hero.immediate {
    background: rgba(217, 119, 6, 0.6);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    line-height: 1;
}

.hero-apply-button,
.hero-apply-button-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #161615;
    text-align: center;
    font-weight: 800;
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(253, 198, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-apply-button-inline {
    margin: 0;
    width: auto;
    height: auto;
    min-height: auto;
}

.hero-apply-button:hover,
.hero-apply-button-inline:hover {
    background: var(--primary-hover);
    color: #161615;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 198, 0, 0.35);
    border-color: var(--primary-hover);
}

.hero-apply-button:active,
.hero-apply-button-inline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 198, 0, 0.3);
}

.hero-apply-button svg,
.hero-apply-button-inline svg {
    width: 24px;
    height: 24px;
    color: #161615;
    stroke: #161615;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(253, 198, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(253, 198, 0, 0);
    }
}

/* Hero Info Box - Styled UL with Icons */
/* Now positioned to overlap from job-container into hero */
.hero-info-box {
    list-style: none;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    margin-top: -6rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: calc(var(--radius-lg) + 4px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
    justify-content: center;
}

/* Vertical separators - for items not in last column */
.hero-info-item:not(:nth-child(3n))::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--border) 20%,
            var(--border) 80%,
            transparent 100%);
}

/* Horizontal separator - for items in first row (first 3 items) */
.hero-info-item:nth-child(-n+3)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--border) 20%,
            var(--border) 80%,
            transparent 100%);
}

.hero-info-item.hero-info-button {
    padding: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
}

.hero-info-item.hero-info-button::after {
    display: none;
}

.hero-info-item.hero-info-button::before {
    display: none;
}

.hero-info-icon {
    width: 24px;
    height: 24px;
    color: var(--text);
    opacity: 0.7;
    flex-shrink: 0;
}

.hero-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.hero-info-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
}

.hero-info-value {
    font-size: var(--font-size-base);
    color: var(--text);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .job-hero {
        padding: var(--hero-padding-top-mobile) 0 var(--hero-padding-bottom-mobile);
    }

    .job-hero-content {
        padding: 0 var(--container-padding, 20px);
    }

    .hero-meta-actions {
        position: relative;
        margin-bottom: 1.5rem;
        justify-content: center;
        width: 100%;
        right: 0;
    }

    /* Title adjustments */
    .job-hero-title,
    body.archive-ponuka .job-hero h1,
    body.archive-ponuka .job-hero-content h1 {
        font-size: var(--hero-title-size);
        padding-left: 0;
    }

    body.single-ponuka .job-hero-title {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .hero-back-arrow {
        width: 36px;
        height: 36px;
    }

    .hero-back-arrow svg {
        width: 18px;
        height: 18px;
    }

    .hero-time-ago-top {
        margin-bottom: 1rem;
    }

    .hero-info-box {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        margin-top: -5rem;
        margin-bottom: 2rem;
    }

    .hero-info-item {
        padding: 0.875rem 0.5rem;
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-info-item::after {
        display: none;
    }

    .hero-info-item::before {
        display: none;
    }

    .hero-info-item:nth-child(-n+3) {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .hero-info-item.hero-info-button {
        grid-column: 1 / -1;
        padding: 0.875rem 0;
        border-bottom: none;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-apply-button-inline {
        width: 100%;
        min-height: 50px;
    }

    .hero-info-icon {
        margin: 0 auto;
        width: 22px;
        height: 22px;
    }

    .hero-info-content {
        flex: 1;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-bottom-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero-apply-button {
        width: 100%;
        max-width: 300px;
    }
}

.section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 11;
    background-image: url(/wp-content/uploads/2025/11/symbol-footer.svg);
    background-size: 1024px 1024px;
    background-repeat: no-repeat;
    background-position: right bottom;
    transition: all var(--transition-duration) ease-in-out;
    pointer-events: none;
    /* Allows clicking through the overlay */
}

/* Filter Bar */
.job-filter-bar {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

/* Job Meta Items */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    margin-top: 1rem;
}

/* Specific selector to override <a> tag styles */
.job-card .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--job-text-muted);
    /* Force gray color */
    font-size: var(--font-size-xs);
    font-weight: 700;



    border: 1px solid var(--job-border);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    height: auto;
    line-height: 1.2;
}

.job-card .meta-item svg {
    color: var(--job-text-muted);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Specific style for "Added Ago" */
.job-card .meta-item.added-ago {
    color: var(--job-text-muted) !important;
    font-size: var(--font-size-xs);
    font-weight: 700;
    background-color: unset;
    border: unset;
    padding: unset;
}

@media (max-width: 767px) {
    .job-card .meta-item {
        gap: 0.25rem;
        font-size: 0.75rem;
        /* Smaller font for mobile */
        padding: 0.3rem 0.6rem;
    }

    .job-card .meta-item svg {
        width: 14px;
        height: 14px;
    }
}

.filter-wrapper-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.filter-actions-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    align-self: flex-end;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .filter-wrapper-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions-row {
        justify-content: flex-end;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .filter-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .filter-actions-side {
        width: 100%;
    }

    .btn-filter {
        width: 100%;
    }
}

/* Input Icons */
.filter-group {
    position: relative;
    margin-bottom: 0;
}

/* Filter Labels */
/* Labels - ZJEDNOTENÉ */
.filter-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--job-text-muted);
    pointer-events: none;
}

.filter-input.has-icon,
.filter-select.has-icon,
select.filter-input.has-icon {
    padding-left: 3rem;
}


/* Clear Input Button */
.filter-input-wrapper {
    position: relative;
}

.clear-input {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--job-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-input:hover {
    background-color: var(--bg);
    color: var(--error);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    background-color: var(--input-bg);
    transition: all var(--transition);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--input-height);
    white-space: nowrap;
    overflow: hidden;
}

.dropdown-trigger.has-icon {
    padding-left: 3rem;
}

.dropdown-trigger:hover {
    background-color: var(--input-bg);
    border-color: var(--border-strong);
}

.dropdown-trigger:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 136, 0.08);
    background-color: var(--input-bg-focus);
}

.dropdown-trigger .trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown .dropdown-arrow {
    color: var(--job-text-muted);
    transition: transform 0.2s;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.custom-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
    font-size: var(--font-size-sm);
    color: var(--text);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg-muted);
}

.dropdown-item input[type="checkbox"],
.dropdown-item input[type="radio"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    accent-color: var(--accent);
}

.dropdown-item-sub {
    padding-left: 2rem;
}

.dropdown-item .count {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    margin-left: auto;
    background: rgba(22, 22, 21, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.trigger-text .trigger-count {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    background: rgba(22, 22, 21, 0.08);
    padding: 0px 8px;
    border-radius: var(--radius-sm);
}

/* Form Elements - ZJEDNOTENÉ */
.filter-input {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    background-color: var(--input-bg);
    transition: all var(--transition);
    height: var(--input-height);
}

.filter-input::placeholder {
    font-weight: 500;
    color: var(--text-placeholder);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 136, 0.08);
    background-color: var(--input-bg-focus);
}

.btn-filter {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    height: var(--input-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    min-width: 271px;
}

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

.btn-filter .btn-text {
    transition: opacity 0.2s;
}

.btn-filter .btn-count {
    background: rgba(255, 255, 255, 0.65);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    margin-left: 6px;
}

.btn-filter.loading .btn-text {
    opacity: 0;
    /* Hide text but keep width */
}

.btn-filter.loading>svg {
    display: none;
    /* Hide search icon when loading */
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: auto;
    height: var(--input-height);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    visibility: visible;
    opacity: 1;
    font-weight: 800;
    font-size: var(--font-size-sm);
    padding: var(--input-padding-y) 1.5rem;
}

.btn-reset.hidden {
    display: none;
}

.btn-reset:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: var(--error);
}

/* Sort Button (Ghost Style) */
.btn-sort {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 100%;
    height: var(--input-height);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    font-weight: 800;
    font-size: var(--font-size-sm);
    padding: var(--input-padding-y) 2rem var(--input-padding-y) var(--input-padding-x);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.btn-sort:hover {
    background-color: var(--bg-muted);
    border-color: var(--border-strong);
}

.btn-sort:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background-color: var(--input-bg);
}

/* Spinner */
.btn-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: var(--text);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Ghost Button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-extrabold);
    text-decoration: none;
    transition: all var(--transition-slow);
    background: transparent;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--text);
    color: var(--text);
    background: transparent;
}

.btn-ghost .arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-ghost:hover .arrow-icon,
.job-card:hover .btn-ghost .arrow-icon {
    transform: translateX(4px);
}



/* Total Count Alignment */
#job-total-count {
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    text-align: right;
    font-weight: 500;
    color: #64748b;
    font-size: var(--font-size-sm);
}

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

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

.filter-row-secondary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
}

.filter-input,
.filter-select {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    background-color: var(--input-bg);
    font-size: var(--font-size-sm);
    height: var(--input-height);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 136, 0.08);
    background-color: var(--input-bg-focus);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Header */
.job-header {
    background: var(--job-card-bg);
    border-radius: var(--job-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--job-shadow);
    border: 1px solid var(--job-border);
}

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

.job-badge {
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-flex !important;
    align-items: center;
    border: 1px solid transparent;
    height: auto;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Custom badge color (default) */
.job-badge.custom {
    background: var(--bg-muted) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.job-card .job-badges {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.job-card-title {
    padding-right: 120px;
    /* Space for badges */
    font-size: 1.2rem !important;
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: var(--dark);
    line-height: 1.3;
}

.job-badge.nova {
    background: #DCFCE7 !important;
    /* Green-100 */
    color: #15803d !important;
    /* Green-700 */
    border-color: #BBF7D0 !important;
    /* Green-200 */
}

.job-badge.urgent {
    background: #FEE2E2 !important;
    /* Red-100 */
    color: #B91C1C !important;
    /* Red-700 */
    border-color: #FECACA !important;
    /* Red-200 */
}

.job-badge.immediate {
    background: #FEF3C7 !important;
    /* Amber-100 */
    color: #B45309 !important;
    /* Amber-700 */
    border-color: #FDE68A !important;
    /* Amber-200 */
}

.job-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--job-text-muted);
    font-size: 1rem;
}

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

.job-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--job-primary);
}

/* Content */
.job-content {
    padding: 0;
}

.job-empty-content {
    padding: 0.5rem 0;
}

.job-empty-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    margin: 0;
}


.job-content p {
    margin-bottom: 1.5rem;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    font-size: 1rem;
    /* Normalized size */
}

.job-content ul:not(.job-bullets-list),
.job-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.job-content li {
    margin-bottom: 0.5rem;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    position: relative;
    font-size: 1rem;
    /* Normalized size */
}

.job-content ul:not(.job-bullets-list) li::marker {
    color: var(--primary);
}

.job-content strong {
    color: var(--text);
    font-weight: var(--font-weight-semibold);
}

.job-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.job-content a:hover {
    color: var(--accent-hover);
}

.job-section {
    margin-bottom: 2rem;
    background: var(--bg-surface);
    border-radius: calc(var(--radius-lg) + 2px);
    padding: 2.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.job-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .job-section {
        padding: 2rem;
    }
}

.job-section-title {
    font-size: calc(var(--font-size-2xl) * 0.95) !important;
    font-weight: var(--font-weight-bold);
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text);
    line-height: var(--line-height-tight);
}


.job-content h3 {
    font-size: calc(var(--font-size-2xl) * 0.95) !important;
    font-weight: var(--font-weight-bold);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    /* Removed padding */
    border-bottom: none;
    /* Removed border */
    color: var(--text);
    line-height: var(--line-height-tight);
}

.job-content h3:not(:first-child) {
    margin-top: 2.5rem;
}

.job-content h4 {
    font-size: calc(var(--font-size-lg) * 0.95) !important;
    font-weight: var(--font-weight-semibold);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Job Intro Block - First WYSIWYG section */
.job-intro .job-wysiwyg p {
    font-size: 1rem;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* Flexible Content Styles */
.job-wysiwyg p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.job-wysiwyg ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.job-wysiwyg li {
    margin-bottom: 0.5rem;
}

.job-bullets-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.job-bullets-list li {
    position: relative;
    padding-left: 1.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    font-size: 1rem;
    /* Normalized size */
    margin-bottom: 0;
}

.job-bullets-list li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.4;
    transition: all var(--transition);
}

.job-bullets-list li:hover::before {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.2);
}

.job-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .job-two-col {
        grid-template-columns: 1fr;
    }
}

/* Skills */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.skill-tag {
    background: var(--bg-subtle);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border);
    font-size: 1rem;
    /* Match content text size */
}

.skill-level {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.skill-level.skill-level-advantage {
    color: rgb(22, 163, 74);
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.skill-level.skill-level-condition {
    color: rgb(220, 38, 38);
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Sidebar */
.job-sidebar {
    position: relative;
    overflow: visible !important;
    height: auto !important;
    display: block;
}

.job-sidebar-card {
    background: var(--bg-surface);
    border-radius: calc(var(--radius-lg) + 2px);
    padding: 0;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Sticky removed from contact card - now on form */
@media (max-width: 991px) {
    .job-sidebar-card {
        margin-bottom: 1.5rem;
    }
}

/* Contact Person Card - Removed (now part of combined card) */

.job-sidebar-card .job-meta-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    margin-bottom: 1rem;
    border: none;
    background: transparent;
}

.job-sidebar-card .job-meta-item:last-child {
    margin-bottom: 0;
}

.job-sidebar-card .job-meta-item strong {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    min-width: 120px;
    flex-shrink: 0;
}

.job-sidebar-card .job-meta-item span:not(strong) {
    font-size: var(--font-size-sm);
    color: var(--text);
    font-weight: var(--font-weight-semibold);
    flex: 1;
}

/* Combined Contact & Application Form in Sidebar */
.job-sidebar-card.contact-application-card {
    padding: 2.5rem;
    position: sticky;
    top: calc(var(--section-spacing-desktop, 100px) + 2.5rem);
    z-index: 5;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .job-sidebar-card.contact-application-card {
        position: relative;
        top: auto;
        padding: 2rem;
        margin-bottom: 0;
    }
}

/* Contact Section & Form Base */
.contact-section-title {
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.75rem;
    color: var(--text);
    line-height: var(--line-height-tight);
}

.contact-section-description {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: var(--line-height-normal);
}

.contact-section .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-section .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary) !important;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all var(--transition);
    border: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.contact-section .contact-link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--text) !important;
}

.contact-section .contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 1;
    transition: all var(--transition);
    stroke-width: 2;
}

.contact-section .contact-link:hover svg {
    opacity: 1;
    color: var(--accent-hover);
}

/* Divider */
.contact-form-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    height: 1px;
    background: var(--border);
}

.contact-form-divider span {
    position: relative;
    display: inline-block;
    background: var(--bg-surface);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    top: -0.625rem;
}

/* Form Groups & Inputs */
.application-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label:not(.checkbox-wrapper) {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: var(--error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-x);
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: var(--input-text);
    font-weight: var(--font-weight-medium);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    height: var(--input-height);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
    font-weight: var(--font-weight-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: var(--shadow-focus);
    background: var(--input-bg-focus);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--input-border-hover);
}

/* Select wrapper arrows */
.select-wrapper,
#contact-form .select-wrapper {
    position: relative;
}

.form-group select,
#contact-form .form-group select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-wrapper .select-arrow,
#contact-form .select-wrapper .select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* File Upload */
.form-group-file input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    background: var(--input-bg);
    border: 2px dashed var(--input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.file-upload-label:hover {
    background: var(--bg-subtle);
    border-color: var(--accent);
}

.file-upload-label svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.file-upload-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.file-upload-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
    opacity: 0.7;
}

.file-name {
    display: none;
    margin-top: 0.5rem;
    font-size: var(--font-size-xs);
    color: var(--text);
    font-weight: var(--font-weight-medium);
}

.file-name.has-file {
    display: block;
}

/* Checkbox */
.form-group-checkbox {
    margin-bottom: 1.25rem;
}

.checkbox-wrapper {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: var(--font-weight-normal) !important;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: var(--font-size-xs);
    color: var(--text);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    display: inline;
}

.checkbox-label a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 2px;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition);
}

.checkbox-label a:hover {
    color: var(--text);
    text-decoration-color: var(--text);
}

/* Submit Button */
.btn-submit-application {
    width: 100%;
    padding: 0 1.5rem;
    height: var(--input-height);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(253, 198, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-application:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 198, 0, 0.35);
}

.btn-submit-application:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 198, 0, 0.3);
}

/* PS Note */
.form-ps-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-ps-note p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

.form-ps-note strong {
    font-weight: var(--font-weight-bold);
    color: var(--accent);
}

.form-ps-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition);
}

.form-ps-note a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Success & Error Messages */
.application-success-message {
    text-align: center;
    padding: 2rem 0;
    margin-top: 1rem;
}

.application-success-message .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-success-message .success-icon svg {
    color: var(--success);
    width: 32px;
    height: 32px;
}

.application-success-message h3 {
    font-size: var(--h3-size);
    font-weight: var(--font-weight-bold);
    color: var(--text);
    margin: 0 0 0.5rem;
}

.application-success-message p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

.form-error-message,
#contact-form .form-error-message {
    display: none;
    font-size: var(--font-size-xs);
    color: var(--error);
    background: var(--error-light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-error-message.show,
#contact-form .form-error-message.show {
    display: block;
}

.form-group input.form-error,
.form-group textarea.form-error,
.form-group select.form-error,
.form-group.form-error .checkbox-wrapper,
#contact-form input.form-error,
#contact-form select.form-error,
#contact-form textarea.form-error {
    border-color: var(--error) !important;
    background-color: var(--error-light) !important;
}

.form-group label.form-error-label,
#contact-form .form-group label.form-error-label {
    color: var(--error) !important;
}

.recaptcha-wrapper {
    margin-bottom: 1rem;
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Job List Grid */
.job-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .job-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Related Jobs Slider */
.job-container:has(.related-jobs-slider-wrapper) {
    overflow: visible;
    max-width: var(--container-width);
    padding: 2rem var(--container-padding);
}

.job-container:has(.related-jobs-slider-wrapper) .section-heading {
    margin-bottom: 2.5rem;
}


.related-jobs-slider-wrapper {
    position: relative;
    padding: 0;
    margin-top: 0.5rem;
    width: 100%;
    overflow: visible;
}

.related-jobs-slider {
    overflow: visible;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    min-height: 280px;
}

.related-jobs-slider .swiper-wrapper {
    align-items: stretch;
    overflow: visible;
}

.related-jobs-slider .swiper-slide {
    height: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    box-sizing: border-box;
}

.related-jobs-slider .swiper-slide>* {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

/* Gradient overlays for fade effect */
.related-jobs-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: linear-gradient(to left, var(--bg-surface) 0%, var(--bg-surface) 20%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0) 100%);
}

.related-jobs-slider-wrapper.swiper-at-end::after {
    opacity: 0;
}

.related-jobs-slider .swiper-pagination {
    position: relative;
    margin-top: 2.5rem;
    bottom: 0;
    text-align: center;
}

.related-jobs-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.related-jobs-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 32px;
    border-radius: 4px;
}

.related-jobs-slider .swiper-button-next,
.related-jobs-slider .swiper-button-prev {
    width: 52px;
    height: 52px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin-top: -26px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 30;
    position: absolute !important;
}

.related-jobs-slider .swiper-button-prev {
    left: 15px;
}

.related-jobs-slider .swiper-button-next {
    right: 15px;
    z-index: 40;
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.related-jobs-slider .swiper-button-next:after,
.related-jobs-slider .swiper-button-prev:after {
    display: none;
}

.related-jobs-slider .swiper-button-next svg,
.related-jobs-slider .swiper-button-prev svg {
    width: 20px;
    height: 20px;
    color: var(--text);
    stroke: currentColor;
    transition: color 0.3s ease;
}

.related-jobs-slider .swiper-button-next:hover,
.related-jobs-slider .swiper-button-prev:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-50%) scale(1.08);
}

.related-jobs-slider .swiper-button-next:hover svg,
.related-jobs-slider .swiper-button-prev:hover svg {
    color: var(--dark);
}

.related-jobs-slider .swiper-button-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.related-jobs-slider .swiper-button-disabled:hover {
    transform: translateY(-50%);
    background: var(--bg-surface);
    border-color: var(--border);
}

.related-jobs-slider .swiper-button-disabled svg {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .related-jobs-slider-wrapper::after {
        right: 0;
        width: 80px;
    }

    .related-jobs-slider .swiper-button-next,
    .related-jobs-slider .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .related-jobs-slider .swiper-button-prev {
        left: 8px;
    }

    .related-jobs-slider .swiper-button-next {
        right: 8px;
        background: var(--bg-surface) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .related-jobs-slider .swiper-button-next svg,
    .related-jobs-slider .swiper-button-prev svg {
        width: 18px;
        height: 18px;
    }

    .job-hero {
        padding-bottom: 4rem;
    }

    .job-filter-bar {
        margin-top: -2rem;
    }
}

.job-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem !important;
    border: 1px solid var(--job-border);
    transition: border-color var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.job-card:hover {
    background-color: var(--bg-subtle);
    /* subtle hover background */
    transform: translateY(-2px);
    /* No shadow as requested */
}

.job-card-header {
    margin-bottom: 0.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.job-badges {
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
    align-items: center;
}

.job-card .job-badge,
.job-card .meta-item {
    min-height: 32px;
    box-sizing: border-box;
}

.job-card-title {
    font-size: 1.2rem !important;
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: var(--dark);
    line-height: 1.3;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem !important;
    color: var(--job-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: auto;
    /* Push footer down */
    padding-bottom: 0.75rem !important;
    margin-top: 0.75rem !important;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 0.75rem !important;
    margin-top: auto;
    gap: 1rem;
}

@media (max-width: 768px) {
    .job-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card-footer .btn-ghost {
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }
}

.job-salary {
    font-weight: var(--font-weight-bold) !important;
    color: var(--text-muted) !important;
    font-size: 1rem !important;
}

/* Pagination - styled like tags */
.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    background: none;
    border: none;
}

.pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.pagination .page-numbers,
.pagination a.page-numbers,
.pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    transition: all var(--transition);
    cursor: pointer;
    line-height: 1.2;
    width: 100%;
    height: 100%;
}

.pagination li:hover .page-numbers:not(.current):not(.dots) {
    color: var(--primary-active);
}

.pagination li:hover:not(.current):not(.dots) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pagination li.current {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pagination .page-numbers.current,
.pagination span.page-numbers.current {
    color: var(--primary-active);
    font-weight: var(--font-weight-bold);
    cursor: default;
}

.pagination li.dots {
    background: transparent;
    border: none;
}

.pagination .page-numbers.dots,
.pagination span.page-numbers.dots {
    cursor: default;
    min-width: auto;
    height: auto;
    padding: 0 0.5rem;
}

.pagination .page-numbers.dots:hover,
.pagination span.page-numbers.dots:hover {
    transform: none;
    background: transparent;
    border: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0.65rem;
}

.pagination .page-numbers svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Screen reader text */
.pagination .screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination ul {
        gap: 0.25rem;
    }

    .pagination .page-numbers {
        padding: 0.6rem 0.9rem;
        font-size: var(--font-size-sm);
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0.6rem 0.9rem;
    }
}

/* Loading State */
.jobs-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* No Results Message */
.no-results {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--job-text-muted);
    text-align: center !important;
    margin: 2rem auto !important;
    display: block !important;
    width: 100%;
    grid-column: 1 / -1;
}

/* Reset Button Below Count */
#reset-below-count {
    display: none;
    text-align: center;
    grid-column: 1 / -1;
}

#reset-below-count .btn-reset {
    width: auto;
    display: inline-flex;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 1023px) {
    .hero-divider {
        top: 68px;
    }

    /* Kompaktný HERO */
    .job-hero {
        padding: 7rem 0 5rem;
    }

    .job-hero-title {
        /* font-size: 2.2rem !important; - Removed to use global variable */
        margin-bottom: 0.75rem;
    }

    .hero-info-box {
        padding: 1.5rem 2rem;
        gap: 0;
        margin-top: -5rem;
        margin-bottom: 2rem;
    }

    .hero-info-item {
        padding: 0.75rem 1rem;
    }

    .hero-info-icon {
        width: 20px;
        height: 20px;
    }

    .hero-info-label {
        font-size: 10px;
    }

    .hero-info-value {
        font-size: var(--font-size-sm);
    }

    .hero-bottom-actions {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    /* Kompaktný obsah detailu */
    body.single-ponuka .job-section {
        margin-bottom: 1.5rem;
        padding: 1.75rem 2rem;
    }

    body.single-ponuka .job-section-title {
        font-size: var(--font-size-xl) !important;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    body.single-ponuka .job-content h3 {
        font-size: var(--font-size-xl) !important;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    body.single-ponuka .job-content h3:not(:first-child) {
        margin-top: 1.75rem;
    }

    body.single-ponuka .job-content h4 {
        font-size: var(--font-size-lg) !important;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    body.single-ponuka .job-content p {
        margin-bottom: 1rem !important;
        font-size: var(--font-size-base) !important;
        line-height: 1.6 !important;
    }

    body.single-ponuka .job-content ul:not(.job-bullets-list),
    body.single-ponuka .job-content ol {
        margin-bottom: 1.5rem;
    }

    body.single-ponuka .job-content li {
        margin-bottom: 0.4rem !important;
        font-size: var(--font-size-base) !important;
        line-height: 1.6 !important;
    }

    body.single-ponuka .job-intro .job-wysiwyg p {
        font-size: var(--font-size-base) !important;
        line-height: 1.6 !important;
    }

    body.single-ponuka .job-wysiwyg p {
        font-size: var(--font-size-base) !important;
        margin-bottom: 0.875rem !important;
        line-height: 1.6 !important;
    }

    body.single-ponuka .job-wysiwyg li {
        font-size: var(--font-size-base) !important;
        line-height: 1.6 !important;
    }

    body.single-ponuka .job-bullets-list {
        gap: 0.4rem;
    }

    body.single-ponuka .job-bullets-list li {
        padding-left: 1.5rem;
        font-size: var(--font-size-base) !important;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    body.single-ponuka .job-bullets-list li::before {
        width: 5px;
        height: 5px;
    }

    body.single-ponuka .skill-tag {
        padding: 0.4rem 0.85rem;
        font-size: var(--font-size-sm);
    }

    .job-two-col {
        gap: 1.5rem;
    }

    /* Kompaktný sidebar */
    .job-sidebar-card.contact-application-card {
        padding: 1.75rem;
    }

    .contact-section {
        margin-bottom: 2rem;
    }

    .contact-section-title {
        font-size: var(--h5-size) !important;
        margin-bottom: 0.5rem;
    }

    .contact-section-description {
        font-size: var(--font-size-xs);
        margin-bottom: 1rem;
    }

    .contact-section .contact-details {
        gap: 0.5rem;
    }

    .contact-section .contact-link {
        font-size: var(--font-size-xs);
        gap: 0.5rem;
    }

    .contact-section .contact-link svg {
        width: 16px;
        height: 16px;
    }

    .contact-form-divider {
        margin: 2rem 0;
    }

    .contact-form-divider span {
        font-size: 11px;
        padding: 0 0.75rem;
    }

    .application-form {
        margin-top: 1.5rem;
    }

    .job-sidebar-card h2,
    .job-sidebar-card h3 {
        font-size: var(--h5-size) !important;
    }

    .job-title {
        font-size: 2.5rem;
        font-weight: var(--font-weight-bold);
        margin: 0 0 1rem 0;
        line-height: 1.2;
    }

    .job-meta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        color: var(--job-text-muted);
        font-size: 1rem;
    }

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

    .job-meta-item svg {
        width: 20px;
        height: 20px;
        color: var(--job-primary);
    }

    /* Content */
    .job-content {
        padding: 0;
    }

    .job-empty-content {
        padding: 0.5rem 0;
    }

    .job-empty-content p {
        font-size: 1.5rem;
        color: var(--text-muted);
        font-weight: var(--font-weight-normal);
        line-height: 1.6;
        margin: 0;
    }

    .job-content p {
        margin-bottom: 1.5rem;
        line-height: var(--line-height-relaxed);
        color: var(--text-secondary);
        font-size: var(--font-size-base);
    }

    .job-content ul:not(.job-bullets-list),
    .job-content ol {
        margin-bottom: 2rem;
        padding-left: 2rem;
    }

    .job-content li {
        margin-bottom: 0.5rem;
        line-height: var(--line-height-relaxed);
        color: var(--text-secondary);
        position: relative;
    }

    .job-content ul:not(.job-bullets-list) li::marker {
        color: var(--primary);
    }

    .job-content strong {
        color: var(--text);
        font-weight: var(--font-weight-semibold);
    }

    .job-content a {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color var(--transition);
    }

    .job-content a:hover {
        color: var(--accent-hover);
    }

    .job-section {
        margin-bottom: 2rem;
        background: var(--bg-surface);
        border-radius: calc(var(--radius-lg) + 2px);
        padding: 2.5rem;
        border: 1px solid var(--border);
        overflow: hidden;
    }

    .job-section:last-child {
        margin-bottom: 0;
    }

    @media (max-width: 768px) {
        .job-section {
            padding: 2rem;
        }
    }

    .job-section-title {
        font-size: calc(var(--font-size-2xl) * 0.95) !important;
        font-weight: var(--font-weight-bold);
        margin-top: 0 !important;
        margin-bottom: 1.5rem;
        padding-bottom: 0;
        border-bottom: none;
        color: var(--text);
        line-height: var(--line-height-tight);
    }

    .job-content h3 {
        font-size: calc(var(--font-size-2xl) * 0.95) !important;
        font-weight: var(--font-weight-bold);
        margin-top: 0;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(0, 0, 0, 0.06);
        color: var(--text);
        line-height: var(--line-height-tight);
    }

    .job-content h3:not(:first-child) {
        margin-top: 2.5rem;
    }

    .job-content h4 {
        font-size: calc(var(--font-size-lg) * 0.95) !important;
        font-weight: var(--font-weight-semibold);
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--text);
    }

    /* Job Intro Block - First WYSIWYG section */
    .job-intro .job-wysiwyg p {
        font-size: 1.125rem;
        line-height: var(--line-height-relaxed);
        color: var(--text-secondary);
    }

    /* Flexible Content Styles */
    .job-wysiwyg p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .job-wysiwyg ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .job-wysiwyg li {
        margin-bottom: 0.5rem;
    }

    .job-bullets-list {
        list-style: none;
        padding: 0;
        display: grid;
        gap: 0.5rem;
    }

    .job-bullets-list li {
        position: relative;
        padding-left: 1.75rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        line-height: var(--line-height-relaxed);
        color: var(--text-secondary);
        font-size: var(--font-size-base);
        margin-bottom: 0;
    }

    .job-bullets-list li::before {
        content: "";
        position: absolute;
        left: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: var(--text-muted);
        border-radius: 50%;
        opacity: 0.4;
        transition: all var(--transition);
    }

    .job-bullets-list li:hover::before {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }

    .job-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    @media (max-width: 768px) {
        .job-two-col {
            grid-template-columns: 1fr;
        }
    }

    /* Skills */
    .skill-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .skill-tag {
        background: var(--bg-subtle);
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        font-weight: var(--font-weight-medium);
        border: 1px solid var(--border);
    }

    .skill-level {
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        margin-left: 0.5rem;
        text-transform: uppercase;
    }

    .skill-level.skill-level-advantage {
        color: rgb(22, 163, 74);
        background: rgba(34, 197, 94, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 700;
    }

    /* Sidebar */
    .job-sidebar {
        position: relative;
    }

    .job-sidebar-card {
        background: var(--bg-surface);
        border-radius: calc(var(--radius-lg) + 2px);
        padding: 0;
        border: 1px solid var(--border);
        margin-bottom: 2rem;
        overflow: hidden;
    }

    /* Sticky removed from contact card - now on form */
    @media (max-width: 991px) {
        .job-sidebar-card {
            margin-bottom: 1.5rem;
        }
    }

    /* Contact Person Card - Removed (now part of combined card) */

    .job-sidebar-card .job-meta-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0;
        margin-bottom: 1rem;
        border: none;
        background: transparent;
    }

    .job-sidebar-card .job-meta-item:last-child {
        margin-bottom: 0;
    }

    .job-sidebar-card .job-meta-item strong {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        font-weight: var(--font-weight-medium);
        min-width: 120px;
        flex-shrink: 0;
    }

    .job-sidebar-card .job-meta-item span:not(strong) {
        font-size: var(--font-size-sm);
        color: var(--text);
        font-weight: var(--font-weight-semibold);
        flex: 1;
    }

    /* Job List Grid */
    .job-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    @media (max-width: 768px) {
        .job-list-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Related Jobs Slider */
    .job-container:has(.related-jobs-slider-wrapper) {
        overflow: visible;
        max-width: var(--container-width);
        padding: 2rem var(--container-padding);
    }

    .job-container:has(.related-jobs-slider-wrapper) .section-heading {
        margin-bottom: 2.5rem;
    }


    .related-jobs-slider-wrapper {
        position: relative;
        padding: 0;
        margin-top: 0.5rem;
        width: 100%;
        overflow: visible;
    }

    .related-jobs-slider {
        overflow: visible;
        padding: 0;
        margin: 0;
        width: 100%;
        position: relative;
        min-height: 280px;
    }

    .related-jobs-slider .swiper-wrapper {
        align-items: stretch;
        overflow: visible;
    }

    .related-jobs-slider .swiper-slide {
        height: auto;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: flex;
        box-sizing: border-box;
    }

    .related-jobs-slider .swiper-slide>* {
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    /* Gradient overlays for fade effect */
    .related-jobs-slider-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 100px;
        z-index: 5;
        pointer-events: none;
        transition: opacity 0.3s ease;
        background: linear-gradient(to left, var(--bg-surface) 0%, var(--bg-surface) 20%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0) 100%);
    }

    .related-jobs-slider-wrapper.swiper-at-end::after {
        opacity: 0;
    }

    .related-jobs-slider .swiper-pagination {
        position: relative;
        margin-top: 2.5rem;
        bottom: 0;
        text-align: center;
    }

    .related-jobs-slider .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: var(--border);
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0 4px;
    }

    .related-jobs-slider .swiper-pagination-bullet-active {
        background: var(--primary);
        width: 32px;
        border-radius: 4px;
    }

    .related-jobs-slider .swiper-button-next,
    .related-jobs-slider .swiper-button-prev {
        width: 52px;
        height: 52px;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: 50%;
        margin-top: -26px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 30;
        position: absolute !important;
    }

    .related-jobs-slider .swiper-button-prev {
        left: 15px;
    }

    .related-jobs-slider .swiper-button-next {
        right: 15px;
        z-index: 40;
        background: var(--bg-surface) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .related-jobs-slider .swiper-button-next:after,
    .related-jobs-slider .swiper-button-prev:after {
        display: none;
    }

    .related-jobs-slider .swiper-button-next svg,
    .related-jobs-slider .swiper-button-prev svg {
        width: 20px;
        height: 20px;
        color: var(--text);
        stroke: currentColor;
        transition: color 0.3s ease;
    }

    .related-jobs-slider .swiper-button-next:hover,
    .related-jobs-slider .swiper-button-prev:hover {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: var(--shadow);
        transform: translateY(-50%) scale(1.08);
    }

    .related-jobs-slider .swiper-button-next:hover svg,
    .related-jobs-slider .swiper-button-prev:hover svg {
        color: var(--dark);
    }

    .related-jobs-slider .swiper-button-disabled {
        opacity: 0.25;
        cursor: not-allowed;
        pointer-events: none;
    }

    .related-jobs-slider .swiper-button-disabled:hover {
        transform: translateY(-50%);
        background: var(--bg-surface);
        border-color: var(--border);
    }

    .related-jobs-slider .swiper-button-disabled svg {
        color: var(--text-muted);
    }

    @media (max-width: 768px) {
        .related-jobs-slider-wrapper::after {
            right: 0;
            width: 80px;
        }

        .related-jobs-slider .swiper-button-next,
        .related-jobs-slider .swiper-button-prev {
            width: 44px;
            height: 44px;
        }

        .related-jobs-slider .swiper-button-prev {
            left: 8px;
        }

        .related-jobs-slider .swiper-button-next {
            right: 8px;
            background: var(--bg-surface) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        }

        .related-jobs-slider .swiper-button-next svg,
        .related-jobs-slider .swiper-button-prev svg {
            width: 18px;
            height: 18px;
        }

        .job-hero {
            padding-bottom: 4rem;
        }

        .job-filter-bar {
            margin-top: -2rem;
        }
    }

    .job-card {
        background: var(--bg-surface);
        border-radius: var(--radius-md);
        padding: 1.5rem !important;
        border: 1px solid var(--job-border);
        transition: border-color var(--transition), transform var(--transition);
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }

    .job-card:hover {
        background-color: var(--bg-subtle);
        /* subtle hover background */
        transform: translateY(-2px);
        /* No shadow as requested */
    }

    .job-card-header {
        margin-bottom: 0.5rem !important;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .job-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
    }

    .job-badges {
        display: inline-flex;
        gap: 0.5rem;
        margin: 0;
        align-items: center;
    }

    .job-card .job-badge,
    .job-card .meta-item {
        min-height: 32px;
        box-sizing: border-box;
    }

    .job-card-title {
        font-size: 1.2rem !important;
        font-weight: var(--font-weight-bold);
        margin: 0;
        color: var(--dark);
        line-height: 1.3;
    }

    .job-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem !important;
        color: var(--job-text-muted);
        font-size: var(--font-size-sm);
        margin-bottom: auto;
        /* Push footer down */
        padding-bottom: 0.75rem !important;
        margin-top: 0.75rem !important;
    }

    .job-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        padding-top: 0.75rem !important;
        margin-top: auto;
        gap: 1rem;
    }

    @media (max-width: 768px) {
        .job-card-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .job-card-footer .btn-ghost {
            margin-top: 0;
            width: 100%;
            justify-content: center;
        }
    }

    .job-salary {
        font-weight: var(--font-weight-bold) !important;
        color: var(--text-muted) !important;
        font-size: 1rem !important;
    }

    /* Pagination - styled like tags */
    .pagination {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
        list-style: none;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .pagination ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        background: none;
        border: none;
    }

    .pagination li {
        list-style: none;
        margin: 0;
        padding: 0;
        background: var(--bg-subtle);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .pagination .page-numbers,
    .pagination a.page-numbers,
    .pagination span.page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 1rem;
        background: transparent;
        border: none;
        color: var(--text-muted);
        text-decoration: none;
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-sm);
        transition: all var(--transition);
        cursor: pointer;
        line-height: 1.2;
        width: 100%;
        height: 100%;
    }

    .pagination li:hover .page-numbers:not(.current):not(.dots) {
        color: var(--primary-active);
    }

    .pagination li:hover:not(.current):not(.dots) {
        background: var(--primary-light);
        border-color: var(--primary);
    }

    .pagination li.current {
        background: var(--primary-light);
        border-color: var(--primary);
    }

    .pagination .page-numbers.current,
    .pagination span.page-numbers.current {
        color: var(--primary-active);
        font-weight: var(--font-weight-bold);
        cursor: default;
    }

    .pagination li.dots {
        background: transparent;
        border: none;
    }

    .pagination .page-numbers.dots,
    .pagination span.page-numbers.dots {
        cursor: default;
        min-width: auto;
        height: auto;
        padding: 0 0.5rem;
    }

    .pagination .page-numbers.dots:hover,
    .pagination span.page-numbers.dots:hover {
        transform: none;
        background: transparent;
        border: none;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0.65rem;
    }

    .pagination .page-numbers svg {
        width: 16px;
        height: 16px;
        stroke-width: 2;
    }

    /* Screen reader text */
    .pagination .screen-reader-text {
        position: absolute;
        clip: rect(1px, 1px, 1px, 1px);
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    /* Mobile pagination adjustments */
    @media (max-width: 768px) {
        .pagination {
            gap: 0.25rem;
        }

        .pagination ul {
            gap: 0.25rem;
        }

        .pagination .page-numbers {
            padding: 0.6rem 0.9rem;
            font-size: var(--font-size-sm);
        }

        .pagination .page-numbers.prev,
        .pagination .page-numbers.next {
            padding: 0.6rem 0.9rem;
        }
    }

    /* Loading State */
    .jobs-loading {
        opacity: 0.5;
        pointer-events: none;
    }

    /* No Results Message */
    .no-results {
        font-size: 1.25rem;
        font-weight: var(--font-weight-semibold);
        color: var(--job-text-muted);
        text-align: center !important;
        margin: 2rem auto !important;
        display: block !important;
        width: 100%;
        grid-column: 1 / -1;
    }

    /* Reset Button Below Count */
    #reset-below-count {
        display: none;
        text-align: center;
        grid-column: 1 / -1;
    }

    #reset-below-count .btn-reset {
        width: auto;
        display: inline-flex;
    }

    /* Mobile & Tablet Adjustments */
    @media (max-width: 1023px) {
        .hero-divider {
            top: 68px;
        }

        /* Kompaktný HERO */
        .job-hero {
            padding: 7rem 0 5rem;
        }

        .job-hero-title {
            /* font-size: 2.2rem !important; - Removed to use global variable */
            margin-bottom: 0.75rem;
        }

        .hero-info-box {
            padding: 1.5rem 2rem;
            gap: 0;
            margin-top: -5rem;
            margin-bottom: 2rem;
        }

        .hero-info-item {
            padding: 0.75rem 1rem;
        }

        .hero-info-icon {
            width: 20px;
            height: 20px;
        }

        .hero-info-label {
            font-size: 10px;
        }

        .hero-info-value {
            font-size: var(--font-size-sm);
        }

        .hero-bottom-actions {
            margin-top: 1.5rem;
            gap: 1rem;
        }

        /* Kompaktný obsah detailu */
        body.single-ponuka .job-section {
            margin-bottom: 1.5rem;
            padding: 1.75rem 2rem;
        }

        body.single-ponuka .job-section-title {
            font-size: var(--font-size-xl) !important;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
        }

        body.single-ponuka .job-content h3 {
            font-size: var(--font-size-xl) !important;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
        }

        body.single-ponuka .job-content h3:not(:first-child) {
            margin-top: 1.75rem;
        }

        body.single-ponuka .job-content h4 {
            font-size: var(--font-size-lg) !important;
            margin-top: 1.25rem;
            margin-bottom: 0.75rem;
        }

        body.single-ponuka .job-content p {
            margin-bottom: 1rem !important;
            font-size: var(--font-size-base) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-content ul:not(.job-bullets-list),
        body.single-ponuka .job-content ol {
            margin-bottom: 1.5rem;
        }

        body.single-ponuka .job-content li {
            margin-bottom: 0.4rem !important;
            font-size: var(--font-size-base) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-intro .job-wysiwyg p {
            font-size: var(--font-size-base) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-wysiwyg p {
            font-size: var(--font-size-base) !important;
            margin-bottom: 0.875rem !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-wysiwyg li {
            font-size: var(--font-size-base) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-bullets-list {
            gap: 0.4rem;
        }

        body.single-ponuka .job-bullets-list li {
            padding-left: 1.25rem;
            font-size: var(--font-size-base) !important;
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;
        }

        body.single-ponuka .job-bullets-list li::before {
            width: 5px;
            height: 5px;
        }

        body.single-ponuka .skill-tag {
            padding: 0.4rem 0.85rem;
            font-size: var(--font-size-sm);
        }

        .job-two-col {
            gap: 1.5rem;
        }

        /* Kompaktný sidebar */
        .job-sidebar-card.contact-application-card {
            padding: 1.75rem;
        }

        .contact-section {
            margin-bottom: 2rem;
        }

        .contact-section-title {
            font-size: var(--font-size-lg) !important;
            margin-bottom: 0.5rem;
        }

        .contact-section-description {
            font-size: var(--font-size-xs);
            margin-bottom: 1rem;
        }

        .contact-section .contact-details {
            gap: 0.5rem;
        }

        .contact-section .contact-link {
            font-size: var(--font-size-xs);
            gap: 0.5rem;
        }

        .contact-section .contact-link svg {
            width: 16px;
            height: 16px;
        }

        .contact-form-divider {
            margin: 2rem 0;
        }

        .contact-form-divider span {
            font-size: 11px;
            padding: 0 0.75rem;
        }

        .application-form {
            margin-top: 1.5rem;
        }

        .job-sidebar-card h2,
        .job-sidebar-card h3 {
            font-size: var(--h5-size) !important;
        }

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

        .form-group label:not(.checkbox-wrapper) {
            font-size: var(--font-size-xs);
            margin-bottom: 0.4rem;
        }

        .file-upload-label {
            padding: 1.5rem 1.25rem;
            gap: 0.4rem;
        }

        .form-group-checkbox {
            margin-bottom: 1rem;
        }

        .btn-submit-application {
            padding: 0.875rem 1.25rem;
        }

        .form-ps-note {
            margin-top: 1.25rem;
            padding-top: 1.25rem;
        }

        .form-ps-note p {
            font-size: var(--font-size-xs);
        }
    }

    @media (max-width: 768px) {
        .job-filter-bar {
            margin-top: -3rem;
        }

        /* Extra kompaktný HERO pre mobil */
        .job-hero {
            padding: 6rem 0 var(--section-spacing-mobile);
        }

        .job-hero-title {
            font-size: var(--hero-title-size) !important;
            padding-left: 0;
        }

        .hero-back-arrow {
            width: 32px;
            height: 32px;
        }

        .hero-back-arrow svg {
            width: 16px;
            height: 16px;
        }

        .hero-info-box {
            padding: 1.25rem 1.5rem;
            margin-top: -4rem;
            margin-bottom: 1.5rem;
        }

        .hero-info-item {
            padding: 0.875rem 0;
        }

        .hero-info-icon {
            width: 18px;
            height: 18px;
        }

        .hero-info-label {
            font-size: 9px;
        }

        .hero-info-value {
            font-size: var(--font-size-xs);
        }

        .hero-bottom-actions {
            margin-top: 1.25rem;
            gap: 0.875rem;
        }

        .hero-apply-button {
            max-width: 280px;
        }

        /* Extra kompaktný obsah */
        body.single-ponuka .job-section {
            margin-bottom: 1.25rem;
            padding: 1.5rem 1.75rem;
        }

        body.single-ponuka .job-section-title {
            font-size: var(--h2-size) !important;
            margin-bottom: 0.875rem;
            padding-bottom: 0.65rem;
        }

        body.single-ponuka .job-content h3 {
            font-size: var(--h3-size) !important;
            margin-bottom: 0.875rem;
            padding-bottom: 0.65rem;
        }

        body.single-ponuka .job-content h3:not(:first-child) {
            margin-top: 1.5rem;
        }

        body.single-ponuka .job-content h4 {
            font-size: var(--h4-size) !important;
            margin-top: 1rem;
            margin-bottom: 0.65rem;
        }

        body.single-ponuka .job-content p {
            margin-bottom: 0.875rem !important;
            font-size: var(--font-size-sm) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-content ul:not(.job-bullets-list),
        body.single-ponuka .job-content ol {
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
        }

        body.single-ponuka .job-content li {
            margin-bottom: 0.35rem !important;
            font-size: var(--font-size-sm) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-intro .job-wysiwyg p {
            font-size: var(--font-size-sm) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-wysiwyg p {
            font-size: var(--font-size-sm) !important;
            margin-bottom: 0.75rem !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-wysiwyg li {
            font-size: var(--font-size-sm) !important;
            line-height: 1.6 !important;
        }

        body.single-ponuka .job-bullets-list {
            gap: 0.35rem;
        }

        body.single-ponuka .job-bullets-list li {
            padding-left: 1.25rem;
            font-size: var(--font-size-sm) !important;
        }

        body.single-ponuka .job-bullets-list li::before {
            width: 5px;
            height: 5px;
            left: 0.2rem;
            top: 50%;
            transform: translateY(-50%);
        }

        body.single-ponuka .skill-tag {
            padding: 0.35rem 0.75rem;
            font-size: var(--font-size-xs);
        }

        body.single-ponuka .skill-list {
            gap: 0.5rem;
        }

        .job-two-col {
            gap: 1.25rem;
        }

        /* Extra kompaktný sidebar */
        .job-sidebar-card.contact-application-card {
            padding: 1.5rem;
        }

        .contact-section {
            margin-bottom: 1.75rem;
        }

        .contact-section-title {
            margin-bottom: 0.5rem;
        }

        .contact-section-description {
            font-size: 11px;
            margin-bottom: 0.875rem;
        }

        .contact-section .contact-link {
            font-size: 11px;
        }

        .contact-form-divider {
            margin: 1.75rem 0;
        }

        .contact-form-divider span {
            font-size: 9px;
        }

        .job-sidebar-card h2,
        .job-sidebar-card h3 {
            font-size: var(--h5-size) !important;
        }

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

        .form-group label:not(.checkbox-wrapper) {
            margin-bottom: 0.35rem;
        }

        .file-upload-label {
            padding: 1.25rem 1rem;
        }

        .btn-submit-application {
            padding: 0.8rem 1.15rem;
        }

        .form-ps-note {
            margin-top: 1.15rem;
            padding-top: 1.15rem;
        }

        .form-ps-note p {
            font-size: 11px;
        }
    }

    /* Combined Contact & Application Form in Sidebar */
    .job-sidebar-card.contact-application-card {
        padding: 2.5rem;
        position: sticky;
        top: 140px;
        z-index: 99;
        margin-bottom: 0;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

    @media (max-width: 991px) {
        .job-sidebar-card.contact-application-card {
            position: relative;
            top: auto;
            padding: 2rem;
            margin-bottom: 0;
        }
    }

    /* Contact Section */
    .contact-section {
        margin-bottom: 2rem;
    }

    .contact-section-title {
        font-weight: var(--font-weight-bold);
        margin: 0 0 0.75rem;
        color: var(--text);
        line-height: var(--line-height-tight);
    }

    .contact-section-description {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        margin: 0 0 1.5rem;
        line-height: var(--line-height-normal);
    }

    .contact-section .contact-details {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-section .contact-link {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-secondary) !important;
        text-decoration: none;
        padding: 0;
        background: transparent;
        border-radius: 0;
        transition: all var(--transition);
        border: none;
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    .contact-section .contact-link:hover {
        background: transparent;
        border-color: transparent;
        color: var(--text) !important;
    }

    .contact-section .contact-link svg {
        width: 18px;
        height: 18px;
        color: var(--primary);
        flex-shrink: 0;
        opacity: 1;
        transition: all var(--transition);
        stroke-width: 2;
    }

    .contact-section .contact-link:hover svg {
        opacity: 1;
        color: var(--accent-hover);
    }

    /* Divider */
    .contact-form-divider {
        position: relative;
        text-align: center;
        margin: 2rem 0;
        height: 1px;
        background: var(--border);
    }

    .contact-form-divider span {
        position: relative;
        display: inline-block;
        background: var(--bg-surface);
        padding: 0 1rem;
        color: var(--text-muted);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-semibold);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        top: -0.625rem;
    }

    /* Application Form */
    .application-form {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
        position: relative;
    }

    .form-group label:not(.checkbox-wrapper) {
        display: block;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        color: var(--text);
        margin-bottom: 0.5rem;
    }

    .form-group label .required {
        color: var(--error);
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select {
        width: 100%;
        padding: var(--input-padding-y) var(--input-padding-x);
        font-size: var(--font-size-sm);
        font-family: inherit;
        color: var(--input-text);
        font-weight: var(--font-weight-medium);
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: var(--radius-md);
        transition: all var(--transition);
        height: var(--input-height);
    }

    .form-group input::placeholder {
        color: var(--input-placeholder);
        font-weight: var(--font-weight-normal);
    }

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--input-border-focus);
        box-shadow: var(--shadow-focus);
        background: var(--input-bg-focus);
    }

    .form-group input:hover,
    .form-group select:hover {
        border-color: var(--input-border-hover);
    }

    .select-wrapper,
    #contact-form .select-wrapper {
        position: relative;
    }

    .form-group select,
    #contact-form .form-group select {
        appearance: none;
        cursor: pointer;
        padding-right: 2.5rem;
    }

    .select-wrapper .select-arrow,
    #contact-form .select-wrapper .select-arrow {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--text-muted);
    }

    /* File Upload */
    .form-group-file input[type="file"] {
        position: absolute;
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        z-index: -1;
    }

    .file-upload-wrapper {
        position: relative;
    }

    .file-upload-label {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 2rem 1.5rem;
        background: var(--input-bg);
        border: 2px dashed var(--input-border);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition);
        margin: 0;
        font-weight: var(--font-weight-medium);
    }

    .file-upload-label:hover {
        background: var(--bg-subtle);
        border-color: var(--accent);
    }

    .file-upload-label svg {
        width: 24px;
        height: 24px;
        color: var(--text-muted);
    }

    .file-upload-text {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
    }

    .file-upload-hint {
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        font-weight: var(--font-weight-normal);
        opacity: 0.7;
    }

    .file-name {
        display: none;
        margin-top: 0.5rem;
        font-size: var(--font-size-xs);
        color: var(--text);
        font-weight: var(--font-weight-medium);
    }

    .file-name.has-file {
        display: block;
    }

    /* Error Messages - CV Creator Style */
    .form-error-message,
    #contact-form .form-error-message {
        display: none;
        font-size: var(--font-size-xs, 0.75rem);
        color: #E53220;
        background: rgba(229, 50, 32, 0.08);
        padding: 6px 10px;
        border-radius: 4px;
        margin-top: 6px;
        font-weight: 500;
    }

    .form-error-message.show,
    #contact-form .form-error-message.show {
        display: block;
    }

    .application-form input.form-error,
    .application-form select.form-error,
    .application-form textarea.form-error,
    #contact-form input.form-error,
    #contact-form select.form-error,
    #contact-form textarea.form-error {
        border-color: #E53220 !important;
        background: rgba(229, 50, 32, 0.04) !important;
    }

    .application-form .form-group label.form-error-label,
    #contact-form .form-group label.form-error-label {
        color: #E53220;
    }

    /* Checkbox */
    .form-group-checkbox {
        margin-bottom: 1.25rem;
    }

    .checkbox-wrapper {
        display: inline-flex !important;
        align-items: flex-start;
        gap: 0.5rem;
        cursor: pointer;
        font-weight: var(--font-weight-normal) !important;
    }

    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--accent);
        flex-shrink: 0;
    }

    .checkbox-label {
        font-size: var(--font-size-xs);
        color: var(--text);
        font-weight: var(--font-weight-normal);
        line-height: 1.5;
        display: inline;
        /* Changed from flex to inline to prevent layout issues with long text */
    }

    .checkbox-label a {
        color: var(--text-secondary);
        text-decoration: underline;
        text-decoration-color: var(--border-strong);
        text-underline-offset: 2px;
        font-weight: var(--font-weight-medium);
        transition: all var(--transition);
    }

    .checkbox-label a:hover {
        color: var(--text);
        text-decoration-color: var(--text);
    }

    /* Submit Button */
    .btn-submit-application {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
        color: var(--text);
        background: var(--primary);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition);
        box-shadow: 0 4px 12px rgba(253, 198, 0, 0.25);
    }

    .btn-submit-application:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(253, 198, 0, 0.35);
    }

    .btn-submit-application:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(253, 198, 0, 0.3);
    }

    /* PS Note */
    .form-ps-note {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .form-ps-note p {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        margin: 0;
        line-height: var(--line-height-relaxed);
    }

    .form-ps-note strong {
        font-weight: var(--font-weight-bold);
        color: var(--accent);
    }

    .form-ps-note a {
        color: var(--accent);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        transition: color var(--transition);
    }

    .form-ps-note a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
    }

    /* Success Message */
    .application-success-message {
        text-align: center;
        padding: 2rem 0;
        margin-top: 1rem;
    }

    .application-success-message .success-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 1.5rem;
        background: var(--success-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .application-success-message .success-icon svg {
        color: var(--success);
        width: 32px;
        height: 32px;
    }

    .application-success-message h3 {
        font-size: var(--h3-size);
        font-weight: var(--font-weight-bold);
        color: var(--text);
        margin: 0 0 0.5rem;
    }

    .application-success-message p {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        margin: 0;
    }

    /* Hide reCAPTCHA badge */
    .grecaptcha-badge {
        visibility: hidden !important;
        opacity: 0 !important;
        display: none !important;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .job-sidebar-card.contact-application-card {
            padding: 1.5rem;
        }



        .contact-section-title {
            font-size: var(--h2-size) !important;
        }

        .contact-section-description {
            font-size: var(--font-size-xs);
        }

        .contact-section {
            margin-bottom: 1.5rem;
        }

        .contact-section .contact-link {
            font-size: var(--font-size-xs);
        }

        .contact-form-divider {
            margin: 1.5rem 0;
        }

        .contact-form-divider span {
            font-size: 10px;
        }

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

        .file-upload-label {
            padding: 1.5rem 1rem;
        }

        .application-success-message {
            padding: 1.5rem 0;
        }

        .form-ps-note {
            margin-top: 1.25rem;
            padding-top: 1.25rem;
        }

        .form-ps-note p {
            font-size: var(--font-size-xs);
        }
    }

    /* Validation States */
    .form-group input.form-error,
    .form-group textarea.form-error,
    .form-group select.form-error,
    .form-group.form-error .checkbox-wrapper {
        border-color: var(--error) !important;
        background-color: var(--error-light) !important;
    }

    .form-group input.form-success,
    .form-group textarea.form-success,
    .form-group select.form-success {
        border-color: var(--success) !important;
        background-color: var(--success-light) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 16px !important;
        padding-right: 36px !important;
    }

    .form-group select.form-success {
        background-position: right 30px center !important;
        /* Shift left to avoid overlapping arrow */
    }

    .form-group label.form-error-label {
        color: var(--error) !important;
    }

    .form-error-message {
        display: none;
        font-size: var(--font-size-xs);
        color: var(--error);
        background: var(--error-light);
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        margin-top: 0.5rem;
        font-weight: 500;
        animation: fadeIn 0.3s ease;
    }

    .form-error-message.show {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}