/* Carousel Container */
.remote-posts-carousel {
    margin: 20px 0;
    position: relative;
    visibility: hidden;
    background: transparent;
    border-radius: 4px;
}

/* Vertical Carousel */
.vertical-carousel {
    overflow: hidden;
}

.vertical-slides-container {
    transition: transform 0s linear;
}

/* Slide Styles */
.carousel-slide {
    padding: 10px 15px;
    position: relative;
    box-sizing: border-box;
}

.vertical-carousel .carousel-slide {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
}

/* Slide Content */
.slide-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    margin-bottom: 50px;
}

/* Title Styles */
.slide-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: normal;
    flex-shrink: 0;
}

.slide-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.slide-title a:hover {
    opacity: 0.8;
}

.slide-title a:focus {
    outline: none;
    box-shadow: none;
}

/* Content Text */
.slide-text {
    color: #000;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    border-image-slice: 42 42 42 42;
    border-image-width: 42px 42px 42px 42px;
    border-image-outset: 0px 0px 0px 0px;
    border-image-repeat: round round;
    border-image-source: url("https://faq.bayat.info/wp-content/uploads/2024/05/border2.png");
    border-style: solid;
    padding: 70px 50px 50px;
    background: url(https://faq.bayat.info/wp-content/uploads/2024/12/bganswer2.jpg);
	background-size: cover;
    position: relative;
    height: auto;
    min-height: 200px;
}

.slide-text::before {
    background-image: url(https://bayat.info/wp-content/uploads/2013/10/besmealah-300x103.png);
    background-size: 250px;
    display: block;
    width: 100%;
    content: "";
    background-repeat: no-repeat;
    height: 70px;
    text-align: center;
    background-position: center;
    margin: -50px 0 20px;
    position: relative;
    z-index: 1;
}

.slide-text::after {
    background-image: url(https://bayat.info/wp-content/uploads/2013/10/Mohr-290x195.png);
    background-size: 100px;
    display: inline-block;
    width: 100%;
    content: "";
    background-repeat: no-repeat;
    height: 70px;
    margin-top: 20px;
    background-position: center;
}

/* Separator */
.separator {
    position: relative;
    height: 50px;
    margin: 20px auto;
    text-align: center;
    background-image: url('https://bayat.info/wp-content/uploads/2024/05/line.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 200px;
}

.vertical-carousel .carousel-slide:last-child .separator {
    display: none;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #666;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.carousel-arrow:hover {
    background: #fafafa;
}

.carousel-arrow .dashicons {
    color: #666;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.carousel-arrow.prev {
    top: -15px;
}

.carousel-arrow.next {
    bottom: -15px;
}

/* RTL Support */
.rtl .carousel-slide {
    direction: rtl;
}

.rtl .slide-text {
    direction: rtl;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .slide-title {
        font-size: 16px;
    }

    .slide-text {
        font-size: 14px;
        padding: 60px 30px 30px;
    }

    .slide-text::before {
        background-size: 200px;
        height: 60px;
        margin: -40px 0 15px;
    }

    .slide-text::after {
        background-size: 80px;
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .slide-text {
        padding: 50px 20px 20px;
        margin: 0;
    }

    .slide-text::before {
        background-size: 150px;
        height: 50px;
        margin: -30px 0 10px;
    }

    .slide-text::after {
        background-size: 60px;
        height: 50px;
    }

    .separator {
        height: 30px;
        width: 120px;
        margin: 10px auto;
    }
}