/**
 * OtoTheme overrides for the HireZoot / WP Job Openings plugin frontend (grid view).
 * Targets the plugin's own class names — no plugin templates are overridden.
 * Layout (column widths/breakpoints) is left to the plugin's own CSS;
 * this file only themes color, type, spacing and hover/focus states.
 */

.awsm-jobs-theme-wrap .awsm-job-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    margin: 1rem;
    border: 2px solid rgba(30, 58, 95, 0.1);
    border-radius: 1rem;
    background: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.awsm-jobs-theme-wrap .awsm-job-item:hover {
    border-color: rgba(30, 58, 95, 0.3);
    transform: translateY(-4px);
}

.awsm-jobs-theme-wrap .awsm-job-post-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #141412;
    margin: 0 0 0.75rem;
}

.awsm-jobs-theme-wrap .awsm-job-card-excerpt {
    color: #5A5A5A;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.awsm-jobs-theme-wrap .awsm-grid-right-col {
    color: #5A5A5A;
    font-size: 0.9375rem;
    margin-top: auto;
}

.awsm-jobs-theme-wrap .awsm-job-more-container .awsm-job-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1E3A5F;
    font-weight: 600;
}

/* Single job page content */
.awsm-job-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: 'Inter', sans-serif;
    color: #141412;
}

.awsm-job-content h1,
.awsm-job-content h2 {
    color: #141412;
    font-weight: 700;
}

.awsm-job-content h3 {
    color: #1E3A5F;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
}

.awsm-job-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.awsm-job-content ul li {
    color: #141412;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.awsm-job-content .awsm-job-head {
    color: #5A5A5A;
    margin-bottom: 1.5rem;
}

/* Application form */
.awsm-job-form {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.awsm-job-form-inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #141412;
    margin-bottom: 1.5rem;
}

.awsm-job-form-group {
    margin-bottom: 1.25rem;
}

.awsm-job-form-group label {
    display: block;
    font-weight: 600;
    color: #141412;
    margin-bottom: 0.375rem;
}

.awsm-job-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E3DACC;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #141412;
    background: #F1EEE7;
}

.awsm-job-form-control:focus {
    outline: none;
    border-color: #2E5C8A;
    background: #ffffff;
}

.awsm-job-form-error {
    color: #B3261E;
}

.awsm-application-submit-btn {
    background: #1E3A5F;
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.awsm-application-submit-btn:hover {
    background: #2E5C8A;
}

/**
 * Mobile fix (found during Task 9 end-to-end/responsive verification):
 * the plugin's own .awsm-job-form-inner ships a fixed 35px card padding
 * designed for its desktop two-column layout. Stacked with this theme's
 * .awsm-job-form gutter (1.5rem/24px each side), that ate ~120px of
 * horizontal space on a 375px viewport and squeezed application form
 * fields down to ~159px wide (42% of viewport) — hard to read/type into.
 * Tightening both paddings below the 768px breakpoint (already used
 * elsewhere in this file) keeps the card look on tablet/desktop while
 * giving mobile fields their full width back.
 */
@media (max-width: 768px) {
    .awsm-job-form {
        padding: 0 1rem 3rem;
    }

    .awsm-job-form-inner {
        padding: 1.25rem;
    }
}
