/* Miftah Projets Cover Widget Styles */

.miftah-pc-wrapper {
    position: relative;
    width: 100%;
}

.miftah-pc-wrapper .swiper {
    width: 100%;
    position: relative;
}

/* Allow pagination to go outside the slider container if selected */
.miftah-pc-wrapper.miftah-pc-pagination-outside {
    padding-bottom: 50px; /* Make room for pagination */
}

.miftah-pc-wrapper.miftah-pc-pagination-outside .swiper-pagination {
    bottom: -40px;
}

/* Slide Inner (Card Container) */
.miftah-pc-slide-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Default layout properties, can be overridden by Elementor controls */
    justify-content: center;
    align-items: flex-end; /* vertical position -> mapped to align-items because flex-direction is column */
    text-decoration: none;
}

/* Background Image */
.miftah-pc-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Zoom effect on hover */
.miftah-pc-hover-zoom:hover .miftah-pc-bg-image {
    transform: scale(1.05);
}

/* Gradient Overlay */
.miftah-pc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Default gradient, controlled by Elementor */
    background: linear-gradient(to top, rgba(0, 99, 98, 0.9) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Darken overlay slightly on hover */
.miftah-pc-slide-inner:hover .miftah-pc-overlay {
    opacity: 1;
}

/* Content Area */
.miftah-pc-content {
    position: relative;
    z-index: 3;
    width: 100%;
    /* Default padding, controlled by Elementor */
    padding: 30px;
}

/* Title */
.miftah-pc-title {
    margin-top: 0;
    line-height: 1.2;
}

/* Description */
.miftah-pc-desc {
    margin-top: 0;
    line-height: 1.5;
}

/* Button */
.miftah-pc-btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.miftah-pc-btn:hover {
    background-color: #ffffff;
    color: #006362;
}

/* Navigation Overrides */
.miftah-pc-wrapper .swiper-button-next,
.miftah-pc-wrapper .swiper-button-prev {
    background-color: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.miftah-pc-wrapper .swiper-button-next:hover,
.miftah-pc-wrapper .swiper-button-prev:hover {
    background-color: rgba(255,255,255,0.8);
    color: #006362;
}

.miftah-pc-wrapper .swiper-button-next::after,
.miftah-pc-wrapper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.miftah-pc-wrapper .swiper-pagination-bullet {
    transition: all 0.3s ease;
}
