/* Companies & Jobs public pages */

:root {
    --cj-primary: #138275;
    --cj-primary-dark: #0f6b5f;
    --cj-secondary: #65BF83;
    --cj-text: #1e293b;
    --cj-muted: #64748b;
    --cj-border: #e2e8f0;
    --cj-bg: #f8fafc;
    --cj-gradient: linear-gradient(135deg, #138275 0%, #65BF83 100%);
    --cj-shadow: 0 10px 30px rgba(19, 130, 117, 0.08);
    --cj-radius: 16px;
}

.companies-jobs-page {
    font-family: 'Cairo', sans-serif;
    background: var(--cj-bg);
    color: var(--cj-text);
    min-height: 100vh;
    position: relative;
}

/* إيقاف شبكة الخلفية على كامل الصفحة (من public-profile-style) */
body.companies-jobs-page::before {
    display: none;
}

/* شبكة الهيرو — نفس profile-header في /profile */
.cj-page-hero,
.companies-jobs-page .hero-section.company-public-hero {
    position: relative;
    overflow: hidden;
}

.cj-page-hero::before,
.companies-jobs-page .hero-section.company-public-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.cj-page-hero .container,
.cj-page-hero .page-hero-content,
.companies-jobs-page .hero-section.company-public-hero .container,
.companies-jobs-page .hero-section.company-public-hero .hero-content {
    position: relative;
    z-index: 2;
}

.companies-jobs-page .hero-section,
.companies-jobs-page .cj-tabs-section,
.companies-jobs-page .cj-list-section,
.companies-jobs-page .cj-job-detail-hero,
.companies-jobs-page .cj-empty-state,
.companies-jobs-page .cj-footer {
    position: relative;
    z-index: 2;
}

body.companies-jobs-page.has-modern-header > header.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.companies-jobs-page.has-modern-header .user-menu,
body.companies-jobs-page.has-modern-header .user-dropdown,
body.companies-jobs-page.has-modern-header .user-dropdown.show,
body.companies-jobs-page.has-modern-header .language-switcher-dropdown,
body.companies-jobs-page.has-modern-header .language-switcher-dropdown .language-toggle {
    pointer-events: auto;
}

body.companies-jobs-page.has-modern-header .user-dropdown.show {
    z-index: 1002;
}

body.companies-jobs-page:not(.has-modern-header) > header {
    position: fixed;
}

body.companies-jobs-page:not(.has-modern-header) .cj-page-hero,
body.companies-jobs-page:not(.has-modern-header) .hero-section,
body.companies-jobs-page:not(.has-modern-header) .cj-list-section:not(.cj-jobs-list-section):not(.cj-companies-list-section),
body.companies-jobs-page:not(.has-modern-header) .cj-empty-state,
body.companies-jobs-page:not(.has-modern-header) .cj-job-detail-hero {
    margin-top: 70px;
}

.cj-page-hero {
    background: var(--cj-gradient);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.cj-page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cj-page-hero p {
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto;
}

.cj-list-section {
    padding: 2rem 0 4rem;
}

.cj-filters {
    background: #fff;
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--cj-shadow);
}

.cj-filters .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cj-muted);
}

.cj-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cj-recruit-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--cj-radius);
    background: var(--cj-gradient);
    color: #fff;
    box-shadow: var(--cj-shadow);
    position: sticky;
    top: 70px;
    z-index: 5;
}

body.companies-jobs-page.has-modern-header .cj-recruit-banner {
    top: 70px;
}

body.companies-jobs-page.modal-open-custom {
    overflow: hidden;
}

.cj-recruit-banner-content {
    flex: 1;
    min-width: min(100%, 280px);
}

