﻿
/* Wait cursor */
#waitCursor {
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 99;
    font-size: 40px;
}

#waitCursor span {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

/* base layout */
.jobContainer {
    display: flex;
    gap: 40px;
}

.jobFilterContainer {
    flex: 0 0 425px;
    align-self: flex-start;
    position: relative;
}

.jobListContainer {
    flex: 1;
}

#jobCountDisplay {
    margin-bottom: 20px;
}

/* Filter */

.jobFilterContainer {
    background-color: #EBF3F9;
    -webkit-mask-image: url("../../layout/images/logoshape.svg");
    mask-image: url("../../layout/images/logoshape.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.jobFilterContent {
    padding: 20px 48px 75px 25px;
}

.jobFilterContainer h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.jobFilterContainer label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.jobFilterContainer input[type="text"],
.jobFilterContainer select {
    width: Calc(100% - 20px);
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#jobFilterSearchButton {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    width: Calc(100% - 20px);
    margin-top: 5px
}

.jobFilterContainer i {
    font-size: 20px;
    color: #fff;
}

.jobFilterTitle {
    display: none;
}

#clearFilterLink {
    display: block;
    margin-top: 5px;
    text-decoration: none;
}

#clearFilterLink:hover {
    text-decoration: underline;
}

#expandFilterButton {
    position: absolute;
    top: 15px;
    right: 15px; 
    display: none;
}


/* Job object*/

.jobObject {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 7px;
}

.jobObject:hover {
    background-color: #EFF4F7;
}

.jobObject:hover a {
    text-decoration: none;
}

.jobObjectTitle {
    margin-bottom: 7px;
}

.jobObjectTitle h2 {
    font-size: 21px;
    bottom: 0;
}

.jobObjectDescription {
    font-size: 18px;
    color: var(--CSSColor);
}

.jobObjectAdditionalInfoContainer {
    color: #707070;
    font-size: 16px;
    margin-top: 7px;
}

.jobObjectDate {
    font-weight: 400;
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #707070
}

.jobObjectCity {
    display: inline-block;
}

.jobObjectAdditionalInfoPart2
{
    margin-top: 5px;
}

.jobObjectJobType {
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #707070
}

.jobObjectPensum {
    display: inline-block;
}

/* Job objects on home page */

/* Container for job list */
.home .jobListContainer #jobList {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    gap: 20px; /* space between cards */
    margin: 0;
    padding: 0;
}

/* Individual job card */
.home .jobObject {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33.333% - 20px); /* 3 cards per row minus gap */
    display: flex;
    flex-direction: column;
}


.home .jobObject:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.home .jobObjectLink {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home .jobObjectTitle {
    padding: 15px 15px 0 15px;
}

.home .jobObjectDescription,
.home .jobObjectAdditionalInfoContainer {
    padding: 15px;
}

.home .jobObjectTitle h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.home .jobObjectDescription {
    font-size: 14px;
    flex-grow: 1;
}

.home .jobObjectAdditionalInfoContainer {
    font-size: 13px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.home .jobObjectDate {
    display: block;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.home .jobObjectCity {
    display: block;
}

.home .jobObjectJobType {
    display: block;
    margin-right: 0;
    padding-right: 0;
    border-right: none
}

.home .jobObjectPensum {
    display: block;
}

.home .jobObjectAdditionalInfoPart2 {
    margin-top: 0;
}

.home #jobCountDisplay
{
    display: none;
}

.home .jobListContainer {
    margin-top: 25px;
    margin-bottom: 20px;
}


@media (max-width: 1279.9px) {

    .jobContainer {
        display: flex;
        gap: 40px;
    }

    .jobFilterContainer {
        flex: initial;
        border-radius: 15px;
        font-size: 16px;
        background-color: #EBF3F9;
        -webkit-mask-image: initial;
        mask-image: initial;
        mask-size: initial;
        mask-repeat: initial;
    }

    .jobFilterContent {
        padding: 40px 15px 15px 15px;
    }

    .jobFilterContainer input[type="text"],
    .jobFilterContainer select {
        width: 100%;
    }

    #jobFilterSearchButton {
        width: 100%;
    }
}

@media (max-width: 1023.9px) {

    .home .jobObject {
        flex: 1 1 100%;
    }
}

@media (max-width: 767.9px) {
    .jobContainer {
        flex-direction: column;
        gap: 10px;
    }

    .jobFilterContainer {
        width: 100%;
    }

    .jobListContainer {
        width: 100%;
    }

    #jobFilterJobTypeContainer {
        display: none;
    }

    #expandFilterButton {
        display: inline-block;
    }

    .jobObjectTitle h2 {
        font-size: 18px;
    }

    .jobObjectDescription {
        font-size: 16px;
    }

    .jobObjectAdditionalInfoContainer {
        font-size: 15px;
    }
}

