/* Arch Holdings Career Plugin - Career Cards Grid */

/* Main Container */
.ah-career-root {
    width: 100%;
}

/* Filter Container */
.ah-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

/* Filter Buttons */
.ah-filter-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666666;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.ah-filter-btn:hover {
    background: #e8f0fe;
    color: #2563eb;
}

.ah-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
}

/* Filter Dropdown */

.ah-filter-wrap {
    margin-left: auto; /* push to the right */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ah-filter-select {
    padding: 8px 12px;
    min-width: 140px;
    max-width: 260px;
    width: auto;
    background: #f5f5f5;
    color: #666666;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-overflow: ellipsis;
}

.ah-filter-select:hover {
    background: #e8f0fe;
    color: #2563eb;
}

.ah-filter-select.active {
    background: #2563eb;
    color: #ffffff;
}

/* Small-screen behavior: keep it compact but allow wrapping if needed */
@media (max-width: 480px) {
    .ah-filter-wrap {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    .ah-filter-label { display: none; }
    .ah-filter-select { min-width: 120px; max-width: 40%; }
}

/* Grid Container */
.ah-career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Career Card */
.ah-career-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ah-career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Job Position */
.ah-job-position {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 15px 0;
}

/* Department */
.ah-department {
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 15px 0;
}

/* Meta Information Container */
.ah-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Individual Meta Item */
.ah-meta-item {
    font-size: 13px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ah-meta-item strong {
    font-weight: 600;
    color: #666666;
    min-width: 80px;
}

/* Apply Button */
.ah-apply-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.ah-apply-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ah-career-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .ah-filter-container {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .ah-filter-btn,
    .ah-filter-select {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ah-filter-label {
        font-size: 13px;
    }
    
    .ah-career-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ah-career-card {
        padding: 25px;
    }
    
    .ah-job-position {
        font-size: 20px;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .ah-career-root {
    min-height: 200px;
}

.elementor-ah-career-wrapper {
    width: 100%;
}

/* Empty State */
.ah-career-root:empty::before {
    content: 'Loading career openings...';
    display: block;
    padding: 40px;
    text-align: center;
    color: #999;
    font-style: italic;
}