/* ==========================================================================
   Gorski Hotel & Spa - Karijera & Otvorene Pozicije
   ========================================================================== */

/* Hero sekcija sa timom */
.hero.jobs-hero {
    position: relative;
    overflow: hidden;
}

.hero.jobs-hero img {
    width: 100%;
    min-height: 520px;
    max-height: 620px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}


/* Lead Section - O hotelu i kulturi rada */
.jobs-lead-section {
    padding: 70px 0 50px 0;
    /* background-color: #fbf9f6; */
    /* border-bottom: 1px solid #ede7df; */
}

.jobs-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background-color: #69544c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 18px;
}

.jobs-lead-title {
    /* font-family: 'libre_baskerville', Georgia, serif; */
    font-size: 38px;
    color: #2b2b2b;
    margin-bottom: 20px;
    line-height: 1.25;
}

.jobs-lead-desc {
    font-size: 18px;
    line-height: 1.75;
    color: #4a4541;
    max-width: 860px;
    margin: 0 auto 40px auto;
}

/* Benefiti / Perkovi */
.jobs-perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 35px;
}

.jobs-perk-card {
    background: #ffffff;
    border: 1px solid #e3dbd0;
    border-radius: 8px;
    padding: 28px 22px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(81, 61, 54, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jobs-perk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(81, 61, 54, 0.12);
    border-color: #CFAE83;
}

.jobs-perk-icon {
    width: 48px;
    height: 48px;
    background-color: #f5efe8;
    color: #69544c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.jobs-perk-title {
    font-size: 17px;
    font-weight: 700;
    color: #513d36;
    margin-bottom: 8px;
}

.jobs-perk-text {
    font-size: 14px;
    line-height: 1.6;
    color: #635b54;
    margin: 0;
}

/* ==========================================================================
   Filter sekcija
   ========================================================================== */
.jobs-filter-wrapper {
    background: #ffffff;
    padding: 30px 0 20px 0;
    /* border-bottom: 1px solid #ece5dc; */
    /* position: sticky; */
    /* top: 70px; */
    z-index: 10;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); */
}

.jobs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.jobs-filter-btn {
    appearance: none;
    background: #f7f4ef;
    border: 1px solid #dcd4c8;
    color: #513d36;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jobs-filter-btn:hover {
    background: #ece5dc;
    color: #2b2b2b;
    border-color: #baa996;
}

.jobs-filter-btn.active {
    background: #513d36;
    color: #ffffff;
    border-color: #513d36;
    box-shadow: 0 4px 12px rgba(81, 61, 54, 0.25);
}

.jobs-filter-count {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.jobs-filter-btn.active .jobs-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Lista poslova (horizontalne kartice kao paketi)
   ========================================================================== */
.jobs-list-section {
    padding: 50px 0 80px 0;
    /* background: #fbf9f6; */
    background-color: #fff;
}

.jobs-list-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    background: #ffffff;
    border: 1px solid #e5ded4;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 6px 20px rgba(81, 61, 54, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.job-card:hover {
    box-shadow: 0 12px 30px rgba(81, 61, 54, 0.12);
    border-color: #d1c3b1;
}

.job-card.is-hidden {
    display: none !important;
}

/* Slika pozicije / paketa */
.job-card-image {
    width: 38%;
    min-width: 320px;
    position: relative;
    overflow: hidden;
    background-color: #513d36;
    display: none;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.job-card:hover .job-card-image img {
    transform: scale(1.04);
}

.job-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(81, 61, 54, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Telo kartice */
.job-card-body {
    /* width: 62%; */
    width: 100%;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Metadata traka */
.job-meta-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.job-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #63584e;
    font-weight: 600;
}

.job-meta-pill svg,
.job-meta-pill i {
    color: #9c7b69;
}

/* Rok za prijavu badge */
.job-deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #fdf5e8;
    color: #915a13;
    border: 1px solid #f2dbb3;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.job-deadline.urgent {
    background: #fdf0ed;
    color: #a83422;
    border-color: #f7cac3;
}

.job-deadline.open {
    background: #eef8f1;
    color: #1f6b39;
    border-color: #c7ebd2;
}

.job-card-title {
    /* font-family: 'libre_baskerville', Georgia, serif; */
    font-size: 26px;
    color: #2b2b2b;
    margin: 30px 0 0px 0;
    line-height: 1.3;
}

.job-card-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #554e48;
    margin-bottom: 16px;
}

/* Tagovi pogodnosti */
.job-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-tag {
    background: #f4efe8;
    color: #513d36;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Accordion sa detaljima posla */
.job-details-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #faf7f2;
    border-radius: 6px;
    margin-bottom: 0;
    padding: 0 20px;
}

