/* Страница метки (аналог reference/tag.php) */
.tag-page-wrapper.tag-page .tag-description {
    padding: 26px;
    border: 1px solid #6d7a97;
    border-radius: 6px;
    background-color: rgba(15, 27, 50, 0.5);
    margin-bottom: 1.5rem;
}

.tag-page-wrapper.tag-page .tag-description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #40f3f7;
    margin-bottom: 15px;
}

.tag-page-wrapper.tag-page .tag-description-body {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.tag-page-wrapper.tag-page .tag-description-body p {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .tag-page-wrapper.tag-page .tag-description {
        padding: 20px;
    }

    .tag-page-wrapper.tag-page .tag-description h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

/* Блок «Последние записи» (как reference/tag.php) */
.tag-page-wrapper.tag-page .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 20px 0;
    text-align: center;
    width: 100%;
}

.tag-page-wrapper.tag-page .nf-search h2 {
    font-weight: bold;
    color: #40f3f7;
}

.tag-page-wrapper.tag-page .nf-search .alert {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tag-page-wrapper.tag-page .section-title {
        font-size: 32px;
        margin: 30px 0 15px 0;
    }
}

/* Подгрузка списка постов */
.tag-page-wrapper.tag-page .tag-load-more-actions {
    text-align: center;
    margin: 1.25rem 0 0.5rem;
}

.tag-page-wrapper.tag-page .tag-load-more-button {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px 24px;
    background: #3d4e73;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        background: #40f3f7;
        color: #0f1b32;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(64, 243, 247, 0.3);
    }
}

.tag-page-wrapper.tag-page .tag-load-more-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Секции по рубрикам (reference/tag.php) */
.tag-page-wrapper.tag-page h3.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #40f3f7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #40f3f7;
    width: 100%;
}

.tag-page-wrapper.tag-page .tag-posts-load-more {
    margin-bottom: 0.5rem;
}

.tag-page-wrapper.tag-page .item_wrap.has-audio-podcast {
    position: relative;
}

.tag-page-wrapper.tag-page .item_wrap .audio-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgb(254 209 53);
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgb(254 209 53 / 0.4);

        &::before {
            opacity: 1;
            visibility: visible;
        }
    }

    &::before{
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 8px;
        color: rgb(15, 27, 50);
        box-shadow: rgba(7, 16, 39, 0.4) 0px 0px 15px 0px;
        font-size: 12px;
        font-weight: 600;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 10;
        background: rgb(254, 209, 53);
        padding: 2px 8px;
        border-radius: 4px;
        white-space: nowrap;
        transition: 0.3s;
    }
}

.items_wrap.four-columns .item_wrap .item .item_img img {
    height: auto;
}

.item_wrap .item .item_img {
    margin: 0;
}

.items_wrap.four-columns {
    @media (min-width: 768px) {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

.item_wrap .item {
    @media (min-width: 768px) {
        padding: 0;
    }
}

.item_wrap .item .item_title {
    @media (min-width: 768px) {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
    }
}

.item_wrap .item .item_text {
    @media (min-width: 768px) {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.item_wrap .item .item_footer {
    @media (min-width: 768px) {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
}