.slider-text {
    color: white;
    position: absolute;
    top: 0%;
    left: 0%;
    background: linear-gradient(90deg,rgba(38,116,166,0.95)0%,rgba(38,116,166,.95)30%,rgba(9,9,121,0)80%);
    padding: 50px;
    height: 100%;
    width: 90%;
}
.slider-content {
    width: 50%;
}
.carousel-cell {
    width: 100%; /* full width */
    height: 400px;
}
.carousel.is-hidden {
    display: none;
  }
  
.carousel.is-fullscreen .carousel-cell {
    height: 100%;
}

.carousel-cell img {
    display: block;
    object-position: right;
    object-fit: cover;
    height: 400px;
    border-radius: 0%;
    width: 100%;
}

.flickity-page-dots {
    counter-reset: a;
    bottom: 5%;
}

.flickity-page-dots .dot {
  display: inline-block;
  margin: 0 8px;
  cursor: pointer; 
}
.flickity-page-dots .dot::after {
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 7px;
}
/* .flickity-page-dots .play-pause-li {
    display: none;
} */
.flickity-page-dots .play-pause-li {
    /* margin: 0px 8px; */
    cursor: pointer;
    vertical-align: middle;
    background-color: #293b55;
    color: #fff;
    border: 1.5px solid #dfe6ef;
    border-radius: 50%;
    font-weight: 700;
    padding: 3px 6.2px;
    position: absolute;
    display: inline-block;
    margin: 0 -32px;
    width: 24px;
}

.flickity-page-dots .play-pause-li.play-pause-btn::after {
    content: "\II";
    font-size: 13px;
}

.flickity-page-dots .play-pause-li.play-pause-btn.paused::after {
    content: "\25B6";
    font-size: 12px;
    position: relative;
    left: 6%;
}

.flickity-page-dots .dot::after
 {
    background-color: #293b55;
    color: #fff ;
    border: 1.5px solid #dfe6ef;
}

.flickity-page-dots .dot::after {
    content: counter(a);
    counter-increment: a;
}
.flickity-page-dots .dot:hover:after,
.flickity-page-dots .play-pause-li.play-pause-btn:hover{
    background-color: #0f71df;
    color: #fff;
    border: 1.5px solid #dfe6ef;
}

.flickity-page-dots .dot.is-selected:after {
    background-color: #2d7fde;
    color: #fff;
    border: 1.5px solid #dfe6ef;
}

.flickity-slider-container{
    position: relative;
}

.fl-caption__title {
    font-size: 2em;
    line-height: 1;
    font-weight: 700;
  }

  .fl-caption__title a {
    text-decoration: none;
    color: #ffffff;
    font-family: roboto;
    font-size: 35px;
    line-height: 42px;
    letter-spacing: 1.5px;
}

.fl-caption__title a:hover{
    text-decoration: underline;
    color: #fff;

  }

.fl-caption__text {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    color: #ffffff;
    font-family: roboto;
  }

.field--name-field-slider-button a {
    border-color: #FFC010;
    border-width: 1px;
    color: #282d58;
    padding: 10px 20px;
    background-color: #FFC010;
    border-style: solid;
    border-radius: 5px;
    font-family: roboto;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    text-decoration: none;
    margin-top: 20px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}
.field--name-field-slider-button a:hover {
    background-color: #EEA638;
    border-color: #EEA638;
}  

@media screen and (max-width: 991px) {

    .slider-text {
        position: relative;
        background-color: #244685;
        width: 100%;
        padding: 25px;
        min-height: 320px;
        max-height: 320px;
    }

    .flickity-page-dots {
        bottom: 15px;
    }

    .flickity-page-dots .dot::after {
        display: inline-block;
        margin: 2px 5px; /* Adjust spacing between dots */
    }

    .slider-content {
        width: 100%;
    }
    .fl-caption__title a {
        color: #fff;
        font-size: 0.8em;
        line-height: 0.9em;
    }
    .fl-caption__text {
        color: #fff;
        margin-top: 10px;
        font-size: 15px;
        line-height: 18px;
    }
    .flickity-prev-next-button {
        top:20%;
    }
    .carousel-cell{
        height: auto;
    }

    .play-pause {
        bottom: 75%;
        left: unset;
        right: 28%;
    }

    .carousel-cell img {
        height: 220px;
    }

    .flickity-page-dots .play-pause-li {
        margin: 2px -30px ;
    }
    .flickity-page-dots .dot {
        margin: 0px 5px;
    }
    .field--name-field-slider-button a {
        margin-top: 15px;
        padding: 8px 15px;
        font-size: 14px;
    }

}

@media screen and (min-width: 600px) and (max-width: 991px) {
    .fl-caption__title a {
            color: #fff;
            font-size: 1em;
            line-height: 1.5em;
        }
        .fl-caption__text {
            color: #fff;
            margin-top: 10px;
            font-size: 20px;
            line-height: 25px;
        }
    }