/* =================================================== */
/* ==============   الشريط الزمني ويدجت     =================== */
/* =================================================== */


.wz-container {
    max-width: fit-content;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.wz-widget {
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid var(--seyasa-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.wz-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 14rem;
}

#slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.wz-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.wz-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.wz-slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(7, 59, 76, 0.7), transparent);
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.4s;
}

.wz-slide-description p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

@keyframes wz-kenburns-zoom-in {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

@keyframes wz-kenburns-top-left {
    from {
        transform: scale(1.15) translate(0, 0);
    }

    to {
        transform: scale(1.15) translate(5%, 5%);
    }
}

@keyframes wz-kenburns-bottom-right {
    from {
        transform: scale(1.15) translate(0, 0);
    }

    to {
        transform: scale(1.15) translate(-5%, -5%);
    }
}

@keyframes wz-kenburns-pan-right {
    from {
        transform: scale(1.2) translate(-5%, 0);
    }

    to {
        transform: scale(1.2) translate(5%, 0);
    }
}

.wz-kenburns-zoom-in {
    animation-name: wz-kenburns-zoom-in;
}

.wz-kenburns-top-left {
    animation-name: wz-kenburns-top-left;
}

.wz-kenburns-bottom-right {
    animation-name: wz-kenburns-bottom-right;
}

.wz-kenburns-pan-right {
    animation-name: wz-kenburns-pan-right;
}

.wz-slide-active {
    opacity: 1;
    z-index: 2;
}

.wz-slide-active .wz-slide-description {
    opacity: 1;
    transform: translateY(0);
}

.wz-nav-container {
    padding: 1.5rem;
    background-color: rgba(248, 250, 252, 0.5);
    border-top: 1px solid var(--seyasa-border-color);
    position: relative;
}

#timeline-track,
#vertical-progress-fill {
    position: absolute;
    right: 30px;
    top: 0;
    width: 4px;
    background-color: var(--seyasa-border-color);
    border-radius: 2px;
    z-index: 1;
}

#vertical-progress-fill {
    background-color: var(--seyasa-secondary-color);
    height: 0;
    transition: height 5s linear;
    z-index: 2;
}

#nav-list {
    position: relative;
    z-index: 3;
}

.wz-news-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: background-color 0.3s;
    border-radius: 0.375rem;
    min-height: 3.5rem;
}

.wz-news-nav-item:hover {
    background-color: rgba(226, 232, 240, 0.7);
}

#nav-list>*+* {
    margin-top: 0.25rem;
}

.wz-timeline-dot {
    position: relative;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background-color: #ffffff;
    border: 2px solid var(--seyasa-border-color);
    border-radius: 9999px;
    transition: all 0.4s ease;
}

.wz-news-nav-item h4 {
    margin: 0;
    font-weight: 600;
    color: var(--seyasa-text-color-dark);
    transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.wz-nav-item-active h4 {
    color: var(--seyasa-text-color-dark);
    font-weight: 700;
    letter-spacing: 0;
    transform: translateX(-3px);
}

.wz-nav-item-completed h4 {
    color: var(--seyasa-text-color-light);
}

.wz-nav-item-active .wz-timeline-dot {
    background-color: #ffffff;
    border-color: var(--seyasa-brand-gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.4);
}

.wz-nav-item-completed .wz-timeline-dot {
    background-color: var(--seyasa-border-color);
    border-color: var(--seyasa-border-color);
}

@media (max-width: 480px) {
    .wz-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .wz-slider-wrapper {
        height: 12rem;
    }

    .wz-nav-container {
        padding: 1rem;
    }

    .wz-news-nav-item h4 {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .wz-slide-description p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .wz-timeline-dot {
        width: 0.875rem;
        height: 0.875rem;
    }

    #timeline-track,
    #vertical-progress-fill {
        right: 21px;
    }
}

/* =================================================== */
/* ============== أنماط timeline-widget إضافية ======= */
/* =================================================== */

/* Timeline Widget Styles */
.timeline-widget {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 8px;
}

.timeline-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-widget-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--seyasa-secondary-color), #f59e0b);
    border-radius: 2px;
}

.timeline-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Connecting line */
.timeline-widget-list::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--seyasa-secondary-color), rgba(255, 255, 255, 0.1));
}

.timeline-widget-item {
    position: relative;
    padding: 0.75rem 2rem 0.75rem 0;
    transition: all 0.3s ease;
}

.timeline-widget-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--seyasa-secondary-color);
    border: 3px solid #1a202c;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-widget-item:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 12px rgba(226, 183, 74, 0.5);
}

.timeline-widget-link {
    display: block;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.timeline-widget-item:hover .timeline-widget-link {
    color: var(--seyasa-secondary-color);
}

.timeline-widget-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.timeline-widget-meta i {
    font-size: 0.7rem;
}

/* More Button */
.timeline-widget-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-widget-more a {
    color: var(--seyasa-secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.timeline-widget-more a:hover {
    color: #fff;
    gap: 0.75rem;
}