.job-details-expandable.is-open {
    max-height: 800px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e8dfd2;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 14px;
}

.job-details-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #513d36;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.job-details-col ul {
    margin: 0;
    padding-left: 18px;
    color: #524b45;
    line-height: 1.6;
}

.job-details-col ul li {
    margin-bottom: 6px;
}

/* Footer akcije kartice */
.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 16px;
    padding-top: 16px;
    /* border-top: 1px solid #f0e9df; */
    margin-top: auto;
}

.job-btn-apply {
    background: #513d36;
    color: #ffffff;
    border: 1px solid #513d36;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.job-btn-apply:hover {
    background: #392823;
    border-color: #392823;
    color: #ffffff;
    text-decoration: none;
}

.job-btn-toggle-details {
    background: transparent;
    border: 1px solid #d4c8b9;
    color: #513d36;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.job-btn-toggle-details:hover {
    background: #f3ece3;
    border-color: #baa996;
}

.job-btn-toggle-details .arrow-icon {
    transition: transform 0.3s ease;
}

.job-details-expandable.is-open ~ .job-card-footer .arrow-icon,
.job-card.details-active .arrow-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   Prijava & Kontakt Sekcija
   ========================================================================== */
.jobs-apply-section {
    padding: 80px 0;
    background: #ffffff;
    /* border-top: 1px solid #e9e2d7; */
}

.jobs-apply-container {
    max-width: 1000px;
    margin: 0 auto;
}

.jobs-process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.jobs-step-card {
    text-align: center;
    padding: 24px 18px;
    background: #fbf9f6;
    border-radius: 8px;
    border: 1px solid #ece5dc;
    position: relative;
}

.jobs-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #513d36;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.jobs-step-card h4 {
    font-size: 16px;
    color: #513d36;
    margin-bottom: 8px;
    font-weight: 700;
}

.jobs-step-card p {
    font-size: 13px;
    color: #6d645c;
    line-height: 1.5;
    margin: 0;
}

/* Forma */
.jobs-form-box {
    background: #fbf9f6;
    border: 1px solid #e2dad0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 18px rgba(81, 61, 54, 0.05);
}

.jobs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.jobs-form-group {
    display: flex;
    flex-direction: column;
}

.jobs-form-group.full-width {
    grid-column: span 2;
}

.jobs-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #513d36;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jobs-form-input,
.jobs-form-select,
.jobs-form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dcd4c8;
    border-radius: 4px;
    font-size: 15px;
    color: #2b2b2b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.jobs-form-input:focus,
.jobs-form-select:focus,
.jobs-form-textarea:focus {
    border-color: #513d36;
    box-shadow: 0 0 0 3px rgba(81, 61, 54, 0.12);
}

.jobs-form-textarea {
    resize: vertical;
    min-height: 110px;
}

.jobs-direct-contacts {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    /* margin-top: 40px;
    padding-top: 30px; */
    /* border-top: 1px solid #e8e0d5; */
}

.jobs-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #443e38;
    background-color: #fff;
    flex-wrap: nowrap;
    flex: 1 1 33%;
    padding: 25px;
}

.jobs-contact-item a {
    color: #513d36;
    font-weight: 700;
    text-decoration: underline;
}

.jobs-contact-item a:hover {
    color: #2b2b2b;
}

/* Prazno stanje ako nema rezultata za filter */
.jobs-empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e2dad0;
    border-radius: 8px;
}

.jobs-empty-state.is-visible {
    display: block;
}

/* ==========================================================================
   Responsive adaptacija
   ========================================================================== */
@media screen and (max-width: 991px) {
    .jobs-perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-card {
        flex-direction: column;
    }

    .job-card-image {
        width: 100%;
        min-width: 100%;
        height: 260px;
    }

    .job-card-body {
        width: 100%;
        padding: 24px;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
    }

    .jobs-process-steps {
        grid-template-columns: 1fr;
    }

    .jobs-form-grid {
        grid-template-columns: 1fr;
    }

    .jobs-form-group.full-width {
        grid-column: span 1;
    }
}

@media screen and (max-width: 640px) {
    .jobs-lead-title {
        font-size: 28px;
    }

    .jobs-lead-desc {
        font-size: 16px;
    }

    .jobs-perks-grid {
        grid-template-columns: 1fr;
    }

    .jobs-filter-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .job-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .job-btn-apply,
    .job-btn-toggle-details {
        justify-content: center;
        width: 100%;
    }

    .jobs-form-box {
        padding: 24px 18px;
    }
}
