/* Copy the exact working team slider structure but adapt for job cards */

/* Force left alignment for job postings slider */
.job_postings_container .row {
    justify-content: flex-start !important;
}

.job_postings_slider {
    text-align: left;
}

.job_postings_slider .slick-track {
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
}

.job_postings_slider .slick-slide {
    float: none !important;
}

/* Ensure the list itself is left-aligned */
.job_postings_slider .slick-list {
    overflow: visible;
    text-align: left;
}

.job_postings_container .card {
    position: relative;
    margin-right: 25px; /* Increased gap between slides */
    background-size: cover;
    background-position: center center;
    margin-bottom: 15px;
    max-height: 850px; /* Much taller card to match reference */
    cursor: default;
}

.job_postings_container .card:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

/* White floating content box */
.job_postings_container .job-card__content {
    position: absolute;
    width: 65%; /* Smaller width to match reference */
    max-width: 280px; /* Smaller max width */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 25px; /* Reduced padding for smaller box */
    text-align: center;
    z-index: 2;
    
    /* Realistic shadow - no border radius */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 8px 25px -5px rgba(0, 0, 0, 0.1),
        0 16px 35px -8px rgba(0, 0, 0, 0.09),
        0 25px 50px -12px rgba(0, 0, 0, 0.08);
    
    transition: all 0.3s ease;
}

.job_postings_container .card:hover .job-card__content {
    transform: translate(-50%, -50%) translateY(-8px);
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.12),
        0 16px 40px -8px rgba(0, 0, 0, 0.12),
        0 25px 55px -10px rgba(0, 0, 0, 0.11),
        0 35px 75px -15px rgba(0, 0, 0, 0.1);
}

/* Job content styling */
.job_postings_container .job-title {
    font-size: 15px; /* Reduced to fit smaller box */
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0; /* Reduced spacing */
    line-height: 1.2;
    text-transform: uppercase;
  font-family:'minerva-modern','Trebuchet MS';
}

.job_postings_container .job-location {
    font-size: 10px; /* Smaller location text */
    color: #666;
    margin: 0 0 15px 0; /* Reduced spacing */
    font-weight: 400;
  font-family:'minerva-modern','Trebuchet MS';
}

.job_postings_container .job-description {
    font-size: 10px; /* Smaller description */
    color: #777;
    line-height: 1.4; 
    margin: 0 0 18px 0; /* Reduced spacing */
    text-align: center;
  font-family: 'Raleway';
}

.job_postings_container .apply-btn {
    display: inline-block;
    background: #333;
    color: white;
    padding: 10px 20px; /* Smaller button to fit */
    text-decoration: none;
    font-weight: 600;
    font-size: 11px; /* Smaller button text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
  font-family:'minerva-modern','Trebuchet MS';
}

.job_postings_container .apply-btn:hover {
    background: #555;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* COPY EXACT SLIDER NAVIGATION FROM WORKING TEAM SLIDER */
.job_postings_slider .slick-list {
    overflow: visible;
}

.job_postings_slider .slick-dots {
    display: none !important;
}

.job_postings_slider {
    position: relative;
    margin-bottom: 80px;
    user-select: none;
}

.job_postings_slider .slick-arrow {
    position: absolute !important;
    bottom: -70px !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #e8e2df;
    border-radius: 0;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: black;
}

.job_postings_slider .slick-prev {
    left: calc(50% - 150px) !important;
}

.job_postings_slider .slick-next {
    left: calc(50% + 10px) !important;
}

.job_postings_slider .slick-arrow:hover {
    background: #333;
    color: white;
    border-color: #333;
    transform: none !important;
}

.job_postings_slider .slick-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 207, 174, 0.3);
}

.job_postings_slider .slick-arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    transition: all 0.3s ease;
}

.job_postings_slider .slick-prev::before {
    border-width: 6px 8px 6px 0;
    border-color: transparent black transparent transparent;
}

.job_postings_slider .slick-next::before {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent black;
}

.job_postings_slider .slick-arrow:hover::before {
    border-color: transparent white transparent transparent;
}

.job_postings_slider .slick-next:hover::before {
    border-color: transparent transparent transparent white;
}

.job_postings_slider .slick-arrow.slick-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.job_postings_slider .slick-arrow.slick-disabled:hover {
    background: transparent;
    color: black;
    border-color: #ddd;
    transform: none !important;
}

.job_postings_slider .slick-arrow.slick-disabled:hover::before {
    border-color: transparent black transparent transparent;
}

.job_postings_slider .slick-next.slick-disabled:hover::before {
    border-color: transparent transparent transparent black;
}

.mb-50 {
    margin-bottom: 0px !important;
}

/* Responsive adjustments - matching team slider */
@media (max-width: 768px) {
    .job_postings_container .card {
        margin-right: 15px; /* Reduced gap on mobile */
        max-height: 480px; /* Smaller height for mobile but still taller */
    }
    
    .job_postings_container .job-card__content {
        width: 80%; /* Wider on mobile for readability */
        max-width: 300px; /* Allow slightly wider on mobile */
        padding: 25px 20px; /* Adjusted mobile padding */
    }
    
    .job_postings_container .job-title {
        font-size: 18px; /* Bigger mobile title */
    }
    
    .job_postings_container .job-location {
        font-size: 10px; /* Bigger mobile location */
        margin-bottom: 15px;
    }
    
    .job_postings_container .job-description {
        font-size: 10px; 
        margin-bottom: 18px;
        line-height: 1.4;
    }
    
    .job_postings_container .apply-btn {
        padding: 12px 22px; /* Bigger mobile button */
        font-size: 12px;
    }
    
    .job_postings_slider {
        margin-bottom: 70px;
    }
    
    .job_postings_slider .slick-arrow {
        width: 40px;
        height: 40px;
        bottom: -60px !important;
    }
    
    .job_postings_slider .slick-prev {
        left: calc(50% - 150px) !important;
    }
    
    .job_postings_slider .slick-next {
        left: calc(50% + 10px) !important;
    }
    
    .job_postings_slider .slick-prev::before {
        border-width: 6px 9px 6px 0;
    }
    
    .job_postings_slider .slick-next::before {
        border-width: 6px 0 6px 9px;
    }
}

/* Additional mobile adjustments for very small screens */
@media (max-width: 480px) {
    .job_postings_container .card {
        max-height: 400px;
    }
    
    .job_postings_container .job-card__content {
        width: 85%;
        padding: 20px 18px;
    }
    
    .job_postings_container .job-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .job_postings_container .job-location {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .job_postings_container .job-description {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .job_postings_container .apply-btn {
        padding: 10px 18px;
        font-size: 11px;
    }
}
</style>