.cj-recruit-banner-question {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.cj-recruit-banner-text {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cj-recruit-banner-btn {
    flex-shrink: 0;
    font-weight: 700;
    border: none;
    color: var(--cj-primary-dark);
    white-space: nowrap;
    cursor: pointer;
}

.cj-recruit-banner-btn:hover {
    background: #fff;
    color: var(--cj-primary-dark);
}

.cj-jobs-directory-page .cj-jobs-directory-top,
.cj-companies-directory-page .cj-companies-directory-top {
    padding: 1rem 0 0.75rem;
}

body.companies-jobs-page:not(.has-modern-header) .cj-jobs-directory-page .cj-jobs-directory-top,
body.companies-jobs-page:not(.has-modern-header) .cj-companies-directory-page .cj-companies-directory-top {
    margin-top: 70px;
}

body.companies-jobs-page.has-modern-header .cj-jobs-directory-page .cj-jobs-directory-top,
body.companies-jobs-page.has-modern-header .cj-companies-directory-page .cj-companies-directory-top {
    padding-top: 1.25rem;
}

.cj-jobs-directory-page .cj-recruit-banner-compact,
.cj-companies-directory-page .cj-recruit-banner-compact {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    position: static;
    top: auto;
}

.cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-icon,
.cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    font-size: 1.15rem;
}

.cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-question,
.cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-question {
    margin: 0;
    font-size: clamp(0.98rem, 2.2vw, 1.1rem);
    line-height: 1.45;
}

.cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-btn,
.cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cj-recruit-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cj-recruit-banner-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.cj-recruit-banner-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: #fff;
}

.cj-jobs-directory-page .cj-jobs-list-section,
.cj-companies-directory-page .cj-companies-list-section {
    padding-top: 0.75rem;
    padding-bottom: 3rem;
    margin-top: 0;
}

.cj-jobs-directory-page .cj-filters-compact,
.cj-companies-directory-page .cj-filters-compact {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.cj-jobs-directory-page .cj-filters-compact .form-label,
.cj-companies-directory-page .cj-filters-compact .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

@media (max-width: 767.98px) {
    .cj-jobs-directory-page .cj-recruit-banner-compact,
    .cj-companies-directory-page .cj-recruit-banner-compact {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-icon,
    .cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-icon {
        margin: 0 auto;
    }

    .cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-actions,
    .cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-actions {
        width: 100%;
    }

    .cj-jobs-directory-page .cj-recruit-banner-compact .cj-recruit-banner-actions .cj-recruit-banner-btn,
    .cj-companies-directory-page .cj-recruit-banner-compact .cj-recruit-banner-btn {
        width: 100%;
    }
}

.cj-btn-primary {
    background: var(--cj-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
}

.cj-btn-primary:hover {
    opacity: 0.92;
    background: var(--cj-gradient);
}

.cj-btn-outline {
    border-radius: 10px;
    border-color: var(--cj-primary);
    color: var(--cj-primary);
    font-weight: 600;
}

.cj-btn-outline:hover {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
    color: #fff;
}

.cj-companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .cj-companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cj-company-card {
    background: #fff;
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 1.5rem;
    box-shadow: var(--cj-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cj-company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(19, 130, 117, 0.12);
}

.cj-company-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cj-company-card-top .company-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cj-company-card-top .company-hero-logo .cj-logo-fallback {
    font-size: 1.75rem;
}

.cj-company-card-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cj-company-activity {
    color: var(--cj-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.cj-company-desc {
    color: var(--cj-muted);
    line-height: 1.7;
    flex: 1;
}

.cj-company-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.cj-company-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--cj-border);
    border-radius: 12px;
}

.cj-company-stat-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cj-muted);
    line-height: 1.35;
}

.cj-company-stat-label i {
    color: var(--cj-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cj-company-stat-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.cj-company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cj-logo,
.cj-job-list-logo,
.cj-job-detail-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cj-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(19, 130, 117, 0.15);
}

.cj-logo img,
.cj-job-list-logo img,
.cj-job-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cj-logo-fallback {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.company-public-hero {
    margin-top: 0;
}

.company-hero-content {
    padding: 2rem 0;
}

.company-hero-main {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.company-hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.company-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-hero-logo .cj-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #eef7f5 100%);
    color: var(--cj-primary);
    font-size: 2.5rem;
    font-weight: 800;
}

.company-hero-text {
    flex: 1;
    min-width: min(100%, 280px);
    text-align: start;
}

.company-hero-text .hero-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-align: start;
    width: 100%;
}

.company-hero-activity {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.company-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
}

.company-hero-meta a {
    color: inherit;
    text-decoration: none;
}

.company-hero-meta a:hover {
    text-decoration: underline;
}

.company-hero-social.social-icons-hero {
    margin-top: 1rem;
    margin-bottom: 0;
}

.social-icons-hero {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon-hero {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.social-icon-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.social-icon-hero i {
    position: relative;
    z-index: 2;
}

.social-icon-hero:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon-hero:hover::before {
    background: rgba(255, 255, 255, 0.2);
}

.social-icon-hero.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-icon-hero.facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1565c0 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon-hero.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.social-icon-hero.linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #0077b5 100%);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-icon-hero.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-icon-hero.instagram:hover {
    background: linear-gradient(135deg, #fd1d1d 0%, #fcb045 50%, #833ab4 100%);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.cj-tabs-section {
    padding: 2rem 0 4rem;
}

.cj-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--cj-border);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
}

.cj-tab-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--cj-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    position: relative;
    z-index: 6;
}

.cj-tab-link:hover {
    color: var(--cj-primary);
    text-decoration: none;
}

.cj-tab-link.active {
    color: var(--cj-primary);
    background: transparent;
    border-bottom-color: var(--cj-primary);
}

.cj-tabs {
    border-bottom: 2px solid var(--cj-border);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.cj-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--cj-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cj-tabs .nav-link.active {
    color: var(--cj-primary);
    background: transparent;
    border-bottom-color: var(--cj-primary);
}

.cj-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    margin-inline-start: 0.35rem;
    border-radius: 999px;
    background: var(--cj-primary);
    color: #fff;
    font-size: 0.75rem;
}

.cj-detail-card {
    background: #fff;
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 2rem;
    box-shadow: var(--cj-shadow);
}

.cj-detail-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--cj-primary);
}

