/* Container */
.pf-d7d45859-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

/* Filter Bar */
.pf-d7d45859-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pf-d7d45859-filter-bg-wrapper {
    display: inline-flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    overflow-x: auto;
    max-width: 100%;
    /* Added for smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.pf-d7d45859-filter-bg-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.pf-d7d45859-filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #b4853a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-d7d45859-filter-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pf-d7d45859-filter-action {
    display: flex;
}

.pf-d7d45859-filter-berita {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    white-space: nowrap;
}

.pf-d7d45859-sort-option:hover {
    background-color: #f3f4f6 !important;
}
.pf-d7d45859-sort-option.active {
    font-weight: 600;
    color: #b4853a !important;
}

/* Grid */
.pf-d7d45859-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .pf-d7d45859-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pf-d7d45859-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.pf-d7d45859-card {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pf-d7d45859-card.hidden {
    display: none;
}

.pf-d7d45859-card-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
}

.pf-d7d45859-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-d7d45859-card:hover .pf-d7d45859-card-image img {
    transform: scale(1.05);
}

.pf-d7d45859-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

/* Meta Data - Nested pill */
.pf-d7d45859-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    background-color: transparent;
}

.pf-d7d45859-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    background-color: transparent;
}

.pf-d7d45859-badge-text {
    color: #111827;
    font-weight: 500;
}

.pf-d7d45859-time {
    color: #111827;
    font-weight: 400;
}

.pf-d7d45859-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

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

.pf-d7d45859-title a:hover {
    color: #b4853a;
}

.pf-d7d45859-arrow {
    flex-shrink: 0;
    margin-left: 10px;
    margin-top: 4px;
    transition: transform 0.3s ease;
}

.pf-d7d45859-card:hover .pf-d7d45859-arrow {
    transform: translate(3px, -3px);
}

.pf-d7d45859-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.pf-d7d45859-no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
    background: #f9fafb;
    border-radius: 12px;
}

/* Load More */
.pf-d7d45859-load-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.pf-d7d45859-load-more {
    background: transparent;
    border: 1px solid #b4853a;
    color: #b4853a;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-d7d45859-load-more:hover {
    background: #b4853a;
    color: #fff;
}

.pf-d7d45859-load-more.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pf-d7d45859-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(180, 133, 58, 0.3);
    border-radius: 50%;
    border-top-color: #b4853a;
    animation: spin 1s ease-in-out infinite;
    margin-left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .pf-d7d45859-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pf-d7d45859-filter-group {
        width: 100%;
        overflow: hidden;
    }
    
    .pf-d7d45859-filter-bg-wrapper {
        display: flex;
        width: 100%;
    }
    
    .pf-d7d45859-filter-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
    
    .pf-d7d45859-filter-action {
        width: 100%;
        justify-content: center;
    }
}
