/* Copyright (c) Zhmara X. All rights reserved.
   Proprietary and confidential. Unauthorized copying of this file, via any medium, is prohibited. See LICENSE.txt. */

/* ZX Jobs & CV: the Zhmara X look (navy hero, white text, orange main button, blue second). */
:root {
    --jobs-hero: rgb(13, 21, 35);
    --jobs-orange: #f68d0b;
    --jobs-orange-dark: #d97800;
    --jobs-orange-soft: rgba(246, 141, 11, 0.12);
    --jobs-blue: #47b2e4;
    --jobs-blue-dark: #209dd8;
    --jobs-dark: #2a2929;
    --jobs-light: #f3f5fa;
    --jobs-border: #e6e9f0;
}

/* The template header is fixed; the hero starts below it. */
.jobs-hero { background: var(--jobs-hero); color: #fff; padding: 140px 0 64px; }
.jobs-hero h1 { font-size: 40px; font-weight: 700; color: #fff; margin: 14px 0 12px; }
.jobs-hero p { color: rgba(255, 255, 255, 0.7); font-size: 18px; max-width: 660px; margin: 0 auto 28px; }

.jobs-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 50px; background: var(--jobs-orange-soft); color: var(--jobs-orange); vertical-align: middle; }

.jobs-btn { border-radius: 50px; padding: 9px 24px; color: #fff; background: var(--jobs-orange); border: 0; }
.jobs-btn:hover, .jobs-btn:focus { background: var(--jobs-orange-dark); color: #fff; }
.jobs-btn-blue { border-radius: 50px; padding: 9px 24px; color: #fff; background: var(--jobs-blue); border: 0; }
.jobs-btn-blue:hover { background: var(--jobs-blue-dark); color: #fff; }
.jobs-btn-outline { border-radius: 50px; border: 1px solid var(--jobs-blue); color: var(--jobs-blue-dark); background: #fff; }
.jobs-btn-outline:hover { background: var(--jobs-blue); color: #fff; }

.jobs-section { padding: 64px 0; }
/* Links to #cvs, #hire and #jobs stop below the fixed header. */
.jobs-section[id] { scroll-margin-top: 80px; }
.jobs-section-light { background: var(--jobs-light); }
.jobs-section h2 { font-weight: 700; color: var(--jobs-dark); }
.jobs-group { font-size: 22px; margin-bottom: 20px; }
.jobs-group span { font-size: 14px; color: var(--jobs-orange-dark); background: var(--jobs-orange-soft); border-radius: 50px; padding: 2px 10px; margin-inline-start: 6px; }

/* CV cards */
.jobs-cv { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jobs-border); border-radius: 12px; overflow: hidden; transition: 0.25s; }
.jobs-cv:hover { border-color: var(--jobs-orange); box-shadow: 0 10px 30px rgba(246, 141, 11, 0.15); transform: translateY(-3px); }
.jobs-cv-pic { display: block; aspect-ratio: 3 / 4; background: var(--jobs-light); }
.jobs-cv-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.jobs-cv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.jobs-cv-body h3 { font-size: 16px; font-weight: 700; color: var(--jobs-dark); margin: 0; }
.jobs-cv-links { display: flex; gap: 8px; margin-top: auto; }

.jobs-soon { height: 100%; padding: 28px; background: #fff; border: 1px dashed var(--jobs-border); border-radius: 12px; }
.jobs-soon i { font-size: 32px; color: var(--jobs-orange); }
.jobs-soon h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px; }
.jobs-soon p { color: #555; margin: 0 0 16px; }
.jobs-soon p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .jobs-hero { padding-top: 110px; }
    .jobs-hero h1 { font-size: 28px; }
}

/* Pages without a hero start below the fixed header. */
.jobs-page { padding: 120px 0 64px; min-height: 70vh; }
.jobs-back { color: var(--jobs-blue-dark); text-decoration: none; font-size: 14px; }
.jobs-panel { background: #fff; border: 1px solid var(--jobs-border); border-radius: 12px; padding: 20px; }
.jobs-text { white-space: pre-line; }
.jobs-title { font-size: 28px; font-weight: 700; color: var(--jobs-dark); }
.jobs-empty { text-align: center; padding: 40px 20px; color: #666; }
.jobs-empty i { font-size: 40px; color: var(--jobs-orange); }
.jobs-logo-small { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid var(--jobs-border); background: #fff; }

/* Search on the home hero. */
.jobs-search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.jobs-search .form-control { border-radius: 50px; padding: 10px 20px; }

/* Job cards */
.jobs-card { display: flex; gap: 14px; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--jobs-border); border-radius: 12px; color: inherit; text-decoration: none; transition: 0.25s; }
.jobs-card:hover { border-color: var(--jobs-orange); box-shadow: 0 10px 30px rgba(246, 141, 11, 0.12); color: inherit; }
.jobs-card-logo { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--jobs-light); overflow: hidden; }
.jobs-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.jobs-card-logo i { font-size: 24px; color: var(--jobs-blue-dark); }
.jobs-card-body h3 { font-size: 17px; font-weight: 700; color: var(--jobs-dark); margin: 0 0 2px; }
.jobs-card-company { margin: 0 0 6px; color: #555; }
.jobs-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; color: #666; }
.jobs-card-meta i { color: var(--jobs-orange); }

/* Statuses of applications and employers. */
.jobs-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 50px; background: var(--jobs-light); color: #555; }
.jobs-status-seen, .jobs-status-pending { background: rgba(71, 178, 228, 0.15); color: var(--jobs-blue-dark); }
.jobs-status-shortlisted, .jobs-status-approved { background: rgba(25, 135, 84, 0.12); color: #198754; }
.jobs-status-rejected, .jobs-status-refused { background: rgba(220, 53, 69, 0.1); color: #b02a37; }

/* CV builder rows */
.jobs-cv-row { position: relative; padding: 12px 70px 12px 12px; border: 1px solid var(--jobs-border); border-radius: 10px; margin-bottom: 10px; background: var(--jobs-light); }
[dir="rtl"] .jobs-cv-row { padding: 12px 12px 12px 70px; }
.jobs-cv-row-tools { position: absolute; top: 8px; inset-inline-end: 6px; display: flex; flex-direction: column; }

/* The CV document (print page and the employer's view). */
.jobs-cvdoc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--jobs-border); border-radius: 12px; padding: 36px 40px; color: #222; }
.jobs-cvdoc-head { display: flex; gap: 20px; align-items: center; border-bottom: 3px solid var(--jobs-orange); padding-bottom: 16px; margin-bottom: 16px; }
.jobs-cvdoc-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.jobs-cvdoc h1 { font-size: 28px; font-weight: 700; margin: 0; color: var(--jobs-hero); }
.jobs-cvdoc-headline { margin: 2px 0 6px; font-size: 17px; color: var(--jobs-orange-dark); }
.jobs-cvdoc-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: #555; }
.jobs-cvdoc h2 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--jobs-hero); margin: 18px 0 8px; }
.jobs-cvdoc-item { margin-bottom: 10px; }
.jobs-cvdoc-item-head { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.jobs-cvdoc-dates { margin-inline-start: auto; color: #666; font-size: 14px; }
.jobs-cvdoc-text { white-space: pre-line; margin: 4px 0 0; }
.jobs-cvdoc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.jobs-cvdoc ul { margin: 0; padding-inline-start: 18px; }

/* Header sign-out button looks like the other links. */
.jobs-signout { display: inline; margin: 0; }
.jobs-signout button { background: none; border: 0; cursor: pointer; padding: 10px 0 10px 30px; font-size: 15px; font-weight: 500; color: #fff; white-space: nowrap; transition: 0.3s; }
.jobs-signout button:hover { color: #47b2e4; }
.navbar-mobile .jobs-signout button { padding: 10px 20px; color: #2a2929; }

/* The template pads every <section>; the CV's own sections must not be. */
.jobs-cvdoc section { padding: 0; overflow: visible; }

/* Admin tabs */
.jobs-admin-menu { display: flex; gap: 20px; border-bottom: 1px solid var(--jobs-border); }
.jobs-admin-menu a { padding: 8px 2px; color: #555; text-decoration: none; border-bottom: 2px solid transparent; }
.jobs-admin-menu a.active { color: var(--jobs-orange-dark); border-bottom-color: var(--jobs-orange); }

@media (max-width: 767px) {
    .jobs-page { padding-top: 100px; }
    .jobs-search { flex-direction: column; }
    .jobs-cvdoc { padding: 20px; }
    .jobs-cvdoc-head { flex-direction: column; text-align: center; }
    .jobs-cvdoc-cols { grid-template-columns: 1fr; }
}

/* Printing the CV: only the CV, full width, no site header or footer. */
@media print {
    #header, #footer, .back-to-top, .jobs-no-print, .zx-cookie-banner { display: none !important; }
    .jobs-print-page { padding: 0; }
    .jobs-print-page .container { max-width: none; padding: 0; }
    .jobs-cvdoc { border: 0; border-radius: 0; padding: 0; max-width: none; }
}