.cj-description {
    line-height: 1.8;
    color: var(--cj-text);
    margin-bottom: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cj-border);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.company-info-grid .company-info-card.portfolio-card {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
}

.company-info-grid .company-info-card {
    min-height: auto;
    padding: 0.55rem 0.65rem;
    gap: 0.45rem;
}

.company-info-grid .company-info-card .portfolio-card-icon {
    width: 26px;
    height: 26px;
    font-size: 0.62rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.company-info-grid .company-info-card .portfolio-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: right;
}

.company-info-grid .company-info-label {
    flex: 0 0 auto;
    font-size: 0.95rem;
    color: var(--text-secondary, var(--cj-muted));
    margin-bottom: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.company-info-grid .company-info-label::after {
    content: none;
}

.company-info-grid .company-info-value {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary, var(--cj-text));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-info-grid .company-info-value--ltr {
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

.company-info-grid .company-info-value a {
    color: var(--primary-color, var(--cj-primary));
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: inherit;
}

.company-info-grid .company-info-value a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .company-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .company-info-grid {
        grid-template-columns: 1fr;
    }
}

.cj-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .cj-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cj-jobs-grid {
        grid-template-columns: 1fr;
    }
}

.cj-job-list-card {
    background: #fff;
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--cj-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.cj-job-card-desc,
.cj-job-list-card .cj-job-card-desc {
    margin-top: 0;
    color: var(--cj-text);
    font-size: 0.92rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cj-job-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.cj-job-expires-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--cj-muted);
    font-size: 0.88rem;
    font-weight: 500;
    min-width: 0;
    margin-inline-start: auto;
    text-align: end;
}

