/* =========================================================
   VIKING TRAVEL — WORK & TRAVEL JOB OFFERS
   ========================================================= */

.offers-catalog{
    margin:35px 0 60px;
    scroll-margin-top:100px;
}

/* ---------- Heading ---------- */

.offers-heading h2{
    font-size:34px;
    line-height:1.15;
    margin:8px 0 12px;
    color:#092149;
}

.offers-heading p{
    max-width:760px;
    font-size:17px;
    line-height:1.6;
    color:#526880;
}


/* =========================================================
   FILTERS
   ========================================================= */

.offer-controls{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:16px;

    background:#eaf1f8;
    padding:22px;
    border-radius:15px;
    margin:25px 0 20px;
}

.offer-controls label{
    font-size:14px;
    font-weight:750;
    color:#092149;

    display:grid;
    gap:8px;
}

.offer-controls input,
.offer-controls select{
    min-width:0;
    width:100%;

    font:inherit;
    font-weight:400;
    font-size:16px;

    border:1px solid #b8cada;
    border-radius:8px;
    background:#fff;

    min-height:46px;
    padding:10px 12px;

    transition:border-color .2s ease, box-shadow .2s ease;
}

.offer-controls input:focus,
.offer-controls select:focus{
    outline:none;
    border-color:#1686c4;
    box-shadow:0 0 0 3px rgba(22,134,196,.12);
}


/* =========================================================
   OFFER GRID
   ========================================================= */

.offer-results{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    align-items:stretch;
}


/* =========================================================
   OFFER CARD
   ========================================================= */

.offer-card{
    border:1px solid #d5e2ed;
    border-radius:16px;
    background:#fff;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    min-width:0;

    box-shadow:0 3px 12px rgba(9,33,73,.04);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.offer-card:hover{
    transform:translateY(-3px);
    border-color:#bfd4e5;
    box-shadow:0 12px 30px rgba(9,33,73,.10);
}


/* ---------- Offer photo ---------- */

.offer-card > img{
    display:block;
    width:100%;
    height:210px;

    object-fit:cover;
    object-position:center;

    background:#edf3f8;
}


/* ---------- Body ---------- */

.offer-body{
    padding:23px;

    display:flex;
    flex-direction:column;
    flex:1;
}


/* ---------- Event / Job Fair ---------- */

.offer-card .event-label{
    display:inline-block;

    align-self:flex-start;

    font-size:12px;
    line-height:1.2;
    font-weight:800;

    color:#e60023;
    background:#fff0f2;

    padding:6px 9px;
    border-radius:6px;

    margin:0 0 13px;

    text-transform:uppercase;
    letter-spacing:.03em;
}


/* ---------- Employer ---------- */

.offer-employer{
    font-size:14px;
    font-weight:800;

    color:#1686c4;

    margin:0 0 7px;

    text-transform:uppercase;
    letter-spacing:.02em;
}


/* ---------- Job title ---------- */

.offer-card h3{
    color:#092149;

    font-size:24px;
    line-height:1.2;

    margin:0 0 9px;

    font-weight:850;
}


/* ---------- Location ---------- */

.offer-location{
    color:#526880;

    font-size:15px;

    margin:0 0 18px;
}


/* ---------- PAY ---------- */

.offer-pay{
    font-size:30px;
    line-height:1;

    font-weight:850;

    color:#092149;

    margin:3px 0 22px;
}

.offer-pay span{
    font-size:14px;

    font-weight:500;

    color:#62768b;
}


/* =========================================================
   JOB INFORMATION
   ========================================================= */

.offer-card dl{
    display:grid;

    grid-template-columns:minmax(0,1fr) auto;

    column-gap:16px;
    row-gap:9px;

    font-size:14px;

    margin:0 0 20px;

    padding:16px 0;

    border-top:1px solid #edf1f5;
    border-bottom:1px solid #edf1f5;
}

.offer-card dt{
    color:#62768b;
    min-width:0;
}

.offer-card dd{
    margin:0;

    text-align:right;

    font-weight:750;

    color:#092149;

    max-width:150px;

    overflow-wrap:anywhere;
}


/* =========================================================
   OFFER DETAILS
   ========================================================= */

.offer-card details{
    margin:0 0 20px;
}

.offer-card summary{
    cursor:pointer;

    font-size:14px;
    font-weight:800;

    color:#145994;

    padding:3px 0;

    transition:color .2s ease;
}

.offer-card summary:hover{
    color:#e60023;
}

.offer-detailbox{
    margin-top:14px;

    padding:15px;

    background:#f5f8fb;

    border-radius:10px;
}

.offer-detailbox h4{
    font-size:15px;

    margin:14px 0 5px;

    color:#092149;
}

.offer-detailbox h4:first-child{
    margin-top:0;
}

.offer-detailbox p{
    white-space:pre-line;

    font-size:14px;
    line-height:1.55;

    color:#40556c;

    margin:5px 0 11px;
}


/* ---------- Employer website ---------- */

.employer-link{
    display:inline-block;

    margin-top:8px;

    font-size:14px;
    font-weight:750;

    color:#145994;

    text-decoration:none;
}

.employer-link:hover{
    text-decoration:underline;
}


/* =========================================================
   VIEW OFFER BUTTON
   ========================================================= */

.offer-card .btn{
    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;
    min-height:48px;

    box-sizing:border-box;

    margin-top:auto;

    padding:12px 18px;

    border-radius:7px;

    background:#f20b2f;
    color:#fff;

    text-decoration:none;

    text-align:center;

    font-size:14px;
    font-weight:850;

    letter-spacing:.015em;

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.offer-card .btn:hover{
    background:#d90025;

    box-shadow:0 6px 16px rgba(242,11,47,.20);
}

.offer-card .btn:active{
    transform:translateY(1px);
}


/* =========================================================
   EMPTY RESULTS
   ========================================================= */

.offer-empty{
    padding:28px;

    background:#f0f5fa;

    border-radius:14px;

    grid-column:1/-1;

    font-size:17px;
    line-height:1.6;

    color:#526880;
}


/* =========================================================
   RESET FILTER
   ========================================================= */

.offer-reset{
    font:inherit;

    background:none;

    border:0;

    color:#125d98;

    text-decoration:underline;

    padding:16px 0;

    cursor:pointer;
}

.offer-reset:hover{
    color:#e60023;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:950px){

    .offer-controls{
        grid-template-columns:1fr 1fr;
    }

    .offer-results{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:600px){

    .offers-catalog{
        margin-top:25px;
    }

    .offers-heading h2{
        font-size:29px;
    }

    .offer-controls{
        grid-template-columns:1fr;

        padding:17px;

        gap:13px;
    }

    .offer-results{
        grid-template-columns:1fr;

        gap:18px;
    }

    .offer-card > img{
        height:auto;
        aspect-ratio:3/2;
    }

    .offer-body{
        padding:19px;
    }

    .offer-card h3{
        font-size:22px;
    }

    .offer-pay{
        font-size:27px;
    }

}