/**
 * Jobs Listing Block Styles
 *
 * Section displaying job cards from the Jobs CPT.
 * Each card shows: icon, job title (as link), and location.
 *
 * Based on the careers-jobs section from careers.html.
 * Job title links use the same class as home-hero pathway cards: .home-cta-link
 * (see assets/css/style.css). Underline applies only to .link-label; the arrow
 * matches HTML reference and does not inherit underline.
 */

/**
 * Jobs Listing Block - Full Width Styles
 *
 * Matches the EverSmith HTML design exactly:
 * - Full width section (100%, not 100vw with breakout)
 * - White background
 * - 3-column card grid on desktop
 */
.jobs-listing-block {
    position: relative;
    width: 100%;
    padding: 0 80px 100px;
    background: #fff;
    box-sizing: border-box;
}

/* Inner container */
.jobs-listing-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Section header */
.jobs-listing-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.jobs-listing-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--smith-grey, #404a50);
    margin: 0;
}

.jobs-listing-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--smith-grey, #404a50);
    margin: 0;
}

/* Cards grid - 3 columns */
.jobs-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* Individual job card */
.jobs-listing-card {
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    border-radius: 8px;
    background: #f6fbfc;
    box-shadow: 0 4px 5px -1px rgba(0, 88, 95, 0.12);
    min-width: 0;
}

/* Card icon container */
.jobs-listing-card-icon {
    width: 22px;
    height: 14px;
    margin-bottom: 16px;
}

.jobs-listing-card-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card title wraps the CTA link (styling: .home-cta-link from theme style.css, same as home-hero cards) */
.jobs-listing-card-title {
    margin: 0 0 8px;
}

/* Card location */
.jobs-listing-card-location {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey, #404a50);
    margin: 0;
}

/* Empty state message */
.jobs-listing-empty {
    padding: 40px 24px;
    text-align: center;
    background: #f6fbfc;
    border-radius: 8px;
}

.jobs-listing-empty p {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey, #404a50);
    margin: 0;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet breakpoint - 1024px */
@media (max-width: 1024px) {
    .jobs-listing-block {
        padding-left: 32px;
        padding-right: 32px;
    }

    /* Cards become 1 column on tablet */
    .jobs-listing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jobs-listing-title {
        font-size: 28px;
    }

    .jobs-listing-card {
        padding: 32px 20px;
    }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
    .jobs-listing-block {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 60px;
    }

    .jobs-listing-inner {
        gap: 32px;
    }

    .jobs-listing-title {
        font-size: 24px;
    }

    .jobs-listing-subtitle {
        font-size: 16px;
    }

    .jobs-listing-grid {
        gap: 16px;
    }

    .jobs-listing-card {
        padding: 24px 16px;
    }

    /* .home-cta-link font sizes handled in theme style.css at tablet breakpoint */

    .jobs-listing-card-location {
        font-size: 14px;
    }
}

/* Small mobile breakpoint - 480px */
@media (max-width: 480px) {
    .jobs-listing-block {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 48px;
    }

    .jobs-listing-card {
        padding: 20px 16px;
    }
}
