/**
 * Jobs Module Styles
 * REFACTORED: Base card styles now in /assets/css/components/cards.css
 * This file contains only job-specific styling
 *
 * @package Bucksalc
 * @version 2.0.0
 */

/* ======================
   WordPress Block Overrides
   ====================== */

/* Override WordPress block padding that affects cards */
.wp-block.fluid_text .inner .bucksalc-card {
    padding: 0 !important;
}

/* Also remove padding from article elements within WordPress blocks */
.wp-block.fluid_text .inner article.bucksalc-card {
    padding: 0 !important;
}

/* ======================
   Filters
   ====================== */
.jobs-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.jobs-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.jobs-filters label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.jobs-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.jobs-filters select:focus {
    outline: none;
    border-color: var(--color-primary, #2E2766);
}

/* ======================
   No Results Message
   ====================== */
.no-jobs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* ======================
   Job-Specific Card Elements
   ====================== */

/* Closing Date Badge */
.job-closing-date {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.job-closing-date.expired {
    background: #fff5f5;
    border-color: #dc3545;
    color: #333;
}

.job-closing-date .expired-label {
    color: #c92a2a;
    font-weight: 700;
}

/* ======================
   Archive Link Section
   ====================== */
.jobs-archive-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* ======================
   Single Job Page
   ====================== */
.jobs-single-container {
    max-width: var(--container-max-width, 1280px);
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.jobs-single-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.jobs-main-column {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jobs-main-column .jobs-title {
    margin-top: 0;
    color: var(--color-primary, #2E2766);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.jobs-expired-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #856404;
}

.jobs-description {
    line-height: 1.6;
    color: #666;
}

.jobs-description h2,
.jobs-description h3,
.jobs-description h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.jobs-description ul,
.jobs-description ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.jobs-description p {
    margin-bottom: 1rem;
}

.jobs-description p:last-child {
    margin-bottom: 0;
}

.jobs-how-to-apply {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.75rem;
    margin-top: 2.5rem;
}

.jobs-how-to-apply h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--color-primary, #2E2766);
    font-size: 1.5rem;
}

.jobs-how-to-apply p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.jobs-how-to-apply ul,
.jobs-how-to-apply ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.jobs-back-button {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.jobs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #666;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.jobs-back-link:hover {
    background: #444;
    color: #fff;
    transform: translateX(-2px);
}

.jobs-back-link svg {
    transition: transform 0.3s ease;
}

.jobs-back-link:hover svg {
    transform: translateX(-3px);
}

.jobs-sidebar-column {
    background: #f8f8f8;
    padding: 1.75rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.jobs-sidebar-logo {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.jobs-sidebar-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.jobs-sidebar-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.jobs-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.jobs-sidebar-item.expired {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 4px;
    border-bottom: none;
}

.jobs-sidebar-item h3 {
    font-size: 1rem;
    margin: 0 0 0.625rem 0;
    color: #333;
    font-weight: 600;
}

.jobs-sidebar-item p {
    margin: 0;
    color: #666;
    font-size: 0.9375rem;
}

.jobs-sidebar-item .expired-label {
    display: block;
    color: #dc3545;
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* ======================
   Responsive Styles
   ====================== */
@media (max-width: 1024px) {
    .jobs-single-content {
        grid-template-columns: 1fr;
    }

    .jobs-sidebar-column {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .jobs-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .jobs-main-column {
        padding: 1.5rem;
    }

    .jobs-main-column .jobs-title {
        font-size: 1.5rem;
    }

    .jobs-how-to-apply {
        padding: 1.25rem;
    }

    .jobs-how-to-apply h2 {
        font-size: 1.25rem;
    }

    .jobs-sidebar-column {
        padding: 1.25rem;
    }

    .job-card {
        padding: 1.25rem;
    }

    .job-card .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .jobs-single-container {
        margin: 1rem auto;
    }

    .jobs-main-column {
        padding: 1.25rem;
    }

    .jobs-main-column .jobs-title {
        font-size: 1.25rem;
    }

    .job-card {
        padding: 1rem;
    }

    .job-card .job-title {
        font-size: 1.125rem;
    }
}
