.ps-wrapper{
    width:100%;
    padding: 0px;
}

.ps-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:30px;
}

.ps-tabs button{
    padding:10px 18px;
    border:none;
    cursor:pointer;
    background:#f1f1f1;
    border-radius:30px;
    transition:0.3s;
}

.ps-tabs button.active,
.ps-tabs button:hover{
    background:#111;
    color:#fff;
}

.ps-grid{
    display:grid;
    gap:20px;
    /* Default to 1 column on smallest screens */
    grid-template-columns: 1fr;
}

/* Tablets (portrait) */
@media(min-width: 600px){
    .ps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets (landscape) & Small Desktops */
@media(min-width: 992px){
    .ps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Large Desktops - This will be overridden by inline style from settings */
/* This acts as a fallback if the inline style fails to load */
@media(min-width: 1200px){ .ps-grid { grid-template-columns: repeat(4, 1fr); } }

.ps-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.ps-card:hover{
    transform:translateY(-5px);
}

.ps-img{
    height:220px;
    overflow:hidden;
}

.ps-img img{
    width:100%;
    height:auto;
    transition:transform 5s linear;
}

.ps-card:hover .ps-img img{
    transform:translateY(-60%);
}

.ps-content{
    padding:15px;
}

.ps-buttons{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}

.ps-buttons a{
    padding:8px 12px;
    text-decoration:none;
    border-radius:8px;
    font-size:14px;
}

.ps-buttons a:first-child{
    background:#28a745;
    color:#fff;
}

.ps-buttons a:last-child{
    background:#eee;
    color:#000;
}