/**
 * Theme Name: Jobify - Skin 2 
 * Theme URI: https://astoundify.com/
 * Author: Astoundify
 * Author URI: http://astoundify.com
 * Description: Everything you need to build a professional job board.
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: one-column, right-sidebar, custom-background, custom-header, theme-options, full-width-template, featured-images, flexible-header, custom-menu, translation-ready
 * Template: jobify
 * Tested up to: 5.0
 * Requires PHP: 7.4
 * Text Domain: jobify-extended
 * Copyright (c) 2024 Astoundify. All rights reserved.
*/
/**
 * The parent theme's CSS is automatically included so there is no need
 * to use the @import rule to include the parent theme CSS.
 *
 * Place Custom CSS Below this.
 */
 
.job_listings, ul.job_listings {    
    display: block !important;
    max-width: none !important;
}

/* Clearfix для контейнера */
.job_listings:after, ul.job_listings:after {
    content: "";
    display: table;
    clear: both;
}

body li.job_listing, body .job_listings > li {    
    width: 49% !important;
    max-width: 49% !important;
    margin: 0 1% 20px 0 !important;
    display: block !important;
    float: left !important;
    min-height: 280px !important; /* Добавляем минимальную высоту */
    height: auto !important;
}

/* Делаем ссылку-контейнер flex для выравнивания контента */
body li.job_listing > a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 280px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Контент занимает доступное пространство */
body li.job_listing .job-listings-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Описание работы растягивается */
body li.job_listing .job-description {
    flex-grow: 1 !important;
    margin: 15px 0 !important;
}

/* Мета-данные остаются внизу */
body li.job_listing .meta {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

body li.job_listing:nth-child(2n),
body .job_listings > li:nth-child(2n) {
    margin-right: 0 !important;
}

/* Специально для кнопки "Загрузить еще" */
.load_more_jobs, 
.job-manager-pagination,
.job_listings + div {
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-top: 20px !important;
}

/* Красивые тени и анимация при наведении */
body li.job_listing {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

body li.job_listing:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px) !important;
}

/* Красивое оформление заголовка */
body li.job_listing .position {
    font-size: 1.3em !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    color: #333 !important;
}

/* Оформление мета-данных */
body li.job_listing .meta {
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
    margin-top: auto !important;
}

/* Скрытие полей в форме вакансии */
.fieldset-featured_image,
.fieldset-company_tagline,
.fieldset-company_description,
.fieldset-company_video,
.fieldset-company_facebook,
.fieldset-company_linkedin,
.fieldset-company_twitter,
.fieldset-company_logo {
    display: none !important;
}




