/**
 * YubHub Jobs - Combined Stylesheet
 * Version: 1.0.0
 *
 * Merged from: archive-jobs.css, jobs-display-modern.css, single-job.css
 * All class names use yubhub-* prefix
 * All CSS custom properties use --yubhub-* prefix
 * Light mode only in base CSS; themes override custom properties
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================
   Override these in theme files (default.css, midnight.css, forest.css)
   or in your WordPress theme stylesheet.
   ============================================ */

:root {
    /* Primary Brand Colors */
    --yubhub-primary: #3b82f6;
    --yubhub-primary-hover: #2563eb;
    --yubhub-primary-light: rgba(59, 130, 246, 0.08);
    --yubhub-primary-container: #dbeafe;
    --yubhub-primary-surface: rgba(59, 130, 246, 0.04);
    --yubhub-primary-border: rgba(59, 130, 246, 0.2);

    /* Status Colors */
    --yubhub-success: #10b981;
    --yubhub-info: #3b82f6;

    /* Text Colors */
    --yubhub-text-primary: #212529;
    --yubhub-text-secondary: #404040;
    --yubhub-text-tertiary: #6c757d;

    /* Surface Colors */
    --yubhub-border: #dee2e6;
    --yubhub-border-strong: #ced4da;
    --yubhub-surface: #ffffff;
    --yubhub-surface-variant: #f8f9fa;
    --yubhub-surface-hover: #e9ecef;
    --yubhub-surface-dim: #fafbfc;
    --yubhub-on-surface: #1c1e21;
    --yubhub-on-surface-variant: #44464f;
    --yubhub-outline: #e4e7ec;
    --yubhub-outline-variant: #f0f2f5;

    /* Design Tokens */
    --yubhub-radius: 8px;
    --yubhub-radius-large: 12px;
    --yubhub-radius-full: 100px;
    --yubhub-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    --yubhub-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --yubhub-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --yubhub-font-family: system-ui, -apple-system, sans-serif;

    /* Typography Scale */
    --yubhub-text-xl: 20px;
    --yubhub-text-lg: 16px;
    --yubhub-text-base: 14px;
    --yubhub-text-sm: 13px;
    --yubhub-text-xs: 12px;

    /* Spacing Scale (8px base) */
    --yubhub-space-1: 4px;
    --yubhub-space-2: 8px;
    --yubhub-space-3: 12px;
    --yubhub-space-4: 16px;
    --yubhub-space-5: 20px;
    --yubhub-space-6: 24px;
    --yubhub-space-8: 32px;
    --yubhub-space-10: 40px;
    --yubhub-space-12: 48px;

    /* Border Radius (additional) */
    --yubhub-radius-sm: 6px;
    --yubhub-radius-md: 10px;
    --yubhub-radius-lg: 14px;

    /* Shadows (elevation) */
    --yubhub-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --yubhub-shadow-md: 0 2px 8px -2px rgb(0 0 0 / 0.06);
    --yubhub-shadow-lg: 0 8px 16px -4px rgb(0 0 0 / 0.08);

    /* Transitions */
    --yubhub-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --yubhub-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   SECTION 1: Archive Styles
   ============================================ */

/* Universal box-sizing */
.yubhub-archive-wrapper *,
.yubhub-archive-wrapper *::before,
.yubhub-archive-wrapper *::after {
    box-sizing: border-box;
}

/* Archive Container */
.yubhub-archive-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 24px 80px;
    font-family: var(--yubhub-font-family);
    overflow-x: hidden;
}

@media (max-width: 947px) {
    .yubhub-archive-wrapper {
        width: 100% !important;
        max-width: 100%;
        padding: 40px 20px 60px;
    }
}

@media (max-width: 768px) {
    .yubhub-archive-wrapper {
        padding: 32px 16px 48px;
    }
}

