/*
* file ads.css
*/

/*
*********************************** ads START
*/

.ads-wrapper {
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 40px;
}

#adsContainer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 40px;
    order: 1;
}

.tax-ads-category aside#secondary {
    order: 0;
    min-height: inherit;
}



/* Сайдбар */

.widget-ads-job a.link-job {
    background-size: 100% 1px, 100% 1px;
}

.widget-ads-job a.link-candidate {
    color: #1e2b3f;
}

a.link-candidate:hover {
    color: var(--link);
}

.widget-ads-candidate a.link-candidate {
    background-size: 100% 1px, 100% 1px;
}

.widget-ads-candidate a.link-job {
    color: #1e2b3f;
}

a.link-job:hover {
    color: var(--link);
}

/*
 * archive article
*/

.ads_card {
    width: 100%;
    display: flex;
    padding: 14px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ads_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ads_card_left {
    display: flex;
    max-width: 220px;
    max-height: 220px;
    width: 100%;
    height: 100%;
}

.ads_thumbnail {
    position: relative;
    width: 100%;
    object-fit: cover;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.ads_container {
    flex: 1;
}

#adsContainer .entry-title {
    display: inline;
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    font-family: 'Nunito';
    color: #32353d;
}

#adsContainer a:hover .entry-title {
    color: var(--linkhover);
}

ul.job-features {
    padding-left: 10px;
    margin: 10px 0;
    list-style-type: none;
}

.ads_card_right {
    display: block;
    width: 260px;
}

.card_right_wrap {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 20px 18px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f3f3f3;
    border-radius: 12px;
    box-shadow: 0 0 16px -5px rgba(0, 20, 40, 0.10);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.card_right_wrap:hover {
    box-shadow: 0 0 35px -5px rgba(20, 60, 120, 0.2);
}


.card_right_pay {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-weight: 600;
}

.ads-contacts {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: slideUp 0.4s ease-out;
}

.card_right_wrap.show-contacts .card_right_pay {
    display: none;
}

.card_right_wrap.show-contacts .ads-contacts {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ads-contacts i {
    position: absolute;
    left: 24px;
    width: 24px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Адаптивность */
@media (min-width: 1281px) {
.ads_card {
    height: 248px;
    overflow: hidden;
}
}


/*
 * single ads
*/

.content-wrapper article {
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
}

.single-ads .post-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background-color: #f5f5f5;
}

.single-ads .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.ads_head {
    display: flex;
    gap: 0 40px;
    align-items: flex-start;
}

.ads-info {
    flex: 1;
}

ul.ads-features {
    margin: 0;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    list-style-type: none;
}

ul.ads-features li strong {
    margin-right: 4px;
}

.post__meta {
    margin-top: 20px;
}


.right-content-wrapper {
    min-height: 100%;
}

.single-ads .sticky {
    top: 130px;
}

.contacts-wrap h3 {
    margin-top: 0;
}

button.contacts-single-bar {
    margin: 0 auto;
    display: block;
    width: 180px;
}

.contacts-wrap.show-contacts .ads-contacts {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contacts-wrap.show-contacts .contacts-single-bar {
    display: none;
}

.contact-chat-block.notlogged {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    font-weight: bold;
}

.contact-chat-block h3 {
    font-size: 18px;
}

.contact-chat {
    position: relative;
    display: block;
    line-height: 0;
}

textarea.contact-chat-fields{
    resize: none;
    min-height: 66px;
    max-height: 66px;
    height: 66px;
    overflow-y: auto;
}

i.icon-send {
    position: absolute;
    right: 2px;
    top: 2px;
    cursor: pointer;
}

i.icon-send svg {
    opacity: .6;
}

i.icon-send svg:hover {
    opacity: 1;
}