/**
 * Antigravity Core — AG CAREERS — B2B Job Board & Careers (ag-careers.css)
 * Depends on: ag-core-ui.css (CSS tokens & shared components)
 * Auto-generated from ag-standalone-pages.css refactoring.
 */

/* ==========================================================================
   B2B CAREERS / JOB BOARD — PREMIUM HERO SECTION
   ========================================================================== */
.jobs-hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2d31 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px 90px;
    text-align: center;
}
.jobs-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(215, 99, 20, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 75% 30%, rgba(215, 99, 20, 0.07) 0%, transparent 50%);
    pointer-events: none;
}
.jobs-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 99, 20, 0.5), transparent);
}
.jobs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.jobs-hero-badge {
    display: inline-block;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ag-brand-orange);
    background: rgba(215, 99, 20, 0.1);
    border: 1px solid rgba(215, 99, 20, 0.25);
    border-radius: 30px;
    padding: 6px 20px;
    margin-bottom: 28px;
}
.jobs-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0px;
    color: #ffffff !important;
    margin: 0 0 20px !important;
}
.jobs-hero-title span {
    color: var(--ag-brand-orange) !important;
    font-style: italic;
    font-weight: 400;
}
.jobs-hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.jobs-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.jobs-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}
.jobs-stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 40px;
    font-weight: 600;
    color: var(--ag-brand-orange);
    line-height: 1;
    margin-bottom: 6px;
}
.jobs-stat-label {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.jobs-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 600px) {
    .jobs-stat-divider { display: none; }
    .jobs-stat-item { padding: 12px 20px; }
}

/* ==========================================================================
   B2B CAREERS / JOB BOARD LAYOUT (LIGHT THEME)
   ========================================================================== */
.jobs-board-body {
    background-color: #F4F2EA;
    background-image: none;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif !important;
    padding: 20px 0 100px;
}

/* Force full width / wider container for B2B Careers/Job Board page to prevent narrow/squished columns */
.page-template-page-rabota .ast-container {
    max-width: 1240px !important;
    width: 100% !important;
    padding: 0 20px !important;
}
body.page-template-page-rabota.ast-narrow-container .ast-container,
body.page-template-page-rabota.ast-content-width-layout .ast-container {
    max-width: 1240px !important;
    width: 100% !important;
}
.page-template-page-rabota #primary,
.page-template-page-rabota #main {
    width: 100% !important;
    max-width: 100% !important;
}

.jobs-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .jobs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
}

.jobs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}
@media (max-width: 900px) {
    .jobs-sidebar {
        width: 100%;
    }
}

.jobs-list-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.jobs-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 35px auto 15px;
    max-width: 1200px;
    padding: 0 20px;
}
.jobs-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2b2d31 !important;
    text-decoration: none !important;
    background: #f7f8fa;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.jobs-tab-link svg {
    stroke: #2b2d31;
    transition: all 0.3s ease;
}
.jobs-tab-link:hover,
.jobs-tab-link.active {
    background: #2b2d31;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(43, 45, 49, 0.12);
}
.jobs-tab-link:hover svg,
.jobs-tab-link.active svg {
    stroke: var(--ag-brand-orange);
}

.jobs-search-block {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 20px;
    width: 100%;
}
.jobs-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.jobs-search-input {
    width: 100%;
    padding: 16px 120px 16px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}
