/* Slick Slider Styling */
.slick-list.draggable {
    direction: rtl !important;
}

.sfs-slider {
    position: relative;
    z-index: 10000; /* Ensure slider is above other elements */
    margin: 20px auto;
    max-width: 1200px;
    direction: rtl; /* Set direction to RTL */
}

/* Add space between slides */
.sfs-slider .slick-slide {
    padding: 0 0px; /* Add consistent padding between slides */
    box-sizing: border-box; /* Ensure padding doesn't affect the layout */
}

/* Slide Styling */
.sfs-slide {
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 15px; /* Add rounded corners to slides */
    overflow: hidden; /* Ensure content stays inside slide boundaries */
}

/* Card Styling */
.sfs-card {
    position: relative;
    perspective: 1000px;
    height: 100%;
}

/* Front and Back Faces of the Card */
.sfs-card-front,
.sfs-card-back {
    position: absolute;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: grid;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 10px;
    transition: transform 0.6s ease;
}

/* Front Side */
.sfs-card-front {
    transform: rotateY(0deg);
}

/* Back Side */
.sfs-card-back {
    transform: rotateY(180deg);
    background: rgba(0, 0, 0, 0.8); /* Darker background for the back side */
}

/* Flipped State */
.sfs-card.flipped .sfs-card-front {
    transform: rotateY(180deg);
}

.sfs-card.flipped .sfs-card-back {
    transform: rotateY(0deg);
}

/* Adjust transitions for RTL */
.sfs-card {
    direction: rtl; /* Ensure cards behave correctly in RTL */
}

/* Custom Arrow Styling */
.slick-prev,
.slick-next {
    background: #fff; /* White background */
    color: #000; /* Black text */
    border: 1px solid #000; /* Border styling */
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    z-index: 100;
}

/* Position Arrows for LTR */
.slick-prev {
    left: -70px; /* Adjust position for "Previous" */
}

.slick-next {
    right: -70px; /* Adjust position for "Next" */
}

/* Adjust Arrow Positions for RTL */
.sfs-slider[dir="rtl"] .slick-prev {
    right: -50px; /* Move "قبلی" to the correct position in RTL */
    left: auto;
}

.sfs-slider[dir="rtl"] .slick-next {
    left: -50px; /* Move "بعدی" to the correct position in RTL */
    right: auto;
}

/* Optional Hover Effect for Arrows */
.slick-prev:hover,
.slick-next:hover {
    background: #f0f0f0; /* Light gray background on hover */
    color: #000; /* Text stays black */
}

/* Dots Styling */
.slick-dots {
    text-align: center;
    margin-top: 20px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #000; /* Black color for dots */
}

.slick-dots li.slick-active button:before {
    color: #333; /* Darker color for active dot */
}

/* Ensure Proper Layout for RTL */
.slick-slider .slick-slide {
    position: relative !important;
    margin: 10px;
    border-radius: 15px;
}

/* Force Slick dots to display as circles */
.slick-dots {
    text-align: center;
    margin-top: 20px;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button {
    width: 10px; /* Dot size */
    height: 10px; /* Dot size */
    border-radius: 50%; /* Make dots circular */
    background: #ccc; /* Default dot color */
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0; /* Remove any text or numbers */
    outline: none;
    transition: background 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #000; /* Highlight color for the active dot */
}

/* Ensure no numbers or text are displayed inside dots */
.slick-dots li button:before {
    content: ''; /* Remove numbers or other content */
}
