/* Top Stories Tabs - Modern Moroccan News Style - UPDATED */
.tstabs {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    direction: rtl;
    border: 1px solid #eee;
}

.tshead {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    padding: 0 5px;
}

.tstab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 8px;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Updated to match theme font */
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.tstab:hover {
    color: #e31e24;
}

.tstab.act {
    color: #e31e24;
}

.tstab.act::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: #e31e24;
    border-radius: 3px 3px 0 0;
}

.tsbody {
    padding: 5px 0;
}

.ts-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
    /* Reduced gap between rank, image and info */
    gap: 10px;
}

.ts-row:last-child {
    border-bottom: none;
}

.ts-row:hover {
    background: #fcfcfc;
}

.ts-rank {
    font-size: 20px;
    font-weight: 900;
    color: #ddd;
    /* Tightened rank width */
    min-width: 24px;
    text-align: center;
    transition: color 0.3s;
    font-family: 'Playfair Display', serif;
}

.ts-row:hover .ts-rank {
    color: #e31e24;
}

.ts-info {
    flex-grow: 1;
    overflow: hidden;
}

.ts-title {
    margin-bottom: 3px;
}

.ts-title a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.ts-row:hover .ts-title a {
    color: #e31e24;
}

.ts-m {
    display: flex;
    gap: 10px;
    font-size: 10.5px;
    color: #999;
    align-items: center;
}

.ts-cat {
    color: #e31e24;
    font-weight: 700;
}

/* Animations */
.ts-panel {
    animation: tsFade 0.4s ease;
}

@keyframes tsFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}