.jobs-search-input:focus {
    border-color: var(--ag-brand-orange);
    box-shadow: 0 10px 30px rgba(215, 99, 20, 0.06);
}
.jobs-search-btn {
    position: absolute;
    right: 6px;
    background: var(--ag-brand-orange);
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.jobs-search-btn:hover {
    background: #B84E0B;
    box-shadow: 0 6px 15px rgba(215, 99, 20, 0.2);
}

.filter-group {
    margin-bottom: 20px;
}
.filter-label {
    display: block;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2b2d31;
    margin-bottom: 8px;
}
.filter-select,
.filter-text {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    color: #1a1a1a;
    outline: none;
    transition: all 0.3s ease;
}
.filter-select:focus,
.filter-text:focus {
    border-color: var(--ag-brand-orange);
    box-shadow: 0 0 0 3px rgba(215, 99, 20,0.06);
}
.filter-submit-btn {
    width: 100%;
    background: #2b2d31;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.filter-submit-btn:hover {
    background: var(--ag-brand-orange);
    box-shadow: 0 6px 15px rgba(215, 99, 20, 0.15);
}

.job-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.005);
    content-visibility: auto;
    contain-intrinsic-size: auto 170px;
}
.job-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 99, 20, 0.2);
    box-shadow: 0 15px 35px rgba(215, 99, 20, 0.05);
}
.job-card-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.job-card-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.meta-tag {
    background: rgba(0, 0, 0, 0.03);
    color: #2b2d31;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Cormorant Garamond', serif !important;
}
.meta-tag.location-tag {
    background: rgba(215, 99, 20, 0.05);
    color: var(--ag-brand-orange);
}
.job-card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}
.job-card-excerpt p {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    color: #555555 !important;
    margin: 0 !important;
}
.job-card-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 14px !important;
    color: #888888;
}
.info-item svg {
    stroke: #888888;
    flex-shrink: 0;
}
.job-card-side {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid rgba(0,0,0,0.05);
    padding-left: 30px;
}
@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        gap: 20px;
    }
    .job-card-side {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 20px;
    }
}
.job-salary-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.salary-label {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
}
.salary-value {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--ag-brand-orange);
}
.job-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ag-brand-orange);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(215, 99, 20, 0.15);
    margin-top: 15px;
}
.job-action-btn:hover {
    background: #B84E0B;
    box-shadow: 0 6px 16px rgba(215, 99, 20, 0.25);
    transform: translateY(-1px);
}
.job-action-btn svg {
    stroke: #ffffff;
    transition: transform 0.2s ease;
}
.job-action-btn:hover svg {
    transform: translateX(2px);
}

.jobs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.jobs-pagination a,
.jobs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2b2d31 !important;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.jobs-pagination a:hover,
.jobs-pagination span.current {
    background: var(--ag-brand-orange);
    color: #ffffff !important;
    border-color: var(--ag-brand-orange);
}

.job-empty-state {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(215, 99, 20, 0.15);
    padding: 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.015);
}
.job-empty-state .empty-icon {
    margin-bottom: 16px;
}
.job-empty-state .empty-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a;
    margin: 15px 0 8px !important;
}
.job-empty-state .empty-desc {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    color: #888;
}


/* ==========================================================================
   JOB BOARD — HERO SECTION (новые классы page-rabota.php)
   ========================================================================== */

/* ── Hero Wrapper ── */
.ag-jobs-hero-section {
    background: transparent !important;
    border-bottom: 1px solid rgba(215, 99, 20, 0.08);
    padding: 48px 0 36px;
}
.ag-jobs-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Row 1: Title + CTA Button ── */
.ag-jobs-hero-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.ag-jobs-hero-title-group {
    flex: 1;
    min-width: 260px;
}
.ag-jobs-hero-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 52px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.5px;
}
.ag-jobs-hero-title .title-italic {
    font-style: italic;
    color: var(--ag-brand-orange);
}
.ag-jobs-hero-subtitle {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    margin: 0 !important;
    max-width: 540px;
}
.ag-jobs-hero-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
    flex-shrink: 0;
}
.ag-jobs-hero-action-group .ag-btn-brand-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
}
.ag-jobs-hero-action-group .ag-btn-brand-v2 svg {
    stroke: #ffffff;
    flex-shrink: 0;
}
.ag-jobs-hero-action-group .ag-btn-brand-v2 .ag-btn-plus-svg {
    stroke: #2D3748 !important;
}

/* ── Row 2: Nav + Search ── */
.ag-jobs-hero-nav-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Nav Tabs */
.ag-jobs-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    padding: 5px;
}
.ag-jobs-nav-item {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555555 !important;
    text-decoration: none !important;
    padding: 9px 24px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}
