.pbc-wrapper {
    background-color: #163b36; /* Luxury dark green background */
    padding: 45px 0 20px 0;
    color: #fff;
}

.pbc-wrapper * {
    box-sizing: border-box;
}

.pbc-wrapper .pbc-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    row-gap: 40px;
}

.pbc-wrapper .pbc-col {
    width: 33.333333%;
    padding: 0 15px;
}

.pbc-wrapper .pbc-card {
     /* White/off-white content box */
     height: 100%;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pbc-wrapper .pbc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.pbc-wrapper .pbc-image {
    display: block;
    position: relative;
    aspect-ratio: 5 / 5; /* Tall portrait ratio */
    overflow: hidden;
    text-decoration: none;
}

.pbc-wrapper .pbc-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.pbc-wrapper .pbc-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.pbc-wrapper .pbc-card:hover .pbc-image img {
    transform: scale(1.08);
}

.pbc-wrapper .pbc-date {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    min-width: 50px;
}

.pbc-wrapper .pbc-date .month {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 500;
}

.pbc-wrapper .pbc-date .day {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1;
}

.pbc-wrapper .pbc-content {
    padding: 25px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 90%;
    justify-content: center;
    background: #fff;
    margin: 0 auto;
    margin-top: -45px;
    position: relative;
}

.pbc-wrapper .pbc-title {
    font-size: var(--text-xl);
    color: #111;
    margin: 0;
    font-weight: 300;
    line-height: 1.5;
}

.pbc-wrapper .pbc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    /* Multiline truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pbc-wrapper .pbc-title a:hover {
    color: #c4965f;
}

/* Pagination Overrides for dark background */
.pbc-wrapper .pbc-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pbc-wrapper .pbc-pagination .pagination {
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pbc-wrapper .pbc-pagination .page-item .page-link {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0;
    padding: 8px 16px;
    transition: all 0.3s;
}

.pbc-wrapper .pbc-pagination .page-item.active .page-link,
.pbc-wrapper .pbc-pagination .page-item .page-link:hover {
    background: #c4965f;
    border-color: #c4965f;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .pbc-wrapper .pbc-col {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .pbc-wrapper {
        padding: 50px 0 70px 0;
    }
    .pbc-wrapper .pbc-col {
        width: 100%;
    }
    .pbc-wrapper .pbc-content {
        padding: 20px 25px 25px;
    }
}

/* Tabs */
.pbc-wrapper .pbc-tabs {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pbc-wrapper .pbc-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.pbc-wrapper .pbc-tab-list li {
    position: relative;
}

.pbc-wrapper .pbc-tab-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    padding-bottom: 12px;
    display: block;
    transition: color 0.3s;
}

.pbc-wrapper .pbc-tab-list li:hover a,
.pbc-wrapper .pbc-tab-list li.active a {
    color: #fff;
}

.pbc-wrapper .pbc-tab-list li.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c4965f; /* Accent color */
}

@media (max-width: 767px) {
    .pbc-wrapper .pbc-tab-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    .pbc-wrapper .pbc-tab-list li a {
        font-size: var(--text-base);
    }
}
