.success-story-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 3rem;
}

.year-slider-container {
    width: 95%;
    /* border: 1px solid black; */
}

.success-story-wrapper {
    display: flex;
    justify-content: center;
    width: 65%;
    border: 1px solid black;
}

swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid black;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    font-size: 20px !important;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    font-size: 20px !important;
}

/* card-section */

.stories-card-section {
    width: 65%;
    margin-top: 2rem;
}

.stories-year-header {
    font-size: 25px;
    color: #666;
    border-bottom: 1px solid #c6c6c6;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edit-img-header {
    margin-bottom: 3rem;
}

.editImg-back_btn {
    background-color: transparent;
    color: #D50000;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.editImg-back_btn:hover {
    color: #D50000;
}

.success_story-header h1 {
    font-size: 35px;
}

.success-stories-card {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(30% - 10px), 1fr));
    grid-gap: 30px;
}

.success-stories-card a {
    width: 100%;
}

.story-card {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* height: 25rem; */
}

.story-card-img {
    width: 100%;
    /* height: 50%; */
}

.story-card-img img {
    width: 100%;
    height: 100%;
    border-radius: 5px 5px 0 0;
}

.card-header {
    padding: 10px 0 10px;
    font-size: 20px;
    color: #D50000;
    text-align: center;
    border-bottom: 1px solid #dedede;
}

.stories-text-section {
    padding: 16px;
}

.stories-text {
    font-size: 14px;
    color: black;
}

.read-more {
    text-align: right;
    padding-top: 1rem;
    font-size: 14px;
}

/* pagination css */

.pagination-container{
    width: 65%;
    float: right;
    margin-top: 1rem;
}

.pagination{
    float: right;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}

.pagination a.active {
    background-color: #D50000;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.ctrl-btn{
    background-color: #071032;
    color: white !important;
    border-radius: 50%;
    padding: 5px 10px !important;
    margin-top: 3px;
}

.ctrl-btn:hover{
    background-color: #404040 !important;
    transition: linear 0.3s;
}

@media(max-width: 1400px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(32% - 10px), 1fr));
    }

    .success-story-wrapper{
        border: none;
        width: 75%;
    }

    .stories-card-section{
        width: 75%;
    }

    .year-slider-container{
        border: 1px solid black;
    }
}

@media(max-width: 1280px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(45% - 10px), 1fr));
    }

    .success-story-wrapper{
        border: none;
    }

    .year-slider-container{
        border: 1px solid black;
    }
}

@media(max-width: 1024px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(45% - 10px), 1fr));
    }

    .stories-card-section{
        width: 80%;
    }

    .success-story-wrapper{
        border: none;
        width: 80%;
    }

    .pagination-container{
        width: 80%;
    }

    .year-slider-container{
        border: 1px solid black;
    }
}

@media(max-width: 900px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(45% - 10px), 1fr));
    }

    .stories-card-section{
        width: 85%;
    }

    .success-story-wrapper{
        border: none;
        width: 80%;
    }

    .pagination-container{
        width: 80%;
    }

    .year-slider-container{
        border: 1px solid black;
    }
}

@media(max-width: 768px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(100% - 10px), 1fr));
    }

    .year-slider-container{
        border: 1px solid black;
    }

    .success_story-header h1 {
        font-size: 30px;
    }
}

@media(max-width: 600px){
    .success-stories-card{
        grid-template-columns: repeat(auto-fill, minmax(calc(100% - 10px), 1fr));
    }

    .success-story-wrapper{
        border: none;
    }

    .stories-card-section{
        width: 85%;
    }

    /* .story-card{
        height: 40rem;
    } */

    .pagination-container{
        width: 90%;
    }

    .year-slider-container{
        border: 1px solid black;
    }

    .success_story-header h1 {
        font-size: 20px;
    }
}