.ag-jobs-nav-item:hover {
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.04);
}
.ag-jobs-nav-item.active {
    background: #ffffff;
    color: #1a1a1a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Search Bar */
.ag-jobs-search-container {
    flex: 1;
    max-width: 560px;
}
.ag-jobs-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ag-jobs-search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.ag-jobs-search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    stroke: #aaaaaa;
    pointer-events: none;
    flex-shrink: 0;
}
.ag-jobs-search-input {
    width: 100%;
    padding: 12px 44px 12px 46px !important;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.09);
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 17px !important;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ag-jobs-search-input:focus {
    border-color: var(--ag-brand-orange);
    box-shadow: 0 4px 16px rgba(215, 99, 20, 0.08);
}
.ag-search-clear-btn {
    position: absolute;
    right: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.ag-search-clear-btn:hover {
    background: rgba(215, 99, 20, 0.12);
}
.ag-search-clear-btn svg {
    stroke: #888888;
}
.search-submit-btn {
    background: var(--ag-brand-orange);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-submit-btn:hover {
    background: #B84E0B;
    box-shadow: 0 6px 16px rgba(215, 99, 20, 0.25);
    transform: translateY(-1px);
}

/* ── Row 3: Tag Suggestions ── */
.ag-jobs-suggestions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.suggestions-label {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaaaaa;
    flex-shrink: 0;
}
.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.suggestion-tag {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #555555 !important;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 50px;
    padding: 4px 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.suggestion-tag:hover {
    background: rgba(215, 99, 20, 0.07);
    border-color: rgba(215, 99, 20, 0.25);
    color: var(--ag-brand-orange) !important;
}

/* ── Sidebar: Premium CTA Card ── */
.ag-jobs-premium-card {
    background: linear-gradient(135deg, #2b2d31 0%, #1a1b1e 100%);
    border-radius: 14px;
    padding: 26px 22px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.ag-jobs-premium-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(215, 99, 20, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}
.premium-card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}
.premium-card-text {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.55 !important;
    margin: 0 0 18px !important;
}
.ag-btn-premium-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ag-brand-orange);
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(215, 99, 20, 0.3);
}
.ag-btn-premium-sidebar:hover {
    background: #f1731d;
    box-shadow: 0 8px 20px rgba(215, 99, 20, 0.4);
    transform: translateY(-1px);
}
.ag-btn-premium-sidebar svg {
    stroke: #ffffff;
    transition: transform 0.2s ease;
}
.ag-btn-premium-sidebar:hover svg {
    transform: translateX(3px);
}

/* ── Filter Select Wrapper (стрелка-иконка) ── */
.filter-select-wrap {
    position: relative;
}
.filter-select-wrap .filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ag-jobs-hero-title {
        font-size: 38px !important;
    }
    .ag-jobs-hero-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ag-jobs-hero-action-group {
        padding-top: 0;
    }
    .ag-jobs-hero-nav-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ag-jobs-search-container {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .ag-jobs-hero-title {
        font-size: 30px !important;
    }
    .ag-jobs-hero-section {
        padding: 32px 0 24px;
    }
/* Catalog Tenders Page Helpers */
.ag-b2b-feed-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.ag-b2b-header-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ag-b2b-header-title {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.ag-brand-italic {
    font-style: italic;
    color: var(--ag-brand-orange, #D76314);
}

.ag-b2b-header-desc {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
}

.ag-b2b-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ag-btn-rfq {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    background: var(--ag-brand-orange, #D76314) !important;
    color: #ffffff !important;
}

.ag-tenders-feed-wrapper {
    margin-top: 20px;
}
}

/* ── Overhaul Feed Items and KYC Badges ── */
.ag-b2b-card.brand-block {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(215, 99, 20, 0.15) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

.ag-kyc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.ag-kyc-badge--approved {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.2);
}
.ag-kyc-badge--pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.2);
}
.ag-kyc-badge--none {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6C757D;
    border-color: rgba(108, 117, 125, 0.2);
}

.ag-profil-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.ag-profil-card-title-group {
    flex: 1;
}

.ag-card-thumb--avatar {
    border: 2px solid rgba(215, 99, 20, 0.15);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.ag-card-thumb--initials {
    border: 1px solid rgba(215, 99, 20, 0.2);
    box-shadow: inset 0 2px 6px rgba(215, 99, 20, 0.05);
}



/* ==========================================================================
   JOBS HERO & BOARD LAYOUT (page-rabota.php)
   ========================================================================== */

.jobs-board-body {
    width: 100%;
    background-color: var(--ag-bg-color, #F4F2EA);
    color: var(--ag-text-primary, #1a1a1a);
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Hero Section */
.ag-jobs-hero-section {
    background: linear-gradient(160deg, rgba(26,22,18,0.96) 0%, rgba(60,40,20,0.88) 60%, rgba(215,99,20,0.22) 100%);
    padding: 56px 20px 44px;
    position: relative;
    overflow: hidden;
}
.ag-jobs-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(215,99,20,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.ag-jobs-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Row 1: Title + Buttons */
.ag-jobs-hero-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ag-jobs-hero-title-group { flex: 1; min-width: 280px; }
.ag-jobs-hero-title {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.15;
}
.ag-jobs-hero-title .title-italic {
    font-style: italic;
    opacity: 0.85;
}
.ag-jobs-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
}
.ag-jobs-hero-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 4px;
}

/* Hero Row 2: Nav + Search */
.ag-jobs-hero-nav-search-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ag-jobs-nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.ag-jobs-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ag-jobs-nav-item:hover,
.ag-jobs-nav-item.active {
    background: var(--ag-brand-orange, #D76314);
    border-color: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    text-decoration: none;
}

/* Search Container */
.ag-jobs-search-container { flex: 1; min-width: 240px; }
.ag-jobs-search-form { display: flex; gap: 8px; }
.ag-jobs-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.ag-jobs-search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}
.ag-jobs-search-input {
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 0 44px;
    font-size: 15px;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    color: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}
.ag-jobs-search-input::placeholder { color: rgba(255,255,255,0.5); }
.ag-jobs-search-input:focus {
    border-color: var(--ag-brand-orange, #D76314);
    background: rgba(255,255,255,0.18);
}
.ag-search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.search-submit-btn {
    height: 46px;
    padding: 0 22px;
    background: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.search-submit-btn:hover { background: var(--ag-brand-orange-hover, #B84E0B); }

/* Hero Row 3: Suggestions */
.ag-jobs-suggestions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.suggestions-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.suggestions-list { display: flex; gap: 6px; flex-wrap: wrap; }
.suggestion-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.2s ease;
}
.suggestion-tag:hover {
    background: rgba(215,99,20,0.3);
    border-color: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   JOB BOARD TWO-COLUMN LAYOUT (sidebar + main)
   ========================================================================== */

.jobs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 36px auto 0;
    padding: 0 20px;
    align-items: start;
}
.jobs-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ag-border-light, rgba(215,99,20,0.15));
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--ag-shadow-sm, 0 4px 12px rgba(26,26,26,0.04));
}
.jobs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ag-border-light, rgba(215,99,20,0.12));
}
.jobs-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ag-text-primary, #1a1a1a);
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
}
.ag-btn-premium-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
}
.ag-btn-premium-sidebar:hover {
    background: var(--ag-brand-orange-hover, #B84E0B);
    color: #ffffff;
    text-decoration: none;
}

/* Sidebar Filters */
.filter-group { margin-bottom: 16px; }
.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ag-text-muted, rgba(26,26,26,0.5));
    margin-bottom: 6px;
}
.filter-select-wrap { position: relative; }
.filter-select {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--ag-border-light, rgba(215,99,20,0.15));
    border-radius: 8px;
    padding: 0 30px 0 12px;
    font-size: 14px;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    background: var(--ag-color-bg-white, #ffffff);
    color: var(--ag-text-primary, #1a1a1a);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.filter-select:focus {
    border-color: var(--ag-brand-orange, #D76314);
    outline: none;
    box-shadow: 0 0 0 3px rgba(215,99,20,0.10);
}
.filter-submit-btn {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    background: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.filter-submit-btn:hover { background: var(--ag-brand-orange-hover, #B84E0B); }

/* Main content */
.jobs-list-wrapper { min-width: 0; }

/* ==========================================================================
   JOB CARD (.ag-b2b-card) — LinkedIn Style
   ========================================================================== */

.ag-b2b-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 0 20px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ag-border-light, rgba(215,99,20,0.12));
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    align-items: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ag-b2b-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(215,99,20,0.12), 0 2px 8px rgba(0,0,0,0.04);
    border-color: rgba(215,99,20,0.28);
    text-decoration: none;
}

/* Card thumb (avatar) */
.ag-card-thumb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--ag-border-light, rgba(215,99,20,0.15));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ag-bg-color, #F4F2EA);
    flex-shrink: 0;
}
.ag-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ag-card-thumb-initial {
    font-size: 28px;
    font-weight: 700;
    color: var(--ag-brand-orange, #D76314);
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
}

/* Card main body */
.ag-card-body { min-width: 0; }

/* Card badges row */
.ag-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    align-items: center;
}
.ag-card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ag-card-type-badge--vacancy {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.18);
    color: #1D4ED8;
}
.ag-card-type-badge--resume {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.20);
    color: #065F46;
}
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(215,99,20,0.07);
    border: 1px solid rgba(215,99,20,0.15);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ag-brand-orange, #D76314);
}
.meta-tag--cad {
    background: rgba(124,58,237,0.07);
    border-color: rgba(124,58,237,0.18);
    color: #6D28D9;
}