.yubhub-archive-container {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.yubhub-archive-hero {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 56px;
    text-align: center;
}

.yubhub-archive-title {
    margin: 0 0 20px;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--yubhub-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: var(--yubhub-font-family);
}

@media (max-width: 768px) {
    .yubhub-archive-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .yubhub-archive-title {
        font-size: 1.75rem;
    }
}

.yubhub-archive-subtitle {
    margin: 0;
    font-size: 1.125rem;
    color: var(--yubhub-text-secondary);
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .yubhub-archive-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Search Bar */
.yubhub-search-bar {
    margin-bottom: 48px;
    width: 100%;
}

.yubhub-search-form {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Primary Search Row: Input + Button */
.yubhub-search-primary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.yubhub-search-primary .yubhub-search-field {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Hide internal search icon */
.yubhub-search-icon {
    display: none;
}

/* Search Input */
.yubhub-search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-family: var(--yubhub-font-family);
    border: 1px solid var(--yubhub-border-strong);
    border-radius: var(--yubhub-radius);
    background: var(--yubhub-surface);
    color: var(--yubhub-text-primary);
    transition: all var(--yubhub-transition);
    line-height: 1.5;
}

.yubhub-search-input::placeholder {
    color: var(--yubhub-text-tertiary);
}

.yubhub-search-input:focus {
    outline: none;
    border-color: var(--yubhub-primary);
    box-shadow: 0 0 0 3px var(--yubhub-primary-light);
}

.yubhub-search-input:hover:not(:focus) {
    border-color: var(--yubhub-text-tertiary);
}

/* Search Button */
.yubhub-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--yubhub-font-family);
    color: #ffffff;
    background: var(--yubhub-primary);
    border: none;
    border-radius: var(--yubhub-radius);
    cursor: pointer;
    transition: all var(--yubhub-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.yubhub-search-btn:hover {
    background: var(--yubhub-primary-hover);
    box-shadow: var(--yubhub-shadow-hover);
    transform: translateY(-1px);
}

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

.yubhub-search-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .yubhub-search-primary {
        flex-direction: column;
    }

    .yubhub-search-btn {
        width: 100%;
    }
}

/* Secondary Filter Row: Type + Location */
.yubhub-search-filters {
    display: flex;
    gap: 12px;
    width: 100%;
}

.yubhub-search-filters .yubhub-search-field {
    flex: 1;
    min-width: 0;
}

.yubhub-search-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    font-size: 15px;
    font-family: var(--yubhub-font-family);
    border: 1px solid var(--yubhub-border-strong);
    border-radius: var(--yubhub-radius);
    background: var(--yubhub-surface);
    color: var(--yubhub-text-primary);
    transition: all var(--yubhub-transition);
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath d='M4.427 6.573l3.396 3.396 3.396-3.396a.75.75 0 111.06 1.061l-3.926 3.926a.75.75 0 01-1.06 0L3.366 7.634a.75.75 0 011.06-1.061z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.yubhub-search-select:focus {
    outline: none;
    border-color: var(--yubhub-primary);
    box-shadow: 0 0 0 3px var(--yubhub-primary-light);
}

.yubhub-search-select:hover:not(:focus) {
    border-color: var(--yubhub-text-tertiary);
}

@media (max-width: 768px) {
    .yubhub-search-filters {
        flex-direction: column;
    }
}

/* Active Filters Display */
.yubhub-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 32px;
    padding: 16px 20px;
    background: var(--yubhub-primary-container);
    border-radius: var(--yubhub-radius);
    border: 1px solid var(--yubhub-primary-border);
}

.yubhub-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--yubhub-text-primary);
    font-family: var(--yubhub-font-family);
}

.yubhub-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border-strong);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--yubhub-text-primary);
    font-family: var(--yubhub-font-family);
    box-shadow: var(--yubhub-shadow);
}

.yubhub-filter-badge a {
    color: var(--yubhub-text-tertiary);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: color var(--yubhub-transition);
    font-weight: 700;
}

.yubhub-filter-badge a:hover {
    color: var(--yubhub-primary);
}

