/* =================================================== */
/* ============== القسم الجانبي =================== */
/* =================================================== */

/* News Widget Container */
.seyasa-news-widget {
    width: 100%;
    max-width: 600px;
    /*background-color: #ffffff;*/
    border-radius: 0.5rem;
    overflow: hidden;
    /*box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);*/
}

/* Main Story Section */
.seyasa-main-story {
    position: relative;
}

.seyasa-main-story-image {
    width: 100%;
    height: 350px;
    object-fit: fill;
    display: block;
}

.seyasa-main-story::after {
    /* Gradient Overlay */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.seyasa-main-story-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1rem;
    z-index: 2;
    color: white;
}

.seyasa-live-tag {
    background-color: var(--seyasa-live-red-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.seyasa-main-story-headline {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}

.seyasa-live-dot {
    width: 9px;
    height: 9px;
    background-color: white;
    border-radius: 50%;
    animation: seyasa-flash 1.4s infinite ease-in-out;
}

@keyframes seyasa-flash {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}


/* Secondary Stories List */
.seyasa-secondary-stories-list {
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
}

.seyasa-secondary-stories-list li {
    position: relative;
}

/* The connecting solid line */
.seyasa-secondary-stories-list li::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(1.5rem + 4px);
    /* padding + half icon width */
    width: 2px;
    background-color: var(--seyasa-border-color);
    z-index: 0;
}

.seyasa-secondary-stories-list li:first-child::before {
    top: 1.75rem;
    /* Start line at the icon's vertical center */
}

.seyasa-secondary-stories-list li:last-child::before {
    height: 1.75rem;
    /* End line at the icon's vertical center */
}

.seyasa-secondary-story-item {
    display: block;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.2s ease;
}

.seyasa-secondary-story-item:hover {
    background-color: #f8f9fa;
}

.seyasa-secondary-story-headline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--seyasa-text-color-dark);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

/* Circular story icon */
.seyasa-story-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid var(--seyasa-brand-blue);
    border-radius: 50%;
    margin-left: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.seyasa-secondary-story-item:hover .seyasa-story-icon {
    background-color: var(--seyasa-brand-gold);
    border-color: var(--seyasa-brand-gold);
}

.seyasa-story-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--seyasa-text-color-light);
    font-weight: 400;
    margin-right: calc(10px + 0.75rem);
    /* icon width + icon margin */
}

.seyasa-story-meta svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    stroke: var(--seyasa-text-color-light);
}