.job-detail-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.job-detail-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    display: none;
}

/* Slide states */
.slide.active,
.slide.previous,
.slide.next {
    opacity: 1;
    display: block;
}

/* Slide positions */
.slide-first,
.slide-last {
    width: 100%;
    left: 0;
    z-index: 2;
}

.slide-first-next {
    width: 10%;
    left: 90%;
    z-index: 1;
}

.slide-middle {
    width: 100%;
    left: 0;
    z-index: 2;
    object-fit: unset;
}

.slide-last-previous,
.slide-middle-previous {
    width: 0;
    left: 0;
    z-index: 1;
}

.slide-middle-next {
    width: 0;
    left: 100%;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--main-bg-color);
}

.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot:hover {
    background: #B0B0B0;
}

.dot.active {
    background: #3B7C8F;
}

/* Responsive styles */
@media (max-width: 768px) {
    .job-detail-slider {
        height: 270px;
    }
    
    .slider-dots {
        padding: 6px 12px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .job-detail-slider {
        height: 250px;
    }
}

@media (max-width: 375px) {
    .job-detail-slider {
        height: 230px;
    }
    
    /* Slide positions */
    .slide-first,
    .slide-last,
    .slide-middle {
        width: 100%;
        left: 0;
    }

    .slide-first-next,
    .slide-middle-next {
        width: 0%;
        left: 100%;
    }

    .slide-last-previous,
    .slide-middle-previous  {
        width: 0%;
        left: 0;
    }
}

/* Loading animation */
@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide.active {
    animation: slideIn 0.5s ease-out;
}
