/*
* file events.css
*/


/*
*********************************** events START
*/

.filtration__unit {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.block_search {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
}

.post_icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
}

.post-type-archive-events #secondary {
    min-height: inherit;
}

.events-wrap-filters {
    display: flex;
    width: 40%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.events-filters {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #2672ec;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.filter-select:hover {
    border-color: #2672ec;
}

.events-wrapper {
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 40px;
}

.events-articles {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 40px;
    order: 1;
}

.events_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;
}

.events_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.archive .events_thumbnail {
    position: relative;
    width: 260px;
    height: auto;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.events_thumbnail .post-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
}

.events_thumbnail .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.events_container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events_card h2 {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    font-family: 'Nunito';
}

.events_card h2 a {
    color: #32353d;
}

.events_card h2 a:hover {
    color: #2672ec;
}

.events_tag {
    display: block;
}

.events_tag_title {
     margin-right: 4px;
    font-weight: 600;
}

.events_age_group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.events_age_group_label {
    padding: 0px 6px;
    background: #e2eaf6;
    border-color: #baceec;
    border-radius: 8px;
    margin-right: 6px;
    font-weight: 600;
}

.events-schedule {
    text-align: center;
    width: 180px;
    display: block;
}

.event_date_title {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}


.single-events .content-wrapper {
    display: grid;
    padding-bottom: 52px;
    grid-template-columns: 1fr 320px;
    gap: var(--colgap);
}

.single-events  .right-sidebar-wrapper div.textwidget.custom-html-widget {
    width: 100%;
    padding: var(--paddingwrap);
    background: var(--backwhite);
    border-radius: var(--brdradiuswrap);
    -webkit-box-shadow: var(--boxshadowwrap);
    -moz-box-shadow: var(--boxshadowwrap);
    box-shadow: var(--boxshadowwrap);
}

.single-events .left-content-wrapper {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

.single-events .post-thumbnail {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 346px;
    line-height: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.single-events .post-thumbnail .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.single-events .container-content {
    padding: 24px;
}

h1.entry-title {
    margin-top: 0;
}

.entry-content h2 {
    margin: 0;
}

.event-details h3 {
    margin: 0 0 10px;
}

.contact-chat-block h4 {
    margin: 0 0 10px;
}

.container-content h2, .container-content h3 {
    color: #2672ec;
}

.event-details-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.event-details-items p {
    margin: 0;
}

.container-content h3 {
    margin: 0 0 10px;
}

.event-contact {
    margin-bottom: 20px;
}

.event-contact p {
    margin: 0 0 6px;
}

.contact-chat-block {
    display: block;
    padding-bottom: 10px;
}

.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;
}

.contact-chat-block.notlogged {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    font-weight: bold;
    flex-direction: row;
    align-items: center;
}

/* Адаптивность */
@media (min-width: 1281px) {
.events_card {
    height: 240px;
    overflow: hidden;
}
}