.psg-wrapper {
    position: relative;
    width: 100%;
}
.psg-grid {
    display: grid;
    gap: 30px;
}
.psg-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: auto;
    display: flex;
    flex-direction: column;
}
.psg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.psg-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.psg-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.psg-card:hover .psg-thumbnail img {
    transform: scale(1.05);
}
.psg-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
}
.psg-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}
.psg-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.psg-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}
.psg-meta-top svg {
    opacity: 0.7;
}
.psg-title {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
}
.psg-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}
.psg-title a:hover {
    color: #0073aa;
}
.psg-excerpt {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}
.psg-meta-bottom {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.psg-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.psg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.psg-author-info {
    display: flex;
    flex-direction: column;
}
.psg-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.psg-date {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.psg-date-only {
    font-size: 13px;
    color: #888;
}

/* Swiper overrides */
.psg-slider-container {
    position: relative;
}

.psg-swiper-8ac21ee0 {
    padding-bottom: 50px;
    height: 100%; 
}

.psg-swiper-8ac21ee0 .swiper-slide {
    height: auto;
}

.psg-swiper-8ac21ee0 .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.psg-swiper-8ac21ee0 .swiper-pagination-bullet-active {
    background: #0073aa;
}

/* Custom Arrows */
.psg-swiper-button-prev,
.psg-swiper-button-next {
    position: absolute;
    top: calc(50% - 25px); 
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}
.psg-swiper-button-prev:hover,
.psg-swiper-button-next:hover {
    background: #f0f0f0;
}
.psg-swiper-button-prev.swiper-button-disabled,
.psg-swiper-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Arrow Positioning */
.psg-arrows-inside .psg-swiper-button-prev {
    left: 20px;
}
.psg-arrows-inside .psg-swiper-button-next {
    right: 20px;
}
.psg-arrows-outside {
    padding: 0 60px;
}
.psg-arrows-outside .psg-swiper-button-prev {
    left: 0;
}
.psg-arrows-outside .psg-swiper-button-next {
    right: 0;
}

/* Grid Pagination Styling */
.psg-pagination {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    width: 100%;
}
.psg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.psg-pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.psg-pagination .page-numbers.current {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}
