/* =============================================================================
   Diakonie RDW Jobs – List
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Filter box
   ----------------------------------------------------------------------------- */

.jobs-filter {
    background-color: #462672;
    padding: 24px 24px 32px;
    margin-bottom: 32px;
}

.jobs-filter label {
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 6px;
    display: block;
}

.jobs-filter .form-control {
    height: 42px;
    font-size: 16px;
    border: 1px solid #ffffff;
    border-radius: 0;
    box-shadow: none;
    color: #444444;
    background-color: #ffffff;
    padding: 8px 12px;
}

.jobs-filter .form-control:focus {
    border-color: #009bdc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0 2px #009bdc;
    outline: none;
}

.jobs-filter .btn-primary {
    height: 42px;
    font-size: 16px;
    font-weight: bold;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 8px 24px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.jobs-filter .btn-primary:hover,
.jobs-filter .btn-primary:focus {
    background-color: #ffffff;
    color: #462672;
    text-decoration: underline;
}

/* Align button with inputs on desktop */
.jobs-filter .form-group {
    margin-bottom: 0;
    padding: .5rem;
}

@media (max-width: 991px) {
    .jobs-filter .form-group {
        margin-bottom: 16px;
    }

    .jobs-filter .form-group:last-child {
        margin-bottom: 0;
    }
}

/* -----------------------------------------------------------------------------
   Result count & warnings
   ----------------------------------------------------------------------------- */

.jobs-count {
    font-size: 16px;
    color: #777777;
    margin-bottom: 16px;
}

.jobs-wrap .alert-warning {
    border-radius: 0;
    font-size: 16px;
    margin-bottom: 16px;
}

/* -----------------------------------------------------------------------------
   Job list
   ----------------------------------------------------------------------------- */

.jobs-list {
    margin: 0;
    padding: 0;
}

.jobs-list__item {
    background-color: #ffffff;
    border: 1px solid #e2e1e2;
    margin-bottom: 8px;
    padding: 20px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jobs-list__item:hover {
    border-color: #462672;
    box-shadow: 0 2px 8px rgba(70, 38, 114, 0.12);
}

.jobs-list__item .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Title */

.jobs-list__title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 8px;
}

.jobs-list__title a {
    color: #502974;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.jobs-list__title a:hover {
    color: #502974;
    text-decoration: none;
    border-bottom-color: #502974;
}

/* Meta row */

.jobs-list__meta {
    font-size: 16px;
    color: #444444;
    margin-bottom: 6px;
    line-height: 1.5;
}

.jobs-list__meta span {
    display: inline-block;
    margin-right: 16px;
}

.jobs-list__meta span:last-child {
    margin-right: 0;
}

.jobs-list__location svg {
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-right: 3px;
    color: #462672;
}

.jobs-list__region {
   /* color: #777777; */
}

.jobs-list__type {
}

.jobs-list__id {
    /*  color: #777777; */
      font-size: 14px;
  }

  /* Deadline */

.jobs-list__deadline {
    font-size: 14px;
   /* color: #777777; */
    margin-top: 2px;
}

/* Action column */

.jobs-list__action {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.jobs-list__action .btn-primary {
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0;
    background-color: #462672;
    border-color: #462672;
    color: #ffffff;
    padding: 8px 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.jobs-list__action .btn-primary:hover,
.jobs-list__action .btn-primary:focus {
    background-color: #ffffff;
    color: #462672;
    border-color: #462672;
    text-decoration: underline;
}

/* Empty state */

.jobs-list + p.text-muted {
    padding: 48px 0;
    font-size: 18px;
}

/* -----------------------------------------------------------------------------
   Card variant (List2 template)
   ----------------------------------------------------------------------------- */

.jobs-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e2e1e2;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-card:hover,
.jobs-card:focus {
    background-color: #462672;
    border-color: #462672;
    box-shadow: 0 4px 12px rgba(70, 38, 114, 0.3);
    text-decoration: none;
    color: #ffffff;
    outline: none;
}

.jobs-card__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    min-height: 80px;
}

.jobs-card__left {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 20px 24px;
}

.jobs-card__right {
    width: 220px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 20px 24px;
    border-left: 1px solid #e2e1e2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: start;
    transition: border-color 0.2s ease;
}

.jobs-card:hover .jobs-card__right,
.jobs-card:focus .jobs-card__right {
    border-left-color: rgba(255, 255, 255, 0.25);
}

.jobs-card__title {
    font-size: 18px;
    font-weight: bold;
    color: #502974;
    margin: 0 0 6px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.jobs-card:hover .jobs-card__title,
.jobs-card:focus .jobs-card__title {
    color: #ffffff;
}

.jobs-card__employer {
    font-size: 14px;
    color: #666666;
    margin: 0;
    transition: color 0.2s ease;
}

.jobs-card:hover .jobs-card__employer,
.jobs-card:focus .jobs-card__employer {
    color: rgba(255, 255, 255, 0.8);
}

.jobs-card__meta-item {
    font-size: 14px;
    color: #444444;
    line-height: 1.6;
    transition: color 0.2s ease;
    margin-bottom: 4px;
}

.jobs-card:hover .jobs-card__meta-item,
.jobs-card:focus .jobs-card__meta-item {
    color: #ffffff;
}

@media (max-width: 767px) {
    .jobs-card__body {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .jobs-card__right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e1e2;
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .jobs-card:hover .jobs-card__right,
    .jobs-card:focus .jobs-card__right {
        border-left-color: transparent;
        border-top-color: rgba(255, 255, 255, 0.25);
    }
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .jobs-filter {
        padding: 20px 16px 24px;
    }

    .jobs-list__item {
        padding: 16px;
    }

    .jobs-list__item .row {
        display: block;
    }

    .jobs-list__action {
        margin-top: 16px;
        justify-content: flex-start;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
    }

    .jobs-list__action .btn-primary {
        width: 100%;
        text-align: center;
    }

    .jobs-list__meta span {
        display: inline-block;
        margin-right: 12px;
        margin-bottom: 2px;
    }
}
