/*
* file blog.css
*/


/*
*********************************** blog START
*/


/*
*********************************** blog-wrapper START
*/
.direction-wrapper {
    display: block;
    margin: 32px 0 52px;
}

.direction-articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.direction__item {
    display: block;
    position: relative;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.direction__item_img {
    line-height: 0;
}

.direction__item_img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(38 115 237 / 55%);
    z-index: 1;
}

.direction__item_title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    color: var(--backwhite);
    transition: opacity 0.3s ease;
}

.direction__item_title h2 {
    font-size: 18px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.archive .direction__item_excerpt {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 2;
    transition: bottom 0.5s ease;
}

.direction__item:hover .direction__item_title {
    opacity: 0;
}

.direction__item:hover .direction__item_excerpt {
    top: 0;
    bottom: 0;
}

/* Адаптивность для изображения */
.direction__item_img img {
    width: 100%;
    height: auto;
    display: block;
}

.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;
}

.post_icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
}

.post_icon path {
    fill: var(--btncolor);
}

.block_search {
    width: 50%;
}

.blog-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.post-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.filter-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.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;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-submit {
    background: #2672ec;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-submit:hover {
    background: #2672ec;
    transform: translateY(-2px);
}

.filter-reset {
    background: #f0f0f0;
    color: #666;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: #e0e0e0;
    color: #333;
}

/* Индикатор загрузки */
#directionContainer.loading {
    position: relative;
    min-height: 200px;
    opacity: 0.7;
}

#directionContainer.loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщение о пустом результате */
.no-posts-found {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .filtration__unit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .block_search,
    .blog-filters {
        min-width: 100%;
    }
    
    .post-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .filter-button,
    .reset-button {
        width: 100%;
    }
}

/* Активные фильтры */
.active-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.active-filter {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #bbdefb;
}

.remove-filter {
    background: none;
    border: none;
    color: #1565c0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-filter:hover {
    background: #1565c0;
    color: white;
}

.direction .post_item {
    width: calc(33.3333333% - 10px);
}

.direction .post_item {
    width: calc(33.3333333% - 10px);
}

h2.entry-title {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.entry-title a {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 110%;
    color: #32353d;
}

.entry-title a:hover {
    color: var(--headingcolor);
}

.posted-on a {
    display: block;
    padding: 5px 0;
    line-height: 125%;
    background-image: none;
}

a.read-more-btn {
    margin-bottom: 12px;
}

/*
*********************************** blog-wrapper END
*/

/*
*********************************** single post START
*/

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--colgap);
}


.left-content-wrapper {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

.container-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.container-head-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.single-direction h1.entry-title {
    margin: 20px;
    padding-left: 20px;
    text-align: left;
}

blockquote.direction__item_excerpt {
    margin-top: 0;
    margin-right: 0;
}

.post-thumbnail {
    position: relative;
    margin: 0 auto;
    width: 100%;
    line-height: 0;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}
.post-thumbnail .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.container-content {
    padding: 24px;
}

ul.list__coaches {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 24px;
    gap: 20px;
    list-style-type: none;
}

.list__coaches_number {
    position: relative;
    overflow: hidden;
    padding: 24px 32px;
    background-color: rgb(248 249 250);
    border-radius: 12px;
}

.list__coaches_number img {
    position: absolute;
    left: -50px;
    bottom: -40px;
    width: 200px;
    height: auto;
    opacity: 0.1;
}

svg.list__coaches_svg {
    position: absolute;
    padding: 6px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
    transform: rotate(90deg);
    transition: background-color .4s;
}

.list__coaches_number:hover svg {
    background-color: rgb(38 114 236 / 80%);
    fill: #fff;
}

.list__coaches_number h4 {
    margin: 10px 0;
    font-size: 18px;
    text-align: center;
}

.list__coaches_number p {
    margin: 0;
    font-size: 12px;
    color: #32353d;
    text-align: center;
}

.post_tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #32353d;
    background-image: none !important;
    background-color: #f4f6fa;
}

.single-post-footer {
    display: block;
    margin-top: 36px;
}

.single-post-footer .post__meta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.post__share {
    margin: 36px 0 16px;
}

.tags-label {
    font-weight: 600;
}

/*
*********************************** single post END
*/