#sergic-beautiful-story {
    margin: 1rem auto 3rem;
}

#sergic-beautiful-story .modal-dialog .modal-content {
    border-radius: 20px !important;
}

#sergic-beautiful-story .modal-dialog .modal-content .modal-header {
    flex-direction: row-reverse;
}

#sergic-beautiful-story .modal-dialog .modal-content .modal-header .close {
    position: relative;
}

#sergic-beautiful-story .modal-dialog .modal-content .modal-header h4 {
    font-family: "Raleway", sans-serif;
    color: #07374e;
}

#sergic-beautiful-story .modal-dialog .modal-content .bloc-belles-histoires div {
    font-family: "Raleway", Sans-serif;
}

#sergic-beautiful-story .modal .modal-body h4 {
    color: #00b3ff;
    width: 100%;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
}

#sergic-beautiful-story .modal-body {
    width: 100%;
}

#sergic-beautiful-story .sergic-beautiful-story-title {
    color: #00b3ff;
    font-size: 28px;
    font-family: 'Permanent Marker', cursive;
}

#sergic-beautiful-story .sergic-cta-wrapper {
    display: flex;
    justify-content: space-between;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta {
    width: 30%;
    background-color: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}


#sergic-beautiful-story .img-modal-belles-histoires {
    padding-bottom: 50px;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
    width: 100%;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta:hover {
    transition: all 0.3s ease;
    background-color: #F8F8F8;
    transform: scale(1.01);
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-cta-img-shade {
    position: relative;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-cta-shade {
    background: rgba(7, 55, 78, 0.3);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    border-radius: 12px;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta img {
    border-radius: 12px;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-title {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    width: 100%;
    text-align: center;
    transform: translate(-50%, -50%);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-desc {
    margin: 10px 5%;
    text-align: center;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    color: #07374E;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-desc h4 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #07374E;
    margin: 20px 0;
    height: 20%;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-desc p {
    height: 60%;
    margin-bottom: 2rem;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-desc p {
    height: 60%;
}

#sergic-beautiful-story .sergic-cta-wrapper .sergic-cta .sergic-block-cta-desc .sergic-block-cta-link {
    background-color: #00B3FF;
    color: #fff;
    padding: 5px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    border: 0;
    width: 60%;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    #sergic-beautiful-story .sergic-cta-wrapper {
        overflow-x: scroll;
    }
    #sergic-beautiful-story .sergic-cta-wrapper .sergic-cta {
        width: 300px;
        min-width: 300px;
        margin: 0 1rem;
    }
    #sergic-beautiful-story .sergic-cta-wrapper .sergic-cta:first-child {
        margin-left: 0 !important;
    }
    #sergic-beautiful-story .sergic-cta-wrapper::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 3px;
        height: 2px;
    }
    #sergic-beautiful-story .sergic-cta-wrapper::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(0, 0, 0, .5);
        box-shadow: 0 0 1px rgba(255, 255, 255, .5);
    }
    #sergic-beautiful-story .sergic-beautiful-story-title {
        text-align: center;
    }
}