/**
 * WPBuild Load Next Posts - стили
 */

.wpb-load-next-posts-wrapper {
    position: relative;
    margin: 40px 0;
    padding: 20px 0;
}

/* Loader */
.wpb-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #666;
    font-style: italic;
    gap: 10px;
}

.wpb-loader-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: wpb-spin 1s linear infinite;
}

@keyframes wpb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Контейнер постов */
.wpb-posts-container {
    position: relative;
}

/* Загруженный пост */
.wpb-loaded-post {
    margin-bottom: 32px;
    animation: wpb-fade-in 0.6s ease-out;

}

@keyframes wpb-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Featured Image (главное фото) ====== */
.wpb-post-thumbnail {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wpb-post-thumbnail a {
    display: block;
    line-height: 0;
}

.wpb-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.wpb-post-thumbnail:hover .wpb-featured-image {
    transform: scale(1.02);
}

/* ====== Заголовок и категории ====== */
.wpb-loaded-post .wpb-post-header {
    margin-bottom: 25px;
}

.wpb-post-categories {
    margin-bottom: 12px;
}

.wpb-category-link {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3498db;
    text-decoration: none;
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-right: 6px;
    margin-bottom: 6px;
}

.wpb-category-link:hover {
    background: #3498db;
    color: #fff;
}

.wpb-loaded-post .wpb-post-title {
    font-size: 2em;
    margin: 0 0 15px;
    line-height: 1.3;
}

.wpb-loaded-post .wpb-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wpb-loaded-post .wpb-post-title a:hover {
    color: #3498db;
}

/* ====== Meta: автор + дата ====== */
.wpb-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    color: #7f8c8d;
    font-size: 0.92em;
}

.wpb-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpb-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wpb-author-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.wpb-by-label {
    color: #95a5a6;
}

.wpb-author-name {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.wpb-author-name:hover {
    color: #3498db;
}

.wpb-post-date {
    color: #95a5a6;
    font-style: italic;
}

/* ====== Content ====== */
.wpb-loaded-post .wpb-post-content {
    line-height: 1.75;
    color: #333;
    margin: 25px 0;
}

.wpb-loaded-post .wpb-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.wpb-loaded-post .wpb-post-content p {
    margin-bottom: 1em;
}

/* ====== Footer с тегами ====== */
.wpb-post-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.post-tax-post_tag {
	display: block;
    padding-left: 30px;
    text-indent: -13px;
}



/* ====== Триггер загрузки (невидимый) ====== */
.wpb-load-trigger {
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
    visibility: hidden;
}

/* Сообщение об окончании */
.wpb-end-message {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

/* ====== Адаптивность ====== */
@media (max-width: 768px) {
    .wpb-loaded-post {
        padding: 20px 0;
        margin: 30px 0;
    }

    .wpb-loaded-post .wpb-post-title {
        font-size: 1.5em;
    }

    .wpb-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpb-post-date {
        margin-top: 5px;
    }

    .wpb-post-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .wpb-category-link {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    .wpb-author-avatar {
        width: 28px;
        height: 28px;
    }
}

.read-more-btn {
	margin-top:16px;
}