.yubhub-clear-filters {
    color: var(--yubhub-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--yubhub-font-family);
    transition: all var(--yubhub-transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.yubhub-clear-filters:hover {
    color: var(--yubhub-primary-hover);
    background: var(--yubhub-primary-light);
}

/* Companies Hiring Section */
.yubhub-hiring-companies {
    margin: 0 0 56px;
    padding: 32px;
    background: var(--yubhub-surface-variant);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
}

.yubhub-hiring-title {
    margin: 0 0 24px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--yubhub-text-primary);
    text-align: left;
    font-family: var(--yubhub-font-family);
    letter-spacing: -0.01em;
}

/* Logo Grid - Horizontal Scrolling Carousel */
.yubhub-hiring-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--yubhub-border-strong) transparent;
}

.yubhub-hiring-grid::-webkit-scrollbar {
    height: 8px;
}

.yubhub-hiring-grid::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.yubhub-hiring-grid::-webkit-scrollbar-thumb {
    background: var(--yubhub-border-strong);
    border-radius: 4px;
}

.yubhub-hiring-grid::-webkit-scrollbar-thumb:hover {
    background: var(--yubhub-text-tertiary);
}

@media (max-width: 768px) {
    .yubhub-hiring-companies {
        padding: 24px 20px;
    }

    .yubhub-hiring-grid {
        gap: 12px;
    }
}

/* Company Badge */
.yubhub-company-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    padding: 20px;
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius);
    transition: all var(--yubhub-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.yubhub-company-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--yubhub-shadow-hover);
    border-color: var(--yubhub-primary);
}

@media (max-width: 768px) {
    .yubhub-company-badge {
        width: 140px;
        height: 80px;
        padding: 16px;
    }
}

/* Logo Image - Grayscale with color on hover */
.yubhub-company-badge img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.85);
    transition: filter var(--yubhub-transition);
}

.yubhub-company-badge:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Fallback Text */
.yubhub-company-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--yubhub-text-secondary);
    text-align: center;
    line-height: 1.4;
    font-family: var(--yubhub-font-family);
}

/* Hiring Categories */
.yubhub-archive-wrapper .yubhub-categories {
    margin: 0 0 48px;
    padding: 28px 32px;
    background: var(--yubhub-surface-variant);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
    text-align: left;
}

.yubhub-archive-wrapper .yubhub-categories-title {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--yubhub-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--yubhub-font-family);
}

.yubhub-archive-wrapper .yubhub-categories-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.8;
}

.yubhub-archive-wrapper a.yubhub-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-family: var(--yubhub-font-family);
    color: var(--yubhub-text-secondary);
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-full);
    text-decoration: none;
    transition: all var(--yubhub-transition);
    white-space: nowrap;
}

.yubhub-archive-wrapper a.yubhub-category-link:hover {
    color: var(--yubhub-primary);
    border-color: var(--yubhub-primary-border);
    background: var(--yubhub-primary-light);
    text-decoration: none;
}

.yubhub-archive-wrapper .yubhub-skill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--yubhub-text-tertiary);
    background: var(--yubhub-surface-variant);
    border-radius: var(--yubhub-radius-full);
}

.yubhub-archive-wrapper a.yubhub-category-link:hover .yubhub-skill-count {
    color: var(--yubhub-primary);
    background: var(--yubhub-primary-container);
}

@media (max-width: 768px) {
    .yubhub-archive-wrapper .yubhub-categories {
        padding: 24px 20px;
    }
}

/* Job Listings Section */
.yubhub-jobs-section {
    margin-bottom: 48px;
}

.yubhub-jobs-header {
    margin-bottom: 24px;
}

.yubhub-results-count {
    font-size: 15px;
    font-weight: 500;
    color: var(--yubhub-text-secondary);
    font-family: var(--yubhub-font-family);
}

.yubhub-results-count strong {
    font-weight: 700;
    color: var(--yubhub-primary);
}

/* Job Grid */
.yubhub-jobs-grid {
    display: grid;
    gap: 20px;
}

/* No Jobs Found State */
.yubhub-no-jobs {
    text-align: center;
    padding: 80px 24px;
}

.yubhub-no-jobs svg {
    width: 64px;
    height: 64px;
    color: var(--yubhub-text-tertiary);
    opacity: 0.5;
    margin-bottom: 24px;
}

.yubhub-no-jobs h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--yubhub-text-primary);
    font-family: var(--yubhub-font-family);
}