.cj-job-expires-meta i {
    color: var(--cj-primary);
    flex-shrink: 0;
}

.cj-job-list-actions:not(:has(.cj-job-expires-meta)) {
    justify-content: flex-start;
}

html[lang="fr"] .cj-job-list-actions:not(:has(.cj-job-expires-meta)),
html[lang="en"] .cj-job-list-actions:not(:has(.cj-job-expires-meta)) {
    justify-content: flex-end;
}

.cj-job-list-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cj-job-list-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cj-job-list-top .company-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cj-job-list-top .company-hero-logo .cj-logo-fallback {
    font-size: 1.75rem;
}

.cj-job-detail-header .company-hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    border-width: 2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.cj-job-detail-header .company-hero-logo .cj-logo-fallback {
    font-size: 2rem;
}

.cj-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--cj-muted);
    font-size: 0.9rem;
}

.cj-job-meta i {
    color: var(--cj-primary);
    margin-inline-end: 0.35rem;
}

.cj-job-salary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.cj-job-salary-value {
    unicode-bidi: isolate;
    display: inline-block;
}

.cj-job-salary-currency {
    unicode-bidi: isolate;
}

.cj-company-link {
    color: var(--cj-primary);
    font-weight: 600;
    text-decoration: none;
}

.cj-company-link:hover {
    text-decoration: underline;
}

.cj-job-detail-hero {
    padding: 2rem 0 4rem;
}

.cj-job-detail-card {
    background: #fff;
    border-radius: var(--cj-radius);
    border: 1px solid var(--cj-border);
    box-shadow: var(--cj-shadow);
    padding: 2rem;
}

.cj-job-detail-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cj-job-detail-header-main {
    flex: 1;
    min-width: 0;
}

.cj-job-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.cj-job-title-row h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
    min-width: min(100%, 220px);
}

.cj-job-title-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cj-job-title-actions .cj-apply-btn {
    white-space: nowrap;
}

.cj-job-title-actions .cj-application-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.cj-job-title-actions .action-btn.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--cj-border);
    background: #fff;
    color: var(--cj-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.cj-job-title-actions .action-btn.share-btn:hover {
    background: var(--cj-primary);
    color: #fff;
    border-color: var(--cj-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(19, 130, 117, 0.25);
}

.cj-job-detail-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cj-job-detail-body + .cj-job-detail-body {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cj-border);
}

.cj-job-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cj-border);
}

.cj-empty-state {
    padding: 3rem 0;
}

.cj-empty-card,
.cj-empty-inline {
    text-align: center;
    background: #fff;
    border-radius: var(--cj-radius);
    padding: 3rem 2rem;
    border: 1px dashed var(--cj-border);
}

.cj-empty-inline {
    padding: 2rem;
}

.cj-empty-card i,
.cj-empty-inline i {
    font-size: 3rem;
    color: var(--cj-primary);
    margin-bottom: 1rem;
}

.cj-footer {
    background: #fff;
    border-top: 1px solid var(--cj-border);
    padding: 1.5rem 0;
    color: var(--cj-muted);
}

@media (max-width: 768px) {
    .cj-company-stats {
        grid-template-columns: 1fr;
    }

    .cj-company-actions,
    .cj-job-list-actions,
    .cj-job-detail-actions,
    .cj-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cj-company-actions .btn,
    .cj-job-list-actions .btn,
    .cj-job-detail-actions .btn {
        width: 100%;
    }

    .cj-job-title-row {
        align-items: stretch;
    }

    .cj-job-title-actions {
        width: 100%;
    }

    .cj-job-title-actions .cj-apply-btn {
        flex: 1;
    }

    .company-hero-main {
        flex-direction: column;
        text-align: center;
    }

    .company-hero-meta {
        justify-content: center;
    }

    .company-hero-social.social-icons-hero {
        justify-content: center;
    }
}
