/* Container & Wrapper */
.psp-wrapper {
    width:100% !important;
}

/* Filter Bar */
.psp-filter-bar {
    background-color: #ff0000;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.psp-filter-btn {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.psp-filter-btn.active, .psp-filter-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Card Grid Layout */
.psp-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity 0.2s ease;
}

@media (max-width: 992px) { .psp-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .psp-cards-grid { grid-template-columns: repeat(1, 1fr); } }

.psp-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.psp-card-image img, .psp-placeholder-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #d8d8d8;
    border-radius: 12px;
}

.psp-badge {
    display: inline-block;
    background: #000000;
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 10px;
    margin: 10px 0 6px 0;
}

.psp-card-title {
    font-size: 16px;
    font-weight: 900 !important;
    margin: 4px 0;
    line-height: 1.2;
    color: #111;
}

.psp-card-excerpt {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.psp-view-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    width: 100%;
    padding: 8px 0;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Pagination */
.psp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.psp-page-num {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.psp-page-num.active {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

/* Inline Details Container View */
.psp-details-wrapper {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.psp-back-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.2s ease;
}

.psp-back-btn:hover {
    background: #ff0000;
}

.psp-details-hero img {
    width: 100%;
    border-radius: 16px;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 20px;
}

.psp-details-content {
    font-size: 14px;
    color: #444;
    font-weight:900 !important;
    line-height: 1.6;
    margin-bottom: 30px;
}

.psp-details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .psp-details-gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.psp-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* Client Feedback Box */
.psp-feedback-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.psp-feedback-label {
    font-size: 12px;
    color: #888;
    font-weight:900 !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psp-feedback-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .psp-feedback-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.psp-feedback-title {
    color: #ff0000;
    font-size: 22px;
    font-weight: 800;
    flex: 1;
    margin: 0;
}

.psp-feedback-card {
    flex: 1;
    border: 1px solid #eaeaea;
    background: #fafafa;
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
/* Styling specifically for 3-item Homepage Grid */
.psp-latest-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) { 
    .psp-latest-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}

@media (max-width: 576px) { 
    .psp-latest-grid { 
        grid-template-columns: repeat(1, 1fr); 
    } 
}