.yubhub-no-jobs p {
    margin: 0;
    font-size: 1rem;
    color: var(--yubhub-text-secondary);
    font-family: var(--yubhub-font-family);
}

/* Job Separator */
.yubhub-separator {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--yubhub-border);
    opacity: 0.6;
}


/* ============================================
   SECTION 2: Shortcode / Grid Styles
   ============================================ */

/* Container & Layout */
.yubhub-container {
    max-width: 920px;
    margin: 0 auto;
    padding: var(--yubhub-space-8) var(--yubhub-space-4);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 947px) {
    .yubhub-container {
        width: 100%;
        max-width: 100%;
        padding: var(--yubhub-space-4) var(--yubhub-space-3);
    }
}

@media (max-width: 900px) {
    .yubhub-container {
        padding: var(--yubhub-space-4) var(--yubhub-space-3);
        max-width: 100%;
    }
}

/* Modern list layout */
.yubhub-grid {
    display: flex;
    flex-direction: column;
    gap: var(--yubhub-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

@media (max-width: 900px) {
    .yubhub-grid {
        gap: var(--yubhub-space-3);
    }
}

/* Job Item (List item style) */
.yubhub-card {
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-outline-variant);
    border-radius: var(--yubhub-radius-md);
    padding: var(--yubhub-space-4);
    transition: all var(--yubhub-transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--yubhub-space-3);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    overflow: visible;
}

.yubhub-card:hover {
    border-color: var(--yubhub-outline);
    box-shadow: var(--yubhub-shadow-md);
    background: var(--yubhub-surface-dim);
}

.yubhub-card:active {
    transform: scale(0.998);
}

.yubhub-card:focus-within {
    border-color: var(--yubhub-primary);
    box-shadow: 0 0 0 3px var(--yubhub-primary-surface);
    outline: none;
}

/* Card Header */
.yubhub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--yubhub-space-3);
    padding: 0;
    border: none;
}

