/* Job offer detail. Loaded only by the oferta template in both CSS modes. */

#oferta.wrapper.xs {
    width: 100%;
    max-width: 1000px;
}

#oferta > header .title {
    left: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

#oferta > header .bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 24px;
}

#oferta .status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    color: #2a843e;
    background-color: #edf6ef;
}

#oferta .status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: currentColor;
}

#oferta .status[data-render-status="expired"] {
    color: #666;
    background-color: #f0f0f0;
}

#oferta > header .bottom .text {
    font-size: 1.5em;
    line-height: 1.5;
    color: #505050;
}

#oferta > .info {
    margin-top: 32px;
}

#oferta > .info.border {
    padding-top: 32px;
    border-top: 1px solid #dce6df;
}

#oferta .info > .caption {
    font-size: 1.5em;
    line-height: 1.4;
    color: #2a843e;
}

#oferta .content {
    --content-color: #505050;
    margin-top: 20px;
    overflow-wrap: anywhere;
}

#oferta .content p,
#oferta .content li {
    color: #505050;
    line-height: 1.65;
}

#oferta .content b {
    font-weight: 700;
}

#oferta .content a {
    color: #2a843e;
    border-bottom-color: currentColor;
}

#oferta .content ul li::before {
    background-color: #2a843e;
}

#oferta .content img {
    max-width: 100%;
    height: auto;
}

#oferta .file {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

#oferta .file .filetype {
    flex-shrink: 0;
}

#oferta .file .text {
    min-width: 0;
    font-size: 1.6em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#oferta > .end {
    margin-top: 32px;
}

#oferta .rounded-btn,
#ofertas .news .rounded-btn {
    box-sizing: border-box;
    left: 0;
    padding: 14px 26px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

#oferta .end .rounded-btn {
    margin-top: 0;
}

#oferta a.rounded-btn,
#ofertas .news a.rounded-btn {
    color: #fff;
    background-color: #2a843e;
    box-shadow: none;
}

#oferta a.rounded-btn:hover,
#ofertas .news a.rounded-btn:hover {
    background-color: #194e50;
}

#oferta a:focus-visible,
#ofertas a:focus-visible {
    outline: 2px solid #194e50;
    outline-offset: 4px;
}

#oferta .expired,
#ofertas .news .expired {
    color: #666;
    background-color: #f0f0f0;
    box-shadow: none;
}

/* Related offers keep the existing markup and application links. */
#ofertas > .intro {
    overflow: hidden;
    border-radius: 14px;
}

#ofertas > .intro .foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
}

#ofertas > .intro .heading {
    font-size: clamp(3.2em, 5vw, 6em);
    line-height: 1.1;
}

#ofertas > .news-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 32px 0 0;
}

#ofertas > .news-list > li {
    display: flex;
    width: auto;
    min-width: 0;
    padding: 0;
}

#ofertas .news {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid #dce6df;
    border-radius: 14px;
    overflow-wrap: anywhere;
}

#ofertas .news .title {
    left: 0;
    margin-top: 0;
    font-size: 2.4em;
    line-height: 1.2;
    color: #2a843e;
}

#ofertas .news .text {
    flex-grow: 1;
    margin-top: 16px;
}

#ofertas .news .rounded-btn {
    margin-top: 24px;
    max-width: 100%;
}

#ofertas .news[data-expired="true"] .title {
    color: #666;
}

#ofertas > .button-container,
#ofertas > .pager {
    margin-top: 32px;
}

@media (min-width: 768px) {
    #oferta > .info.border {
        margin-top: 40px;
        padding-top: 40px;
    }

    #ofertas > .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 40px;
    }
}

@media (min-width: 1280px) {
    #ofertas > .news-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
