.abf-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filters */
.abf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.abf-filter-btn {
    padding: 8px 18px;
    border: 1px solid #F3EFF9;
    background: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B3FA0;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    background: #F3EFF9;
}

.abf-filter-btn:hover {
    border-color: #3C225F;
    background: #3C225F;
}

.abf-filter-btn.active {
    background: #3C225F;
    color: #fff;
    border-color: #3C225F;
}

/* Posts grid */
.abf-posts-container {
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s ease;
}

.abf-posts-container.abf-loading {
    opacity: 0.4;
    pointer-events: none;
}

.abf-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.abf-post-card {
    border: 1px solid #e9e9ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.abf-post-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Thumbnail + category badge */
.abf-post-thumb {
    position: relative;
    display: block;
}

.abf-post-thumb img,
.abf-thumb-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.abf-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #EDE8F5;
    color: #3C225F;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 30px;
    font-family: 'Montserrat';
}

/* Content */
.abf-post-content {
    padding: 20px;
}

.abf-post-meta {
    color: #353535;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.abf-meta-sep {
    color: #d5d5dc;
}

.abf-post-title {
    margin: 0 0 12px;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    color: #121212 !important;
}

h3.abf-post-title a {
    color: #121212 !important;
}

.abf-post-title a:hover {text-decoration: none;}

.abf-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b76;
    margin-bottom: 20px;
}

.abf-post-excerpt p {
    margin: 0;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #121212;
}

/* Footer: author + read more */
.abf-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.abf-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.abf-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.abf-author-name {
    color: #121212;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.abf-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b3aa4;
    text-decoration: none;
    border: 1px solid #AA96C8;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.abf-read-more svg {
    transition: transform 0.2s ease;
}

.abf-read-more:hover {
    background: #AA96C8;
    color: #fff;
}

.abf-read-more:hover svg {
    transform: translateX(2px);
}

.abf-no-posts {
    text-align: center;
    padding: 40px 0;
    color: #777;
}

/* Pagination */
.abf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.abf-page-btn {
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    background: #F3EFF9;
    border-color: #F3EFF9;
    color: #6B3FA0;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.abf-page-btn:hover:not(:disabled) {
    border-color: #333;
}

button.abf-page-btn.abf-page-number:hover {
    background: #A07AD8;
    color: #FFF;
    border-color: #A07AD8;
}

.abf-page-btn.active {
    color: #fff;
    background: #A07AD8;
    border-color: #A07AD8;
}

.abf-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.abf-post-author img {
    border-radius: 50% !important;
    width: 40px;
    height: 40px !important;
}