/* Job Title */
.yubhub-title {
    margin: 0;
    font-size: var(--yubhub-text-xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 900px) {
    .yubhub-title {
        font-size: var(--yubhub-text-lg);
    }
}

.yubhub-title a {
    color: var(--yubhub-on-surface);
    text-decoration: none;
    transition: color var(--yubhub-transition-fast);
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

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

.yubhub-title a:focus {
    outline: 2px solid var(--yubhub-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Job Type Badge (Pill style) */
.yubhub-type {
    display: inline-flex;
    align-items: center;
    padding: var(--yubhub-space-1) var(--yubhub-space-3);
    font-size: var(--yubhub-text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.yubhub-type-full-time {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.yubhub-type-part-time {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.yubhub-type-contract {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.yubhub-type-temporary {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.yubhub-type-internship {
    background: #f5f3ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

.yubhub-type-freelance {
    background: #fdf4ff;
    color: #86198f;
    border-color: #f5d0fe;
}

/* Card Body */
.yubhub-card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--yubhub-space-4);
    padding: 0;
    align-items: start;
}

@media (max-width: 900px) {
    .yubhub-card-body {
        grid-template-columns: 1fr;
        gap: var(--yubhub-space-3);
    }
}

/* Employer section */
.yubhub-employer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--yubhub-space-2);
}

@media (max-width: 900px) {
    .yubhub-employer {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

.yubhub-employer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--yubhub-radius-md);
    background: var(--yubhub-surface-variant);
    padding: var(--yubhub-space-2);
    flex-shrink: 0;
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 900px) {
    .yubhub-employer-logo {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}

.yubhub-employer-name {
    font-size: var(--yubhub-text-sm);
    font-weight: 500;
    color: var(--yubhub-on-surface);
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
    word-wrap: break-word;
}

@media (max-width: 900px) {
    .yubhub-employer-name {
        text-align: left;
        max-width: none;
    }
}

/* Excerpt hidden in card body */
.yubhub-excerpt {
    display: none;
}

/* Metadata row */
.yubhub-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--yubhub-space-4);
    font-size: var(--yubhub-text-sm);
    color: var(--yubhub-on-surface-variant);
}

@media (max-width: 900px) {
    .yubhub-metadata {
        gap: var(--yubhub-space-2);
        font-size: var(--yubhub-text-xs);
    }
}

.yubhub-location,
.yubhub-posted {
    display: flex;
    align-items: center;
    gap: var(--yubhub-space-1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.yubhub-icon {
    flex-shrink: 0;
    opacity: 0.5;
    width: 14px;
    height: 14px;
}

/* Separator dots between metadata */
.yubhub-location::after {
    content: '\2022';
    margin-left: var(--yubhub-space-4);
    opacity: 0.3;
}

/* Card Footer */
.yubhub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--yubhub-space-4);
    padding: 0;
    border: none;
    margin-top: var(--yubhub-space-2);
}

@media (max-width: 900px) {
    .yubhub-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--yubhub-space-3);
    }
}

/* Show excerpt in footer */
.yubhub-card-footer .yubhub-excerpt {
    display: block;
    flex: 1;
    min-width: 0;
}

.yubhub-card-footer .yubhub-excerpt p {
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
    color: var(--yubhub-on-surface-variant);
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Primary button */
.yubhub-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--yubhub-space-2) var(--yubhub-space-4);
    background: var(--yubhub-primary);
    color: var(--yubhub-surface);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--yubhub-text-sm);
    border-radius: var(--yubhub-radius-sm);
    transition: all var(--yubhub-transition-fast);
    border: 1px solid var(--yubhub-primary);
    cursor: pointer;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .yubhub-btn-primary {
        padding: var(--yubhub-space-2) var(--yubhub-space-3);
        font-size: var(--yubhub-text-xs);
        width: auto;
        align-self: flex-start;
    }
}

.yubhub-btn-primary:hover {
    background: var(--yubhub-primary-hover);
    border-color: var(--yubhub-primary-hover);
    box-shadow: var(--yubhub-shadow-sm);
    transform: translateY(-1px);
}

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

.yubhub-btn-primary:focus {
    outline: 2px solid var(--yubhub-primary);
    outline-offset: 2px;
}

/* Results Header */
.yubhub-results-header {
    padding: var(--yubhub-space-3) 0;
    margin-bottom: var(--yubhub-space-2);
}

.yubhub-results-filters {
    color: var(--yubhub-on-surface-variant);
    opacity: 0.7;
    font-size: var(--yubhub-text-xs);
}

/* No Results State */
.yubhub-no-results {
    text-align: center;
    padding: var(--yubhub-space-12) var(--yubhub-space-6);
    color: var(--yubhub-on-surface-variant);
}

.yubhub-no-results-icon {
    margin-bottom: var(--yubhub-space-5);
    opacity: 0.2;
    width: 64px;
    height: 64px;
}

.yubhub-no-results h3 {
    margin: 0 0 var(--yubhub-space-2);
    font-size: var(--yubhub-text-xl);
    font-weight: 600;
    color: var(--yubhub-on-surface);
    letter-spacing: -0.01em;
}

.yubhub-no-results p {
    margin: 0;
    font-size: var(--yubhub-text-base);
    color: var(--yubhub-on-surface-variant);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.yubhub-no-results-actions {
    margin-top: var(--yubhub-space-5);
}

.yubhub-no-results-actions .yubhub-btn-primary {
    margin-bottom: var(--yubhub-space-3);
}

.yubhub-no-results-suggestions {
    font-size: var(--yubhub-text-sm);
    color: var(--yubhub-on-surface-variant);
    margin-top: var(--yubhub-space-2);
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .yubhub-container {
        padding: var(--yubhub-space-12) var(--yubhub-space-6);
    }

    .yubhub-card {
        padding: var(--yubhub-space-5);
    }

    .yubhub-card-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .yubhub-metadata {
        flex: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 900px) {
    .yubhub-container {
        padding: var(--yubhub-space-4) var(--yubhub-space-3);
    }

    .yubhub-card {
        padding: var(--yubhub-space-3);
    }

    .yubhub-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .yubhub-type {
        align-self: flex-start;
    }

    .yubhub-title {
        font-size: var(--yubhub-text-lg);
    }

    .yubhub-excerpt p {
        font-size: 9px;
        line-height: 1.3;
    }

    .yubhub-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--yubhub-space-2);
    }

    .yubhub-location::after {
        display: none;
    }

    .yubhub-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--yubhub-space-3);
    }

    .yubhub-btn-primary {
        width: 100%;
    }

    .yubhub-card-footer .yubhub-excerpt {
        width: 100%;
    }
}