/* Card title */
.job-card-title {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--ag-text-primary, #1a1a1a);
    margin: 0 0 4px;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.ag-b2b-card:hover .job-card-title { color: var(--ag-brand-orange, #D76314); }

/* Card meta (location, experience) */
.ag-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    align-items: center;
}
.ag-card-meta-moq {
    font-size: 13px;
    color: var(--ag-text-muted, rgba(26,26,26,0.5));
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Excerpt */
.job-card-excerpt {
    font-size: 14px;
    color: var(--ag-text-muted, rgba(26,26,26,0.5));
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right side: salary */
.job-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 120px;
}
.job-salary-block { text-align: right; }
.salary-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ag-text-muted, rgba(26,26,26,0.5));
    display: block;
    margin-bottom: 2px;
}
.salary-value {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ag-text-primary, #1a1a1a);
    display: block;
}

/* Empty state */
.job-empty-state {
    text-align: center;
    padding: 80px 20px 60px;
    color: var(--ag-text-muted, rgba(26,26,26,0.5));
}
.job-empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.job-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ag-text-primary, #1a1a1a);
}

/* ==========================================================================
   B2B DASHBOARD SHELL LAYOUT (.ag-shell-*) — GLOBAL (used on multiple pages)
   Previously only in ag-profil.css — now ALSO here for moya-rabota, catalog-chat, b2b-dashboard
   ========================================================================== */

