/**
 * Dayforce Jobs Listings Styles
 *
 * List-style layout for job listings.
 */

/* Careers Page Hero - ensure h1 uses Bebas */
.careers-hero__title {
    font-family: 'Bebas Neue', sans-serif;
}

/* Careers Jobs Section - remove top padding (hero has bottom) */
.careers-jobs.ya-container {
    padding-top: 0;
}

/* Careers Jobs Header - WYSIWYG content */
.careers-jobs__header {
    margin-bottom: 2rem;
}

.careers-jobs__header h2,
.careers-jobs__header h3,
.careers-jobs__header h4,
.careers-jobs__header h5,
.careers-jobs__header h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

/* Container */
.dayforce-jobs {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 0;
}

/* Filters Section */
.dayforce-jobs__filters {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.dayforce-jobs__search {
    margin-bottom: 1rem;
}

.dayforce-jobs__input {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.dayforce-jobs__input:focus {
    border-color: #008b9c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 139, 156, 0.15);
}

.dayforce-jobs__filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dayforce-jobs__filter {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.dayforce-jobs__filter label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    color: #333;
}

.dayforce-jobs__select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.dayforce-jobs__select:focus {
    border-color: #008b9c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 139, 156, 0.15);
}

.dayforce-jobs__select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Header */
.dayforce-jobs__header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.dayforce-jobs__count {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* Jobs List */
.dayforce-jobs__list {
    width: 100%;
}

/* Job Row */
.dayforce-job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.dayforce-job-row:first-child {
    padding-top: 0;
}

.dayforce-job-row:last-child {
    border-bottom: none;
}

.dayforce-job-row__info {
    flex: 1;
    min-width: 0;
}

.dayforce-job-row__title {
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #008b9c;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.dayforce-job-row__title a {
    color: inherit;
    text-decoration: none;
}

.dayforce-job-row__title a:hover {
    color: #006a77;
    text-decoration: underline;
}

.dayforce-job-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.dayforce-job-row__department {
    color: #008b9c;
    font-weight: 500;
}

.dayforce-job-row__department::after {
    content: "•";
    margin-left: 0.5rem;
    color: #999;
}

.dayforce-job-row__location {
    color: #555;
}

.dayforce-job-row__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dayforce-job-row__apply,
.dayforce-job-row__details {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.dayforce-job-row__apply {
    background: #008b9c;
    color: #fff;
    border: 1px solid #008b9c;
}

.dayforce-job-row__apply:hover {
    background: #006a77;
    border-color: #006a77;
    color: #fff;
    text-decoration: none;
}

.dayforce-job-row__details {
    background: transparent;
    color: #008b9c;
    border: 1px solid #008b9c;
}

.dayforce-job-row__details:hover {
    background: #008b9c;
    color: #fff;
    text-decoration: none;
}

/* Empty State */
.dayforce-jobs__empty,
.dayforce-jobs__no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .dayforce-jobs__filter-row {
        flex-direction: column;
    }

    .dayforce-jobs__filter {
        min-width: 100%;
    }

    .dayforce-job-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dayforce-job-row__actions {
        width: 100%;
    }

    .dayforce-job-row__apply,
    .dayforce-job-row__details {
        flex: 1;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .dayforce-jobs__filters {
        display: none;
    }

    .dayforce-job-row__actions {
        display: none;
    }
}

/* ==========================================================================
   Single Job Page Styles
   ========================================================================== */

.single-job-pg {
    background: #f8f9fa;
    min-height: 60vh;
}

.single-job {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.single-job__breadcrumb {
    font-size: 0.9375rem;
}

.single-job__breadcrumb svg {
    width: 15px;
    height: 15px;
    transform: rotate(90deg);
}

.single-job__breadcrumb svg path {
    fill: #008b9c;

}

.single-job__breadcrumb a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    color: #008b9c;
    text-decoration: none;
}

.single-job__breadcrumb a:hover {
    color: #006a77;
    text-decoration: underline;
}

.single-job__breadcrumb a:hover svg path {
    fill: #006a77;
}

.single-job__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.15rem;
    letter-spacing: 0.02rem;
    margin: 0 0 0.75rem 0;
    color: #222;
    text-transform: uppercase;
}

.single-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9375rem;
    color: #666;
}

.single-job__requirements {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.single-job__description, .single-job__description * {
   font-family: 'Open Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 24px !important;    
    color: #333 !important;
}

.single-job__description h1,
.single-job__description h2,
.single-job__description h3,
.single-job__description h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.single-job__description p {
    margin-bottom: 1rem;
}

.single-job__description ul,
.single-job__description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-job__description li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .single-job {
        padding: 1.5rem;
        margin: 0 -15px;
        border-radius: 0;
    }

    .single-job__title {
        font-size: 1.65rem;
    }

    .single-job__meta {
        gap: 0.7rem;
    }

    .single-job__department::after,
    .single-job__date::before {
        display: none;
    }
}