/* Image Error Handling */
.yubhub-employer-logo:not([src]),
.yubhub-employer-logo[src=""],
.yubhub-employer-logo[src="#"] {
    display: none;
}

.yubhub-employer-logo::before {
    content: '';
    display: none;
}

/* Loading States */
.yubhub-card[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes yubhub-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.yubhub-card.is-loading {
    animation: yubhub-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ============================================
   SECTION 3: Single Job Styles
   ============================================ */

/* Layout */
.yubhub-single-wrapper {
    max-width: 1200px;
    margin: 64px auto 80px;
    padding: 0 24px;
    font-family: var(--yubhub-font-family);
}

@media (max-width: 768px) {
    .yubhub-single-wrapper {
        margin: 40px auto 60px;
        padding: 0 16px;
    }
}

.yubhub-single-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

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

/* Header */
.yubhub-single-header {
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--yubhub-shadow);
}

.yubhub-single-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    color: var(--yubhub-text-primary);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .yubhub-single-title {
        font-size: 24px;
    }
}

/* Badge System */
.yubhub-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--yubhub-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.yubhub-badge-primary {
    background: var(--yubhub-primary-light);
    color: var(--yubhub-primary);
    border: 1px solid var(--yubhub-primary-border);
}

.yubhub-badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: var(--yubhub-text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Meta Grid */
.yubhub-single-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--yubhub-surface);
    border-radius: var(--yubhub-radius);
    border: 1px solid var(--yubhub-border);
    min-width: 0;
}

.yubhub-single-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--yubhub-text-secondary);
}

.yubhub-single-meta-item strong {
    display: block;
    color: var(--yubhub-text-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.yubhub-single-icon {
    flex-shrink: 0;
    color: var(--yubhub-primary);
    margin-top: 2px;
}

.yubhub-meta-value {
    flex: 1;
}

/* Salary */
.yubhub-salary-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--yubhub-success);
}

.yubhub-salary-competitive {
    color: var(--yubhub-text-tertiary);
    font-style: italic;
}

/* Posted time */
.yubhub-posted-fresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yubhub-freshness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yubhub-success);
    animation: yubhub-freshness-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes yubhub-freshness-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Apply Button */
.yubhub-single-btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--yubhub-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    font-family: var(--yubhub-font-family);
    border-radius: var(--yubhub-radius);
    transition: all var(--yubhub-transition);
    border: none;
    box-shadow: var(--yubhub-shadow);
}

.yubhub-single-btn-apply:hover {
    background: var(--yubhub-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--yubhub-shadow-hover);
    color: #ffffff !important;
    text-decoration: none !important;
}

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

/* Content */
.yubhub-single-content {
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
    padding: 32px;
    box-shadow: var(--yubhub-shadow);
}

.yubhub-single-content h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--yubhub-text-primary);
}

.yubhub-single-content .entry-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--yubhub-text-secondary);
}

.yubhub-single-content .entry-content h3,
.yubhub-single-content .entry-content h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--yubhub-text-primary);
    font-weight: 700;
}

.yubhub-single-content .entry-content ul,
.yubhub-single-content .entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.yubhub-single-content .entry-content li {
    margin: 6px 0;
}

.yubhub-single-content .entry-content strong {
    color: var(--yubhub-text-primary);
    font-weight: 600;
}

.yubhub-single-apply-bottom {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--yubhub-border);
    text-align: center;
}

/* Sidebar */
.yubhub-single-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 991px) {
    .yubhub-single-sidebar {
        position: static;
    }
}

.yubhub-single-card {
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--yubhub-shadow);
    transition: box-shadow var(--yubhub-transition);
}

.yubhub-single-card:hover {
    box-shadow: var(--yubhub-shadow-hover);
}

