/* SJJF MEC Banner Slider Styles */

.sjjf-mec-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.sjjf-mec-banner-track {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    height: 520px;
}

.sjjf-mec-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    z-index: 1;
}

.sjjf-mec-banner.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.sjjf-mec-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sjjf-mec-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 3;
}

.sjjf-mec-content {
    position: absolute;
    top: 50%;
    right: 120px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 5;
    max-width: 50%;
}

.sjjf-mec-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 20px;
    line-height: 1.2;
}

.sjjf-mec-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sjjf-mec-btn:hover {
    background: #fff;
    color: #000;
}

.sjjf-mec-countdown {
    position: absolute;
    bottom: 130px;
    left: 120px;
    display: flex;
    gap: 15px;
    z-index: 6;
}

.sjjf-mec-count {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    width: 85px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sjjf-mec-count span {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #00ff88;
}

.sjjf-mec-count small {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.sjjf-mec-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to right, #227449, #00ff88);
    box-shadow: 0 -5px 25px rgba(34, 116, 73, 0.4);
    z-index: 4;
}

.sjjf-mec-date-box {
    position: absolute;
    bottom: 25px;
    left: 40px;
    background: #227449;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    z-index: 7;
}

/* Navigation */
.sjjf-mec-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: #1e7e60 !important;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.sjjf-mec-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.sjjf-mec-prev { left: 4%; }
.sjjf-mec-next { right: 4%; }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .sjjf-mec-banner-track {
        height: 500px;
        width: 100%;
        border-radius: 0;
    }

    .sjjf-mec-content {
        top: 25%;
        right: 30px;
        transform: none;
        max-width: 85%;
    }

    .sjjf-mec-title {
        font-size: 28px;
    }

    .sjjf-mec-countdown {
        bottom: 110px;
        left: 30px;
        gap: 8px;
    }

    .sjjf-mec-count {
        width: 65px;
        padding: 10px;
    }

    .sjjf-mec-count span {
        font-size: 18px;
    }

    .sjjf-mec-date-box {
        bottom: 20px;
        left: 30px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .sjjf-mec-nav {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