.ag-b2b-dashboard-page-wrapper .ag-shell-main {
    display: flex;
    min-height: 100vh;
    background: var(--ag-bg-color, #F4F2EA);
    position: relative;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ag-border-light, rgba(215,99,20,0.12));
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.ag-b2b-dashboard-page-wrapper .ag-shell-content {
    flex: 1;
    padding: 80px 30px 60px 310px;
    min-width: 0;
    transition: padding-left 0.3s ease;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-sidebar {
    position: fixed;
    top: 64px; left: 0;
    width: 260px;
    height: calc(100vh - 64px);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--ag-border-light, rgba(215,99,20,0.12));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(215,99,20,0.2) transparent;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--ag-border-light, rgba(215,99,20,0.10));
    margin-bottom: 12px;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-sidebar-header span {
    font-family: var(--ag-font-primary, 'Cormorant Garamond', serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ag-text-primary, #1a1a1a);
}
.ag-b2b-dashboard-page-wrapper .ag-shell-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ag-text-muted, rgba(26,26,26,0.6));
    text-decoration: none;
    transition: all 0.18s ease;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-nav a:hover,
.ag-b2b-dashboard-page-wrapper .ag-shell-nav a.active {
    background: rgba(215,99,20,0.08);
    color: var(--ag-brand-orange, #D76314);
    text-decoration: none;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-nav a.ag-nav-logout {
    color: rgba(220,50,50,0.7);
    margin-top: 16px;
}
.ag-b2b-dashboard-page-wrapper .ag-shell-nav a.ag-nav-logout:hover {
    background: rgba(220,50,50,0.07);
    color: #DC2626;
}

/* Mobile shell */
@media (max-width: 991px) {
    .ag-b2b-dashboard-page-wrapper .ag-shell-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
    }
    .ag-b2b-dashboard-page-wrapper .ag-shell-sidebar.open {
        transform: translateX(0);
    }
    .ag-b2b-dashboard-page-wrapper .ag-shell-content {
        padding: 80px 16px 60px;
    }
}

/* ==========================================================================
   CAREERS MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .jobs-container {
        grid-template-columns: 1fr;
    }
    .jobs-sidebar {
        position: relative;
        top: 0;
    }
}
@media (max-width: 767px) {
    .ag-jobs-hero-section { padding: 36px 16px 30px; }
    .ag-jobs-hero-header-row { flex-direction: column; gap: 16px; }
    .ag-jobs-hero-action-group { flex-direction: row; }
    .ag-jobs-hero-nav-search-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .ag-jobs-nav-links { flex-wrap: wrap; }
    .jobs-container { padding: 0 12px; margin-top: 20px; }
    .ag-b2b-card {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }
    .job-card-side {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: 0;
        padding-top: 10px;
        border-top: 1px solid var(--ag-border-light, rgba(215,99,20,0.10));
        margin-top: 8px;
    }
    .job-salary-block { text-align: left; }
    .ag-card-thumb { width: 52px; height: 52px; }
}