.yubhub-single-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--yubhub-text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yubhub-single-card h4 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--yubhub-text-primary);
    font-weight: 700;
}

/* Employer Card */
.yubhub-employer-logo-large {
    margin-bottom: 20px;
    text-align: center;
    padding: 16px;
    background: var(--yubhub-surface-variant);
    border-radius: var(--yubhub-radius);
}

.yubhub-employer-logo-large img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.yubhub-employer-description {
    font-size: 14px;
    color: var(--yubhub-text-tertiary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.yubhub-employer-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--yubhub-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color var(--yubhub-transition);
}

.yubhub-employer-website:hover {
    color: var(--yubhub-primary-hover);
}

/* Share Buttons */
.yubhub-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yubhub-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--yubhub-radius);
    transition: all var(--yubhub-transition);
    color: #ffffff !important;
}

.yubhub-share-linkedin {
    background: #0077b5;
}

.yubhub-share-linkedin:hover {
    background: #006399;
    transform: translateX(2px);
}

.yubhub-share-twitter {
    background: #1da1f2;
}

.yubhub-share-twitter:hover {
    background: #0d8bd9;
    transform: translateX(2px);
}

.yubhub-share-email {
    background: #718096;
}

.yubhub-share-email:hover {
    background: #4a5568;
    transform: translateX(2px);
}

.yubhub-share-whatsapp {
    background: #25d366;
}

.yubhub-share-whatsapp:hover {
    background: #1faa52;
    transform: translateX(2px);
}

/* Mobile Sticky CTA */
.yubhub-mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--yubhub-surface);
    border-top: 1px solid var(--yubhub-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yubhub-mobile-sticky-cta.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .yubhub-mobile-sticky-cta {
        display: block;
    }
}

.yubhub-mobile-sticky-cta .yubhub-single-btn-apply {
    width: 100%;
}

/* Similar Jobs Section */
.yubhub-similar-jobs {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--yubhub-border);
}

.yubhub-similar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.yubhub-similar-title {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 700;
    color: var(--yubhub-text-primary);
    text-align: center;
}

.yubhub-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .yubhub-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .yubhub-similar-grid {
        grid-template-columns: 1fr;
    }
}

/* Similar Job Card */
.yubhub-similar-card {
    display: flex;
    flex-direction: column;
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-large);
    padding: 20px;
    transition: all var(--yubhub-transition);
    height: 100%;
    min-height: 240px;
    box-shadow: var(--yubhub-shadow);
}

.yubhub-similar-card:hover {
    border-color: var(--yubhub-primary);
    box-shadow: var(--yubhub-shadow-hover);
    transform: translateY(-2px);
}

.yubhub-similar-meta {
    margin-bottom: 12px;
}

.yubhub-similar-meta .yubhub-badge {
    margin-bottom: 0;
}

.yubhub-similar-job-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--yubhub-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.yubhub-similar-employer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--yubhub-border);
    border-bottom: 1px solid var(--yubhub-border);
}

.yubhub-similar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.yubhub-similar-company {
    font-size: 14px;
    font-weight: 500;
    color: var(--yubhub-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yubhub-similar-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--yubhub-text-tertiary);
    margin-bottom: 16px;
}

.yubhub-similar-location svg {
    flex-shrink: 0;
}

/* Similar Job Button */
.yubhub-similar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--yubhub-primary-light);
    color: var(--yubhub-primary) !important;
    border: 1px solid transparent;
    border-radius: var(--yubhub-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--yubhub-transition);
    margin-top: auto;
}

.yubhub-similar-btn:hover {
    background: var(--yubhub-primary);
    color: white !important;
    border-color: var(--yubhub-primary);
    text-decoration: none !important;
}

.yubhub-similar-btn svg {
    transition: transform var(--yubhub-transition);
}

.yubhub-similar-btn:hover svg {
    transform: translateX(3px);
}

/* Skills Tags */
.yubhub-single-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.yubhub-skill-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--yubhub-text-secondary);
    background: var(--yubhub-surface-variant);
    border: 1px solid var(--yubhub-border);
    border-radius: var(--yubhub-radius-full);
    line-height: 1.4;
    text-decoration: none;
    transition: all var(--yubhub-transition);
}

