.abp-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    font-family: var(--e-global-typography-primary-font-family, sans-serif);
}

.abp-main {
    flex: 1;
    min-width: 0;
}

.abp-header {
    margin-bottom: 40px;
}

.abp-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.abp-header p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.abp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

.abp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.abp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.abp-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #f8f9fa;
    border-bottom: 1px solid #f3f4f6;
}

.abp-card-image img, .abp-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abp-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.abp-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.abp-card-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.abp-card-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.abp-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.abp-card-title a:hover {
    color: #059669;
}

.abp-card-excerpt {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.abp-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.abp-read-more {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.abp-read-more:hover {
    gap: 8px;
}

.abp-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
}

.abp-search-box {
    position: relative;
    margin-bottom: 30px;
}

.abp-search-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) inset;
}

.abp-search-input:focus {
    background: #fff;
    border-color: #059669;
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.abp-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.abp-categories-widget {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.abp-categories-widget h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.abp-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abp-category-list li {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5563;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    font-size: 15px;
}

.abp-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.abp-category-list li:first-child {
    padding-top: 0;
}

.abp-category-list li:hover, .abp-category-list li.active {
    color: #059669;
}

.abp-category-list li span {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    transition: background 0.2s;
}

.abp-category-list li.active span {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.abp-pagination-container {
    margin-top: 50px;
    transition: opacity 0.3s ease;
}

.abp-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 10px;
}

.abp-pagination a.page-numbers,
.abp-pagination span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 15px;
}

.abp-pagination a.page-numbers:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.abp-pagination span.current {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.abp-pagination span.dots {
    border: none;
    background: transparent;
    color: #9ca3af;
}

.abp-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    color: #6b7280;
    font-size: 16px;
    border: 1px dashed #e5e7eb;
}

/* Responsive */
@media (max-width: 991px) {
    .abp-wrapper {
        flex-direction: column;
    }
    .abp-sidebar {
        width: 100%;
        position: static;
        order: -1; /* Move sidebar to top on mobile */
        margin-bottom: 20px;
    }
}