.spacing {
    padding: 60px 0;
}
.pt-0 {
    padding-top: 0 !important;
}
.primary-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.the-detail {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}
.common-tab {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 0 4px 0;
    margin: 24px 0 16px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.common-tab::-webkit-scrollbar {
    height: 6px;
}
.common-tab::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}
.common-tab::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 8px;
}
.common-tab .nav-item {
    flex: 0 0 auto;
    width: auto;
}
.common-tab .nav-link {
    border: 1px solid transparent;
    color: #4a4a4a;
    padding: 12px 28px;
    background: #f5f5f5;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    width: auto;
    min-width: 180px;
}
.common-tab .nav-link:hover {
    background: #ececec;
    color: #000;
}
.common-tab .nav-link.active {
    color: #fff;
    background: #000;
    border-color: #000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.common-tab + .swiper-button-prev,
.common-tab + .swiper-button-next {
    display: none;
}
.card-img-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f4f4f4;
    /* Keep all story images uniform */
    aspect-ratio: 4 / 3; /* fallback visual ratio */
    width: 100%;
    height: auto;
}
.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.person-info-3 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-details {
    color: #666;
    margin-bottom: 1rem;
}
.card-footer-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.c-footer-left {
    flex: 1;
    margin-right: 1rem;
}
.progress {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.progress-bar {
    background-color: #8fb138;
    height: 100%;
    border-radius: 4px;
}
.donated-ammount {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}
.donated-ammount span {
    font-weight: 600;
    color: #000;
    display: block;
}
.pagination-wrapper {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}
.pagination-wrapper.flex-center-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pagination-wrapper nav {
    display: inline-block;
    margin: 0 auto;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination .page-item {
    margin: 0;
    display: flex;
    align-items: center;
}
.pagination .page-link {
    color: #000;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    min-width: 40px;
    height: 40px;
    background: #fff;
    transition: all 0.3s ease;
}
.pagination .page-link:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #000;
}
.pagination .page-item.active .page-link {
    background-color: #000;
    border-color: #000;
    color: #fff;
}
.pagination .page-item.disabled .page-link,
.pagination .page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination .page-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.swiper-slide {
    height: auto;
}
.grid-no-swiper {
    width: 100%;
}
.grid-no-swiper .row {
    margin: 0;
}
.grid-no-swiper .row::after {
    content: "";
    display: table;
    clear: both;
}