a.yubhub-skill-tag:hover {
    color: var(--yubhub-primary);
    border-color: var(--yubhub-primary-border);
    background: var(--yubhub-primary-light);
    text-decoration: none;
}


/* ============================================
   SECTION 4: Pagination Styles
   ============================================ */

/* Archive pagination */
.yubhub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.yubhub-pagination a,
.yubhub-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--yubhub-font-family);
    color: var(--yubhub-text-primary);
    background: var(--yubhub-surface);
    border: 1px solid var(--yubhub-border-strong);
    border-radius: var(--yubhub-radius);
    text-decoration: none;
    transition: all var(--yubhub-transition);
}

.yubhub-pagination a:hover {
    background: var(--yubhub-surface-hover);
    border-color: var(--yubhub-primary);
    color: var(--yubhub-primary);
}

.yubhub-pagination .current {
    background: var(--yubhub-primary);
    color: #ffffff;
    border-color: var(--yubhub-primary);
}

.yubhub-pagination .dots {
    border: none;
    background: transparent;
    color: var(--yubhub-text-tertiary);
    cursor: default;
}

/* Shortcode pagination (WordPress page-numbers) */
.yubhub-pagination .page-numbers {
    display: inline-flex;
    gap: var(--yubhub-space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.yubhub-pagination .page-numbers li {
    margin: 0;
}

.yubhub-pagination .page-numbers a,
.yubhub-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--yubhub-space-2) var(--yubhub-space-3);
    font-size: var(--yubhub-text-base);
    font-weight: 500;
    color: var(--yubhub-on-surface);
    background: transparent;
    border: 1px solid var(--yubhub-outline-variant);
    border-radius: var(--yubhub-radius-sm);
    text-decoration: none;
    transition: all var(--yubhub-transition-fast);
}

.yubhub-pagination .page-numbers .current,
.yubhub-pagination .page-numbers span.current {
    background: var(--yubhub-primary);
    color: var(--yubhub-surface);
    border-color: var(--yubhub-primary);
}

.yubhub-pagination .page-numbers a:hover {
    background: var(--yubhub-surface-variant);
    border-color: var(--yubhub-outline);
}

.yubhub-pagination .page-numbers a:focus {
    outline: 2px solid var(--yubhub-primary);
    outline-offset: 2px;
}

.yubhub-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Screen reader only text */
.yubhub-pagination .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile pagination adjustments */
@media (max-width: 900px) {
    .yubhub-pagination {
        margin-top: var(--yubhub-space-6);
    }

    .yubhub-pagination .page-numbers a,
    .yubhub-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: var(--yubhub-space-1) var(--yubhub-space-2);
        font-size: var(--yubhub-text-sm);
    }
}


/* ============================================
   SECTION 5: Accessibility
   ============================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .yubhub-card:hover,
    .yubhub-btn-primary:hover,
    .yubhub-similar-card:hover,
    .yubhub-single-btn-apply:hover,
    .yubhub-search-btn:hover,
    .yubhub-company-badge:hover {
        transform: none;
    }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--yubhub-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --yubhub-border: #000000;
        --yubhub-border-strong: #000000;
        --yubhub-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .yubhub-card {
        border-width: 2px;
    }

    .yubhub-btn-primary {
        border-width: 2px;
    }

    .yubhub-type {
        border-width: 2px;
    }
}


/* ============================================
   SECTION 6: Print Styles
   ============================================ */

@media print {
    .yubhub-archive-wrapper {
        padding: 0;
    }

    .yubhub-search-bar,
    .yubhub-pagination,
    .yubhub-single-sidebar,
    .yubhub-mobile-sticky-cta,
    .yubhub-share-buttons,
    .yubhub-btn-primary {
        display: none;
    }

    .yubhub-hiring-companies {
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .yubhub-single-container {
        grid-template-columns: 1fr;
    }

    .yubhub-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: var(--yubhub-space-4);
    }

    .yubhub-card:hover {
        transform: none;
        box-shadow: none;
    }
}
