/* =========================================================
   JOBS PREVIEW PAGE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.jobs-preview-page {
    min-height: calc(100vh - 70px);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    background: #f1f5f9;
}

.jobs-preview-wrapper {
    width: min(1100px, 100%);
    min-height: 550px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 48% 52%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(8, 61, 99, 0.14);
}


/* =========================================================
   LEFT PHOTO SLIDESHOW
========================================================= */

.jobs-preview-photos {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    background: #083d63;
}

.jobs-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 1s ease,
        transform 5s ease;
}

.jobs-preview-image.active {
    opacity: 1;
    transform: scale(1);
}

.jobs-preview-photos::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(3, 35, 59, 0.05) 30%,
            rgba(3, 35, 59, 0.82) 100%
        );
    pointer-events: none;
}


/* =========================================================
   PHOTO TEXT
========================================================= */

.photo-content {
    position: absolute;
    z-index: 3;
    left: 25px;
    right: 25px;
    bottom: 25px;
    color: #ffffff;
}

.photo-content span {
    display: inline-block;
    margin-bottom: 7px;
    color: #f2c45f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.photo-content h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.15;
}

.photo-content p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   PHOTO DOTS
========================================================= */

.jobs-photo-dots {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 7px;
}

.jobs-photo-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.jobs-photo-dot.active {
    border-color: #d8a83e;
    background: #d8a83e;
}


/* =========================================================
   RIGHT CONTENT
========================================================= */

.jobs-preview-content {
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jobs-preview-label {
    display: inline-block;
    margin-bottom: 5px;
    color: #d8a83e;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.jobs-preview-content h1 {
    margin: 0;
    color: #083d63;
    font-size: clamp(27px, 3vw, 37px);
    line-height: 1.13;
}

.jobs-preview-introduction {
    margin: 10px 0 17px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   DESTINATIONS
========================================================= */

.jobs-destinations {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.jobs-destination {
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 11px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.jobs-destination:hover {
    border-color: #d8a83e;
    background: #fffaf0;
    transform: translateX(3px);
}

.destination-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f2f8;
    font-size: 22px;
}

.jobs-destination h3 {
    margin: 0;
    color: #083d63;
    font-size: 15px;
    line-height: 1.2;
}

.jobs-destination p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   BUTTONS
========================================================= */

.jobs-preview-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.continue-jobs-button,
.back-home-button {
    min-height: 43px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.continue-jobs-button {
    background: #083d63;
    color: #ffffff;
}

.continue-jobs-button:hover {
    background: #0c5b8f;
    color: #ffffff;
    transform: translateY(-2px);
}

.back-home-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #083d63;
}

.back-home-button:hover {
    border-color: #083d63;
    background: #edf6fc;
    color: #083d63;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .jobs-preview-page {
        min-height: auto;
        padding: 40px 15px;
    }

    .jobs-preview-wrapper {
        grid-template-columns: 1fr;
    }

    .jobs-preview-photos {
        min-height: 360px;
    }

    .jobs-preview-content {
        padding: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .jobs-preview-page {
        padding: 25px 10px;
    }

    .jobs-preview-wrapper {
        border-radius: 14px;
    }

    .jobs-preview-photos {
        min-height: 280px;
    }

    .photo-content {
        left: 17px;
        right: 17px;
        bottom: 17px;
    }

    .photo-content h2 {
        font-size: 23px;
    }

    .jobs-preview-content {
        padding: 23px 17px;
    }

    .jobs-preview-content h1 {
        font-size: 25px;
    }

    .jobs-preview-actions {
        flex-direction: column;
    }

    .continue-jobs-button,
    .back-home-button {
        width: 100%;
    }

}